"use strict";
(self["webpackChunkskote"] = self["webpackChunkskote"] || []).push([["default-src_app_pages_notificaciones_notificaciones_module_ts"],{

/***/ 63438:
/*!***************************************************************************!*\
  !*** ./src/app/core/services/notificaciones/notifTipoReceptor.service.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotifTipoReceptorServices: () => (/* binding */ NotifTipoReceptorServices)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);






class NotifTipoReceptorServices extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.notificaciones.NOTIFICACION_TIPO_RECEPTOR.VERSION + this.notificaciones.NOTIFICACION_TIPO_RECEPTOR.PATH_BASE;
  }
  static #_ = this.ɵfac = function NotifTipoReceptorServices_Factory(t) {
    return new (t || NotifTipoReceptorServices)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: NotifTipoReceptorServices,
    factory: NotifTipoReceptorServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 84346:
/*!**********************************************************************!*\
  !*** ./src/app/core/services/notificaciones/notificacion.service.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionServices: () => (/* binding */ NotificacionServices)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var src_app_core_context_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);








class NotificacionServices extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService, http2) {
    super(http, configService, recursosService, authService);
    this.http2 = http2;
    this.endpoint = this.url + this.notificaciones.NOTIFICACION.VERSION + this.notificaciones.NOTIFICACION.PATH_BASE;
  }
  /**
   * MC SINWEB-654 - Envío manual de notificaciones
   * @param params Debe contener el id de la notificación
   */
  envioManualSimple(params, context) {
    let path = this.urlIntegra + this.integra.NOTIFICACIONES.ENVIO.VERSION + this.integra.NOTIFICACIONES.PATH_BASE + this.integra.NOTIFICACIONES.ENVIO.PATH_REL + `/${params.id}`;
    let httpParams;
    if (context) {
      let contextoToSend = (0,src_app_core_context_context__WEBPACK_IMPORTED_MODULE_4__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpParams, {
          context: contextoToSend
        });
      }
    }
    return this.http2.post(path, null, httpParams);
  }
  /**
   * MC SINWEB-654 - Envío manual masivo de notificaciones
   * @param params Debe contener un arreglo con ids de notificaciones
   */
  envioManualMultiple(params, context) {
    let path = this.urlIntegra + this.integra.NOTIFICACIONES.ENVIO_MASIVO.VERSION + this.integra.NOTIFICACIONES.PATH_BASE + this.integra.NOTIFICACIONES.ENVIO_MASIVO.PATH_REL;
    return this.nuevo(params, path, context);
  }
  static #_ = this.ɵfac = function NotificacionServices_Factory(t) {
    return new (t || NotificacionServices)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: NotificacionServices,
    factory: NotificacionServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 94260:
/*!***************************************************************************!*\
  !*** ./src/app/core/services/notificaciones/notificacionCanal.service.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionCanalServices: () => (/* binding */ NotificacionCanalServices)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);






class NotificacionCanalServices extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.notificaciones.NOTIFICACION_CANAL.VERSION + this.notificaciones.NOTIFICACION_CANAL.PATH_BASE;
  }
  /**
   * MC SINWEB-384 Metodo para obtener los canales de notificaciones
   */
  getCanalesNotificacion(params, context) {
    return this.fetch(params, this.endpoint, context);
  }
  static #_ = this.ɵfac = function NotificacionCanalServices_Factory(t) {
    return new (t || NotificacionCanalServices)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: NotificacionCanalServices,
    factory: NotificacionCanalServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 27846:
/*!************************************************************************************!*\
  !*** ./src/app/core/services/notificaciones/notificacionConfigReceptor.service.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionConfigReceptorService: () => (/* binding */ NotificacionConfigReceptorService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/metodos/metodos */ 38002);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);







class NotificacionConfigReceptorService extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.VERSION + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.PATH_BASE;
  }
  //PM SINWEB-12
  getNotificacionTipoReceptorPorTipo(params, id, context) {
    let path = this.url + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.GET_NOTIFICACION_RECEPTOR_BY_TIPO.VERSION + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.GET_NOTIFICACION_RECEPTOR_BY_TIPO.PATH_REL.replace('{idNotifTipoReceptor}', id);
    return this.fetch(params, path, context);
  }
  deleteEliminacionMasiva(params, context) {
    let path = this.url + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.DELETE_ELIMINACION_MASIVA.VERSION + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.PATH_BASE + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.DELETE_ELIMINACION_MASIVA.PATH_REL;
    return this.eliminarSinId(params, path, context);
  }
  getNoConfigurados(params, idNotifTipoReceptor, idConfiguracion, context) {
    let path = this.url + this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.GET_NO_CONFIGURADOS.VERSION + (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.allReplace)(this.notificaciones.NOTIFICACION_CONFIG_RECEPTOR.GET_NO_CONFIGURADOS.PATH_REL, {
      '{idNotifTipoReceptor}': idNotifTipoReceptor,
      '{idConfiguracion}': idConfiguracion
    });
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function NotificacionConfigReceptorService_Factory(t) {
    return new (t || NotificacionConfigReceptorService)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: NotificacionConfigReceptorService,
    factory: NotificacionConfigReceptorService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 47742:
/*!***********************************************************************************!*\
  !*** ./src/app/core/services/notificaciones/notificacionConfiguracion.service.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionConfiguracionServices: () => (/* binding */ NotificacionConfiguracionServices)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);






class NotificacionConfiguracionServices extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.notificaciones.NOTIFICACION_CONFIGURACION.VERSION + this.notificaciones.NOTIFICACION_CONFIGURACION.PATH_BASE;
  }
  static #_ = this.ɵfac = function NotificacionConfiguracionServices_Factory(t) {
    return new (t || NotificacionConfiguracionServices)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: NotificacionConfiguracionServices,
    factory: NotificacionConfiguracionServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 44404:
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/admin-config-receptores/admin-config-receptores.component.ts ***!
  \******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AdminConfigReceptoresComponent: () => (/* binding */ AdminConfigReceptoresComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs */ 94664);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _admin_receptores_admin_receptores_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./admin-receptores/admin-receptores.component */ 55441);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./response-receptores/response-receptores.component */ 89632);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfigReceptor.service */ 27846);
/* harmony import */ var src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/notificaciones/notifTipoReceptor.service */ 63438);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);























function AdminConfigReceptoresComponent_ng_template_3_Template(rf, ctx) {}
function AdminConfigReceptoresComponent_div_4_ng_template_3_Template(rf, ctx) {}
function AdminConfigReceptoresComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 36)(1, "div", 37)(2, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, AdminConfigReceptoresComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](60);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function AdminConfigReceptoresComponent_span_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "span", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx_r2.itemsSeleccionados.length);
  }
}
function AdminConfigReceptoresComponent_span_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "span", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](ctx_r3.itemsSeleccionados.length);
  }
}
function AdminConfigReceptoresComponent_option_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "option", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r8 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", tipo_r8.NotifTipoReceptor.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r4.getTipoReceptorNombre(tipo_r8), " ");
  }
}
function AdminConfigReceptoresComponent_ng_template_59_Template(rf, ctx) {}
class AdminConfigReceptoresComponent {
  constructor(notifConfigService, notificacionConfigReceptorService, notifTipoReceptorServices, route, fb, modalService, alert) {
    this.notifConfigService = notifConfigService;
    this.notificacionConfigReceptorService = notificacionConfigReceptorService;
    this.notifTipoReceptorServices = notifTipoReceptorServices;
    this.route = route;
    this.fb = fb;
    this.modalService = modalService;
    this.alert = alert;
    this.filtro = false;
    this.filtroMobile = false;
    this.subscription = [];
    this.itemsSeleccionados = [];
    this.tiposReceptor = [];
    this.receptoresConfiguracion = [];
    this.receptoresConfigHeader = [];
    this.receptoresConfigDropdownButtons = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.ReceptoresConfigDropdownButtons;
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.CANT_SEARCH;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.PAGE_OPTIONS;
    this.page = 1;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO;
    this.totalItems = 0;
    this.filterForm = this.fb.group({
      Descripcion: [''],
      idNotifTipoReceptor: [-1],
      TipoNotif: [''],
      Canal: [''],
      Periodicidad: ['']
    });
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_12__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_13__["default"]); //permite dar formatos a numeros
    const sbs = this.route.paramMap.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_14__.switchMap)(params => {
      //el parametro modo se guarda en el atributo modoListado
      this.idConfiguracion = Number(params.get('id'));
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_15__.of)('exito');
    })).subscribe(res => {
      if (res == 'exito') {
        this.cargarTodo();
        this.configFilter();
      }
    });
    this.subscription.push(sbs);
  }
  ngOnDestroy() {
    this.subscription.forEach(sb => sb.unsubscribe());
  }
  cargarTodo() {
    // MC SINWEB-615 Se quita el uso de fetchReceptoresFiltrados() porque
    // ya vienen los receptores posibles en la configuración
    let susc = this.notifConfigService.SerchById(this.idConfiguracion).subscribe(resConfig => {
      this.configuracion = resConfig;
      if (this.configuracion) {
        this.filterForm.controls.Descripcion.setValue(this.configuracion.Descripcion);
        this.filterForm.controls.TipoNotif.setValue('(' + this.configuracion.NotificacionTipo.Codigo + ')' + this.configuracion.NotificacionTipo.Nombre);
        this.filterForm.controls.Canal.setValue(this.configuracion.NotifCanal.Nombre);
        this.filterForm.controls.Periodicidad.setValue(this.configuracion.ExpresionCron ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3___default().toString(this.configuracion.ExpresionCron, {
          locale: 'es'
        }) : 'Instantánea');
        this.tiposReceptor = this.configuracion.NotificacionTipo.NotifTiposXReceptores;
        if (this.tiposReceptor.length > 0) {
          this.notifTipoReceptorFilter = this.tiposReceptor[0].NotifTipoReceptor.Id;
          this.filterForm.controls.idNotifTipoReceptor.setValue(this.notifTipoReceptorFilter, {
            emitEvent: false
          });
        }
      }
      this.loadPage();
    });
    this.subscription.push(susc);
  }
  configFilter() {
    this.subscription.push(this.filterForm.controls.idNotifTipoReceptor.valueChanges.subscribe(idNotif => {
      this.notifTipoReceptorFilter = idNotif;
      this.itemsSeleccionados = [];
      this.page = 1;
      this.loadPage();
    }));
  }
  cargarConfiguracion() {
    let susc = this.notifConfigService.SerchById(this.idConfiguracion).subscribe(resp => {
      this.configuracion = resp;
    });
    susc.unsubscribe;
  }
  // cargarTiposReceptor(){
  //   const datos = {
  //     PageNumber: -1,
  //     Orden: 2,
  //     SentidoOrden: 'asc'
  //   };
  //   const susc = this.notifTipoReceptorServices.fetch(datos).subscribe((data) => {
  //     this.tiposReceptor = data.Data;
  //     if (this.tiposReceptor.length > 0){
  //       this.notifTipoReceptorFilter = this.tiposReceptor[0].Id ;
  //       this.filterForm.controls.idNotifTipoReceptor.setValue(this.notifTipoReceptorFilter);
  //     }
  //   });
  //   this.subscription.push(susc);
  // }
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  onSearch(datos) {
    const susc = this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(datos, this.notifTipoReceptorFilter).subscribe(data => {
      this.receptoresConfiguracion = data.Data.map(x => {
        return {
          ...x.Clave,
          Datos: {
            ...x.Datos[0]
          }
        };
      });
      this.receptoresConfigHeader = this.cargarHeader(this.receptoresConfiguracion);
      if (data.Data) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  cargarHeader(data) {
    let header = [];
    let WCol = [[50], [25, 25], [10, 20, 20], [15, 15, 15, 20]];
    let orden = [[2], [3, 2], [3, 2, 1]];
    let claves = data.length > 0 ? Object.keys(data[0]) : [];
    claves.forEach(tipo => {
      if (tipo !== 'Id' && tipo !== 'Datos') {
        header.push({
          Nombre: tipo,
          Key: tipo,
          Order: orden[claves.length - 3][0],
          WCol: WCol[claves.length - 3][0] + '%'
        });
        orden[claves.length - 3].splice(0, 1);
        WCol[claves.length - 3].splice(0, 1);
      }
    });
    header.push({
      Nombre: 'Periodicidad',
      Type: 'condition',
      CondFunction: (dato, func) => {
        let elem = func(dato, 'Datos.CronPeriodicidad');
        return elem ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3___default().toString(elem, {
          locale: 'es'
        }) : 'Instantánea';
      },
      Disabled: false,
      WCol: '20%'
    }, {
      Nombre: 'Observación',
      Key: 'Datos.Observacion',
      WCol: '20%',
      Disabled: false
    });
    return header;
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //SP SINWEB-38 parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.IdsNotifConfNotif = this.idConfiguracion.toString();
    if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB) {
      let plataforma = this.configuracion.NotificacionTipo.Parametros.id_plataforma;
      datos.NotifTipoParametros = plataforma ? '"id_plataforma": "' + plataforma + '"' : '"id_plataforma": "-1"';
    }
    return datos;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  seleccionarRegistros($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      const susc = this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(datos, this.notifTipoReceptorFilter).subscribe(data => {
        this.itemsSeleccionados = data.Data.map(x => {
          return {
            ...x.Clave,
            Datos: {
              ...x.Datos[0]
            }
          };
        });
      });
    } else {
      this.itemsSeleccionados = $event.rows;
    }
  }
  deleteReceptores() {
    this.alert.showReturnAlert('Eliminación de receptores de configuración.', "¿Está seguro de eliminar los receptores de la configuración: '" + this.filterForm.controls.Descripcion.value + "' ?", 'warning', 'Eliminar', 'Cancelar', true, 'danger').then(result => {
      if (result.value) {
        this.delete();
      }
    });
  }
  delete() {
    this.alert.showLoadingAlert('Eliminando receptores', 'Este proceso puede tardar unos minutos, Cargando...');
    let ids = this.itemsSeleccionados.map(x => x.Datos.Id);
    this.notificacionConfigReceptorService.deleteEliminacionMasiva(ids).subscribe(res => {
      if (res.Succeeded) {
        this.alert.closeLoadingAlert();
        this.loadPage();
        const modalRef = this.modalService.open(_response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_6__.ResponseReceptoresComponent, {
          size: 'xl',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef.componentInstance.response = res.Data;
        modalRef.componentInstance.receptoresEnviados = this.itemsSeleccionados;
        modalRef.componentInstance.configuracion = this.configuracion;
        modalRef.componentInstance.tipoReceptorId = this.notifTipoReceptorFilter;
        modalRef.componentInstance.edicion = false;
        this.itemsSeleccionados = [];
      }
    });
  }
  editReceptores() {
    let modalRef = this.modalService.open(_admin_receptores_admin_receptores_component__WEBPACK_IMPORTED_MODULE_4__.AdminReceptoresComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.seleccionados = this.itemsSeleccionados;
    modalRef.componentInstance.tipoReceptor = lodash__WEBPACK_IMPORTED_MODULE_2__.find(this.tiposReceptor, el => el.NotifTipoReceptor.Id == this.notifTipoReceptorFilter);
    modalRef.componentInstance.configuracion = this.configuracion;
    modalRef.result.then(result => {
      if (result) {
        this.loadPage();
        this.itemsSeleccionados = [];
        const modalRef = this.modalService.open(_response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_6__.ResponseReceptoresComponent, {
          size: 'xl',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef.componentInstance.response = result.respuesta;
        modalRef.componentInstance.receptoresEnviados = result.seleccionados;
        modalRef.componentInstance.configuracion = this.configuracion;
        modalRef.componentInstance.tipoReceptorId = this.notifTipoReceptorFilter;
      }
    });
  }
  getTipoReceptorNombre(tipoReceptor) {
    if (tipoReceptor.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_CLIENTE || tipoReceptor.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_PROVEEDOR || tipoReceptor.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_SINERGIAL) {
      return tipoReceptor.NotifTipoReceptor.Nombre;
    }
    if (tipoReceptor.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB) {
      const plataforma = this.configuracion.NotificacionTipo.Parametros.id_plataforma;
      if (plataforma == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_VENDU) {
        return tipoReceptor.NotifTipoReceptor.Nombre + ' - Vendú';
      }
      if (plataforma == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_MERCADO_LIBRE) {
        return tipoReceptor.NotifTipoReceptor.Nombre + ' - Mercado Libre';
      }
      return tipoReceptor.NotifTipoReceptor.Nombre;
    }
  }
  static #_ = this.ɵfac = function AdminConfigReceptoresComponent_Factory(t) {
    return new (t || AdminConfigReceptoresComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_7__.NotificacionConfiguracionServices), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_8__.NotificacionConfigReceptorService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_9__.NotifTipoReceptorServices), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_16__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({
    type: AdminConfigReceptoresComponent,
    selectors: [["app-admin-config-receptores"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService])],
    decls: 61,
    vars: 27,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "col-xl-3 col-lg-4", 4, "ngIf"], [3, "ngClass"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "gap-2", "align-items-center"], [1, "mb-0", "card-title", "flex-grow-1", "d-flex", "flex-row"], ["tourAnchor", "notifConfigReceptor.anchor.id", 1, "mb-1", "align-self-center"], [1, "flex-shrink-0", "d-flex", "gap-1"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "ml-2", 3, "routerLink"], ["tourAnchor", "deleteConfigReceptores.anchor.id", 1, "btn", "btn-danger", 3, "disabled", "click"], [1, "d-none", "d-md-flex", "gap-2"], ["class", "badge rounded-pill bg-light float-end text-dark align-self-center", 4, "ngIf"], [1, "d-block", "d-md-none", "mdi", "mdi-delete-outline", "mdi-16"], ["tourAnchor", "editConfigReceptores.anchor.id", 1, "btn", "btn-primary", 3, "click"], [1, "d-block", "d-md-none", "mdi", "mdi-plus", "mdi-16"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-lg-4"], [1, "form-label"], ["type", "text", "formControlName", "Descripcion", "readonly", "", 1, "form-control"], ["type", "text", "formControlName", "TipoNotif", "readonly", "", 1, "form-control"], ["type", "text", "formControlName", "Canal", "readonly", "", 1, "form-control"], [1, "col-lg-3"], ["formControlName", "idNotifTipoReceptor", 1, "form-select"], ["disabled", "", 3, "value"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-lg-6"], ["type", "text", "formControlName", "Periodicidad", "readonly", "", 1, "form-control"], [1, "card-body"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "cant_search", "totalItems", "apiTable", "selectRows", "selectedRows", "isLoading", "verSeleccionados", "selectRowsAction", "lazyLoad"], ["FILTRO", ""], [1, "col-xl-3", "col-lg-4"], ["tourAnchor", "filtroNotifConfigReceptor.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-4"], [1, "badge", "rounded-pill", "bg-light", "float-end", "text-dark", "align-self-center"], [3, "value"]],
    template: function AdminConfigReceptoresComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("visibleChange", function AdminConfigReceptoresComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, AdminConfigReceptoresComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, AdminConfigReceptoresComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, " Receptores de notificaci\u00F3n ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](12, "div", 11)(13, "button", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](14, " Volver ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](15, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AdminConfigReceptoresComponent_Template_button_click_15_listener() {
          return ctx.deleteReceptores();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](16, "span", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](17, "Eliminar Receptores ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](18, AdminConfigReceptoresComponent_span_18_Template, 2, 1, "span", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](19, "i", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](20, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AdminConfigReceptoresComponent_Template_a_click_20_listener() {
          return ctx.editReceptores();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](21, "span", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](22, "Cargar/Editar Receptores ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](23, AdminConfigReceptoresComponent_span_23_Template, 2, 1, "span", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](24, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](25, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AdminConfigReceptoresComponent_Template_a_click_25_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](26, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](27, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](28, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](29, 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](30, "div", 21)(31, "div", 22)(32, "label", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](33, "Configuraci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](34, "input", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](35, "div", 22)(36, "label", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](37, "Tipo de Notificaci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](38, "input", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](39, "div", 22)(40, "label", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](41, "Canal");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](42, "input", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](43, "div", 27)(44, "div")(45, "label", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](46, "Tipo receptor");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](47, "select", 28)(48, "option", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](49, "Seleccionar");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](50, AdminConfigReceptoresComponent_option_50_Template, 2, 2, "option", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](51, "div", 31)(52, "div")(53, "label", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](54, "Periodicidad");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](55, "input", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](56, "div", 33)(57, "app-table2", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("selectRowsAction", function AdminConfigReceptoresComponent_Template_app_table2_selectRowsAction_57_listener($event) {
          return ctx.seleccionarRegistros($event);
        })("lazyLoad", function AdminConfigReceptoresComponent_Template_app_table2_lazyLoad_57_listener($event) {
          return ctx.lazyLoadChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](58, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](59, AdminConfigReceptoresComponent_ng_template_59_Template, 0, 0, "ng-template", null, 35, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](60);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r6);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xl-9 col-lg-8" : "col-lg-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("routerLink", "/notificaciones/configNotif");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", ctx.itemsSeleccionados.length == 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.itemsSeleccionados.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.itemsSeleccionados.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](27, 23, ctx.notificacionConfigReceptorService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx.filterForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](19);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx.tiposReceptor);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("columns", ctx.receptoresConfigHeader)("datos", ctx.receptoresConfiguracion)("page", ctx.page)("order", 1)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("selectRows", true)("selectedRows", ctx.itemsSeleccionados)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](58, 25, ctx.notificacionConfigReceptorService.isLoading$))("verSeleccionados", true);
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_16__.RouterLink, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_17__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_17__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_19__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.TourAnchorNgBootstrapDirective, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_10__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe]
  });
}

/***/ }),

/***/ 55441:
/*!****************************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/admin-config-receptores/admin-receptores/admin-receptores.component.ts ***!
  \****************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AdminReceptoresComponent: () => (/* binding */ AdminReceptoresComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit-receptor/edit-receptor.component */ 5826);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_shared_ui_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/ui/data-list/data-list.component */ 29706);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfigReceptor.service */ 27846);
/* harmony import */ var src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/core/proveedor.service */ 19803);
/* harmony import */ var src_app_core_services_core_usuario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/core/usuario.service */ 6146);
/* harmony import */ var src_app_core_services_core_usuario_web_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/core/usuario-web.service */ 68599);
/* harmony import */ var src_app_core_services_core_seleccionar_cliente_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/core/seleccionar-cliente.service */ 40329);
/* harmony import */ var src_app_core_services_core_seleccionar_proveedor_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/core/seleccionar-proveedor.service */ 50571);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../shared/ui/table2/table2.component */ 63033);
























function AdminReceptoresComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Seleccionar receptores ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
}
function AdminReceptoresComponent_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, " Seleccionar receptores no configurados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
}
function AdminReceptoresComponent_div_18_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_div_18_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r7.borrarReceptorCod());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function AdminReceptoresComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 19)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 20)(4, "input", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("keyup.enter", function AdminReceptoresComponent_div_18_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r9.buscarReceptores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](5, AdminReceptoresComponent_div_18_a_5_Template, 2, 0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_div_18_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r10);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r11.buscarReceptores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](7, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("Buscar por ", ctx_r2.obtenerTituloBusquedaPorReceptor("codigo"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("mask", ctx_r2.obtenerTituloBusquedaPorReceptor("codigo") == "c\u00F3digo" ? "0*" : "")("maxlength", ctx_r2.obtenerTituloBusquedaPorReceptor("codigo") == "c\u00F3digo" ? 6 : 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r2.getReceptorCod());
  }
}
function AdminReceptoresComponent_div_19_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_div_19_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r13.borrarReceptorNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function AdminReceptoresComponent_div_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 19)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "div", 20)(4, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("keyup.enter", function AdminReceptoresComponent_div_19_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r15.buscarReceptores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](5, AdminReceptoresComponent_div_19_a_5_Template, 2, 0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](6, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_div_19_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r16);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r17.buscarReceptores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](7, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("Buscar por ", ctx_r3.obtenerTituloBusquedaPorReceptor("nombre"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx_r3.getReceptorNom());
  }
}
function AdminReceptoresComponent_Conditional_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "app-table2", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("lazyLoad", function AdminReceptoresComponent_Conditional_23_Template_app_table2_lazyLoad_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r19);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r18.lazyLoadChange($event));
    })("emitAction", function AdminReceptoresComponent_Conditional_23_Template_app_table2_emitAction_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r19);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r20.acciones($event));
    })("selectRowsAction", function AdminReceptoresComponent_Conditional_23_Template_app_table2_selectRowsAction_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r19);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r21.seleccionarRegistros($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("datos", ctx_r4.receptores)("columns", ctx_r4.headerTable)("page", ctx_r4.page)("order", ctx_r4.order)("sentido", ctx_r4.sentido)("cant_search", ctx_r4.cantSearch)("totalItems", ctx_r4.totalItems)("apiTable", true)("acciones", true)("edit", true)("selectRows", true)("selectedRows", ctx_r4.receptoresSeleccionados)("selectAllFunc", false)("verSeleccionados", true);
  }
}
function AdminReceptoresComponent_Conditional_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 5)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2, " Tipo de receptor no reconocido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
}
class AdminReceptoresComponent {
  constructor(modal, fb, vh, modalService, notificacionConfigReceptorService, clienteService, proveedorService, usuarioService, usuarioWebService, selClienteService, selProveedorService, alert, cdr) {
    this.modal = modal;
    this.fb = fb;
    this.vh = vh;
    this.modalService = modalService;
    this.notificacionConfigReceptorService = notificacionConfigReceptorService;
    this.clienteService = clienteService;
    this.proveedorService = proveedorService;
    this.usuarioService = usuarioService;
    this.usuarioWebService = usuarioWebService;
    this.selClienteService = selClienteService;
    this.selProveedorService = selProveedorService;
    this.alert = alert;
    this.cdr = cdr;
    this.seleccionados = [];
    this.noConfigurados = false;
    /**
     * SP SINWEB-460 nuevas variables para la tabla de receptores
     */
    this.page = 1;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.INIT_SENTIDO;
    this.cantSearch = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.CANT_SEARCH;
    this.totalItems = 0;
    this.subscripcion = [];
    this.formGroup = this.fb.group({
      Codigo: [''],
      Nombre: ['']
    });
    this.receptoresSeleccionados = [];
    this.receptores = [];
    this.filtroCliente = {
      Multiple: true,
      Modal: false,
      Estado: {
        Id: 'A',
        Ocultar: true
      },
      FetchSource: undefined
    };
    this.filtroProveedor = {
      Multiple: true,
      Modal: false,
      Estado: {
        Id: 'A',
        Ocultar: true
      },
      FetchSource: undefined
    };
    /**
     * SP SINWEB-460 , se modificacron las columnas de receptores , se agrego periodicidad y observacion
     */
    this.headerTable = [];
    this.proveedorHeader = [{
      Nombre: 'Código',
      Order: 2,
      Key: 'Codigo',
      WCol: '10%',
      Disabled: false
    }, {
      Nombre: 'Proveedor',
      Order: 3,
      Key: 'Nombre',
      WCol: '20%',
      Disabled: false
    }, {
      Nombre: 'Periodicidad',
      Type: 'condition',
      CondFunction: (dato, func) => {
        let elem = func(dato, 'CronPeriodicidad');
        return elem ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1___default().toString(elem, {
          locale: 'es'
        }) : 'Instantánea';
      },
      WCol: '30%',
      Disabled: false
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '30%',
      Disabled: false
    }];
    this.clienteHeader = [{
      Nombre: 'Código',
      Order: 2,
      Key: 'Codigo',
      WCol: '10%',
      Disabled: false
    }, {
      Nombre: 'Cliente',
      Order: 3,
      Key: 'Nombre',
      WCol: '20%',
      Disabled: false
    }, {
      Nombre: 'Periodicidad',
      Type: 'condition',
      CondFunction: (dato, func) => {
        let elem = func(dato, 'CronPeriodicidad');
        return elem ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1___default().toString(elem, {
          locale: 'es'
        }) : 'Instantánea';
      },
      WCol: '30%',
      Disabled: false
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '30%',
      Disabled: false
    }];
    this.usuarioHeader = [{
      Nombre: 'Nombre',
      Order: 2,
      Key: 'Nombre',
      WCol: '20%',
      Disabled: false
    }, {
      Nombre: 'Periodicidad',
      Type: 'condition',
      CondFunction: (dato, func) => {
        let elem = func(dato, 'CronPeriodicidad');
        return elem ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1___default().toString(elem, {
          locale: 'es'
        }) : 'Instantánea';
      },
      WCol: '30%',
      Disabled: false
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '30%',
      Disabled: false
    }];
    this.usuarioWebHeader = [{
      Nombre: 'Usuario',
      Order: 2,
      Key: 'Usuario',
      WCol: '20%',
      Disabled: false
    }, {
      Nombre: 'Email',
      Order: 3,
      Key: 'Email',
      WCol: '20%',
      Disabled: false
    }, {
      Nombre: 'Periodicidad',
      Type: 'condition',
      CondFunction: (dato, func) => {
        let elem = func(dato, 'CronPeriodicidad');
        return elem ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_1___default().toString(elem, {
          locale: 'es'
        }) : 'Instantánea';
      },
      WCol: '30%',
      Disabled: false
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '30%',
      Disabled: false
    }];
  }
  ngOnInit() {
    this.noConfigurados ? this.order = 3 : this.order = 2;
    //SP SINWEB-810 metodo para organizar la asignacion del header correspondiente al tipo de receptor
    this.headerTable = this.getHeaderTable(this.tipoReceptor?.NotifTipoReceptor.Id);
    if (this.seleccionados.length > 0) {
      this.receptoresSeleccionados = lodash__WEBPACK_IMPORTED_MODULE_2__.map(this.seleccionados, objeto => lodash__WEBPACK_IMPORTED_MODULE_2__.omit(objeto, 'Datos'));
    }
    this.cargarReceptores();
  }
  ngOnDestroy() {
    this.subscripcion.forEach(sb => sb.unsubscribe());
  }
  getHeaderTable(tipoReceptor) {
    switch (tipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_CLIENTE:
        return this.clienteHeader;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_PROVEEDOR:
        return this.proveedorHeader;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return this.usuarioHeader;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB:
        return this.usuarioWebHeader;
      default:
        return this.clienteHeader;
    }
  }
  /**
   * SP SINWEB-360 se agrego alerta de carga
   */
  enviarReceptores() {
    this.alert.showLoadingAlert('Guardando receptores', 'Este proceso puede tardar unos minutos, Cargando...');
    let result = this.prepararReceptores(this.receptoresSeleccionados);
    this.notificacionConfigReceptorService.editarSinId(result).subscribe(res => {
      if (res.Errors == null) {
        this.alert.closeLoadingAlert();
        this.modal.close({
          respuesta: res.Data,
          seleccionados: this.receptoresSeleccionados
        });
      }
    });
  }
  /**
   *
   * @param seleccionados
   * @returns
   */
  prepararReceptores(seleccionados) {
    return seleccionados.map(item => {
      let elem = {
        IdNotifConfNotif: this.configuracion.Id,
        IdNotifTipoReceptor: this.tipoReceptor.NotifTipoReceptor.Id,
        IdRegistro: item.Id,
        Observacion: item.Observacion,
        CronPeriodicidad: this.configuracion.NotificacionTipo.EsCondicional == 'S' ? item.CronPeriodicidad : null
      };
      const existente = lodash__WEBPACK_IMPORTED_MODULE_2__.find(this.seleccionados, el => el.Id == item.Id);
      if (existente) {
        elem.Id = existente.Datos.Id;
      }
      return elem;
    });
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //SP SINWEB-38 parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //datos.IdsEmpresas = this.authService.usuario.IdEmpresa.toString();
    //busqueda
    if (this.tipoReceptor.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB) {
      let plataformaId = this.configuracion.NotificacionTipo.Parametros?.id_plataforma;
      if (this.noConfigurados) {
        datos.IdPlataforma = plataformaId ? plataformaId : -1;
        if (this.formGroup.controls.Codigo.value != undefined && this.formGroup.controls.Codigo.value != '') {
          datos.Codigo = this.formGroup.controls.Codigo.value;
        }
        if (this.formGroup.controls.Nombre.value != undefined && this.formGroup.controls.Nombre.value != '') {
          datos.Nombre = this.formGroup.controls.Nombre.value;
        }
      } else {
        datos.NotifTipoParametros = `"id_plataforma": "${plataformaId ? plataformaId : -1}"`;
        if (this.formGroup.controls.Codigo.value != undefined && this.formGroup.controls.Codigo.value != '') {
          datos.Email = this.formGroup.controls.Codigo.value;
        }
        if (this.formGroup.controls.Nombre.value != undefined && this.formGroup.controls.Nombre.value != '') {
          datos.Usuario = this.formGroup.controls.Nombre.value;
        }
      }
    } else {
      if (this.formGroup.controls.Codigo.value != undefined && this.formGroup.controls.Codigo.value != '') {
        datos.Codigo = this.formGroup.controls.Codigo.value;
      }
      if (this.formGroup.controls.Nombre.value != undefined && this.formGroup.controls.Nombre.value != '') {
        datos.Nombre = this.formGroup.controls.Nombre.value;
      }
    }
    //filtros
    return datos;
  }
  /**
   * SP SINWEB-360 , cambios en la logica dependiendo si se cargan los no configurados o los configurados
   */
  loadPage() {
    if (this.noConfigurados) {
      this.onSearchNoConfiguradosProveedor(this.cargarFiltros(this.page, this.order, this.sentido));
    } else {
      this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
    }
  }
  /**
   * SP SINWEB-360, get de receptores no configurados
   * @param datos
   */
  onSearchNoConfiguradosProveedor(datos) {
    const susc = this.notificacionConfigReceptorService.getNoConfigurados(datos, this.tipoReceptor.NotifTipoReceptor.Id, this.configuracion.Id).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.map)(data => {
      return {
        Data: data.Data.map(item => {
          const selectedItem = this.receptoresSeleccionados.find(selectedItem => selectedItem.Id === item.Id);
          return this.getDatosByReceptor(item, this.tipoReceptor.NotifTipoReceptor.Id, selectedItem);
        }),
        TotalRecords: data.TotalRecords,
        Errors: data.Errors
      };
    })).subscribe(res => {
      if (!res.Errors && res.Data) {
        this.receptores = res.Data;
        this.totalItems = res.TotalRecords;
      }
    });
  }
  /**
   * SP SINWEB-360 , get receptores
   */
  onSearch(datos) {
    const susc = this.getReceptorService(this.tipoReceptor.NotifTipoReceptor.Id, datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.map)(data => {
      return {
        Data: data.Data.map(item => {
          const selectedItem = this.receptoresSeleccionados.find(selectedItem => selectedItem.Id === item.Id);
          return this.getDatosByReceptor(item, this.tipoReceptor.NotifTipoReceptor.Id, selectedItem);
        }),
        TotalRecords: data.TotalRecords,
        Errors: data.Errors
      };
    })).subscribe(res => {
      if (!res.Errors && res.Data) {
        this.receptores = res.Data;
        this.totalItems = res.TotalRecords;
      }
    });
  }
  getReceptorService(tipoReceptor, datos) {
    switch (tipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_CLIENTE:
        return this.clienteService.fetch(datos);
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_PROVEEDOR:
        return this.proveedorService.fetch(datos);
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return this.usuarioService.fetch(datos);
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB:
        let plataformaId = this.configuracion.NotificacionTipo.Parametros?.id_plataforma;
        return this.usuarioWebService.getUsuarioWebByPlataforma(datos, plataformaId ? plataformaId : -1);
      default:
        return this.clienteService.fetch(datos);
    }
  }
  /**
   * SP SINWEB-360 , metodo para logica de tabla
   * @param $event
   */
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  acciones(event) {
    switch (event.accion) {
      case 'edit':
        this.editar(event.registro);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * SP SINWEB , se agrego metodo para editar un receptor
   * @param registro
   */
  editar(registro) {
    let modalRef = this.modalService.open(_edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_4__.EditReceptorComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.receptor = registro;
    modalRef.componentInstance.configuracion = this.configuracion;
    modalRef.result.then(result => {
      if (result) {
        const index = this.receptores.findIndex(item => item.Id === result.Id);
        if (index !== -1) {
          this.receptores.splice(index, 1, result);
          const indexEstaEnSelect = this.receptoresSeleccionados.findIndex(item => item.Id === result.Id);
          if (indexEstaEnSelect !== -1) {
            this.receptoresSeleccionados.splice(indexEstaEnSelect, 1, result);
          } else {
            this.receptoresSeleccionados.push(result);
          }
        }
      }
    });
  }
  /*
   * SP SINWEB-360 , metodo para seleccionar registros
   */
  seleccionarRegistros($event) {
    this.receptoresSeleccionados = $event.rows;
  }
  /**
   * SP SINWEB-360
   * @returns
   */
  getReceptorCod() {
    return this.formGroup.get('Codigo').value;
  }
  /**
   * SP SINWEB-360
   */
  borrarReceptorCod() {
    this.formGroup.get('Codigo').reset('');
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP SINWEB-360
   */
  borrarReceptorNom() {
    this.formGroup.get('Nombre').reset('');
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP SINWEB-360
   * @returns
   */
  getReceptorNom() {
    return this.formGroup.get('Nombre').value;
  }
  /**
   * SP SINWEB-360
   */
  buscarReceptores() {
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP SINWEB-360 metodo llamadado para cargar receptores
   */
  cargarReceptores() {
    switch (this.tipoReceptor.NotifTipoReceptor.Id) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_CLIENTE:
        if (this.noConfigurados) {
          this.headerTable[0].Order = 3;
          this.headerTable[1].Order = 2;
        } else {
          this.headerTable[0].Order = 2;
          this.headerTable[1].Order = 3;
        }
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_PROVEEDOR:
        if (this.noConfigurados) {
          this.headerTable[0].Order = 3;
          this.headerTable[1].Order = 2;
        } else {
          this.headerTable[0].Order = 2;
          this.headerTable[1].Order = 3;
        }
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        this.headerTable[0].Order = 2;
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB:
        this.headerTable[0].Order = 2;
        this.headerTable[1].Order = 3;
        break;
      default:
        break;
    }
    this.loadPage();
  }
  /**
   * SP SINWEB-360 metodo para cargar todos los receptores
   */
  cargarTodos() {
    this.alert.showLoadingAlert('Cargando todos los receptores', 'Este proceso puede tardar unos minutos, Cargando...');
    const susc = (this.noConfigurados ? this.notificacionConfigReceptorService.getNoConfigurados(this.cargarFiltros(-1, this.order, this.sentido), this.tipoReceptor.NotifTipoReceptor.Id, this.configuracion.Id).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.map)(data => {
      return {
        Data: data.Data.map(item => {
          const selectedItem = this.receptoresSeleccionados.find(selectedItem => selectedItem.Id === item.Id);
          return this.getDatosByReceptor(item, this.tipoReceptor.NotifTipoReceptor.Id, selectedItem);
        }),
        TotalRecords: data.TotalRecords,
        Errors: data.Errors
      };
    })) : this.getReceptorService(this.tipoReceptor.NotifTipoReceptor.Id, this.cargarFiltros(-1, this.order, this.sentido)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.map)(data => {
      return {
        Data: data.Data.map(item => {
          const selectedItem = this.receptoresSeleccionados.find(selectedItem => selectedItem.Id === item.Id);
          return this.getDatosByReceptor(item, this.tipoReceptor.NotifTipoReceptor.Id, selectedItem);
        }),
        TotalRecords: data.TotalRecords,
        Errors: data.Errors
      };
    }))).subscribe(res => {
      if (res.Data) {
        let totalReceptores = res.Data;
        let receptoresAEnviar = this.prepararReceptores(totalReceptores);
        this.alert.showCustomAlert2('Edicion de receptores', '¿Esta seguro de guardar los receptores?', 'warning', 'Guardar', 'Cancelar', true, 'Editar', true, 'success', true, 'sweet-btn-action').then(result => {
          if (result.isDenied) {
            let modal = this.modalService.open(_edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_4__.EditReceptorComponent, {
              size: 'lg',
              backdropClass: 'back-z-index-1',
              windowClass: 'modal-z-index-1',
              backdrop: 'static',
              keyboard: false,
              scrollable: true
            });
            modal.componentInstance.configuracion = this.configuracion;
            modal.result.then(result => {
              if (result) {
                receptoresAEnviar.forEach(item => {
                  item.CronPeriodicidad = result.CronPeriodicidad;
                  item.Observacion = result.Observacion;
                });
                this.alert.showLoadingAlert('Guardando todos los receptores', 'Este proceso puede tardar unos minutos, Cargando...');
                this.notificacionConfigReceptorService.editarSinId(receptoresAEnviar).subscribe(res => {
                  if (res.Errors == null) {
                    this.alert.closeLoadingAlert();
                    this.modal.close({
                      respuesta: res.Data,
                      seleccionados: totalReceptores
                    });
                  }
                });
              }
            });
          }
          if (result.isConfirmed) {
            this.alert.showLoadingAlert('Guardando todos los receptores', 'Este proceso puede tardar unos minutos, Cargando...');
            this.notificacionConfigReceptorService.editarSinId(receptoresAEnviar).subscribe(res => {
              if (res.Errors == null) {
                this.alert.closeLoadingAlert();
                this.modal.close({
                  respuesta: res.Data,
                  seleccionados: totalReceptores
                });
              }
            });
          }
        });
        document.getElementById('sweet-btn-action').addEventListener('click', () => {
          this.visualizarSeleccionados(totalReceptores);
        });
      }
    });
  }
  getDatosByReceptor(item, receptor, itemSelected) {
    switch (receptor) {
      // case configNotif.TIPO_RECEPTOR_USUARIO_WEB_ML:
      //   return {
      //     Id:item.Id,
      //     Codigo: item.Codigo,
      //     Nombre: item.Nombre,
      //     CronPeriodicidad: itemSelected?.CronPeriodicidad || (this.configuracion.ExpresionCron ? this.configuracion.ExpresionCron : null),
      //     Observacion: itemSelected?.Observacion || null
      //   }
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB:
        return {
          Id: item.Id,
          Usuario: item.Usuario,
          Email: item.Email,
          CronPeriodicidad: itemSelected?.CronPeriodicidad || (this.configuracion.ExpresionCron ? this.configuracion.ExpresionCron : null),
          Observacion: itemSelected?.Observacion || null
        };
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return {
          Id: item.Id,
          Nombre: item.Nombre,
          CronPeriodicidad: itemSelected?.CronPeriodicidad || (this.configuracion.ExpresionCron ? this.configuracion.ExpresionCron : null),
          Observacion: itemSelected?.Observacion || null
        };
      default:
        return {
          Id: item.Id,
          Codigo: item.Codigo,
          Nombre: item.Nombre,
          CronPeriodicidad: itemSelected?.CronPeriodicidad || (this.configuracion.ExpresionCron ? this.configuracion.ExpresionCron : null),
          Observacion: itemSelected?.Observacion || null
        };
    }
  }
  /**
   * SP SINWEB-360 metodo para visualizar los receptores seleccionados
   * @param totalReceptores
   */
  visualizarSeleccionados(totalReceptores) {
    const modalRef = this.modalService.open(src_app_shared_ui_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_6__.DataListComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-3',
      windowClass: 'modal-z-index-3',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.data = totalReceptores;
    modalRef.componentInstance.columns = this.headerTable;
    modalRef.componentInstance.title = 'Receptores seleccionados';
  }
  tipoReceptorValido(tipoReceptor) {
    return tipoReceptor == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_CLIENTE || tipoReceptor == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_PROVEEDOR || tipoReceptor == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL || tipoReceptor == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB;
  }
  obtenerTituloBusquedaPorReceptor(type) {
    switch (this.tipoReceptor.NotifTipoReceptor.Id) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_CLIENTE:
        if (type == 'codigo') {
          return 'código';
        }
        if (type == 'nombre') {
          return 'nombre';
        }
        return '';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_PROVEEDOR:
        if (type == 'codigo') {
          return 'código';
        }
        if (type == 'nombre') {
          return 'nombre';
        }
        return '';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        if (type == 'nombre') {
          return 'nombre';
        }
        return '';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB:
        if (type == 'codigo') {
          return 'email';
        }
        if (type == 'nombre') {
          return 'usuario';
        }
        return '';
      default:
        return '';
    }
  }
  permiteBusquedaEnReceptor(type) {
    if (type == 'Codigo') {
      return !(this.tipoReceptor?.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_SINERGIAL);
    }
    if (type == 'Nombre') {
      return true;
    }
    return true;
  }
  getTipoReceptorNombre() {
    if (this.tipoReceptor?.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.TIPO_RECEPTOR_USUARIO_WEB) {
      const jsonParams = this.configuracion.NotificacionTipo.Parametros;
      if (jsonParams.id_plataforma) {
        return jsonParams.id_plataforma == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_7__.PLATAFORMA_MERCADO_LIBRE ? 'Usuario Web - Mercado Libre' : 'Usuario Web - Vendú';
      } else {
        return this.tipoReceptor?.NotifTipoReceptor.Nombre;
      }
    } else {
      return this.tipoReceptor?.NotifTipoReceptor.Nombre;
    }
  }
  static #_ = this.ɵfac = function AdminReceptoresComponent_Factory(t) {
    return new (t || AdminReceptoresComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_8__.NotificacionConfigReceptorService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_9__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_10__.ProveedorService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_usuario_service__WEBPACK_IMPORTED_MODULE_11__.UsuarioService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_usuario_web_service__WEBPACK_IMPORTED_MODULE_12__.UsuarioWebService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_seleccionar_cliente_service__WEBPACK_IMPORTED_MODULE_13__.SeleccionarClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_seleccionar_proveedor_service__WEBPACK_IMPORTED_MODULE_14__.SeleccionarProveedorService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_16__.ChangeDetectorRef));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdefineComponent"]({
    type: AdminReceptoresComponent,
    selectors: [["app-admin-receptores"]],
    inputs: {
      seleccionados: "seleccionados",
      tipoReceptor: "tipoReceptor",
      configuracion: "configuracion",
      noConfigurados: "noConfigurados"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService, src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService])],
    decls: 30,
    vars: 9,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "row"], [1, "col-3"], [1, "form-label"], ["type", "text", "readonly", "", 1, "form-control", 3, "ngModel"], [1, "col-9"], ["action", "#", 1, "form", "form-label-right", "pb-2", 3, "formGroup"], [1, "form-group", "row"], ["class", "col-lg-6", 4, "ngIf"], [1, "d-flex", "justify-content-end", "pb-2"], [1, "btn", "btn-primary", 3, "click"], [3, "datos", "columns", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "acciones", "edit", "selectRows", "selectedRows", "selectAllFunc", "verSeleccionados"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], [1, "col-lg-6"], [1, "input-group"], ["type", "text", "formControlName", "Codigo", "placeholder", "", 1, "form-control", 3, "mask", "maxlength", "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["type", "text", "formControlName", "Nombre", "placeholder", "", 1, "form-control", 3, "keyup.enter"], [3, "datos", "columns", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "acciones", "edit", "selectRows", "selectedRows", "selectAllFunc", "verSeleccionados", "lazyLoad", "emitAction", "selectRowsAction"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"]],
    template: function AdminReceptoresComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](3, AdminReceptoresComponent_ng_container_3_Template, 2, 0, "ng-container", 3)(4, AdminReceptoresComponent_ng_container_4_Template, 2, 0, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "div", 4)(6, "div", 5)(7, "div", 6)(8, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](9, "Tipo de receptor");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](10, "input", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](11, "div", 9)(12, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](13, "Configuraci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](14, "input", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](15, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](16, "form", 10)(17, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](18, AdminReceptoresComponent_div_18_Template, 8, 4, "div", 12)(19, AdminReceptoresComponent_div_19_Template, 8, 2, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](20, "div", 13)(21, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_Template_button_click_21_listener() {
          return ctx.cargarTodos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](22, " Cargar Todos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](23, AdminReceptoresComponent_Conditional_23_Template, 1, 14, "app-table2", 15)(24, AdminReceptoresComponent_Conditional_24_Template, 3, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](25, "div", 16)(26, "button", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_Template_button_click_26_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](27, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](28, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function AdminReceptoresComponent_Template_button_click_28_listener() {
          return ctx.enviarReceptores();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](29, " Guardar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", !ctx.noConfigurados);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.noConfigurados);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngModel", ctx.getTipoReceptorNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngModel", ctx.configuracion.Descripcion);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.obtenerTituloBusquedaPorReceptor("codigo") != "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.obtenerTituloBusquedaPorReceptor("nombre") != "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](23, ctx.tipoReceptorValido(ctx.tipoReceptor == null ? null : ctx.tipoReceptor.NotifTipoReceptor.Id) ? 23 : 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", ctx.receptoresSeleccionados.length == 0);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_20__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_19__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_19__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgModel, ngx_mask__WEBPACK_IMPORTED_MODULE_21__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_15__.Table2Component]
  });
}

/***/ }),

/***/ 5826:
/*!***************************************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/admin-config-receptores/admin-receptores/edit-receptor/edit-receptor.component.ts ***!
  \***************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EditReceptorComponent: () => (/* binding */ EditReceptorComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_shared_ui_periodicidad_periodicidad_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/ui/periodicidad/periodicidad.component */ 40381);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../core/directives/campo-obligatorio.directive */ 61528);












function EditReceptorComponent_Conditional_3_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](0, " Editar todos los receptores ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 22);
  }
}
function EditReceptorComponent_Conditional_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](0, " Editar configuraci\u00F3n ");
  }
}
function EditReceptorComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, EditReceptorComponent_Conditional_3_Conditional_0_Template, 2, 0, "i", 21)(1, EditReceptorComponent_Conditional_3_Conditional_1_Template, 1, 0);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, !ctx_r0.esConfiguracion ? 0 : 1);
  }
}
function EditReceptorComponent_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](0);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" Editar receptor - (", ctx_r1.receptor.Codigo, ")", ctx_r1.receptor.Nombre, " ");
  }
}
function EditReceptorComponent_label_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Periodicidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_label_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Periodicidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_a_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EditReceptorComponent_a_13_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r14.borrarCron());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_a_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EditReceptorComponent_a_14_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r16.cargarCron());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Periodicidad correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Periodicidad requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Periodicidad incorrecta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_div_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Observaci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Observaci\u00F3n requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function EditReceptorComponent_div_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
class EditReceptorComponent {
  constructor(modal, fb, vh, modalService) {
    this.modal = modal;
    this.fb = fb;
    this.vh = vh;
    this.modalService = modalService;
    this.esConfiguracion = false;
  }
  ngOnInit() {
    if (!this.receptor) {
      this.formGroup = this.fb.group({
        PeriodicidadVisible: [this.configuracion.ExpresionCron ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(this.configuracion.ExpresionCron, {
          locale: 'es'
        }) : 'Instantánea'],
        Periodicidad: [this.configuracion.ExpresionCron ? this.configuracion.ExpresionCron : null],
        //SP SINWEB-476 correccion de error
        Observacion: [this.esConfiguracion ? this.configuracion.Observacion : null]
      });
    } else {
      this.formGroup = this.fb.group({
        PeriodicidadVisible: [this.receptor.CronPeriodicidad ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(this.receptor.CronPeriodicidad, {
          locale: 'es'
        }) : 'Instantánea'],
        Periodicidad: [this.receptor.CronPeriodicidad ? this.receptor.CronPeriodicidad : null],
        Observacion: [this.receptor.Observacion]
      });
    }
    if (this.configuracion.NotificacionTipo.EsCondicional == 'S') {
      this.formGroup.controls.Periodicidad.addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(1)]));
      this.formGroup.controls.PeriodicidadVisible.addValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.minLength(1)]));
    }
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  getCron() {
    return this.formGroup.get('PeriodicidadVisible').value;
  }
  borrarCron() {
    this.formGroup.get('Periodicidad').setValue(null);
    this.formGroup.get('PeriodicidadVisible').setValue('');
  }
  cargarCron() {
    const modalRef = this.modalService.open(src_app_shared_ui_periodicidad_periodicidad_component__WEBPACK_IMPORTED_MODULE_3__.PeriodicidadComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.isModal = true;
    modalRef.result.then(result => {
      this.formGroup.get('Periodicidad').setValue(result);
      this.formGroup.get('PeriodicidadVisible').setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(result, {
        locale: 'es'
      }));
    });
  }
  saveReceptor() {
    if (!this.receptor) {
      this.modal.close({
        CronPeriodicidad: this.formGroup.get('Periodicidad').value,
        Observacion: this.formGroup.get('Observacion').value
      });
    } else {
      let receptor = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.copiarObjeto)(this.receptor);
      receptor.CronPeriodicidad = this.formGroup.get('Periodicidad').value;
      receptor.Observacion = this.formGroup.get('Observacion').value;
      this.modal.close(receptor);
    }
  }
  static #_ = this.ɵfac = function EditReceptorComponent_Factory(t) {
    return new (t || EditReceptorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_1__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
    type: EditReceptorComponent,
    selectors: [["app-edit-receptor"]],
    inputs: {
      receptor: "receptor",
      configuracion: "configuracion",
      esConfiguracion: "esConfiguracion"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_1__.ViewHelperService])],
    decls: 30,
    vars: 21,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], ["ngClass", "col-12 p-2"], ["class", "form-label", "campoObligatorio", "", 4, "ngIf"], ["class", "form-label", 4, "ngIf"], [1, "input-group"], ["rows", "3", "name", "PeriodicidadVisible", "formControlName", "PeriodicidadVisible", "readonly", "", 1, "form-control", "form-control-solid"], ["class", "btn btn-secondary d-flex", 3, "click", 4, "ngIf"], ["class", "btn btn-primary d-flex", 3, "click", 4, "ngIf"], ["class", "valid-feedback", 4, "ngIf"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-12", "p-2"], [1, "form-label"], ["rows", "3", "name", "Observacion", "formControlName", "Observacion", 1, "form-control", "form-control-solid"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["pTooltip", "Al realizar esta edici\u00F3n se cambiar\u00E1 para todos los receptores a guardar", "class", "mdi mdi-alert-circle-outline"], ["pTooltip", "Al realizar esta edici\u00F3n se cambiar\u00E1 para todos los receptores a guardar", 1, "mdi", "mdi-alert-circle-outline"], ["campoObligatorio", "", 1, "form-label"], [1, "btn", "btn-secondary", "d-flex", 3, "click"], [1, "bx", "bx-x", "align-self-center"], [1, "btn", "btn-primary", "d-flex", 3, "click"], [1, "bx", "bx-search-alt-2", "align-self-center"], [1, "valid-feedback"], [1, "invalid-feedback"]],
    template: function EditReceptorComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, EditReceptorComponent_Conditional_3_Template, 2, 1)(4, EditReceptorComponent_Conditional_4_Template, 1, 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 3)(6, "form", 4)(7, "div", 5)(8, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, EditReceptorComponent_label_9_Template, 2, 0, "label", 7)(10, EditReceptorComponent_label_10_Template, 2, 0, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](11, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](12, "textarea", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](13, EditReceptorComponent_a_13_Template, 2, 0, "a", 11)(14, EditReceptorComponent_a_14_Template, 2, 0, "a", 12)(15, EditReceptorComponent_div_15_Template, 2, 0, "div", 13)(16, EditReceptorComponent_div_16_Template, 2, 0, "div", 14)(17, EditReceptorComponent_div_17_Template, 2, 0, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "div", 15)(19, "label", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](20, "Observaci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](21, "textarea", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, EditReceptorComponent_div_22_Template, 2, 0, "div", 13)(23, EditReceptorComponent_div_23_Template, 2, 0, "div", 14)(24, EditReceptorComponent_div_24_Template, 2, 0, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](25, "div", 18)(26, "button", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EditReceptorComponent_Template_button_click_26_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](27, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](28, "button", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function EditReceptorComponent_Template_button_click_28_listener() {
          return ctx.saveReceptor();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](29, " Guardar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](3, !ctx.receptor ? 3 : 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.configuracion.NotificacionTipo.EsCondicional == "S");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.configuracion.NotificacionTipo.EsCondicional != "S");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("PeriodicidadVisible"))("is-valid", ctx.vh.isControlValid("PeriodicidadVisible"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.getCron() && ctx.configuracion.NotificacionTipo.EsCondicional == "S");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.configuracion.NotificacionTipo.EsCondicional == "S");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("PeriodicidadVisible"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "PeriodicidadVisible"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("minlength", "PeriodicidadVisiblee"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("Observacion"))("is-valid", ctx.vh.isControlValid("Observacion"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("Observacion"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "Observacion"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "Observacion"));
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", false);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_9__.Tooltip, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName],
    styles: [".back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"]
  });
}

/***/ }),

/***/ 89632:
/*!**********************************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/admin-config-receptores/response-receptores/response-receptores.component.ts ***!
  \**********************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ResponseReceptoresComponent: () => (/* binding */ ResponseReceptoresComponent)
/* harmony export */ });
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/tooltip */ 33259);









function ResponseReceptoresComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](0, " Resultados de edici\u00F3n de configuraci\u00F3n ");
  }
}
function ResponseReceptoresComponent_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](0, " Resultados de eliminaci\u00F3n de receptores de configuraci\u00F3n ");
  }
}
function ResponseReceptoresComponent_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r3.responseExitoso.length, " ");
  }
}
function ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div")(1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const resp_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](resp_r8.NombreReceptor);
  }
}
function ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_3_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 26)(1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const resp_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).$implicit;
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", !resp_r8.CronPeriodicidad || resp_r8.CronPeriodicidad == "" ? ctx_r13.configuracion.NotificacionTipo.EsCondicional == "S" ? "Sin periodicidad" : "Instant\u00E1nea" : resp_r8.CronPeriodicidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", !resp_r8.Observacion || resp_r8.Observacion == "" ? "Sin observacion" : resp_r8.Observacion, " ");
  }
}
function ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 30)(1, "p", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const resp_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", resp_r8.Mensaje, " ");
  }
}
function ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_3_div_0_Template, 9, 2, "div", 24)(1, ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_3_Conditional_1_Template, 3, 1, "div", 25);
  }
  if (rf & 2) {
    const resp_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r11.edicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](1, resp_r8.Mensaje ? 1 : -1);
  }
}
function ResponseReceptoresComponent_ng_template_12_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "p-accordionTab", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_2_Template, 4, 1, "ng-template", 20)(3, ResponseReceptoresComponent_ng_template_12_ng_container_3_ng_template_3_Template, 2, 2, "ng-template", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function ResponseReceptoresComponent_ng_template_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 15)(1, "div", 16)(2, "p-accordion", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ResponseReceptoresComponent_ng_template_12_ng_container_3_Template, 4, 0, "ng-container", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r4.responseExitoso);
  }
}
function ResponseReceptoresComponent_span_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r5.responseFallido.length, " ");
  }
}
function ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div")(1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const resp_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](resp_r19.NombreReceptor);
  }
}
function ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_3_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 26)(1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const resp_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).$implicit;
    const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", !resp_r19.CronPeriodicidad || resp_r19.CronPeriodicidad == "" ? ctx_r24.configuracion.NotificacionTipo.EsCondicional == "S" ? "Sin periodicidad" : "Instant\u00E1nea" : resp_r19.CronPeriodicidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", !resp_r19.Observacion || resp_r19.Observacion == "" ? "Sin observacion" : resp_r19.Observacion, " ");
  }
}
function ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 35)(1, "p", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const resp_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", resp_r19.MensajeError, " ");
  }
}
function ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_3_div_0_Template, 9, 2, "div", 24)(1, ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_3_Conditional_1_Template, 3, 1, "div", 34);
  }
  if (rf & 2) {
    const resp_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r22.edicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](1, resp_r19.MensajeError ? 1 : -1);
  }
}
function ResponseReceptoresComponent_ng_template_17_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "p-accordionTab", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_2_Template, 4, 1, "ng-template", 20)(3, ResponseReceptoresComponent_ng_template_17_ng_container_3_ng_template_3_Template, 2, 2, "ng-template", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function ResponseReceptoresComponent_ng_template_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 15)(1, "div", 16)(2, "p-accordion", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ResponseReceptoresComponent_ng_template_17_ng_container_3_Template, 4, 0, "ng-container", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r6.responseFallido);
  }
}
class ResponseReceptoresComponent {
  constructor(modal) {
    this.modal = modal;
    this.edicion = true;
    this.clientes = [];
    this.proveedores = [];
    this.responseArmada = [];
    this.responseExitoso = [];
    this.responseFallido = [];
  }
  ngOnInit() {
    this.armarRespuesta();
  }
  armarRespuesta() {
    this.responseArmada = this.response.map(receptor => {
      let receptorEncontrado;
      if (this.edicion) {
        receptorEncontrado = this.receptoresEnviados.find(receptorEnviado => receptorEnviado.Id === receptor.ReceptorEnviado.IdRegistro);
        return {
          MensajeError: receptor.MensajeError ? receptor.MensajeError[0] : null,
          Mensaje: null,
          NombreReceptor: receptorEncontrado ? this.getResponseDataByTipoReceptor(receptorEncontrado) : '',
          CronPeriodicidad: receptor.ReceptorEnviado.CronPeriodicidad ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(receptor.ReceptorEnviado.CronPeriodicidad, {
            locale: 'es'
          }) : '',
          Observacion: receptor.ReceptorEnviado.Observacion
        };
      } else {
        receptorEncontrado = this.receptoresEnviados.find(receptorEnviado => receptorEnviado.Datos.Id === receptor.Id);
        return {
          Mensaje: receptor.Mensaje,
          MensajeError: receptor.MensajeError,
          NombreReceptor: receptorEncontrado ? this.getResponseDataByTipoReceptor(receptorEncontrado) : ''
        };
      }
    });
    let response = lodash__WEBPACK_IMPORTED_MODULE_1__.partition(this.responseArmada, receptor => !receptor.MensajeError);
    this.responseExitoso = response[0];
    this.responseFallido = response[1];
  }
  getResponseDataByTipoReceptor(response) {
    switch (this.tipoReceptorId) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.TIPO_RECEPTOR_CLIENTE:
        return '(' + response.Codigo + ') ' + response.Nombre;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.TIPO_RECEPTOR_PROVEEDOR:
        return '(' + response.Codigo + ') ' + response.Nombre;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.TIPO_RECEPTOR_USUARIO_WEB:
        return response.Usuario;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return response.Nombre;
      default:
        return response.Nombre;
    }
  }
  static #_ = this.ɵfac = function ResponseReceptoresComponent_Factory(t) {
    return new (t || ResponseReceptoresComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: ResponseReceptoresComponent,
    selectors: [["app-response-receptores"]],
    inputs: {
      response: "response",
      receptoresEnviados: "receptoresEnviados",
      edicion: "edicion",
      configuracion: "configuracion",
      tipoReceptorId: "tipoReceptorId"
    },
    decls: 22,
    vars: 4,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified"], ["nav", "ngbNav"], ["ngbNavItem", ""], ["ngbNavLink", ""], ["class", "badge rounded-pill bg-primary float-end text-white align-self-center", 4, "ngIf"], ["ngbNavContent", ""], ["class", "badge rounded-pill bg-danger float-end text-white align-self-center", 4, "ngIf"], [3, "ngbNavOutlet"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", "mr-2", 3, "click"], [1, "badge", "rounded-pill", "bg-primary", "float-end", "text-white", "align-self-center"], [1, "row"], [1, "col-12"], [1, "w-full", 3, "multiple"], [4, "ngFor", "ngForOf"], ["iconPos", "end"], ["pTemplate", "header"], ["pTemplate", "content"], [1, "fw-bold"], [1, "ps-3", "bx", "bx-check-circle", "bx-sm", "text-success"], ["class", "d-flex flex-column gap-2", 4, "ngIf"], ["class", "alert alert-success mt-2", "role", "alert"], [1, "d-flex", "flex-column", "gap-2"], [1, "text-muted", "font-size-13", "py-1"], ["pTooltip", "Periodicidad", 1, "mdi", "mdi-watch", "font-size-12"], ["pTooltip", "Observaci\u00F3n", 1, "mdi", "mdi-menu", "font-size-12"], ["role", "alert", 1, "alert", "alert-success", "mt-2"], [1, "mb-0"], [1, "badge", "rounded-pill", "bg-danger", "float-end", "text-white", "align-self-center"], [1, "ps-3", "bx", "bx-x-circle", "bx-sm", "text-danger"], ["class", "alert alert-danger mt-2", "role", "alert"], ["role", "alert", 1, "alert", "alert-danger", "mt-2"]],
    template: function ResponseReceptoresComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ResponseReceptoresComponent_Conditional_3_Template, 1, 0)(4, ResponseReceptoresComponent_Conditional_4_Template, 1, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 3)(6, "ul", 4, 5)(8, "li", 6)(9, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, " Procesos existosos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](11, ResponseReceptoresComponent_span_11_Template, 2, 1, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](12, ResponseReceptoresComponent_ng_template_12_Template, 4, 2, "ng-template", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "li", 6)(14, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, " Procesos fallidos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](16, ResponseReceptoresComponent_span_16_Template, 2, 1, "span", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](17, ResponseReceptoresComponent_ng_template_17_Template, 4, 2, "ng-template", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](18, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "div", 12)(20, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ResponseReceptoresComponent_Template_button_click_20_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](3, ctx.edicion ? 3 : 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.responseExitoso.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.responseFallido.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngbNavOutlet", _r2);
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_5__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_5__.AccordionTab, primeng_api__WEBPACK_IMPORTED_MODULE_6__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavLinkButton, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbNavOutlet]
  });
}

/***/ }),

/***/ 64082:
/*!**********************************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/configuracion-notificacion-edit/configuracion-notificacion-edit.component.ts ***!
  \**********************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionNotificacionEditComponent: () => (/* binding */ ConfiguracionNotificacionEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_empresa_seleccionar_empresa_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-empresa/seleccionar-empresa.component */ 44973);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _selector_formato_notificacion_selector_formato_notificacion_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../selector-formato-notificacion/selector-formato-notificacion.component */ 94427);
/* harmony import */ var src_app_shared_ui_periodicidad_periodicidad_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/ui/periodicidad/periodicidad.component */ 40381);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionCanal.service */ 94260);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/ui/input-number/input-number.component */ 62271);


















function ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](0, " Visualizar ");
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_1_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](0, " Editar ");
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_1_Conditional_1_Template, 1, 0)(2, ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_1_Conditional_2_Template, 1, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](1, ctx_r7.esVisualizar ? 1 : 2);
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, "Nueva");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_1_Template, 3, 1, "ng-container", 3)(2, ConfiguracionNotificacionEditComponent_ng_container_3_ng_container_2_Template, 2, 0, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, " configuraci\u00F3n de notificaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r0.configuracionNotificacion.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r0.configuracionNotificacion.Id);
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Descripci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Descripci\u00F3n requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Descripci\u00F3n no debe tener m\u00E1s de 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Empresa correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Empresa sin seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Tipo de notificaci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Tipo de notificaci\u00F3n sin seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_a_30_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_ng_container_5_a_30_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r28.editarNotifFormato());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Formato de notificaci\u00F3n correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Selecionar formato de notificaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_a_38_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "a", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_ng_container_5_a_38_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r31);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r30.borrarCron());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_a_39_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_ng_container_5_a_39_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r32.cargarCron());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_40_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](0, " Periodicidad correcta ");
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_40_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](0, " El tipo de notificaci\u00F3n de la configuraci\u00F3n no requiere una configuraci\u00F3n de periodicidad ");
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, ConfiguracionNotificacionEditComponent_ng_container_5_div_40_Conditional_1_Template, 1, 0)(2, ConfiguracionNotificacionEditComponent_ng_container_5_div_40_Conditional_2_Template, 1, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](1, ctx_r23.requierePeriodicidad() ? 1 : 2);
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_45_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Canal correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Canal sin seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Fecha correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_div_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Selecionar fecha ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "form", 9)(2, "div", 10)(3, "div", 11)(4, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](5, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](6, "textarea", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](7, ConfiguracionNotificacionEditComponent_ng_container_5_div_7_Template, 2, 0, "div", 14)(8, ConfiguracionNotificacionEditComponent_ng_container_5_div_8_Template, 2, 0, "div", 15)(9, ConfiguracionNotificacionEditComponent_ng_container_5_div_9_Template, 2, 0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](10, "div", 16)(11, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](12, "Empresa");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](13, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](14, "input", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](15, ConfiguracionNotificacionEditComponent_ng_container_5_div_15_Template, 2, 0, "div", 14)(16, ConfiguracionNotificacionEditComponent_ng_container_5_div_16_Template, 2, 0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](17, "div", 16)(18, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](19, "Tipo de notificaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](20, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](21, "input", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainer"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](23, ConfiguracionNotificacionEditComponent_ng_container_5_div_23_Template, 2, 0, "div", 14)(24, ConfiguracionNotificacionEditComponent_ng_container_5_div_24_Template, 2, 0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](25, "div", 16)(26, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](27, "Formato de notificaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](28, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](29, "textarea", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](30, ConfiguracionNotificacionEditComponent_ng_container_5_a_30_Template, 2, 0, "a", 21)(31, ConfiguracionNotificacionEditComponent_ng_container_5_div_31_Template, 2, 0, "div", 14)(32, ConfiguracionNotificacionEditComponent_ng_container_5_div_32_Template, 2, 0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](33, "div", 16)(34, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](35, "Periodicidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](36, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](37, "textarea", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](38, ConfiguracionNotificacionEditComponent_ng_container_5_a_38_Template, 2, 0, "a", 24)(39, ConfiguracionNotificacionEditComponent_ng_container_5_a_39_Template, 2, 0, "a", 21)(40, ConfiguracionNotificacionEditComponent_ng_container_5_div_40_Template, 3, 1, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](41, "div", 25)(42, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](43, "Canal");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](44, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](45, ConfiguracionNotificacionEditComponent_ng_container_5_div_45_Template, 2, 0, "div", 14)(46, ConfiguracionNotificacionEditComponent_ng_container_5_div_46_Template, 2, 0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](47, "div", 25)(48, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](49, "Fecha Inicio");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](50, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](51, ConfiguracionNotificacionEditComponent_ng_container_5_div_51_Template, 2, 0, "div", 14)(52, ConfiguracionNotificacionEditComponent_ng_container_5_div_52_Template, 2, 0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](53, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_ng_container_5_Template_div_click_53_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r37);
      const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r36.formGroup.controls.NroIntentos.markAsTouched());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](54, "app-input-number", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("emitValue", function ConfiguracionNotificacionEditComponent_ng_container_5_Template_app_input_number_emitValue_54_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r37);
      const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r38.setNroIntentos($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](55, "div", 30)(56, "app-checkbox", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("emitAction", function ConfiguracionNotificacionEditComponent_ng_container_5_Template_app_checkbox_emitAction_56_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r37);
      const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r39.setActivo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Descripcion"))("is-valid", ctx_r1.vh.isControlValid("Descripcion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("readOnly", ctx_r1.esVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Descripcion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "Descripcion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Descripcion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("EmpresaNombre"))("is-valid", ctx_r1.vh.isControlValid("EmpresaNombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("EmpresaNombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "EmpresaNombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("NotifTipo"))("is-valid", ctx_r1.vh.isControlValid("NotifTipo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("NotifTipo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "NotifTipo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("NotifFormatoString"))("is-valid", ctx_r1.vh.isControlValid("NotifFormatoString"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("rows", ctx_r1.formGroup.controls.NotifFormato.value ? ctx_r1.getNumberKeys(ctx_r1.formGroup.controls.NotifFormato.value.Estructura) : 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.getNotifFormato() && !ctx_r1.esVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("NotifFormatoString"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "NotifFormatoString"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("ExpCronTraslate"))("is-valid", ctx_r1.vh.isControlValid("ExpCronTraslate"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("rows", ctx_r1.formGroup.controls.NotifFormato.value ? ctx_r1.getNumberKeys(ctx_r1.formGroup.controls.NotifFormato.value.Estructura) : 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.getCron() && ctx_r1.requierePeriodicidad() && !ctx_r1.esVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.requierePeriodicidad() && !ctx_r1.esVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("ExpCronTraslate"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.controlHasError("required", "CanalNombre"))("is-valid", ctx_r1.vh.isControlValid("CanalNombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("CanalNombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "CanalNombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.controlHasError("required", "FechaDesde"))("is-valid", ctx_r1.vh.isControlValid("FechaDesde"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("readOnly", ctx_r1.esVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("FechaDesde"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "FechaDesde"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", ctx_r1.formGroup.controls.NroIntentos.value)("decimals", 0)("isInvalid", ctx_r1.vh.isControlInvalid("NroIntentos"))("isValid", ctx_r1.vh.isControlValid("NroIntentos"))("templateErrors", _r6)("disabled", ctx_r1.esVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("title", "Activo")("value", ctx_r1.getActivo())("disabled", ctx_r1.esVisualizar);
  }
}
function ConfiguracionNotificacionEditComponent_button_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_button_7_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r41);
      const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r40.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_button_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_button_8_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r43);
      const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r42.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_9_button_1_i_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "i", 43);
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_9_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function ConfiguracionNotificacionEditComponent_ng_container_9_button_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r47);
      const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r46.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, ConfiguracionNotificacionEditComponent_ng_container_9_button_1_i_3_Template, 1, 0, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("disabled", ctx_r44.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](1, 2, ctx_r44.notificacionCanalService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](4, 4, ctx_r44.notificacionCanalService.isLoading$));
  }
}
function ConfiguracionNotificacionEditComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, ConfiguracionNotificacionEditComponent_ng_container_9_button_1_Template, 5, 6, "button", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r4.esVisualizar);
  }
}
function ConfiguracionNotificacionEditComponent_ng_template_10_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " N\u00FAmero de intentos correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_template_10_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " N\u00FAmero de intentos requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_template_10_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " N\u00FAmero de intentos debe ser mayor a cero ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionEditComponent_ng_template_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, ConfiguracionNotificacionEditComponent_ng_template_10_div_0_Template, 2, 0, "div", 14)(1, ConfiguracionNotificacionEditComponent_ng_template_10_div_1_Template, 2, 0, "div", 15)(2, ConfiguracionNotificacionEditComponent_ng_template_10_div_2_Template, 2, 0, "div", 15);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r5.vh.isControlValid("NroIntentos"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r5.vh.controlHasError("required", "NroIntentos"));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r5.vh.controlHasError("min", "NroIntentos"));
  }
}
class ConfiguracionNotificacionEditComponent {
  constructor(fb, vh, notificacionCanalService, modalService, notifConfigService, modal) {
    this.fb = fb;
    this.vh = vh;
    this.notificacionCanalService = notificacionCanalService;
    this.modalService = modalService;
    this.notifConfigService = notifConfigService;
    this.modal = modal;
    this.esVisualizar = false;
    this.subscriptions = [];
    this.canalesNotificaciones = [];
    this.formGroup = this.fb.group({
      Activo: ['S', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      FechaDesde: [(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaActual)(), _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      Descripcion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(200)])],
      NroIntentos: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(1)])],
      ExpresionCron: [null],
      ExpCronTraslate: [''],
      RequierePeriodicidad: ['N'],
      NotifTipo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      IdNotifTipo: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      EmpresaNombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      IdEmpresa: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      IdCanal: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      CanalNombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      NotifFormato: [null],
      NotifFormatoString: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required]
    });
  }
  ngOnInit() {
    if (!this.configuracionNotificacion == undefined) {
      this.configuracionNotificacion = {
        Id: undefined,
        Activo: 'S',
        FechaDesde: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaActual)(),
        Descripcion: '',
        NroIntentos: 1,
        ExpresionCron: null,
        Empresa: null,
        NotifCanal: null,
        NotificacionTipo: null,
        NotificacionFormato: null
      };
    }
    this.loadForm();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  loadForm() {
    this.formGroup = this.fb.group({
      Activo: [this.configuracionNotificacion.Activo, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      FechaDesde: [this.configuracionNotificacion.FechaDesde ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(this.configuracionNotificacion.FechaDesde) : '', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      Descripcion: [this.configuracionNotificacion.Descripcion, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(200)])],
      NroIntentos: [this.configuracionNotificacion.NroIntentos, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(1)])],
      NotifTipo: [this.configuracionNotificacion.NotificacionTipo ? this.configuracionNotificacion.NotificacionTipo.Nombre : '', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      IdNotifTipo: [this.configuracionNotificacion.NotificacionTipo ? this.configuracionNotificacion.NotificacionTipo.Id : -1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      IdEmpresa: [this.configuracionNotificacion.Empresa ? this.configuracionNotificacion.Empresa.Id : -1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      EmpresaNombre: [this.configuracionNotificacion.Empresa ? this.configuracionNotificacion.Empresa.NombreComercial : '', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      IdCanal: [this.configuracionNotificacion.NotifCanal ? this.configuracionNotificacion.NotifCanal.Id : -1, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      CanalNombre: [this.configuracionNotificacion.NotifCanal ? this.configuracionNotificacion.NotifCanal.Nombre : '', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required],
      NotifFormato: [this.configuracionNotificacion.NotificacionFormato && this.configuracionNotificacion.NotificacionFormato?.Estructura ? this.configuracionNotificacion.NotificacionFormato : null],
      NotifFormatoString: [this.configuracionNotificacion.NotificacionFormato?.Estructura ? this.transformFormato(this.configuracionNotificacion.NotificacionFormato) : 'Sin formato'],
      ExpresionCron: [this.configuracionNotificacion.ExpresionCron],
      ExpCronTraslate: [this.configuracionNotificacion.NotificacionTipo && this.configuracionNotificacion.NotificacionTipo.EsCondicional == 'N' ? 'Instantánea' : this.configuracionNotificacion.ExpresionCron ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3___default().toString(this.configuracionNotificacion.ExpresionCron, {
        locale: 'es'
      }) : ''],
      RequierePeriodicidad: [this.configuracionNotificacion.NotificacionTipo ? this.configuracionNotificacion.NotificacionTipo.EsCondicional : 'N']
    });
    if (this.esVisualizar) {
      this.formGroup.disable();
    }
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  getEmpresa() {
    return this.formGroup.get('Empresa').value;
  }
  borrarEmpresa() {
    this.formGroup.get('IdEmpresa').setValue(-1);
    this.formGroup.get('Empresa').setValue('');
  }
  buscarEmpresa() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_empresa_seleccionar_empresa_component__WEBPACK_IMPORTED_MODULE_2__.SeleccionarEmpresaComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(result => {
      this.formGroup.get('IdEmpresa').setValue(result.IdEmpresa);
      this.formGroup.get('Empresa').setValue(result.Empresa);
    });
  }
  getNotifFormato() {
    return this.formGroup.get('NotifFormato').value;
  }
  editarNotifFormato() {
    const modalRef = this.modalService.open(_selector_formato_notificacion_selector_formato_notificacion_component__WEBPACK_IMPORTED_MODULE_5__.SelectorFormatoNotificacionComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.idTipoMail = this.formGroup.get('IdNotifTipo').value;
    modalRef.componentInstance.formatoInput = this.formGroup.get('NotifFormato').value ? this.formGroup.get('NotifFormato').value : null;
    modalRef.componentInstance.descripNotifConfig = this.formGroup.get('Descripcion').value;
    modalRef.result.then(result => {
      this.formGroup.get('NotifFormato').setValue(result);
      this.formGroup.get('NotifFormatoString').setValue(this.transformFormato(result));
    });
  }
  getCron() {
    return this.formGroup.get('ExpCronTraslate').value;
  }
  borrarCron() {
    this.formGroup.get('ExpresionCron').setValue(null);
    this.formGroup.get('ExpCronTraslate').setValue('');
  }
  cargarCron() {
    const modalRef = this.modalService.open(src_app_shared_ui_periodicidad_periodicidad_component__WEBPACK_IMPORTED_MODULE_6__.PeriodicidadComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.isModal = true;
    modalRef.result.then(result => {
      this.formGroup.get('ExpresionCron').setValue(result);
      this.formGroup.get('ExpCronTraslate').setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_3___default().toString(result, {
        locale: 'es'
      }));
    });
  }
  getActivo() {
    return this.formGroup.get('Activo').value == 'S';
  }
  setActivo() {
    this.formGroup.get('Activo').setValue(this.getActivo() ? 'N' : 'S');
  }
  setNroIntentos($event) {
    this.formGroup.get('NroIntentos').setValue($event);
    this.formGroup.get('NroIntentos').markAsTouched();
  }
  prepararConfiguracion() {
    let configuracionToSend = {
      Activo: this.formGroup.get('Activo').value,
      FechaDesde: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(this.formGroup.get('FechaDesde').value),
      Descripcion: this.formGroup.get('Descripcion').value,
      NroIntentos: this.formGroup.get('NroIntentos').value,
      ExpresionCron: this.formGroup.get('ExpresionCron').value,
      IdEmpresa: this.formGroup.get('IdEmpresa').value,
      IdNotifTipo: this.formGroup.get('IdNotifTipo').value,
      IdNotifCanal: this.formGroup.get('IdCanal').value,
      NotificacionFormato: this.formGroup.get('NotifFormato').value
    };
    return configuracionToSend;
  }
  save() {
    let configResult = this.prepararConfiguracion();
    if (this.configuracionNotificacion.Id) {
      this.edit(configResult);
    } else {
      this.create(configResult);
    }
  }
  edit(config) {
    this.notifConfigService.editar(config, this.configuracionNotificacion.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data);
      }
    });
  }
  create(config) {
    throw new Error('CREACION NO IMPLEMENTADA POR EL MOMENTO');
  }
  requierePeriodicidad() {
    return this.formGroup.get('RequierePeriodicidad').value == 'S';
  }
  transformFormato(formato) {
    let estructuraFilter = lodash__WEBPACK_IMPORTED_MODULE_4__.pickBy(formato.Estructura, (value, key) => key.split('_')[0] != 'paths' && key.split('_')[0] != 'path');
    let result = lodash__WEBPACK_IMPORTED_MODULE_4__.map(estructuraFilter, (elem, key) => {
      if (key.split('_').length == 1) {
        return `${(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.toTitleCase)(key)}: ${elem}`;
      } else {
        return `${(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.toTitleCase)(key.split('_').slice(1).join(' '))}: ${elem}`;
      }
    });
    let listadoString = result.join('\n\n');
    return listadoString;
  }
  getNumberKeys(obj) {
    let numberOfKeys = Object.keys(obj).length;
    return numberOfKeys == 0 || numberOfKeys == 1 ? 2 : numberOfKeys;
  }
  static #_ = this.ɵfac = function ConfiguracionNotificacionEditComponent_Factory(t) {
    return new (t || ConfiguracionNotificacionEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_7__.NotificacionCanalServices), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_8__.NotificacionConfiguracionServices), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
    type: ConfiguracionNotificacionEditComponent,
    selectors: [["app-configuracion-notificacion-edit"]],
    inputs: {
      configuracionNotificacion: "configuracionNotificacion",
      esVisualizar: "esVisualizar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 12,
    vars: 5,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "modal-footer"], ["type", "button", "class", "btn btn-light btn-elevate mr-2", 3, "click", 4, "ngIf"], ["type", "button", "class", "btn btn-success btn-elevate", 3, "click", 4, "ngIf"], ["INPUT_ERRORS", ""], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], [1, "col-lg-12", "p-2"], ["campoObligatorio", "", 1, "form-label"], ["rows", "2", "name", "Descripcion", "formControlName", "Descripcion", 1, "form-control", "form-control-solid", 3, "readOnly"], ["class", "valid-feedback", 4, "ngIf"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-lg-6", "p-2"], [1, "input-group"], ["type", "search", "formControlName", "EmpresaNombre", "placeholder", "Seleccionar empresa", "readonly", "", "readonly", "", 1, "form-control"], ["type", "search", "formControlName", "NotifTipo", "placeholder", "Seleccionar tipo de notificaci\u00F3n", "readonly", "", "readonly", "", 1, "form-control"], ["name", "NotifFormatoString", "id", "NotifFormatoString", "formControlName", "NotifFormatoString", "readonly", "", 1, "form-control", 3, "rows"], ["class", "btn btn-primary d-flex", 3, "click", 4, "ngIf"], [1, "form-label"], ["name", "ExpCronTraslate", "formControlName", "ExpCronTraslate", "readonly", "", 1, "form-control", "form-control-solid", 3, "rows"], ["class", "btn btn-secondary d-flex", 3, "click", 4, "ngIf"], [1, "col-lg-3", "p-2"], ["type", "text", "formControlName", "CanalNombre", "readonly", "", 1, "form-control"], ["type", "date", "formControlName", "FechaDesde", 1, "form-control", "digits", 3, "readOnly"], [1, "col-lg-3", "p-2", 3, "click"], ["title", "Nro. Intentos *", "limite", "100", 3, "value", "decimals", "isInvalid", "isValid", "templateErrors", "disabled", "emitValue"], [1, "col-lg-3", "p-2", "align-self-center"], ["idCheck", "Activo", "colorChecked", "success", "colorUncheked", "danger", 3, "title", "value", "disabled", "emitAction"], [1, "valid-feedback"], [1, "invalid-feedback"], [1, "btn", "btn-primary", "d-flex", 3, "click"], [1, "mdi", "mdi-pencil-outline", "align-self-center"], [1, "btn", "btn-secondary", "d-flex", 3, "click"], [1, "bx", "bx-x", "align-self-center"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", 3, "click"], ["data-cy", "save-config-notif", "type", "submit", "class", "btn btn-success btn-elevate", 3, "disabled", "click", 4, "ngIf"], ["data-cy", "save-config-notif", "type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function ConfiguracionNotificacionEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, ConfiguracionNotificacionEditComponent_ng_container_3_Template, 4, 2, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, ConfiguracionNotificacionEditComponent_ng_container_5_Template, 57, 59, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](7, ConfiguracionNotificacionEditComponent_button_7_Template, 2, 0, "button", 6)(8, ConfiguracionNotificacionEditComponent_button_8_Template, 2, 0, "button", 7)(9, ConfiguracionNotificacionEditComponent_ng_container_9_Template, 2, 1, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](10, ConfiguracionNotificacionEditComponent_ng_template_10_Template, 3, 3, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.configuracionNotificacion);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.configuracionNotificacion);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.esVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.esVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.configuracionNotificacion);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_9__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormControlName, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_10__.CheckboxComponent, _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_11__.InputNumberComponent, _angular_common__WEBPACK_IMPORTED_MODULE_15__.AsyncPipe]
  });
}

/***/ }),

/***/ 25157:
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/configuracion-notificacion.component.ts ***!
  \*********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionNotificacionComponent: () => (/* binding */ ConfiguracionNotificacionComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var _dashboards_core_seleccionar_tipo_notif_seleccionar_tipo_notif_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-tipo-notif/seleccionar-tipo-notif.component */ 18979);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _configuracion_notificacion_edit_configuracion_notificacion_edit_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./configuracion-notificacion-edit/configuracion-notificacion-edit.component */ 64082);
/* harmony import */ var _admin_config_receptores_admin_receptores_admin_receptores_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./admin-config-receptores/admin-receptores/admin-receptores.component */ 55441);
/* harmony import */ var _admin_config_receptores_response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./admin-config-receptores/response-receptores/response-receptores.component */ 89632);
/* harmony import */ var _seleccionar_tipo_receptor_seleccionar_tipo_receptor_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./seleccionar-tipo-receptor/seleccionar-tipo-receptor.component */ 50078);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionCanal.service */ 94260);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../shared/ui/select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);






























function ConfiguracionNotificacionComponent_ng_template_3_Template(rf, ctx) {}
function ConfiguracionNotificacionComponent_div_4_ng_template_3_Template(rf, ctx) {}
function ConfiguracionNotificacionComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 39)(1, "div", 40)(2, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](3, ConfiguracionNotificacionComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵreference"](56);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngTemplateOutlet", _r5);
  }
}
function ConfiguracionNotificacionComponent_a_43_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_a_43_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r7.borrarDescrip());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionComponent_a_49_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_a_49_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r9.borrarNotifTipo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function ConfiguracionNotificacionComponent_ng_template_55_option_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "option", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const fc_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", fc_r12.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", fc_r12.Nombre, " ");
  }
}
const _c0 = () => [0];
function ConfiguracionNotificacionComponent_ng_template_55_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 21)(1, "p-accordion", 44)(2, "p-accordionTab", 45)(3, "div")(4, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5, "Canales");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](6, "app-select-multiple", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function ConfiguracionNotificacionComponent_ng_template_55_Template_app_select_multiple_emitSelected_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r13.filterForm.controls.NotifCanales.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](7, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](8, "hr", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](9, "div")(10, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](11, "Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](12, "select", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](13, ConfiguracionNotificacionComponent_ng_template_55_option_13_Template, 2, 2, "option", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](14, "p-accordionTab", 51)(15, "div", 52)(16, "p", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](17, "Fecha Inicio");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](18, "label", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](19, "Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](20, "input", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](21, "label", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](22, "Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](23, "input", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx_r4.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpureFunction0"](9, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r4.filterForm.controls.NotifCanales.value)("items", ctx_r4.notificacionesCanales)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](7, 7, ctx_r4.notifCanalService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngForOf", ctx_r4.todosOptions);
  }
}
class ConfiguracionNotificacionComponent {
  constructor(notifConfigService, notifCanalService, fb, modalService, alert, exportacion, sf, authService, tourService, router) {
    this.notifConfigService = notifConfigService;
    this.notifCanalService = notifCanalService;
    this.fb = fb;
    this.modalService = modalService;
    this.alert = alert;
    this.exportacion = exportacion;
    this.sf = sf;
    this.authService = authService;
    this.tourService = tourService;
    this.router = router;
    this.MSJ_EXITO_EDICION = 'La configuración de notificación se ha editado correctamente';
    this.notificacionesConfigs = [];
    this.notificacionesCanales = [];
    this.filtro = true;
    this.filtroMobile = false;
    this._unsubscribe = [];
    //public IdsNotifFormatos //TODO
    //public IdsEmpresas:  //TODO
    //paginacion
    this.cantSearch = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.CANT_SEARCH;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.PAGE_OPTIONS;
    this.order = 2;
    this.sentido = 'desc';
    this.totalItems = 0;
    this.configNotificacionHeader = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.ConfigsNotifHeader;
    this.dropdownButtons = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.ConfigsNotifDropdownButtons;
    this.todosOptions = [{
      Id: '',
      Nombre: 'Todos'
    }, {
      Id: 'S',
      Nombre: 'Si'
    }, {
      Id: 'N',
      Nombre: 'No'
    }];
    this.searchForm = this.fb.group({
      NotifTiposIds: [''],
      NotifTipos: [''],
      Descrip: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_19__.Validators.maxLength(200)]
    });
    this.filterForm = this.fb.group({
      FechaInicioDesde: [''],
      FechaInicioHasta: [''],
      Activo: [''],
      NotifCanales: [[]]
    });
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_20__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_21__["default"]);
    this.page = 1;
    this.inicializarSteps();
    this.inicializarEstado();
    this.cargarNotifCanales();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesNOTIF.NOTIF_CONFIG_STATES;
    this.buscarDescrip = this.sf.getState(this.sf.states.NOTIF_CONFIG_S_DESCRIP);
    this.searchForm.controls.Descrip.setValue(this.buscarDescrip);
    this.searchForm.controls.NotifTiposIds.setValue(this.sf.getState(this.sf.states.NOTIF_CONFIG_S_NOTIF_TIPOS_IDS));
    this.searchForm.controls.NotifTipos.setValue(this.sf.getState(this.sf.states.NOTIF_CONFIG_S_NOTIF_TIPOS));
    this.filterFechaInicioDesde = this.sf.getState(this.sf.states.NOTIF_CONFIG_F_FECHA_INICIO_DESDE);
    this.filterForm.controls.FechaInicioDesde.setValue(this.filterFechaInicioDesde);
    this.filterFechaInicioHasta = this.sf.getState(this.sf.states.NOTIF_CONFIG_F_FECHA_INICIO_HASTA);
    this.filterForm.controls.FechaInicioHasta.setValue(this.filterFechaInicioHasta);
    this.filterActivo = this.sf.getState(this.sf.states.NOTIF_CONFIG_F_ACTIVO);
    this.filterForm.controls.Activo.setValue(this.filterActivo);
    this.idsNotifCanales = this.sf.getState(this.sf.states.NOTIF_CONFIG_F_IDS_CANALES);
    this.filterForm.controls.NotifCanales.setValue(this.idsNotifCanales == '' ? [] : this.idsNotifCanales.split(',').map(Number));
    this.page = Number(this.sf.getState(this.sf.states.NOTIF_CONFIG_L_PAGE));
    this.cantSearch = Number(this.sf.getState(this.sf.states.NOTIF_CONFIG_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.NOTIF_CONFIG_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.NOTIF_CONFIG_L_SENTIDO);
  }
  configuracionFilter() {
    this._unsubscribe.push(this.filterForm.controls.FechaInicioDesde.valueChanges.subscribe(desde => {
      if (this.filtro || this.filtroMobile) {
        this.filterFechaInicioDesde = desde;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.FechaInicioHasta.valueChanges.subscribe(hasta => {
      if (this.filtro || this.filtroMobile) {
        this.filterFechaInicioHasta = hasta;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.Activo.valueChanges.subscribe(activo => {
      if (this.filtro || this.filtroMobile) {
        this.filterActivo = activo;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.NotifCanales.valueChanges.subscribe(canales => {
      if (this.filtro || this.filtroMobile) {
        this.idsNotifCanales = canales.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Método para limpiar los filtros
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  /**
   * SP metodo llamado pro clean estate que reinicia los estados y filtros
   */
  resetComp() {
    this._unsubscribe.forEach(sub => {
      sub.unsubscribe();
    });
    this.page = 1;
    this.previousPage = 1;
    this.buscarDescrip = undefined;
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
  }
  cargarNotifCanales() {
    let datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'Asc'
    };
    const susc = this.notifCanalService.fetch({}).subscribe(data => {
      if (data.Data != undefined) {
        this.notificacionesCanales = data.Data;
      } else {
        this.notificacionesCanales = [];
      }
    });
    susc.unsubscribe;
  }
  /**
   * Método para cargar los datos de la página
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  onSearch(datos) {
    const susc = this.notifConfigService.fetch(datos).subscribe(data => {
      this.notificacionesConfigs = data.Data.map(item => {
        return {
          ...item,
          CronTraslate: !item.ExpresionCron ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_5___default().toString(item.ExpresionCron, {
            locale: 'es'
          })
        };
      });
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //SP SINWEB-38 parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.IdsEmpresas = this.authService.usuario.IdEmpresa.toString();
    datos.IncluirTiposReceptores = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO; // MC SINWEB-615
    //busqueda
    if (this.searchForm.controls.NotifTiposIds.value != undefined && this.searchForm.controls.NotifTiposIds.value != '') {
      datos.IdsNotifTipos = this.searchForm.controls.NotifTiposIds.value;
    }
    if (this.buscarDescrip != undefined && this.buscarDescrip != '') {
      datos.Descripcion = this.buscarDescrip;
    }
    //filtros
    if (this.filterFechaInicioDesde != undefined && this.filterFechaInicioDesde != '') {
      datos.FechaDesdeDesde = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.formatFecha)(this.filterFechaInicioDesde);
    }
    if (this.filterFechaInicioHasta != undefined && this.filterFechaInicioHasta != '') {
      datos.FechaDesdeHasta = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.formatFecha)(this.filterFechaInicioHasta);
    }
    if (this.filterActivo != undefined && this.filterActivo != '') {
      datos.Activo = this.filterActivo;
    }
    if (this.idsNotifCanales != undefined && this.idsNotifCanales) {
      datos.IdsNotifCanales = this.idsNotifCanales;
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_S_DESCRIP, !datos.Descripcion ? this.sf.states.NOTIF_CONFIG_S_DESCRIP.default : datos.Descripcion);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_S_NOTIF_TIPOS_IDS, !datos.IdsNotifTipos ? this.sf.states.NOTIF_CONFIG_S_NOTIF_TIPOS_IDS.default : datos.IdsNotifTipos);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_S_NOTIF_TIPOS, !datos.IdsNotifTipos ? this.sf.states.NOTIF_CONFIG_S_NOTIF_TIPOS.default : this.searchForm.controls.NotifTipos?.value);
    //filtros
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_F_FECHA_INICIO_DESDE, !datos.FechaDesdeDesde ? this.sf.states.NOTIF_CONFIG_F_FECHA_INICIO_DESDE.default : this.filterFechaInicioDesde);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_F_FECHA_INICIO_HASTA, !datos.FechaDesdeHasta ? this.sf.states.NOTIF_CONFIG_F_FECHA_INICIO_HASTA.default : this.filterFechaInicioHasta);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_F_ACTIVO, !datos.Activo ? '' : this.filterActivo);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_F_IDS_CANALES, !datos.IdsNotifCanales ? this.sf.states.NOTIF_CONFIG_F_IDS_CANALES.default : datos.IdsNotifCanales);
    //listado
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_L_SENTIDO, datos.SentidoOrden);
  }
  acciones(event) {
    switch (event.accion) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.NOTIF_CONFIG_EDITAR:
        this.editar(event.registro, 'editar');
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.NOTIF_CONFIG_VISUALIZAR:
        this.editar(event.registro, 'visualizar');
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.NOTIF_CONFIG_ADMIN_RECEP:
        this.administrarReceptores(event.registro);
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_2__.NOTIF_CONFIG_ADMIN_RECEP_NO_CONFIG:
        this.cargarNoConfigurados(event.registro);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  administrarReceptores(configuracion) {
    this.router.navigate(['/notificaciones/configNotif/' + configuracion.Id + '/adminReceptores']);
  }
  editar(configuracion, type) {
    const modalRef = this.modalService.open(_configuracion_notificacion_edit_configuracion_notificacion_edit_component__WEBPACK_IMPORTED_MODULE_6__.ConfiguracionNotificacionEditComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.configuracionNotificacion = configuracion;
    if (type == 'visualizar') {
      modalRef.componentInstance.esVisualizar = true;
    }
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.loadPage();
        this.alert.showBasicAlert('La configuración de notificación ' + '(' + resolve.Id + ')' + resolve.Descripcion + ', se ha editado correctamente', '', 'success');
      }
    });
  }
  cargarNoConfigurados(configuracion) {
    if (configuracion.NotificacionTipo.NotifTiposXReceptores?.length > 1) {
      let modalRefStep = this.modalService.open(_seleccionar_tipo_receptor_seleccionar_tipo_receptor_component__WEBPACK_IMPORTED_MODULE_9__.SeleccionarTipoReceptorComponent, {
        size: 'xs',
        backdropClass: 'back-z-index',
        windowClass: 'modal-z-index',
        backdrop: 'static',
        keyboard: false,
        scrollable: true,
        centered: true
      });
      modalRefStep.componentInstance.receptores = configuracion.NotificacionTipo.NotifTiposXReceptores;
      modalRefStep.componentInstance.notifTipo = configuracion.NotificacionTipo;
      modalRefStep.result.then(resolve => {
        if (resolve !== undefined) {
          this.cargarModalNoConfigurados(configuracion, resolve);
        }
      });
    } else {
      let tipoReceptor = configuracion.NotificacionTipo.NotifTiposXReceptores[0];
      this.cargarModalNoConfigurados(configuracion, tipoReceptor);
    }
  }
  cargarModalNoConfigurados(configuracion, tipoReceptor) {
    let modalRef = this.modalService.open(_admin_config_receptores_admin_receptores_admin_receptores_component__WEBPACK_IMPORTED_MODULE_7__.AdminReceptoresComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    // if (configuracion.NotificacionTipo.NotifDominio.Id === 2 || configuracion.NotificacionTipo.NotifDominio.Id === 6 || configuracion.NotificacionTipo.NotifDominio.Id === 13) {
    //   modalRef.componentInstance.tipoReceptor = {Id:3, Nombre:'Cliente'}
    // }
    // if (configuracion.NotificacionTipo.NotifDominio.Id === 3) {
    //   modalRef.componentInstance.tipoReceptor = {Id:4, Nombre:'Proveedor'}
    // }
    modalRef.componentInstance.tipoReceptor = tipoReceptor;
    modalRef.componentInstance.configuracion = configuracion;
    modalRef.componentInstance.noConfigurados = true;
    modalRef.result.then(result => {
      if (result) {
        //this.loadPage();
        const modalRef = this.modalService.open(_admin_config_receptores_response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_8__.ResponseReceptoresComponent, {
          size: 'xl',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef.componentInstance.response = result.respuesta;
        modalRef.componentInstance.receptoresEnviados = result.seleccionados;
        modalRef.componentInstance.configuracion = configuracion;
        modalRef.componentInstance.tipoReceptorId = tipoReceptor.NotifTipoReceptor.Id;
      }
    });
  }
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    //SP se arman las columnas y keys para buscar datos y armar el excel
    const keys = ['Descripcion', 'NotificacionTipo.Codigo', 'NotificacionTipo.Nombre', 'NotificacionTipo.NotifDominio.Nombre', 'NotifCanal.Nombre', 'Activo', 'FechaDesde', 'CronTraslate'];
    const columns = ['Descripción', 'Notif. Tipo Cod', 'Notif. Tipo Nombre', 'Dominio Notif. Tipo', 'Notif. Canal', 'Activo', 'Fecha Inicio', 'Periodicidad'];
    this.alert.showLoadingAlert('Exportando Configuraciones de Notificaciones', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //SPllamada al recurso correspondiente de la api
    this.notifConfigService.fetch(datos).subscribe(data => {
      let result = data.Data.map(item => {
        return {
          ...item,
          CronTraslate: !item.ExpresionCron ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_5___default().toString(item.ExpresionCron, {
            locale: 'es'
          })
        };
      });
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Configuraciones de notificaciones exportadas', 'Generando archivo ' + extension, 'success');
      // MC SINWEB-378 Exportación a Pdf
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(result, columns, keys, 'Listado de Configuracion de Notificaciones');
      } else {
        this.exportacion.exportToPdf(result, columns, keys, 'Listado de Configuracion de Notificaciones', 7);
      }
    });
  }
  buscarNotifTipo() {
    const modalRef = this.modalService.open(_dashboards_core_seleccionar_tipo_notif_seleccionar_tipo_notif_component__WEBPACK_IMPORTED_MODULE_3__.SeleccionarTipoNotifComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.filtros = {
      Multiple: true
    };
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.searchForm.controls.NotifTiposIds.setValue(resolve.IdsTiposNotif.join(','));
        this.searchForm.controls.NotifTipos.setValue(resolve.TiposNotif.join(','));
        this.page = 1;
        this.loadPage();
      }
    });
  }
  getNotifTipo() {
    return this.searchForm.get('NotifTipos').value;
  }
  borrarNotifTipo() {
    this.searchForm.get('NotifTipos').setValue('');
    this.searchForm.get('NotifTiposIds').setValue('');
    this.page = 1;
    this.loadPage();
  }
  getDescrip() {
    return this.searchForm.controls.Descrip.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarDescrip() {
    this.searchForm.get('Descrip').reset('');
    this.page = 1;
    this.buscarDescrip = '';
    this.loadPage();
  }
  buscarPorDescrip() {
    this.page = 1;
    this.buscarDescrip = this.getDescrip();
    this.loadPage();
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaDescrip() {
    return this.buscarDescrip != undefined && this.buscarDescrip != '';
  }
  /**
   * SP Método que inicia tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * SP Método para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour
    fetch('./assets/tours/notificaciones/notificacion-configuracion.json').then(response => response.json()).then(notifConfig => {
      this.tourSteps = notifConfig;
      this.tourService.initialize(this.tourSteps);
    });
  }
  controlarTour() {
    this._unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'searchNotifTipo.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  static #_ = this.ɵfac = function ConfiguracionNotificacionComponent_Factory(t) {
    return new (t || ConfiguracionNotificacionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_10__.NotificacionConfiguracionServices), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_11__.NotificacionCanalServices), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_12__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_13__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_14__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_24__.Router));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineComponent"]({
    type: ConfiguracionNotificacionComponent,
    selectors: [["app-configuracion-notificacion"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService])],
    decls: 58,
    vars: 27,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "col-xxl-2 col-lg-3 d-none d-lg-block", 4, "ngIf"], [3, "ngClass"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "gap-2", "align-items-center"], [1, "mb-0", "card-title", "flex-grow-1", "d-flex", "flex-row"], ["tourAnchor", "notifConfig.anchor.id", 1, "mb-1", "align-self-center"], [1, "text-primary", 2, "cursor", "pointer", 3, "click"], [1, "bx", "bx-info-circle", "font-size-24", "align-self-center"], [1, "flex-shrink-0", "d-flex", "gap-1"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], ["data-cy", "limpiar-filtros", "tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-block", "d-lg-none"], ["data-cy", "boton-filtroMobile", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-xxl-5", "col-lg-5"], ["tourAnchor", "searchDescrip.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "Descrip", "placeholder", "Buscar por descripci\u00F3n", "maxlength", "200", 1, "form-control", 3, "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], ["data-cy", "buscar-descrip-boton", 1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["tourAnchor", "searchNotifTipo.anchor.id", 1, "input-group"], ["type", "search", "formControlName", "NotifTipos", "placeholder", "Seleccionar Tipos de Notificaciones", "readonly", "", 1, "form-control"], [1, "btn", "btn-primary", 3, "click"], [1, "card-body"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "dropdownButtons", "lazyLoad", "emitAction"], ["FILTRO", ""], [1, "col-xxl-2", "col-lg-3", "d-none", "d-lg-block"], ["tourAnchor", "filtroNotifConfig.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "text-muted"], ["labelKey", "Nombre", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "loading", "emitSelected"], [1, "my-2"], ["formControlName", "Activo", 1, "form-select"], [3, "value", 4, "ngFor", "ngForOf"], ["header", "Avanzados"], [1, "border", "border-1", "rounded", "border-opacity-10", "p-2", "mb-2"], [1, "text-muted", "font-size-12"], ["type", "date", "formControlName", "FechaInicioDesde", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits"], ["type", "date", "formControlName", "FechaInicioHasta", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits"], [3, "value"]],
    template: function ConfiguracionNotificacionComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("visibleChange", function ConfiguracionNotificacionComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](3, ConfiguracionNotificacionComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](4, ConfiguracionNotificacionComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](11, " Configuraci\u00F3n por Notificaciones ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_13_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](15, "div", 13)(16, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_16_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](17, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](18, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](19, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_19_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](20, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](21, "div", 16)(22, "button", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](23, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](24, "ul", 19)(25, "li")(26, "a", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_26_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](27, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](28, "li")(29, "a", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_29_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](30, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](31, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementContainerStart"](32, 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](33, "div", 22)(34, "div", 23)(35, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_35_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](36, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](37, "div", 25)(38, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_38_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](39, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](40, "div", 27)(41, "div", 28)(42, "input", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("keyup.enter", function ConfiguracionNotificacionComponent_Template_input_keyup_enter_42_listener() {
          return ctx.buscarPorDescrip();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](43, ConfiguracionNotificacionComponent_a_43_Template, 2, 0, "a", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](44, "a", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_44_listener() {
          return ctx.buscarPorDescrip();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](45, "i", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](46, "div", 27)(47, "div", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](48, "input", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](49, ConfiguracionNotificacionComponent_a_49_Template, 2, 0, "a", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](50, "a", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionNotificacionComponent_Template_a_click_50_listener() {
          return ctx.buscarNotifTipo();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](51, "i", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](52, "div", 36)(53, "app-table2", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("lazyLoad", function ConfiguracionNotificacionComponent_Template_app_table2_lazyLoad_53_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function ConfiguracionNotificacionComponent_Template_app_table2_emitAction_53_listener($event) {
          return ctx.acciones($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](54, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](55, ConfiguracionNotificacionComponent_ng_template_55_Template, 24, 10, "ng-template", null, 38, _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](57, "app-tour");
      }
      if (rf & 2) {
        const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵreference"](56);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngTemplateOutlet", _r5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-10 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](18, 23, ctx.notifConfigService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtroMobile ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.busquedaDescrip());
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.getNotifTipo());
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("columns", ctx.configNotificacionHeader)("datos", ctx.notificacionesConfigs)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cantSearch)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](54, 25, ctx.notifConfigService.isLoading$))("acciones", true)("dropdownButtons", ctx.dropdownButtons);
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_25__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_25__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_19__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_19__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_26__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_15__.TourComponent, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_16__.SelectMultipleComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_17__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_20__.AsyncPipe]
  });
}

/***/ }),

/***/ 50078:
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-notificacion/seleccionar-tipo-receptor/seleccionar-tipo-receptor.component.ts ***!
  \**********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarTipoReceptorComponent: () => (/* binding */ SeleccionarTipoReceptorComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 56223);





function SeleccionarTipoReceptorComponent_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const receptor_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", receptor_r1.NotifTipoReceptor.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", receptor_r1.NotifTipoReceptor.Nombre, " ");
  }
}
class SeleccionarTipoReceptorComponent {
  constructor(modal) {
    this.modal = modal;
  }
  ngOnInit() {
    this.receptorSeleccionado = -1;
    this.receptores = this.receptores.map(item => {
      if (item.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB) {
        let nombre = this.getUsuarioWebNombre(this.notifTipo);
        return {
          Id: item.Id,
          NotifTipoReceptor: {
            ...item.NotifTipoReceptor,
            Nombre: nombre != '' ? nombre : item.NotifTipoReceptor.Nombre
          }
        };
      } else {
        return item;
      }
    });
  }
  getUsuarioWebNombre(notifTipo) {
    if (notifTipo.Parametros) {
      let descripcionJson = notifTipo.Parametros;
      if (descripcionJson.id_plataforma) {
        switch (+descripcionJson.id_plataforma) {
          case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_VENDU:
            return 'Usuario Web - Vendú';
          case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_MERCADO_LIBRE:
            return 'Usuario Web - Mercado Libre';
          default:
            return 'Usuario Web';
        }
      }
    } else {
      return '';
    }
  }
  next() {
    this.modal.close(this.receptores.find(item => item.NotifTipoReceptor.Id == this.receptorSeleccionado));
  }
  static #_ = this.ɵfac = function SeleccionarTipoReceptorComponent_Factory(t) {
    return new (t || SeleccionarTipoReceptorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: SeleccionarTipoReceptorComponent,
    selectors: [["app-seleccionar-tipo-receptor"]],
    inputs: {
      receptores: "receptores",
      notifTipo: "notifTipo"
    },
    decls: 13,
    vars: 4,
    consts: [[1, "modal-content"], [1, "modal-body"], [1, "text-center", "mb-3"], [1, "form-select", 3, "ngModel", "ngModelChange"], [3, "value"], [3, "value", 4, "ngFor", "ngForOf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-secondary", 3, "click"], ["type", "button", 1, "btn", "btn-primary", 3, "disabled", "click"]],
    template: function SeleccionarTipoReceptorComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h3", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Seleccione el tipo de receptor");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "select", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function SeleccionarTipoReceptorComponent_Template_select_ngModelChange_4_listener($event) {
          return ctx.receptorSeleccionado = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "option", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Seleccione un tipo de receptor");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, SeleccionarTipoReceptorComponent_option_7_Template, 2, 2, "option", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6)(9, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeleccionarTipoReceptorComponent_Template_button_click_9_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeleccionarTipoReceptorComponent_Template_button_click_11_listener() {
          return ctx.next();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Siguiente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.receptorSeleccionado);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.receptores);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.receptorSeleccionado == -1);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgModel],
    styles: [".back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"]
  });
}

/***/ }),

/***/ 94170:
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-receptor/carga-masiva-conf-recep/carga-masiva-conf-recep.component.ts ***!
  \**************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CargaMasivaConfRecepComponent: () => (/* binding */ CargaMasivaConfRecepComponent)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 9315);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfigReceptor.service */ 27846);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primeng/tooltip */ 33259);














function CargaMasivaConfRecepComponent_span_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx_r1.resultadoPutExitoso.length + ctx_r1.resultadoDeleteExitoso.length, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 20)(1, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Inserci\u00F3n/Edici\u00F3n de configuraciones de notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_4_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const confResult_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("", confResult_r9.ConfiguracionIns.Descripcion, " - ", confResult_r9.Nombre, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_4_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 27)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const confResult_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r9.ReceptorEnviado.CronPeriodicidad || confResult_r9.ReceptorEnviado.CronPeriodicidad == "" ? "Instant\u00E1nea" : confResult_r9.ReceptorEnviado.CronPeriodicidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r9.ReceptorEnviado.Observacion || confResult_r9.ReceptorEnviado.Observacion == "" ? "Sin observacion" : confResult_r9.ReceptorEnviado.Observacion, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "p-accordionTab", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CargaMasivaConfRecepComponent_ng_template_12_ng_container_4_ng_template_2_Template, 4, 2, "ng-template", 23)(3, CargaMasivaConfRecepComponent_ng_template_12_ng_container_4_ng_template_3_Template, 9, 2, "ng-template", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 31)(1, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Eliminaci\u00F3n de configuraciones de notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const confResult_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("", confResult_r15.ConfiguracionElimDatos.Configuracion.Descripcion, " - ", ctx_r17.getDataResponseByTypeReceptor(confResult_r15.ConfiguracionElimClave), "");
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_ng_template_3_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 33)(1, "p", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const confResult_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", confResult_r15.Mensaje, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 27)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_ng_template_3_Conditional_9_Template, 3, 1, "div", 32);
  }
  if (rf & 2) {
    const confResult_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r15.ConfiguracionElimDatos.CronPeriodicidad || confResult_r15.ConfiguracionElimDatos.CronPeriodicidad == "" ? "Instant\u00E1nea" : confResult_r15.ConfiguracionElimDatos.CronPeriodicidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r15.ConfiguracionElimDatos.Observacion || confResult_r15.ConfiguracionElimDatos.Observacion == "" ? "Sin observacion" : confResult_r15.ConfiguracionElimDatos.Observacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](9, !confResult_r15.MensajeError && confResult_r15.Mensaje ? 9 : -1);
  }
}
function CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "p-accordionTab", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_ng_template_2_Template, 4, 2, "ng-template", 23)(3, CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_ng_template_3_Template, 10, 3, "ng-template", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
}
const _c0 = () => ({
  "max-height": "400px",
  "overflow-y": "scroll"
});
function CargaMasivaConfRecepComponent_ng_template_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](0, CargaMasivaConfRecepComponent_ng_template_12_div_0_Template, 3, 0, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 15)(2, "div", 16)(3, "p-accordion", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, CargaMasivaConfRecepComponent_ng_template_12_ng_container_4_Template, 4, 0, "ng-container", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](5, CargaMasivaConfRecepComponent_ng_template_12_div_5_Template, 3, 0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 15)(7, "div", 16)(8, "p-accordion", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CargaMasivaConfRecepComponent_ng_template_12_ng_container_9_Template, 4, 0, "ng-container", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r2.resultadoPutExitoso.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](10, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("multiple", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r2.resultadoPutExitoso);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r2.resultadoDeleteExitoso.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](11, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("multiple", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r2.resultadoDeleteExitoso);
  }
}
function CargaMasivaConfRecepComponent_span_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx_r3.resultadoPutFallido.length + ctx_r3.resultadoDeleteFallido.length, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 36)(1, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Inserci\u00F3n/Edici\u00F3n de configuraciones de notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const confResult_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("", confResult_r27.ConfiguracionIns.Descripcion, " - ", confResult_r27.Nombre, "");
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_ng_template_3_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 39)(1, "p", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const confResult_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", confResult_r27.MensajeError, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 27)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_ng_template_3_Conditional_9_Template, 3, 1, "div", 38);
  }
  if (rf & 2) {
    const confResult_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r27.ReceptorEnviado.CronPeriodicidad || confResult_r27.ReceptorEnviado.CronPeriodicidad == "" ? "Instant\u00E1nea" : confResult_r27.ReceptorEnviado.CronPeriodicidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r27.ReceptorEnviado.Observacion || confResult_r27.ReceptorEnviado.Observacion == "" ? "Sin observacion" : confResult_r27.ReceptorEnviado.Observacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](9, confResult_r27.MensajeError !== null ? 9 : -1);
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "p-accordionTab", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_ng_template_2_Template, 4, 2, "ng-template", 23)(3, CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_ng_template_3_Template, 10, 3, "ng-template", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 31)(1, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Eliminaci\u00F3n de configuraciones de notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const confResult_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("", confResult_r35.ConfiguracionElimDatos.Configuracion.Descripcion, " - ", ctx_r37.getDataResponseByTypeReceptor(confResult_r35.ConfiguracionElimDatos), "");
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_ng_template_3_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 39)(1, "p", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const confResult_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", confResult_r35.Mensaje, " ");
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 27)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_ng_template_3_Conditional_9_Template, 3, 1, "div", 38);
  }
  if (rf & 2) {
    const confResult_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r35.ConfiguracionElimDatos.CronPeriodicidad || confResult_r35.ConfiguracionElimDatos.CronPeriodicidad == "" ? "Instant\u00E1nea" : confResult_r35.ConfiguracionElimDatos.CronPeriodicidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", !confResult_r35.ConfiguracionElimDatos.Observacion || confResult_r35.ConfiguracionElimDatos.Observacion == "" ? "Sin observacion" : confResult_r35.ConfiguracionElimDatos.Observacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](9, !confResult_r35.MensajeError ? 9 : -1);
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "p-accordionTab", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_ng_template_2_Template, 4, 2, "ng-template", 23)(3, CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_ng_template_3_Template, 10, 3, "ng-template", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
}
function CargaMasivaConfRecepComponent_ng_template_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](0, CargaMasivaConfRecepComponent_ng_template_17_div_0_Template, 3, 0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 15)(2, "div", 16)(3, "p-accordion", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, CargaMasivaConfRecepComponent_ng_template_17_ng_container_4_Template, 4, 0, "ng-container", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](5, CargaMasivaConfRecepComponent_ng_template_17_div_5_Template, 3, 0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 15)(7, "div", 16)(8, "p-accordion", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, CargaMasivaConfRecepComponent_ng_template_17_ng_container_9_Template, 4, 0, "ng-container", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.resultadoPutFallido.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](10, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("multiple", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r4.resultadoPutFallido);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.resultadoDeleteFallido.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](11, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("multiple", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r4.resultadoDeleteFallido);
  }
}
class CargaMasivaConfRecepComponent {
  constructor(modal, notificacionConfigReceptorService, alert) {
    this.modal = modal;
    this.notificacionConfigReceptorService = notificacionConfigReceptorService;
    this.alert = alert;
    this.configuracionesAsignadas = [];
    this.yaAsignado = [];
    //@Input() cron : string;
    //@Input() Observaciones : string;
    this.modo = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.MODO_INSERCION_ELIMINACION;
    this.configuracionesInsertar = [];
    this.configuracionesEliminar = [];
    //public resultadoPut: any[] = [];
    this.resultadoPutExitoso = [];
    this.resultadoPutFallido = [];
    //public resultadoDelete: any[] = [];
    this.resultadoDeleteExitoso = [];
    this.resultadoDeleteFallido = [];
    this._unsubscribe = [];
  }
  ngOnInit() {
    if (this.configuracionesAsignadas && this.configuracionesAsignadas.length > 0) {
      this.procesarConfigInsertar();
    }
    this.procesarConfigEliminar();
    this.alert.showLoadingAlert('Procesando Configuraciones de Notificaciones', 'Este proceso puede tardar unos minutos, Cargando...');
    if (Number(this.modo) !== src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.MODO_ELIMINACION) {
      this.realizarInsercion();
    } else {
      this.realizarEliminacion();
    }
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  procesarConfigInsertar() {
    this.receptores.ids.forEach(receptor => {
      let datos = this.yaAsignado.find(elem => elem.Clave.Id == receptor);
      this.configuracionesAsignadas.forEach(config => {
        let configAsignada = datos?.Datos.find(elem => elem.Configuracion.Id == config.Id);
        if (!configAsignada) {
          this.configuracionesInsertar.push({
            Id: null,
            Observacion: config.Observacion ? config.Observacion : null,
            IdNotifConfNotif: config.Id,
            IdNotifTipoReceptor: this.getReceptor(),
            IdRegistro: receptor,
            CronPeriodicidad: config.NotificacionTipo.EsCondicional == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.FALSO ? null : config.ExpresionCron ? config.ExpresionCron : null,
            FechaUltNotif: null,
            FechaUltIntentoNotif: null
          });
        } else {
          this.configuracionesInsertar.push({
            Id: configAsignada.Id,
            Observacion: config.Observacion ? config.Observacion : null,
            IdNotifConfNotif: config.Id,
            IdNotifTipoReceptor: this.getReceptor(),
            IdRegistro: receptor,
            CronPeriodicidad: config.NotificacionTipo.EsCondicional == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.FALSO ? null : config.ExpresionCron ? config.ExpresionCron : null,
            FechaUltNotif: configAsignada.FechaUltNotif,
            FechaUltIntentoNotif: configAsignada.FechaUltIntentoNotif
          });
        }
      });
    });
  }
  getReceptor() {
    switch (+this.IdNotifTipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_ML:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB;
      default:
        return +this.IdNotifTipoReceptor;
    }
  }
  procesarConfigEliminar() {
    this.yaAsignado.forEach(receptor => {
      receptor.Datos.forEach(config => {
        let idConfig = this.configuracionesInsertar.find(elem => elem.Id == config.Id);
        if (!idConfig) {
          this.configuracionesEliminar.push(config);
        }
      });
    });
  }
  realizarInsercion() {
    const data = lodash__WEBPACK_IMPORTED_MODULE_3__.chunk(this.configuracionesInsertar, 1000);
    const postCalls = data.map(elem => {
      return this.notificacionConfigReceptorService.editarSinId(elem);
    });
    //SP SINWEB-476 se corrigio error de que si no se hacian post no eliminaba lo que yo quito
    if (postCalls.length == 0) {
      this.realizarEliminacion();
    }
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.forkJoin)(postCalls).subscribe(resp => {
      let respuesta = [];
      resp.forEach(elem => {
        respuesta = respuesta.concat(elem.Data);
      });
      const response = this.procesarRespuesta(respuesta);
      this.resultadoPutExitoso = response[0];
      this.resultadoPutFallido = response[1];
      if (Number(this.modo) === src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.MODO_INSERCION_ELIMINACION) {
        this.realizarEliminacion();
      } else {
        this.alert.closeLoadingAlert();
      }
    });
    this._unsubscribe.push(susc);
  }
  realizarEliminacion() {
    const data = lodash__WEBPACK_IMPORTED_MODULE_3__.chunk(this.configuracionesEliminar.map(elem => elem.Id), 1000);
    const deleteCalls = data.map(elem => {
      return this.notificacionConfigReceptorService.deleteEliminacionMasiva(elem);
    });
    if (deleteCalls.length == 0) {
      this.alert.closeLoadingAlert();
    }
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.forkJoin)(deleteCalls).subscribe(resp => {
      let respuesta = [];
      resp.forEach(elem => {
        respuesta = respuesta.concat(elem.Data);
      });
      //this.resultadoDelete = this.procesarRespuesta(respuesta);
      const response = this.procesarRespuesta(respuesta);
      this.resultadoDeleteExitoso = response[0];
      this.resultadoDeleteFallido = response[1];
      this.alert.closeLoadingAlert();
    });
    this._unsubscribe.push(susc);
    // const data = this.configuracionesEliminar.map(elem => elem.Id);
    // const susc = this.notificacionConfigReceptorService.deleteEliminacionMasiva(data).subscribe(resp=>{
    //   this.resultadoDelete = this.procesarRespuesta(resp.Data);
    // });
    // this._unsubscribe.push(susc);
  }
  procesarRespuesta(respuesta) {
    respuesta.forEach(elem => {
      if (!elem.Estado) {
        let idRespuesta = elem.ReceptorEnviado.IdRegistro;
        elem.Nombre = this.receptores.nombres[this.receptores.ids.indexOf(idRespuesta.toString())];
        elem.ConfiguracionIns = this.configuracionesAsignadas.find(e => e.Id == elem.ReceptorEnviado.IdNotifConfNotif);
        elem.CronPeriodicidad = !elem.ConfiguracionIns.ExpresionCron ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_2___default().toString(elem.ConfiguracionIns.ExpresionCron, {
          locale: 'es'
        });
      } else {
        //let idRespuesta : number = elem.ReceptorEnviado.IdRegistro;
        //elem.Nombre = this.receptores.nombres[this.receptores.ids.indexOf(elem.ReceptorEnviado.IdRegistro.toString())];
        elem.ConfiguracionElimClave = this.yaAsignado.find(e => e.Datos.find(a => a.Id == elem.Id)).Clave;
        elem.ConfiguracionElimDatos = this.yaAsignado.find(e => e.Datos.find(a => a.Id == elem.Id)).Datos.find(a => a.Id == elem.Id);
        elem.CronPeriodicidad = !elem.ConfiguracionElimDatos.CronPeriodicidad ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_2___default().toString(elem.ConfiguracionElimDatos.CronPeriodicidad, {
          locale: 'es'
        });
      }
    });
    //SP SINWEB-361 se divide la respuesta en 2 por auqellos con exito y fallidos
    return lodash__WEBPACK_IMPORTED_MODULE_3__.partition(respuesta, elem => !elem.MensajeError);
  }
  cerrarModal() {
    this.modal.close({
      resultadoPut: this.resultadoPutExitoso,
      resultadoDelete: this.resultadoDeleteExitoso,
      resultadoPutFallido: this.resultadoPutFallido,
      resultadoDeleteFallido: this.resultadoDeleteFallido,
      cantReceptores: this.receptores.length
    });
  }
  getDataResponseByTypeReceptor(dataResponse) {
    switch (+this.IdNotifTipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        return dataResponse.Usuario;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_ML:
        return dataResponse.Usuario;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return dataResponse.Nombre;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_CLIENTE:
        return '(' + dataResponse.Codigo + ') ' + dataResponse.Nombre;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_PROVEEDOR:
        return '(' + dataResponse.Codigo + ') ' + dataResponse.Nombre;
      default:
        return dataResponse.Nombre;
    }
  }
  static #_ = this.ɵfac = function CargaMasivaConfRecepComponent_Factory(t) {
    return new (t || CargaMasivaConfRecepComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_5__.NotificacionConfigReceptorService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_4__.AlertCustomService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: CargaMasivaConfRecepComponent,
    selectors: [["app-carga-masiva-conf-recep"]],
    inputs: {
      configuracionesAsignadas: "configuracionesAsignadas",
      yaAsignado: "yaAsignado",
      receptores: "receptores",
      IdNotifTipoReceptor: "IdNotifTipoReceptor",
      modo: "modo"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_4__.AlertCustomService])],
    decls: 23,
    vars: 6,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified"], ["nav", "ngbNav"], ["ngbNavItem", ""], ["ngbNavLink", ""], ["class", "badge rounded-pill bg-primary float-end text-white align-self-center", 4, "ngIf"], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-primary", 3, "disabled", "click"], [1, "badge", "rounded-pill", "bg-primary", "float-end", "text-white", "align-self-center"], ["class", "row mt-2 mb-3", 4, "ngIf"], [1, "row"], [1, "col-lg-12"], [1, "w-full", 3, "multiple"], [4, "ngFor", "ngForOf"], ["class", "row my-3", 4, "ngIf"], [1, "row", "mt-2", "mb-3"], [1, "fw-bold", "font-size-15"], ["iconPos", "end"], ["pTemplate", "header"], ["pTemplate", "content"], [1, "fw-bold"], [1, "ps-3", "bx", "bx-check-circle", "bx-sm", "text-success"], [1, "d-flex", "flex-column", "gap-2"], [1, "text-muted", "font-size-13", "py-1"], ["pTooltip", "Periodicidad", 1, "mdi", "mdi-watch", "font-size-12"], ["pTooltip", "Observaci\u00F3n", 1, "mdi", "mdi-menu", "font-size-12"], [1, "row", "my-3"], ["class", "alert alert-success mt-2", "role", "alert"], ["role", "alert", 1, "alert", "alert-success", "mt-2"], [1, "mb-0"], ["class", "row mb-3 mt-2", 4, "ngIf"], [1, "row", "mb-3", "mt-2"], [1, "ps-3", "bx", "bx-x-circle", "bx-sm", "text-danger"], ["class", "alert alert-danger mt-2", "role", "alert"], ["role", "alert", 1, "alert", "alert-danger", "mt-2"]],
    template: function CargaMasivaConfRecepComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, " Resultados de carga de notificaciones ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 3)(5, "div", 3)(6, "ul", 4, 5)(8, "li", 6)(9, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](10, " Procesos existosos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](11, CargaMasivaConfRecepComponent_span_11_Template, 2, 1, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, CargaMasivaConfRecepComponent_ng_template_12_Template, 10, 12, "ng-template", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "li", 6)(14, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](15, " Procesos fallidos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](16, CargaMasivaConfRecepComponent_span_16_Template, 2, 1, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](17, CargaMasivaConfRecepComponent_ng_template_17_Template, 10, 12, "ng-template", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](18, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](19, "div", 11)(20, "button", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CargaMasivaConfRecepComponent_Template_button_click_20_listener() {
          return ctx.cerrarModal();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](21, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](22, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵreference"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.resultadoPutExitoso.length + ctx.resultadoDeleteExitoso.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.resultadoPutFallido.length + ctx.resultadoDeleteFallido.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngbNavOutlet", _r0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](21, 4, ctx.notificacionConfigReceptorService.isLoading$));
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_9__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_9__.AccordionTab, primeng_api__WEBPACK_IMPORTED_MODULE_10__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_12__.Tooltip, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNavLinkButton, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbNavOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe]
  });
}

/***/ }),

/***/ 64562:
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-receptor/configuracion-receptor-edit/configuracion-receptor-edit.component.ts ***!
  \**********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionReceptorEditComponent: () => (/* binding */ ConfiguracionReceptorEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! rxjs */ 9315);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* harmony import */ var src_app_pages_notificaciones_configuracion_receptor_carga_masiva_conf_recep_carga_masiva_conf_recep_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/notificaciones/configuracion-receptor/carga-masiva-conf-recep/carga-masiva-conf-recep.component */ 94170);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _configuracion_notificacion_admin_config_receptores_admin_receptores_edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../configuracion-notificacion/admin-config-receptores/admin-receptores/edit-receptor/edit-receptor.component */ 5826);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var src_app_shared_ui_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/shared/ui/data-list/data-list.component */ 29706);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_usuarios_seleccionar_usuarios_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-usuarios/seleccionar-usuarios.component */ 32998);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-usuario-web/seleccionar-usuario-web.component */ 33974);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfigReceptor.service */ 27846);
/* harmony import */ var src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/notificaciones/notifTipoReceptor.service */ 63438);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../core/services/auth.service */ 90304);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var primeng_inputswitch__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! primeng/inputswitch */ 45609);
/* harmony import */ var primeng_picklist__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! primeng/picklist */ 28052);






























function ConfiguracionReceptorEditComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainer"](0);
  }
}
function ConfiguracionReceptorEditComponent_label_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "label", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, "Receptor");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_label_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "label", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, "Receptor");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_container_19_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "a", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function ConfiguracionReceptorEditComponent_ng_container_19_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx_r12.borrarReceptor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](1, "i", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_container_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](1, ConfiguracionReceptorEditComponent_ng_container_19_a_1_Template, 2, 0, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](2, "a", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function ConfiguracionReceptorEditComponent_ng_container_19_Template_a_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx_r14.buscarReceptor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](3, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx_r3.getReceptor());
  }
}
function ConfiguracionReceptorEditComponent_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, " Selecci\u00F3n de receptores correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, " Selecionar al menos un receptor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div")(1, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](2, "Configuraciones Asignadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 51)(1, "button", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function ConfiguracionReceptorEditComponent_ng_template_32_div_2_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
      const index_r17 = ctx_r25.index;
      const conf_r16 = ctx_r25.$implicit;
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵresetView"](ctx_r24.editarConfigSeleccionada(index_r17, conf_r16));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](2, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_span_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "span", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const conf_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("pTooltip", conf_r16.Observacion);
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_Conditional_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](0);
  }
  if (rf & 2) {
    const conf_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]().$implicit;
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"](" ", ctx_r20.getExpresionCron(conf_r16.ExpresionCron), " - ");
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_Conditional_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](0, " Instant\u00E1nea - ");
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_Conditional_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "span", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, "Activo");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_Conditional_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, "Inactivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 41)(1, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](2, ConfiguracionReceptorEditComponent_ng_template_32_div_2_Template, 3, 0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](3, "div", 44)(4, "div")(5, "b", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](7, ConfiguracionReceptorEditComponent_ng_template_32_span_7_Template, 2, 1, "span", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](8, "div")(9, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](11, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](12, ConfiguracionReceptorEditComponent_ng_template_32_Conditional_12_Template, 1, 1)(13, ConfiguracionReceptorEditComponent_ng_template_32_Conditional_13_Template, 1, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](14, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](16, ConfiguracionReceptorEditComponent_ng_template_32_Conditional_16_Template, 2, 0, "span", 50)(17, ConfiguracionReceptorEditComponent_ng_template_32_Conditional_17_Template, 2, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const conf_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", !conf_r16.Source);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate"](conf_r16.Descripcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", !conf_r16.Source && conf_r16.Observacion);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate2"]("(", conf_r16.NotifCanal.Nombre, ") ", conf_r16.NotificacionTipo.Nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵconditional"](12, conf_r16.ExpresionCron !== null ? 12 : 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtextInterpolate1"]("", conf_r16.FechaDesde, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵconditional"](16, conf_r16.Activo == "S" ? 16 : 17);
  }
}
function ConfiguracionReceptorEditComponent_ng_template_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, " No hay configuraciones disponibles ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_34_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, " No hay configuraciones asignadas, seleccione receptor/es ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_34_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](1, " No hay configuraciones asignadas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorEditComponent_ng_template_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](1, ConfiguracionReceptorEditComponent_ng_template_34_Conditional_1_Template, 2, 0, "div", 58)(2, ConfiguracionReceptorEditComponent_ng_template_34_Conditional_2_Template, 2, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵconditional"](1, ctx_r9.getIdReceptor() == "" ? 1 : 2);
  }
}
function ConfiguracionReceptorEditComponent_i_42_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](0, "i", 61);
  }
}
const _c0 = () => ({
  height: "350px",
  width: "100%",
  padding: "0 12px 0 12px"
});
class ConfiguracionReceptorEditComponent {
  constructor(fb, modal, toast, alert, vh, notificacionConfigReceptorService, notifTipoReceptorServices, notificacionConfiguracionServices, modalService, authService) {
    this.fb = fb;
    this.modal = modal;
    this.toast = toast;
    this.alert = alert;
    this.vh = vh;
    this.notificacionConfigReceptorService = notificacionConfigReceptorService;
    this.notifTipoReceptorServices = notifTipoReceptorServices;
    this.notificacionConfiguracionServices = notificacionConfiguracionServices;
    this.modalService = modalService;
    this.authService = authService;
    this.receptoresObj = [];
    this.esEdicion = false;
    this.TIPO_RECEPTOR_CLIENTE = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_CLIENTE;
    this.TIPO_RECEPTOR_PROVEEDOR = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_PROVEEDOR;
    //SP SINWEB-810 nuevos tipos de receptores
    this.TIPO_RECEPTOR_USUARIO_WEB = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB;
    this.TIPO_RECEPTOR_USUARIO_WEB_VENDU = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_VENDU;
    this.TIPO_RECEPTOR_USUARIO_WEB_ML = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_ML;
    this.TIPO_RECEPTOR_USUARIO_SINERGIAL = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_SINERGIAL;
    this.PLATAFORMA_VENDU = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_VENDU;
    this.PLATAFORMA_MERCADO_LIBRE = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_MERCADO_LIBRE;
    this.formGroup = this.fb.group({
      IdNotifTipoReceptor: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_18__.Validators.required])],
      NombreNotifTipoReceptor: [''],
      IdRegistros: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_18__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_18__.Validators.required])],
      Registros: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_18__.Validators.required])],
      RegistrosObj: [null],
      modo: [src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.MODO_INSERCION],
      VerSoloActivas: ['S']
    });
    this._unsubscribe = [];
    this.tiposReceptor = [];
    this.yaAsignado = [];
    this.componenteReceptor = 0;
    this.configuracionesDisponibles = [];
    this.configuracionesDisp = [];
    this.configuracionesAsignadas = [];
  }
  ngOnInit() {
    if (this.receptoresObj && this.receptoresObj.length > 0) {
      this.formGroup.controls.RegistrosObj.setValue(this.receptoresObj);
    }
    if (this.esEdicion) {
      this.formGroup.controls.modo.setValue(src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.MODO_INSERCION_ELIMINACION);
    }
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    this.cargarTiposReceptor();
    this.cargarConfiguracionDisp();
    /**
     * SP SINWEB-361 se quito el observable del select de tipo de receptor ya que es fijo
     **/
    this._unsubscribe.push(this.formGroup.controls.IdRegistros.valueChanges.subscribe(registros => {
      this.configuracionesAsignadas = [];
      this.configuracionesDisp = [];
      if (registros != null && registros != '') {
        this.configuracionesDisp = this.configuracionesDisponibles;
        this.setearConfiguracionesAsignadas(registros);
      }
    }));
  }
  inicializarReceptor() {
    if (this.receptoresId != null && this.receptoresId != '') {
      this.formGroup.controls.IdRegistros.setValue(this.receptoresId);
      this.formGroup.controls.Registros.setValue(this.receptores);
    }
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarTiposReceptor() {
    /**
     * SP SINWEB-360 ya no hace falta cargar los tipo de receptores ya que es fijo
     */
    this.formGroup.controls.IdNotifTipoReceptor.setValue(this.dominio);
    this.formGroup.controls.NombreNotifTipoReceptor.setValue(this.dominioNombre);
    this.componenteReceptor = Number(this.dominio);
  }
  cargarConfiguracionDisp() {
    const datos = {
      PageNumber: -1,
      Orden: 9,
      SentidoOrden: 'asc',
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      IncluirTiposReceptores: 'S'
      //SP SINWEB-361 se agrego filtro para ver solo activas
    };
    if (this.formGroup.get('VerSoloActivas').value == 'S') {
      datos.Activo = 'S';
    }
    if (this.dominio == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_ML) {
      datos.NotifTipoParametros = '"id_plataforma": "1"';
    }
    if (this.dominio == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_VENDU) {
      datos.NotifTipoParametros = '"id_plataforma": "2"';
    }
    const susc = this.notificacionConfiguracionServices.fetch(datos).subscribe(data => {
      //SP SINWEB-810 se cambio logica debido a que tenes un filtro para obtener que receptores tiene asociados cada configuracion, con lo cual filtramos
      this.configuracionesDisponibles = data.Data.filter(config => lodash__WEBPACK_IMPORTED_MODULE_8__.some(config.NotificacionTipo.NotifTiposXReceptores, notifTipo => notifTipo.NotifTipoReceptor.Id == this.getDominio()));
      // if (this.dominio == constantesNotif.TIPO_RECEPTOR_CLIENTE){
      //   this.configuracionesDisponibles = data.Data.filter((config) => [6,2,13].includes(config.NotificacionTipo.NotifDominio.Id) )  ;
      // }
      // if (this.dominio == constantesNotif.TIPO_RECEPTOR_PROVEEDOR){
      //   this.configuracionesDisponibles = data.Data.filter((config) => config.NotificacionTipo.NotifDominio.Id == 3)  ;
      // }
      this.configuracionesDisp = [];
      //SP SINWEB-361 se agrega campo source a todas para en la template del picklist poder diferenciarlas del target
      this.configuracionesDisponibles.forEach(config => {
        config.Source = true;
      });
      this.inicializarReceptor();
    });
    this._unsubscribe.push(susc);
  }
  recargarTodo() {
    const datos = {
      PageNumber: -1,
      Orden: 9,
      SentidoOrden: 'asc',
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      IncluirTiposReceptores: 'S'
      //SP SINWEB-361 se agrego filtro para ver solo activas
    };
    if (this.formGroup.get('VerSoloActivas').value == 'S') {
      datos.Activo = 'S';
    }
    if (this.dominio == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_ML) {
      datos.NotifTipoParametros = '"id_plataforma": "1"';
    }
    if (this.dominio == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_VENDU) {
      datos.NotifTipoParametros = '"id_plataforma": "2"';
    }
    const susc = this.notificacionConfiguracionServices.fetch(datos).subscribe(data => {
      //SP SINWEB-810 se cambio logica debido a que tenes un filtro para obtener que receptores tiene asociados cada configuracion, con lo cual filtramos
      this.configuracionesDisponibles = data.Data.filter(config => lodash__WEBPACK_IMPORTED_MODULE_8__.some(config.NotificacionTipo.NotifTiposXReceptores, notifTipo => notifTipo.NotifTipoReceptor.Id == this.getDominio()));
      this.configuracionesDisp = [];
      //SP SINWEB-361 se agrega campo source a todas para en la template del picklist poder diferenciarlas del target
      this.configuracionesDisponibles.forEach(config => {
        config.Source = true;
      });
      if (this.formGroup.get('IdRegistros').value != null && this.formGroup.get('IdRegistros').value != '') {
        this.configuracionesAsignadas = [];
        this.configuracionesDisp = [];
        this.configuracionesDisp = this.configuracionesDisponibles;
        this.setearConfiguracionesAsignadas(this.formGroup.get('IdRegistros').value);
      }
    });
    this._unsubscribe.push(susc);
  }
  getReceptor() {
    return this.formGroup.get('Registros').value;
  }
  getIdReceptor() {
    return this.formGroup.get('IdRegistros').value;
  }
  borrarReceptor() {
    this.formGroup.controls.IdRegistros.setValue(null);
    this.formGroup.controls.Registros.setValue(null);
    this.formGroup.controls.RegistrosObj.setValue(null);
    this.recargarTodo();
  }
  buscarReceptor() {
    switch (this.componenteReceptor) {
      case this.TIPO_RECEPTOR_CLIENTE:
        const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_3__.SeleccionarClienteComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef.componentInstance.filtros = {
          Multiple: true,
          Bajas: {
            Id: 'N',
            Ocultar: true
          }
        };
        modalRef.result.then(resolve => {
          if (resolve !== undefined) {
            this.formGroup.controls.IdRegistros.setValue(resolve.IdsClientes.join(','));
            this.formGroup.controls.Registros.setValue(resolve.Clientes.join(','));
            this.formGroup.controls.RegistrosObj.setValue(resolve.ClientesObj);
            this.recargarTodo();
          }
        });
        break;
      case this.TIPO_RECEPTOR_PROVEEDOR:
        const modalRef2 = this.modalService.open(src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_4__.SeleccionarProveedorComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef2.componentInstance.filtros = {
          Multiple: true,
          Bajas: {
            Id: 'N',
            Ocultar: true
          }
        };
        modalRef2.result.then(resolve => {
          if (resolve !== undefined) {
            this.formGroup.controls.IdRegistros.setValue(resolve.IdsProveedores.join(','));
            this.formGroup.controls.Registros.setValue(resolve.Proveedores.join(','));
            this.formGroup.controls.RegistrosObj.setValue(resolve.ProveedoresObj);
            this.recargarTodo();
          }
        });
        break;
      case this.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        const modalRef3 = this.modalService.open(src_app_pages_dashboards_core_seleccionar_usuarios_seleccionar_usuarios_component__WEBPACK_IMPORTED_MODULE_10__.SeleccionarUsuariosComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef3.componentInstance.filtros = {
          Multiple: true,
          BajaLogica: {
            Id: 'N',
            Ocultar: true
          }
        };
        modalRef3.result.then(resolve => {
          if (resolve !== undefined) {
            this.formGroup.controls.IdRegistros.setValue(resolve.IdsUsuarios.join(','));
            this.formGroup.controls.Registros.setValue(resolve.Usuarios.join(','));
            this.formGroup.controls.RegistrosObj.setValue(resolve.UsuariosObj);
            this.recargarTodo();
          }
        });
        break;
      case this.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        const modalRef4 = this.modalService.open(src_app_pages_dashboards_core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_11__.SeleccionarUsuarioWebComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef4.componentInstance.filtros = {
          Multiple: true,
          BajaLogica: {
            Id: 'N',
            Ocultar: true
          },
          Plataforma: {
            Id: this.getPlataforma(),
            Ocultar: true
          }
        };
        modalRef4.result.then(resolve => {
          if (resolve !== undefined) {
            this.formGroup.controls.IdRegistros.setValue(resolve.IdsUsuariosWeb.join(','));
            this.formGroup.controls.Registros.setValue(resolve.UsuariosWeb.join(','));
            this.formGroup.controls.RegistrosObj.setValue(resolve.UsuariosWebObj);
            this.recargarTodo();
          }
        });
        break;
      case this.TIPO_RECEPTOR_USUARIO_WEB_ML:
        const modalRef5 = this.modalService.open(src_app_pages_dashboards_core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_11__.SeleccionarUsuarioWebComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef5.componentInstance.filtros = {
          Multiple: true,
          BajaLogica: {
            Id: 'N',
            Ocultar: true
          },
          Plataforma: {
            Id: this.getPlataforma(),
            Ocultar: true
          }
        };
        modalRef5.result.then(resolve => {
          if (resolve !== undefined) {
            this.formGroup.controls.IdRegistros.setValue(resolve.IdsUsuariosWeb.join(','));
            this.formGroup.controls.Registros.setValue(resolve.UsuariosWeb.join(','));
            this.formGroup.controls.RegistrosObj.setValue(resolve.UsuariosWebObj);
            this.recargarTodo();
          }
        });
        break;
      default:
        break;
    }
  }
  getPlataforma() {
    switch (+this.dominio) {
      case this.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        return this.PLATAFORMA_VENDU;
      case this.TIPO_RECEPTOR_USUARIO_WEB_ML:
        return this.PLATAFORMA_MERCADO_LIBRE;
      default:
        return 1;
    }
  }
  /**
   * SP SINWEB-845 se obtiene el tipo de receptor
   */
  getDominio() {
    switch (+this.dominio) {
      case this.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        return this.TIPO_RECEPTOR_USUARIO_WEB;
      case this.TIPO_RECEPTOR_USUARIO_WEB_ML:
        return this.TIPO_RECEPTOR_USUARIO_WEB;
      default:
        return +this.dominio;
    }
  }
  getExpresionCron(cron) {
    if (cron == null || cron == '') return 'Instantánea';
    return cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6___default().toString(cron, {
      locale: 'es'
    });
  }
  setearConfiguracionesAsignadas(receptores) {
    const subArreglosIds = this.dividirIds(receptores, 400);
    let datos = {
      PageNumber: -1,
      Orden: 1,
      SentidoOrden: 'asc',
      IdsEmpresa: this.authService.usuario.IdEmpresa
    };
    if (this.dominio == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_ML) {
      datos.NotifTipoParametros = '"id_plataforma": "1"';
    }
    if (this.dominio == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB_VENDU) {
      datos.NotifTipoParametros = '"id_plataforma": "2"';
    }
    this.alert.showLoadingAlert('Cargando...', '');
    const calls = subArreglosIds.map(ids => {
      let idsString = ids.join(',');
      return this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo({
        ...datos,
        IdsReceptor: idsString
      }, this.formGroup.controls.IdNotifTipoReceptor.value == this.TIPO_RECEPTOR_USUARIO_WEB_VENDU || this.formGroup.controls.IdNotifTipoReceptor.value == this.TIPO_RECEPTOR_USUARIO_WEB_ML ? this.TIPO_RECEPTOR_USUARIO_WEB : this.formGroup.controls.IdNotifTipoReceptor.value);
    });
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_19__.forkJoin)(calls).subscribe(resp => {
      let data = [];
      resp.forEach(response => {
        if (response.Data != null && response.Data.length > 0) {
          data = data.concat(response.Data);
        }
      });
      data = lodash__WEBPACK_IMPORTED_MODULE_8__.sortBy(data, 'Clave.Id');
      this.yaAsignado = data;
      if (this.esEdicion) {
        let configAsignadas = this.getIdConfigAsignadas(this.yaAsignado);
        let cantReceptores = receptores.split(',').length;
        this.configuracionesAsignadas = this.getConfigAsignadas(cantReceptores == 1, configAsignadas);
      }
      this.alert.closeLoadingAlert();
    });
    this._unsubscribe.push(susc);
  }
  dividirIds(cadenaIds, maxCaracteresPorSubArray = 200) {
    // Expresión regular para encontrar grupos de IDs separados por comas
    const regex = /[^,]+/g;
    const ids = cadenaIds.match(regex) || [];
    const subArrays = [];
    let subArrayActual = [];
    let longitudActual = 0;
    ids.forEach(id => {
      if (longitudActual + id.length + 1 <= maxCaracteresPorSubArray) {
        // Si cabe en el sub-array actual, lo agregamos
        subArrayActual.push(id);
        longitudActual += id.length + 1; // +1 por la coma que se agregará
      } else {
        // Si no cabe, creamos un nuevo sub-array
        subArrays.push(subArrayActual);
        subArrayActual = [id];
        longitudActual = id.length;
      }
    });
    // Agregamos el último sub-array si no está vacío
    if (subArrayActual.length > 0) {
      subArrays.push(subArrayActual);
    }
    return subArrays;
  }
  getIdConfigAsignadas(configuraciones) {
    let asignadas = [];
    configuraciones.forEach(config => {
      config.Datos.map(c => {
        if (!asignadas.includes(c.Configuracion.Id)) {
          asignadas.push({
            Id: c.Configuracion.Id,
            CronPeriodicidad: c.CronPeriodicidad,
            IdRelacion: c.Id
          });
        }
      });
    });
    return asignadas;
  }
  getConfigAsignadas(unico, configAsignadas) {
    let configDisp = [];
    this.configuracionesDisp.forEach(config => {
      if (configAsignadas.some(c => c.Id == config.Id)) {
        config.Eliminar = true;
        if (unico) {
          config.ExpresionCronAnt = config.ExpresionCron;
          config.ExpresionCron = configAsignadas.find(c => c.Id == config.Id).CronPeriodicidad;
          config.IdRelacion = configAsignadas.find(c => c.Id == config.Id).IdRelacion;
        } else {
          config.ExpresionCronAnt = config.ExpresionCron;
          config.ExpresionCron = null;
        }
        //SP SINWEB-476 correccion de error
        config.Source = false;
        configDisp.push(config);
      }
    });
    this.configuracionesDisp = this.configuracionesDisp.filter(config => !config.Eliminar);
    return configDisp;
  }
  /**
   *
   * @param $event
   */
  deleteFromTarget($event) {
    let config = this.configuracionesDisp.find(config => config.Id == $event.items[0].Id);
    config.ExpresionCron = config.ExpresionCronAnt;
    config.Source = true;
  }
  /**
   * SP SINWEB-361 se agrega para ir cambiando el campo source, y asi ocultar o mostrar el boton editar de la card
   * @param $event
   */
  addToTarget($event) {
    $event.items.forEach(item => {
      item.Source = false;
      item.Observacion = null;
    });
  }
  deleteAllFromTarget($event) {
    $event.items.forEach(item => {
      this.deleteFromTarget({
        items: [item]
      });
    });
  }
  save() {
    this.alert.showCustomAlert2('Carga de configuraciones de notificaciones', '¿Desea asociar estas configuraciones al/los receptor/es', 'question', 'Aceptar', 'Cancelar', true, '', false, 'success', true, 'sweet-btn-action')
    //this.alert.showReturnAlert('Carga de configuraciones de notificaciones','¿Desea asociar estas configuraciones al/los receptor/es: '+this.getReceptor()+' ?','question','Aceptar','Cancelar',true,'success')
    .then(resp => {
      if (resp.value) {
        const modalRef = this.modalService.open(src_app_pages_notificaciones_configuracion_receptor_carga_masiva_conf_recep_carga_masiva_conf_recep_component__WEBPACK_IMPORTED_MODULE_5__.CargaMasivaConfRecepComponent, {
          backdrop: 'static',
          keyboard: false,
          size: 'lg',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          scrollable: true
        });
        modalRef.componentInstance.configuracionesAsignadas = this.configuracionesAsignadas;
        let receptoresIds = this.getIdReceptor().split(',');
        let receptoresNombre = receptoresIds.length == 1 ? [this.getReceptor()] : this.getReceptor().split(',');
        modalRef.componentInstance.receptores = {
          ids: receptoresIds,
          nombres: receptoresNombre
        };
        modalRef.componentInstance.yaAsignado = this.yaAsignado;
        modalRef.componentInstance.IdNotifTipoReceptor = this.formGroup.controls.IdNotifTipoReceptor.value;
        //modalRef.componentInstance.cron = this.formGroup.controls.cron.value;
        //modalRef.componentInstance.Observaciones  = this.formGroup.controls.Observaciones.value;
        modalRef.componentInstance.modo = this.formGroup.controls.modo.value;
        modalRef.result.then(result => {
          this.modal.close(result);
        });
      }
    });
    document.getElementById('sweet-btn-action').addEventListener('click', () => {
      this.visualizarSeleccionados(lodash__WEBPACK_IMPORTED_MODULE_8__.unionBy(this.yaAsignado.length > 0 ? this.yaAsignado.map(elem => elem.Clave) : [], this.formGroup.controls.RegistrosObj.value, 'Id'));
    });
  }
  visualizarSeleccionados(totalReceptores) {
    const modalRef = this.modalService.open(src_app_shared_ui_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_9__.DataListComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-3',
      windowClass: 'modal-z-index-3',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.data = totalReceptores;
    modalRef.componentInstance.type = 'custom';
    switch (+this.dominio) {
      case this.TIPO_RECEPTOR_CLIENTE:
        modalRef.componentInstance.columns = [{
          Nombre: 'Código',
          Key: 'Codigo',
          Disabled: false
        }, {
          Nombre: 'Nombre',
          Key: 'Nombre',
          Disabled: false
        }];
        break;
      case this.TIPO_RECEPTOR_PROVEEDOR:
        modalRef.componentInstance.columns = [{
          Nombre: 'Código',
          Key: 'Codigo',
          Disabled: false
        }, {
          Nombre: 'Nombre',
          Key: 'Nombre',
          Disabled: false
        }];
        break;
      case this.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        modalRef.componentInstance.columns = [{
          Nombre: 'Usuario',
          Key: 'Usuario',
          Disabled: false
        }, {
          Nombre: 'Email',
          Key: 'Email',
          Disabled: false
        }];
        break;
      case this.TIPO_RECEPTOR_USUARIO_WEB_ML:
        modalRef.componentInstance.columns = [{
          Nombre: 'Usuario',
          Key: 'Usuario',
          Disabled: false
        }, {
          Nombre: 'Email',
          Key: 'Email',
          Disabled: false
        }];
        break;
      case this.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        modalRef.componentInstance.columns = [{
          Nombre: 'Nombre',
          Key: 'Nombre',
          Disabled: false
        }];
        break;
      default:
        modalRef.componentInstance.columns = [{
          Nombre: 'Receptor',
          Key: 'Nombre',
          Disabled: false
        }];
        break;
    }
    modalRef.componentInstance.title = 'Receptores seleccionados';
  }
  editarConfigSeleccionada(index, conf) {
    const modalRef = this.modalService.open(_configuracion_notificacion_admin_config_receptores_admin_receptores_edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_7__.EditReceptorComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.configuracion = conf;
    modalRef.componentInstance.esConfiguracion = true;
    modalRef.result.then(result => {
      if (result != null) {
        this.configuracionesAsignadas[index].ExpresionCron = result.CronPeriodicidad;
        this.configuracionesAsignadas[index].Observacion = result.Observacion;
      }
    });
  }
  static #_ = this.ɵfac = function ConfiguracionReceptorEditComponent_Factory(t) {
    return new (t || ConfiguracionReceptorEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_18__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_21__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_12__.NotificacionConfigReceptorService), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_13__.NotifTipoReceptorServices), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_14__.NotificacionConfiguracionServices), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_15__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdefineComponent"]({
    type: ConfiguracionReceptorEditComponent,
    selectors: [["app-configuracion-receptor-edit"]],
    inputs: {
      dominio: "dominio",
      dominioNombre: "dominioNombre",
      receptoresId: "receptoresId",
      receptores: "receptores",
      receptoresObj: "receptoresObj",
      esEdicion: "esEdicion"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService, src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService])],
    decls: 44,
    vars: 28,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], ["action", "#", 1, "form", "form-label-right", "form-group", 3, "formGroup"], [1, "row", "m-2"], [1, "col-lg-3", "p-2"], [1, "form-label"], ["type", "text", "formControlName", "NombreNotifTipoReceptor", "readonly", "", 1, "form-control"], [1, "col-lg-9", "p-2"], ["class", "form-label", "campoObligatorio", "", 4, "ngIf"], ["class", "form-label", 4, "ngIf"], [1, "input-group"], ["type", "search", "formControlName", "Registros", "placeholder", "Seleccionar receptores", "readonly", "", 1, "form-control"], ["class", "valid-feedback", 4, "ngIf"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col", "p-2", "px-3"], [1, "form-check", "form-switch", "form-switch-lg", "d-flex", "align-items-center", "gap-1"], ["styleClass", "form-check-input", "inputId", "checkActivas", "formControlName", "VerSoloActivas", "trueValue", "S", "falseValue", "N", 3, "onChange"], ["for", "checkEstados", 1, "form-check-label", "text-muted", "align-self-center"], ["ngbTooltip", "Solamente se veran configuraciones activas como disponibles", 1, "bx", "bx-info-circle", "font-size-20"], [1, "row", "mx-2"], [1, "col-lg-12", "p-2"], ["sourceHeader", "Configuraciones disponibles", "sourceFilterPlaceholder", "Buscar por nombre", "emptymessagesource", "No hay configuraciones disponibles", "emptymessagetarget", "No hay configuraciones asignadas", "targetFilterPlaceholder", "Buscar por nombre", "breakpoint", "1200px", "styleClass", "pick-list", 3, "source", "showSourceControls", "sourceStyle", "target", "showTargetControls", "targetStyle", "responsive", "dragdrop", "disabled", "onMoveToTarget", "onMoveAllToTarget", "onMoveToSource", "onMoveAllToSource"], ["pTemplate", "targetHeader"], ["pTemplate", "item", 3, "onscroll"], ["pTemplate", "emptymessagesource"], ["pTemplate", "emptymessagetarget"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["campoObligatorio", "", 1, "form-label"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "valid-feedback"], [1, "invalid-feedback"], [1, "card", "bg-white", "m-1"], [1, "card-body", 2, "min-height", "30px"], ["class", "float-end", 4, "ngIf"], [1, "d-flex", "flex-column"], [1, "font-size-12", "text-wrap", "pb-1", "pe-2"], [3, "pTooltip", 4, "ngIf"], [1, "font-size-12"], [1, "text-muted", "font-size-10"], [1, "mdi", "mdi-calendar-blank"], ["Style", "background:#34c38f", "Class", "badge pl-2 font-size-10"], [1, "float-end"], [1, "btn", "btn-primary", "btn-sm", 3, "click"], [1, "mdi", "mdi-pencil", "font-size-12"], [3, "pTooltip"], [1, "bx", "bx-info-circle", "font-size-16"], ["Style", "background:#ff6842", "Class", "badge pl-2 font-size-10"], [1, "h-100", "d-flex", "align-items-center", "justify-content-center"], ["class", "text-muted text-wrap"], [1, "text-muted", "text-wrap"], [1, "text-muted"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function ConfiguracionReceptorEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerStart"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](4, " Carga de configuraciones de notificaciones por receptores ");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](5, ConfiguracionReceptorEditComponent_ng_container_5_Template, 1, 0, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](6, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerStart"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](8, "form", 5)(9, "div", 6)(10, "div", 7)(11, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](12, "Tipo receptor");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](13, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](14, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](15, ConfiguracionReceptorEditComponent_label_15_Template, 2, 0, "label", 11)(16, ConfiguracionReceptorEditComponent_label_16_Template, 2, 0, "label", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](17, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](18, "input", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](19, ConfiguracionReceptorEditComponent_ng_container_19_Template, 4, 1, "ng-container", 3)(20, ConfiguracionReceptorEditComponent_div_20_Template, 2, 0, "div", 15)(21, ConfiguracionReceptorEditComponent_div_21_Template, 2, 0, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](22, "div", 17)(23, "div", 18)(24, "p-inputSwitch", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("onChange", function ConfiguracionReceptorEditComponent_Template_p_inputSwitch_onChange_24_listener() {
          return ctx.recargarTodo();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](25, "label", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](26, "Solo Activas");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelement"](27, "i", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](28, "div", 22)(29, "div", 23)(30, "p-pickList", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("onMoveToTarget", function ConfiguracionReceptorEditComponent_Template_p_pickList_onMoveToTarget_30_listener($event) {
          return ctx.addToTarget($event);
        })("onMoveAllToTarget", function ConfiguracionReceptorEditComponent_Template_p_pickList_onMoveAllToTarget_30_listener($event) {
          return ctx.addToTarget($event);
        })("onMoveToSource", function ConfiguracionReceptorEditComponent_Template_p_pickList_onMoveToSource_30_listener($event) {
          return ctx.deleteFromTarget($event);
        })("onMoveAllToSource", function ConfiguracionReceptorEditComponent_Template_p_pickList_onMoveAllToSource_30_listener($event) {
          return ctx.deleteAllFromTarget($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](31, ConfiguracionReceptorEditComponent_ng_template_31_Template, 3, 0, "ng-template", 25)(32, ConfiguracionReceptorEditComponent_ng_template_32_Template, 18, 8, "ng-template", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("onscroll", function ConfiguracionReceptorEditComponent_Template_ng_template_onscroll_32_listener($event) {
          return ctx.test($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](33, ConfiguracionReceptorEditComponent_ng_template_33_Template, 2, 0, "ng-template", 27)(34, ConfiguracionReceptorEditComponent_ng_template_34_Template, 3, 1, "ng-template", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](35, "div", 29)(36, "button", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function ConfiguracionReceptorEditComponent_Template_button_click_36_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](37, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerStart"](38);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementStart"](39, "button", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵlistener"]("click", function ConfiguracionReceptorEditComponent_Template_button_click_39_listener() {
          return ctx.save();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](40, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtext"](41, " Guardar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵtemplate"](42, ConfiguracionReceptorEditComponent_i_42_Template, 1, 0, "i", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipe"](43, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.receptores.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", !ctx.esEdicion);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.esEdicion);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("Registros"))("is-valid", ctx.vh.isControlValid("Registros"));
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", !ctx.esEdicion);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("Registros"));
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "Registros"));
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("source", ctx.configuracionesDisp)("showSourceControls", false)("sourceStyle", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction0"](26, _c0))("target", ctx.configuracionesAsignadas)("showTargetControls", false)("targetStyle", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpureFunction0"](27, _c0))("responsive", true)("dragdrop", true)("disabled", ctx.getIdReceptor() === "");
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind1"](40, 22, ctx.notificacionConfigReceptorService.isLoading$));
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵpipeBind1"](43, 24, ctx.notificacionConfigReceptorService.isLoading$));
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_22__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_23__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_24__.Tooltip, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_16__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_18__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_18__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgControlStatusGroup, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_25__.InputSwitch, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.NgbTooltip, primeng_picklist__WEBPACK_IMPORTED_MODULE_26__.PickList, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_23__.AsyncPipe],
    styles: [".back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}"]
  });
}

/***/ }),

/***/ 49721:
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/configuracion-receptor/configuracion-receptor.component.ts ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionReceptorComponent: () => (/* binding */ ConfiguracionReceptorComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_pages_notificaciones_configuracion_receptor_configuracion_receptor_edit_configuracion_receptor_edit_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/pages/notificaciones/configuracion-receptor/configuracion-receptor-edit/configuracion-receptor-edit.component */ 64562);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/notificaciones/notifTipoReceptor.service */ 63438);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfigReceptor.service */ 27846);
/* harmony import */ var src_app_core_services_notificaciones_notificacionTipo_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionTipo.service */ 12189);
/* harmony import */ var src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionCanal.service */ 94260);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../shared/ui/select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);































function ConfiguracionReceptorComponent_ng_template_3_Template(rf, ctx) {}
function ConfiguracionReceptorComponent_div_4_ng_template_3_Template(rf, ctx) {}
function ConfiguracionReceptorComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 37)(1, "div", 38)(2, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](3, ConfiguracionReceptorComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵreference"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngTemplateOutlet", _r7);
  }
}
function ConfiguracionReceptorComponent_span_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "span", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate"](ctx_r2.itemsSeleccionados.length);
  }
}
function ConfiguracionReceptorComponent_span_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate"](ctx_r3.itemsSeleccionados.length);
  }
}
function ConfiguracionReceptorComponent_div_49_a_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_div_49_a_3_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r10.borrarCodigo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorComponent_div_49_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 42)(1, "div", 43)(2, "input", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("keyup.enter", function ConfiguracionReceptorComponent_div_49_Template_input_keyup_enter_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r12.buscarPorCodigo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](3, ConfiguracionReceptorComponent_div_49_a_3_Template, 2, 0, "a", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](4, "a", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_div_49_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r13);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r14.buscarPorCodigo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](5, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpropertyInterpolate1"]("placeholder", "Buscar por ", ctx_r4.obtenerTituloBusquedaPorReceptor("codigo"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("mask", ctx_r4.obtenerTituloBusquedaPorReceptor("codigo") == "c\u00F3digo" ? "0*" : "")("maxlength", ctx_r4.obtenerTituloBusquedaPorReceptor("codigo") == "c\u00F3digo" ? 6 : 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx_r4.busquedaCodigo());
  }
}
function ConfiguracionReceptorComponent_div_50_a_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_div_50_a_3_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r16.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function ConfiguracionReceptorComponent_div_50_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 42)(1, "div", 50)(2, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("keyup.enter", function ConfiguracionReceptorComponent_div_50_Template_input_keyup_enter_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r19);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r18.buscarPorNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](3, ConfiguracionReceptorComponent_div_50_a_3_Template, 2, 0, "a", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](4, "a", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_div_50_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r19);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r20.buscarPorNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](5, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpropertyInterpolate1"]("placeholder", "Buscar por ", ctx_r5.obtenerTituloBusquedaPorReceptor("nombre"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx_r5.busquedaNombre());
  }
}
function ConfiguracionReceptorComponent_ng_template_54_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "option", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipos_r22 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", tipos_r22.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", tipos_r22.Nombre, " ");
  }
}
const _c0 = () => [0];
function ConfiguracionReceptorComponent_ng_template_54_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 27)(1, "p-accordion", 52)(2, "p-accordionTab", 53)(3, "div")(4, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5, "Tipo receptor");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](6, "select", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](7, ConfiguracionReceptorComponent_ng_template_54_option_7_Template, 2, 2, "option", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](8, "hr", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](9, "div")(10, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](11, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](12, "app-select-multiple", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function ConfiguracionReceptorComponent_ng_template_54_Template_app_select_multiple_emitSelected_12_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r23.filterForm.controls.IdsNotifTipo.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](13, "hr", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](14, "div")(15, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](16, "Canales");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](17, "app-select-multiple", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function ConfiguracionReceptorComponent_ng_template_54_Template_app_select_multiple_emitSelected_17_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r24);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r25.filterForm.controls.IdsNotifCanal.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](18, "p-accordionTab", 59)(19, "div", 60)(20, "p", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](21, "Configuraci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](22, "label", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](23, "Notificaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](24, "app-select-multiple", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function ConfiguracionReceptorComponent_ng_template_54_Template_app_select_multiple_emitSelected_24_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r24);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r26.filterForm.controls.IdsNotifConfNotif.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](25, "div", 57)(26, "app-checkbox", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitAction", function ConfiguracionReceptorComponent_ng_template_54_Template_app_checkbox_emitAction_26_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r24);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r27.setMostrarNoConfig());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx_r6.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpureFunction0"](14, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngForOf", ctx_r6.tiposReceptor);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r6.filterForm.controls.IdsNotifTipo.value)("items", ctx_r6.tiposNotif)("readonly", ctx_r6.getMostrarNoConfig());
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r6.filterForm.controls.IdsNotifCanal.value)("items", ctx_r6.notifCanales)("readonly", ctx_r6.getMostrarNoConfig());
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r6.filterForm.controls.IdsNotifConfNotif.value)("items", ctx_r6.NotifConfNotifs);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", ctx_r6.getMostrarNoConfig())("disabled", ctx_r6.disabledMostrarNoConfig());
  }
}
const _c1 = () => [];
const MSJ_EXITO_INSERCION = 'Se insertó correctamente una configuración de notificación a un receptor.';
const MSJ_EXITO_EDICION = 'Se cargo correctamente las modificaciones a las configuraciones del receptor seleccionado.';
const MSJ_EXITO_EDICION_MULT = 'Se cargo correctamente las modificaciones a las configuraciones de los receptores seleccionados.';
const MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente la configuración seleccionada.';
class ConfiguracionReceptorComponent {
  constructor(fb, toast, modalService, alert, exportacion, sf, authService, tourService, notifTipoReceptorServices, notificacionConfigReceptorService, notificacionTipoServices, notificacionCanalServices, notificacionConfiguracionServices) {
    this.fb = fb;
    this.toast = toast;
    this.modalService = modalService;
    this.alert = alert;
    this.exportacion = exportacion;
    this.sf = sf;
    this.authService = authService;
    this.tourService = tourService;
    this.notifTipoReceptorServices = notifTipoReceptorServices;
    this.notificacionConfigReceptorService = notificacionConfigReceptorService;
    this.notificacionTipoServices = notificacionTipoServices;
    this.notificacionCanalServices = notificacionCanalServices;
    this.notificacionConfiguracionServices = notificacionConfiguracionServices;
    this.configuracionesReceptor = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.unsubscribe = [];
    this.itemsSeleccionados = [];
    //filtros
    this.tiposReceptor = [];
    this.tiposNotif = [];
    this.notifCanales = [];
    this.NotifConfNotifs = [];
    this.mostrarNoConfigFilter = false;
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
    this.ReceptorHeader = [];
    this.expandHeader = {
      FirstKey: 'Datos',
      FirstExpand: [{
        Nombre: 'Configuración',
        Key: 'Configuracion.Descripcion',
        Order: true
      }, {
        Nombre: 'Notif.Tipo',
        Type: 'template',
        Data: {
          Template: '(a) b',
          ArrayKeys: {
            a: 'Configuracion.NotificacionTipo.Codigo',
            b: 'Configuracion.NotificacionTipo.Nombre'
          }
        }
        //Order: true
      }, {
        Nombre: 'Dominio Notif.Tipo',
        Key: 'Configuracion.NotificacionTipo.NotifDominio.Nombre',
        Order: true
      }, {
        Nombre: 'Canal',
        Key: 'Configuracion.NotificacionCanal.Nombre',
        Type: 'badge',
        Color: '#79857c',
        Order: true
      }, {
        Nombre: 'Activo',
        Key: 'Configuracion.Activo',
        Order: true,
        Type: 'checkbox',
        TrueValue: 'S',
        FalseValue: 'N',
        Disabled: false
      }, {
        Nombre: 'Fecha Inicio',
        Key: 'Configuracion.FechaDesde',
        Order: true
      }, {
        Nombre: 'Periodicidad',
        Key: 'CronPeriodicidad',
        Order: true
      }, {
        Nombre: 'Ultima Notif.',
        Key: 'FechaUltNotif',
        Order: true
      }, {
        Nombre: 'Ultimo Intento',
        Key: 'FechaUltIntentoNotif',
        Order: true
      }, {
        Nombre: 'Observación',
        Key: 'Observacion',
        Order: true
      }]
    };
    this.searchForm = this.fb.group({
      Codigo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_19__.Validators.maxLength(350)],
      Nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_19__.Validators.maxLength(350)]
    });
    this.filterForm = this.fb.group({
      idNotifTipoReceptor: [-1],
      IdsReceptor: [''],
      IdsNotifTipo: [''],
      mostrarNoConfig: [false],
      IdsNotifConfNotif: [''],
      IdsNotifCanal: ['']
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    //permisos
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTiposReceptor();
    this.cargarCanales();
    //this.cargarTipoNotif()
    this.cargarNotifConfNotif();
    this.controlarTour();
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesNOTIF.NOTIF_CONFIG_RECEPTOR_STATES;
    //busqueda
    this.searchForm.controls.Codigo.setValue(this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_B_CODIGO));
    this.buscarCodigo = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_B_CODIGO);
    this.searchForm.controls.Nombre.setValue(this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_B_NOMBRE));
    this.buscarNombre = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_B_NOMBRE);
    //filtros
    this.filterForm.controls.idNotifTipoReceptor.setValue(this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR));
    this.notifTipoReceptorFilter = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR);
    this.tipoNotifFilter = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSTIPONOTIF);
    if (this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSTIPONOTIF) != '') {
      this.filterForm.controls.IdsNotifTipo.setValue(this.tipoNotifFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifTipo.setValue([], {
        emitEvent: false
      });
    }
    this.mostrarNoConfigFilter = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_MOSTRARNOCFG) == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO;
    this.filterForm.controls.mostrarNoConfig.setValue(this.mostrarNoConfigFilter);
    this.IdsNotifConfNotifFilter = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_NOTIFCONFNOTIF);
    if (this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_NOTIFCONFNOTIF) != '') {
      this.filterForm.controls.IdsNotifConfNotif.setValue(this.IdsNotifConfNotifFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifConfNotif.setValue([], {
        emitEvent: false
      });
    }
    this.notifCanalFilter = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSCANALES);
    if (this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSCANALES) != '') {
      this.filterForm.controls.IdsNotifCanal.setValue(this.notifCanalFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifCanal.setValue([], {
        emitEvent: false
      });
    }
    //listado
    this.page = Number(this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_SENTIDO);
  }
  /**
   * Metodo observable de cambio de filtro (OPCIONAL)
   */
  configuracionFilter() {
    this.unsubscribe.push(this.filterForm.controls.idNotifTipoReceptor.valueChanges.subscribe(idNotif => {
      this.itemsSeleccionados = [];
      if (this.filtro || this.filtroMobile) {
        this.notifTipoReceptorFilter = idNotif;
        // MC SINWEB-615 Cambios para usar el arreglo de tipos de notificaciones
        // que viene con cada tipo de receptor
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE) {
          this.tiposNotif = [...this.tiposReceptor[this.indexCliente].NotifTiposXReceptores];
        }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
          this.tiposNotif = [...this.tiposReceptor[this.indexProveedor].NotifTiposXReceptores];
        }
        //SP SINWEB-810 nuevos receptores
        // if (this.notifTipoReceptorFilter == constantesNotif.TIPO_RECEPTOR_USUARIO_WEB) {
        //   this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioWeb].NotifTiposXReceptores];
        // }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU) {
          this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioWebVendu].NotifTiposXReceptores];
        }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML) {
          this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioWebML].NotifTiposXReceptores];
        }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL) {
          this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioSinergial].NotifTiposXReceptores];
        }
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifTipo.valueChanges.subscribe(tipoNotif => {
      if (this.filtro || this.filtroMobile) {
        this.tipoNotifFilter = tipoNotif.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifCanal.valueChanges.subscribe(canales => {
      if (this.filtro || this.filtroMobile) {
        this.notifCanalFilter = canales.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifConfNotif.valueChanges.subscribe(tipoConfig => {
      if (this.filtro || this.filtroMobile) {
        this.IdsNotifConfNotifFilter = tipoConfig.join(',');
        if (this.IdsNotifConfNotifFilter.split(',').length !== 1 || this.IdsNotifConfNotifFilter == '') {
          if (this.mostrarNoConfigFilter) {
            this.itemsSeleccionados = [];
          }
          this.filterForm.controls.mostrarNoConfig.setValue(false);
          this.mostrarNoConfigFilter = false;
        }
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Limpieza de filtros , busquedas , estados
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  /**
   * metodo llamado pro clean estate que reinicia los estados y filtros
   */
  resetComp() {
    this.unsubscribe.forEach(sub => {
      sub.unsubscribe();
    });
    this.page = 1;
    this.previousPage = 1;
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTiposReceptor();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  /**
   * Metodo de recarga de pagina
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * Metodo que cambia el tamaño de pagina y actualiza la busqueda
   * @param {any} event Tamaño de pagina seleccionado
   */
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  /**
   * Metodo de busqueda del crud
   * @param {any} datos Parametros de busqueda
   */
  onSearch(datos) {
    if (!this.mostrarNoConfigFilter) {
      const susc = this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(datos, this.getTipoReceptor()).subscribe(data => {
        this.configuracionesReceptor = data.Data.map(x => {
          return {
            ...x.Clave,
            Datos: x.Datos.map(data => {
              return {
                Configuracion: data.Configuracion,
                CronPeriodicidad: !data.CronPeriodicidad ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4___default().toString(data.CronPeriodicidad, {
                  locale: 'es'
                }),
                FechaUltNotif: data.FechaUltNotif,
                FechaUltIntentoNotif: data.FechaUltIntento,
                Id: data.Id,
                Observacion: data.Observacion
              };
            })
          };
        });
        this.ReceptorHeader = this.cargarHeader(this.getTipoReceptor()); //this.cargarHeader(this.configuracionesReceptor);
        if (data.Data != undefined) {
          this.totalItems = data.TotalRecords;
        } else {
          this.totalItems = 0;
        }
      });
      susc.unsubscribe;
    } else {
      if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
        datos.Estados = 'A';
      } else {
        datos.Estados = 'N';
      }
      const susc = this.notificacionConfigReceptorService.getNoConfigurados(datos, this.getTipoReceptor(), Number(this.getConfiguracion())).subscribe(data => {
        this.configuracionesReceptor = data.Data;
        this.ReceptorHeader = this.cargarHeader(this.getTipoReceptor()); //this.cargarHeader(this.configuracionesReceptor);
        if (data.Data != undefined) {
          this.totalItems = data.TotalRecords;
        } else {
          this.totalItems = 0;
        }
      });
      susc.unsubscribe;
    }
  }
  cargarHeader(tipoReceptor) {
    switch (+tipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.clienteRecepHeader;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.proveedorRecepHeader;
      //SP SINWEB-810 nuevos receptores
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.usuarioWebRecepHeader;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.usuarioSinergialRecepHeader;
      default:
        return [];
    }
  }
  // cargarHeader(data): any[] {
  //   let header = [];
  //   let WCol = [[100],[20,80],[20,40,40],[20,25,25,25]];
  //   let orden = [[2],[3,2],[3,2,1]];
  //   let claves = data.length > 0 ?Object.keys(data[0]) : [];
  //   claves.splice(3);
  //   claves.forEach((tipo) => {
  //     if (tipo !== 'Id' && tipo !== 'Datos') {
  //       header.push({ Nombre: tipo, Key: tipo, Order: orden[claves.length-2][0], WCol: WCol[claves.length-2][0]+'%' });
  //       orden[claves.length-2].splice(0,1);
  //       WCol[claves.length-2].splice(0,1);
  //     }
  //   });
  //   return header;
  // }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    datos.IdsEmpresa = this.authService.usuario.IdEmpresa;
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML) {
      this.mostrarNoConfigFilter ? datos.IdPlataforma = 1 : datos.NotifTipoParametros = '"id_plataforma": "1"';
    }
    if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU) {
      this.mostrarNoConfigFilter ? datos.IdPlataforma = 2 : datos.NotifTipoParametros = '"id_plataforma": "2"';
    }
    //busqueda
    if (this.buscarCodigo != undefined && this.buscarCodigo != '') {
      datos.Codigo = this.buscarCodigo;
    }
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.Nombre = this.buscarNombre;
    }
    //filtros
    datos.notifTipoReceptorSearch = this.notifTipoReceptorFilter;
    if (this.tipoNotifFilter != undefined && this.tipoNotifFilter != '') {
      datos.IdsNotifTipo = this.tipoNotifFilter;
    }
    if (this.notifCanalFilter != undefined && this.notifCanalFilter != '') {
      datos.IdsNotifCanal = this.notifCanalFilter;
    }
    if (this.IdsNotifConfNotifFilter != undefined && this.IdsNotifConfNotifFilter != '') {
      datos.IdsNotifConfNotif = this.IdsNotifConfNotifFilter;
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * Metodo que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos a guardar en cookies
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_B_CODIGO, !datos.Codigo ? this.sf.states.NOTIF_CONFIG_RECEPTOR_B_CODIGO.default : datos.Codigo);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_B_NOMBRE, !datos.Nombre ? this.sf.states.NOTIF_CONFIG_RECEPTOR_B_NOMBRE.default : datos.Nombre);
    //filtros
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR, !datos.notifTipoReceptorSearch ? this.sf.states.NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR.default : datos.notifTipoReceptorSearch);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSTIPONOTIF, !datos.IdsNotifTipo ? this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSTIPONOTIF.default : datos.IdsNotifTipo);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSCANALES, !datos.IdsNotifCanal ? this.sf.states.NOTIF_CONFIG_RECEPTOR_F_IDSCANALES.default : datos.IdsNotifCanal);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_NOTIFCONFNOTIF, !datos.IdsNotifConfNotif ? this.sf.states.NOTIF_CONFIG_RECEPTOR_F_NOTIFCONFNOTIF.default : datos.IdsNotifConfNotif);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_MOSTRARNOCFG, this.mostrarNoConfigFilter ? src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO : src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO);
    //listado
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.NOTIF_CONFIG_RECEPTOR_L_SENTIDO, datos.SentidoOrden);
  }
  /**
   * Metodo para cambio de pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  nuevo() {}
  getTipoReceptor() {
    switch (+this.notifTipoReceptorFilter) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        return src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB;
      default:
        return +this.notifTipoReceptorFilter;
    }
    //return this.notifTipoReceptorFilter;
  }
  getTipoReceptorNombre() {
    return this.tiposReceptor.find(x => x.Id == this.notifTipoReceptorFilter)?.Nombre;
  }
  cargarTiposReceptor() {
    const datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'asc',
      IncluirTiposNotificaciones: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO
    };
    const susc = this.notifTipoReceptorServices.fetch(datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.map)(data => {
      let indiceWeb = lodash__WEBPACK_IMPORTED_MODULE_5__.findIndex(data.Data, x => x.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB);
      if (indiceWeb !== -1) {
        const objAux = [{
          Id: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU,
          Nombre: 'Usuario Web - Vendú',
          NotifTiposXReceptores: [...data.Data[indiceWeb].NotifTiposXReceptores]
        }, {
          Id: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML,
          Nombre: 'Usuario Web - Mercado Libre',
          NotifTiposXReceptores: [...data.Data[indiceWeb].NotifTiposXReceptores]
        }];
        data.Data.splice(indiceWeb, 1, ...objAux);
      }
      return data.Data;
    })).subscribe(data => {
      this.tiposReceptor = data;
      if (this.tiposReceptor.length > 0) {
        this.tiposReceptor = this.tiposReceptor.filter(x => this.isValidReceptor(x.Id));
        this.notifTipoReceptorFilter = this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR) == 0 ? this.tiposReceptor[0].Id : this.sf.getState(this.sf.states.NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR);
        // MC SINWEB-615 Cambios para usar el arreglo de tipos de notificaciones
        // que viene con cada tipo de receptor
        this.indexCliente = this.tiposReceptor.findIndex(x => x.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE);
        this.indexProveedor = this.tiposReceptor.findIndex(x => x.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR);
        //SP SINWEB-810 asignacion de indices para nuevos receptores
        //this.indexUsuarioWeb = this.tiposReceptor.findIndex(x => x.Id == constantesNotif.TIPO_RECEPTOR_USUARIO_WEB);
        this.indexUsuarioWebVendu = this.tiposReceptor.findIndex(x => x.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU);
        this.indexUsuarioWebML = this.tiposReceptor.findIndex(x => x.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML);
        this.indexUsuarioSinergial = this.tiposReceptor.findIndex(x => x.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL);
        // Se remapea NotifTiposXReceptores porque el Id principal de cada objeto no es el Id de NotifTipo
        this.tiposReceptor[this.indexCliente].NotifTiposXReceptores = this.tiposReceptor[this.indexCliente].NotifTiposXReceptores.map(x => x.NotifTipo);
        this.tiposReceptor[this.indexProveedor].NotifTiposXReceptores = this.tiposReceptor[this.indexProveedor].NotifTiposXReceptores.map(x => x.NotifTipo);
        // this.tiposReceptor[this.indexUsuarioWeb].NotifTiposXReceptores =
        //   this.tiposReceptor[this.indexUsuarioWeb].NotifTiposXReceptores.map(x => x.NotifTipo);
        this.tiposReceptor[this.indexUsuarioWebVendu].NotifTiposXReceptores = this.tiposReceptor[this.indexUsuarioWebVendu].NotifTiposXReceptores.map(x => x.NotifTipo);
        this.tiposReceptor[this.indexUsuarioWebML].NotifTiposXReceptores = this.tiposReceptor[this.indexUsuarioWebML].NotifTiposXReceptores.map(x => x.NotifTipo);
        this.tiposReceptor[this.indexUsuarioSinergial].NotifTiposXReceptores = this.tiposReceptor[this.indexUsuarioSinergial].NotifTiposXReceptores.map(x => x.NotifTipo);
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE) {
          this.tiposNotif = [...this.tiposReceptor[this.indexCliente].NotifTiposXReceptores];
        }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
          this.tiposNotif = [...this.tiposReceptor[this.indexProveedor].NotifTiposXReceptores];
        }
        //SP SINWEB-810 mapeo de  nuevos receptores
        // if (this.notifTipoReceptorFilter == constantesNotif.TIPO_RECEPTOR_USUARIO_WEB) {
        //   this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioWeb].NotifTiposXReceptores];
        // }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU) {
          this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioWebVendu].NotifTiposXReceptores];
        }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML) {
          this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioWebML].NotifTiposXReceptores];
        }
        if (this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL) {
          this.tiposNotif = [...this.tiposReceptor[this.indexUsuarioSinergial].NotifTiposXReceptores];
        }
        this.filterForm.controls.idNotifTipoReceptor.setValue(this.notifTipoReceptorFilter);
      }
    });
    this.unsubscribe.push(susc);
  }
  isValidReceptor(id) {
    return id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR ||
    //|| id == constantesNotif.TIPO_RECEPTOR_USUARIO_WEB
    id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU || id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML || id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL;
  }
  cargarCanales() {
    const datos = {
      PageNumber: -1,
      Orden: 2
    };
    const susc = this.notificacionCanalServices.fetch(datos).subscribe(data => {
      this.notifCanales = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  cargarTipoNotif() {
    const datos = {
      PageNumber: -1,
      Orden: 3,
      IdsEmpresas: this.authService.usuario.IdEmpresa
    };
    const susc = this.notificacionTipoServices.fetch(datos).subscribe(data => {
      this.tiposNotif = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  cargarNotifConfNotif() {
    const datos = {
      PageNumber: -1,
      Orden: 9,
      Activo: 'S',
      IdsEmpresas: this.authService.usuario.IdEmpresa
    };
    const susc = this.notificacionConfiguracionServices.fetch(datos).subscribe(data => {
      this.NotifConfNotifs = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaCodigo() {
    return this.buscarCodigo != undefined && this.buscarCodigo != '';
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarCodigo() {
    this.searchForm.get('Codigo').reset('');
    this.page = 1;
    this.buscarCodigo = '';
    this.loadPage();
  }
  getCodigo() {
    return this.searchForm.controls.Codigo.value;
  }
  buscarPorCodigo() {
    this.page = 1;
    this.buscarCodigo = this.getCodigo();
    this.loadPage();
  }
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  borrarNombre() {
    this.searchForm.get('Nombre').reset('');
    this.page = 1;
    this.buscarNombre = '';
    this.loadPage();
  }
  getNombre() {
    return this.searchForm.controls.Nombre.value;
  }
  buscarPorNombre() {
    this.page = 1;
    this.buscarNombre = this.getNombre();
    this.loadPage();
  }
  getMostrarNoConfig() {
    return this.filterForm.controls.mostrarNoConfig.value;
  }
  setMostrarNoConfig() {
    this.filterForm.controls.mostrarNoConfig.setValue(!this.getMostrarNoConfig());
    this.mostrarNoConfigFilter = this.getMostrarNoConfig();
    this.itemsSeleccionados = [];
    if (this.mostrarNoConfigFilter) {
      this.filterForm.controls.IdsNotifTipo.setValue([], {
        emitEvent: false
      });
      this.tipoNotifFilter = '';
      this.filterForm.controls.IdsNotifCanal.setValue([], {
        emitEvent: false
      });
      this.notifCanalFilter = '';
    }
    this.page = 1;
    this.loadPage();
  }
  getConfiguracion() {
    return this.filterForm.controls.IdsNotifConfNotif.value;
  }
  disabledMostrarNoConfig() {
    return this.IdsNotifConfNotifFilter.split(',').length !== 1 || this.IdsNotifConfNotifFilter == '';
  }
  permitirAdministrar() {
    //SP SINWEB-810 se agrega logica para nuevos tipos de receptores
    return this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR ||
    //|| this.notifTipoReceptorFilter == constantesNotif.TIPO_RECEPTOR_USUARIO_WEB
    this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU || this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML || this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL;
  }
  editar() {
    const modalRef = this.modalService.open(src_app_pages_notificaciones_configuracion_receptor_configuracion_receptor_edit_configuracion_receptor_edit_component__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionReceptorEditComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.receptoresId = this.itemsSeleccionados.length > 0 ? this.itemsSeleccionados.map(x => x.Id).join(',') : [];
    modalRef.componentInstance.receptores = this.itemsSeleccionados.length > 0 ? this.obtenerItemsNombres(this.itemsSeleccionados, +this.notifTipoReceptorFilter, 'multiple') : '';
    modalRef.componentInstance.receptoresObj = this.itemsSeleccionados.length > 0 ? this.itemsSeleccionados : [];
    modalRef.componentInstance.dominio = this.notifTipoReceptorFilter;
    modalRef.componentInstance.dominioNombre = this.getTipoReceptorNombre();
    modalRef.result.then(result => {
      this.itemsSeleccionados = [];
      this.loadPage();
      this.alert.showBasicAlert(result.cantReceptores == 1 ? MSJ_EXITO_EDICION : MSJ_EXITO_EDICION_MULT, '', 'success');
    }, () => {
      this.loadPage();
    });
  }
  obtenerItemsNombres(items, tipoReceptor, type = 'simple') {
    switch (tipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE:
        return type == 'simple' ? '(' + items.Codigo + ')' + items.Nombre : this.itemsSeleccionados.map(x => '(' + x.Codigo + ')' + x.Nombre).join(',');
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR:
        return type == 'simple' ? '(' + items.Codigo + ')' + items.Nombre : this.itemsSeleccionados.map(x => '(' + x.Codigo + ')' + x.Nombre).join(',');
      //SP SINWEB-810 nuevos receptores
      // case constantesNotif.TIPO_RECEPTOR_USUARIO_WEB:
      //   return type == 'simple'? "("+items.Codigo+")"+items.Nombre : this.itemsSeleccionados.map(x => '('+x.Codigo+')'+x.Nombre).join(',')
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
        return type == 'simple' ? items.Usuario : this.itemsSeleccionados.map(x => x.Usuario).join(',');
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML:
        return type == 'simple' ? items.Usuario : this.itemsSeleccionados.map(x => x.Usuario).join(',');
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        return type == 'simple' ? items.Nombre : this.itemsSeleccionados.map(x => x.Nombre).join(',');
      default:
        return '';
    }
    return this.itemsSeleccionados.map(x => '(' + x.Codigo + ')' + x.Nombre).join(',');
  }
  /**
   * Realiza llamada a la api y exporta a excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    // MC SINWEB-444 Se agrega lógica de diferenciación según el filtro Mostrar no configurados
    if (!this.mostrarNoConfigFilter) {
      //SP se arman las columnas y keys para buscar datos y armar el excel
      const {
        keys,
        columns
      } = this.getExcelConf(this.getTipoReceptor());
      // const keys = ['Codigo','Nombre','ConfigId','ConfigCanal','ConfigFechaDesde','Periodicidad','ConfigActivo','FechaUltNotif','FechaUltIntNotif','Observacion'];
      // const columns = ['Codigo','Nombre','Config Id','Canal','Fecha Desde','Periodicidad','Activo','Ultima Notif.','Ultimo Intento','Observación'];
      this.alert.showLoadingAlert('Exportando Configuraciones por Receptor', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
      //SPllamada al recurso correspondiente de la api
      this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(datos, this.getTipoReceptor()).subscribe(data => {
        this.alert.closeLoadingAlert();
        this.alert.showBasicAlert('Configuraciones por Receptor exportadas', 'Archivo ' + extension + ' generado', 'success');
        // MC SINWEB-378 Exportación a Pdf
        if (extension === 'Excel') {
          let result = lodash__WEBPACK_IMPORTED_MODULE_5__.reduce(data.Data, (acumulador, objeto) => {
            return acumulador.concat(lodash__WEBPACK_IMPORTED_MODULE_5__.map(objeto.Datos, dato => {
              let obj = {
                Id: objeto.Clave.Id,
                //Codigo:objeto.Clave.Codigo,
                //Nombre:objeto.Clave.Nombre ,
                ConfigId: dato.Configuracion.Id,
                ConfigCanal: dato.Configuracion.NotificacionCanal.Nombre,
                ConfigFechaDesde: dato.Configuracion.FechaDesde,
                Periodicidad: dato.CronPeriodicidad ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4___default().toString(dato.CronPeriodicidad, {
                  locale: 'es'
                }) : 'Instantánea',
                ConfigActivo: dato.Configuracion.Activo,
                FechaUltNotif: dato.FechaUltNotif,
                FechaUltIntNotif: dato.FechaUltIntentoNotif,
                Observacion: dato.Observacion
              };
              if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB) {
                obj.Usuario = objeto.Clave.Usuario;
                obj.Email = objeto.Clave.Email;
              }
              if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
                obj.Codigo = objeto.Clave.Codigo;
                obj.Nombre = objeto.Clave.Nombre;
              }
              if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL) {
                obj.Nombre = objeto.Clave.Nombre;
              }
              return obj;
            }));
          }, []);
          this.exportacion.exportToExcel(result, columns, keys, 'Listado de Configuraciones por Receptor');
        } else {
          let keys2 = [];
          let columns2 = [];
          if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB) {
            keys2 = ['Receptor', 'Email', 'Configuracion'];
            columns2 = ['Receptor', 'Email', 'Configuración'];
          }
          if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
            keys2 = ['Codigo', 'Receptor', 'Configuracion'];
            columns2 = ['Código', 'Receptor', 'Configuración'];
          }
          if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL) {
            keys2 = ['Receptor', 'Configuracion'];
            columns2 = ['Receptor', 'Configuracion'];
          }
          let result = lodash__WEBPACK_IMPORTED_MODULE_5__.reduce(data.Data, (acumulador, objeto) => {
            return acumulador.concat(lodash__WEBPACK_IMPORTED_MODULE_5__.map(objeto.Datos, dato => {
              let obj = {
                Id: objeto.Clave.Id,
                //Codigo:objeto.Clave.Codigo,
                //Receptor:objeto.Clave.Nombre ,
                Configuracion: 'Descripción: ' + dato.Configuracion.Descripcion + '\n' + 'Tipo Notif.: (' + dato.Configuracion.NotificacionTipo.Codigo + ') ' + dato.Configuracion.NotificacionTipo.Nombre + '\n' + 'Dominio Notif. Tipo: ' + dato.Configuracion.NotificacionTipo.NotifDominio.Nombre + '\n' + 'Canal: ' + dato.Configuracion.NotificacionCanal.Nombre + '\n' + 'Activo: ' + dato.Configuracion.Activo + '\n' + 'Fecha Inicio: ' + dato.Configuracion.FechaDesde + '\n' + 'Periodicidad: ' + (dato.CronPeriodicidad ? cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4___default().toString(dato.CronPeriodicidad, {
                  locale: 'es'
                }) : 'Instantánea') + '\n' + 'Última Notif.: ' + (dato.FechaUltNotif || '') + '\n' + 'Último Intento: ' + (dato.FechaUltIntento || '') + '\n' + 'Observación: ' + (dato.Observacion || '')
              };
              if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB) {
                obj.Receptor = objeto.Clave.Usuario;
                obj.Email = objeto.Clave.Email;
              }
              if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
                obj.Codigo = objeto.Clave.Codigo;
                obj.Receptor = objeto.Clave.Nombre;
              }
              if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL) {
                obj.Receptor = objeto.Clave.Nombre;
              }
              return obj;
            }));
          }, []);
          this.exportacion.exportToPdf(result, columns2, keys2, 'Listado de Configuraciones por Receptor', 7);
        }
      });
    } else {
      // MC SINWEB-444
      const {
        keys,
        columns
      } = this.getExcelConf(this.getTipoReceptor());
      // const keys = ['Codigo', 'Nombre', 'Email', 'NroDoc'];
      // const columns = ['Código', 'Nombre', 'Email', 'Nro. Doc.'];
      this.alert.showBasicAlert('Exportando Receptores no configurados', 'Generando archivo ' + extension, 'success');
      if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
        datos.Estados = 'A';
      } else {
        datos.Estados = 'N';
      }
      const susc = this.notificacionConfigReceptorService.getNoConfigurados(datos, this.getTipoReceptor(), Number(this.getConfiguracion())).subscribe(data => {
        if (data.Data) {
          const result = data.Data;
          // MC SINWEB-378 Exportación a Pdf
          if (extension === 'Excel') {
            this.exportacion.exportToExcel(result, columns, keys, 'Listado de Receptores no configurados');
          } else {
            this.exportacion.exportToPdf(result, columns, keys, 'Listado de Receptores no configurados', 7);
          }
        }
      });
    }
  }
  getExcelConf(tipoReceptor) {
    switch (tipoReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE:
        if (this.mostrarNoConfigFilter) {
          return {
            keys: ['Codigo', 'Nombre', 'Email', 'NroDoc'],
            columns: ['Código', 'Nombre', 'Email', 'Nro. Doc.']
          };
        } else {
          return {
            keys: ['Codigo', 'Nombre', 'ConfigId', 'ConfigCanal', 'ConfigFechaDesde', 'Periodicidad', 'ConfigActivo', 'FechaUltNotif', 'FechaUltIntNotif', 'Observacion'],
            columns: ['Codigo', 'Nombre', 'Config Id', 'Canal', 'Fecha Desde', 'Periodicidad', 'Activo', 'Ultima Notif.', 'Ultimo Intento', 'Observación']
          };
        }
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR:
        if (this.mostrarNoConfigFilter) {
          return {
            keys: ['Codigo', 'Nombre', 'Email', 'NroDoc'],
            columns: ['Código', 'Nombre', 'Email', 'Nro. Doc.']
          };
        } else {
          return {
            keys: ['Codigo', 'Nombre', 'ConfigId', 'ConfigCanal', 'ConfigFechaDesde', 'Periodicidad', 'ConfigActivo', 'FechaUltNotif', 'FechaUltIntNotif', 'Observacion'],
            columns: ['Codigo', 'Nombre', 'Config Id', 'Canal', 'Fecha Desde', 'Periodicidad', 'Activo', 'Ultima Notif.', 'Ultimo Intento', 'Observación']
          };
        }
      // case constantesNotif.TIPO_RECEPTOR_USUARIO_WEB_VENDU:
      //   if (this.mostrarNoConfigFilter){
      //     return  {
      //       keys: ['Usuario', 'Email'],
      //       columns: ['Usuario', 'Email']
      //     };
      //   }else{
      //     return {
      //       keys: ['Usuario','Email','ConfigId','ConfigCanal','ConfigFechaDesde','Periodicidad','ConfigActivo','FechaUltNotif','FechaUltIntNotif','Observacion'],
      //       columns: ['Usuario','Email','Config Id','Canal','Fecha Desde','Periodicidad','Activo','Ultima Notif.','Ultimo Intento','Observación']
      //     }
      //   }
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB:
        if (this.mostrarNoConfigFilter) {
          return {
            keys: ['Usuario', 'Email'],
            columns: ['Usuario', 'Email']
          };
        } else {
          return {
            keys: ['Usuario', 'Email', 'ConfigId', 'ConfigCanal', 'ConfigFechaDesde', 'Periodicidad', 'ConfigActivo', 'FechaUltNotif', 'FechaUltIntNotif', 'Observacion'],
            columns: ['Usuario', 'Email', 'Config Id', 'Canal', 'Fecha Desde', 'Periodicidad', 'Activo', 'Ultima Notif.', 'Ultimo Intento', 'Observación']
          };
        }
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        if (this.mostrarNoConfigFilter) {
          return {
            keys: ['Nombre'],
            columns: ['Nombre']
          };
        } else {
          return {
            keys: ['Nombre', 'ConfigId', 'ConfigCanal', 'ConfigFechaDesde', 'Periodicidad', 'ConfigActivo', 'FechaUltNotif', 'FechaUltIntNotif', 'Observacion'],
            columns: ['Nombre', 'Config Id', 'Canal', 'Fecha Desde', 'Periodicidad', 'Activo', 'Ultima Notif.', 'Ultimo Intento', 'Observación']
          };
        }
      default:
        return {
          keys: [],
          columns: []
        };
      //SP SINWEB-810 nuevos receptores
    }
  }
  /**
   * Metodo para  iniciar tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * Metodo para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de atributos
    fetch('./assets/tours/notificaciones/notificacion-configuracion-receptor.json').then(response => response.json()).then(tourAtributo => {
      this.tourSteps = tourAtributo;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this.unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'searchNombre.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  seleccionarRegistros($event) {
    if ($event.selectTodos) {
      if (!this.mostrarNoConfigFilter) {
        const susc = this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(this.cargarFiltros(-1, this.order, this.sentido), this.getTipoReceptor()).subscribe(data => {
          this.configuracionesReceptor = data.Data.map(x => {
            return {
              ...x.Clave,
              Datos: x.Datos.map(data => {
                return {
                  Configuracion: data.Configuracion,
                  CronPeriodicidad: !data.CronPeriodicidad ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_4___default().toString(data.CronPeriodicidad, {
                    locale: 'es'
                  }),
                  FechaUltNotif: data.FechaUltNotif,
                  FechaUltIntentoNotif: data.FechaUltIntento,
                  Id: data.Id,
                  Observacion: data.Observacion
                };
              })
            };
          });
          this.itemsSeleccionados = this.configuracionesReceptor;
        });
        susc.unsubscribe;
      } else {
        let datos = this.cargarFiltros(-1, this.order, this.sentido);
        if (this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || this.getTipoReceptor() == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR) {
          datos.Estados = 'A';
        } else {
          datos.Estados = 'N';
        }
        const susc = this.notificacionConfigReceptorService.getNoConfigurados(datos, this.getTipoReceptor(), Number(this.getConfiguracion())).subscribe(data => {
          this.itemsSeleccionados = data.Data;
        });
        susc.unsubscribe;
      }
    } else {
      this.itemsSeleccionados = $event.rows || [];
    }
  }
  //SP SINWEB-361 edicion de receptor
  editarReceptor($event) {
    const modalRef = this.modalService.open(src_app_pages_notificaciones_configuracion_receptor_configuracion_receptor_edit_configuracion_receptor_edit_component__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionReceptorEditComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.receptoresId = $event.registro.Id.toString();
    modalRef.componentInstance.receptores = this.obtenerItemsNombres($event.registro, +this.notifTipoReceptorFilter, 'simple'); //"("+$event.registro.Codigo+")"+$event.registro.Nombre;
    modalRef.componentInstance.dominio = this.notifTipoReceptorFilter;
    modalRef.componentInstance.dominioNombre = this.getTipoReceptorNombre();
    modalRef.componentInstance.esEdicion = true;
    modalRef.result.then(result => {
      this.itemsSeleccionados = [];
      this.loadPage();
      this.alert.showBasicAlert(result.cantReceptores == 1 ? MSJ_EXITO_EDICION : MSJ_EXITO_EDICION_MULT, '', 'success');
    }, () => {
      this.loadPage();
    });
  }
  isUsuarioWeb() {
    return this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_VENDU || this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB_ML;
  }
  isUsuarioSinergial() {
    return this.notifTipoReceptorFilter == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL;
  }
  obtenerTituloBusquedaPorReceptor(type) {
    switch (+this.getTipoReceptor()) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE:
        if (type == 'codigo') {
          return 'código';
        }
        if (type == 'nombre') {
          return 'nombre';
        }
        return '';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR:
        if (type == 'codigo') {
          return 'código';
        }
        if (type == 'nombre') {
          return 'nombre';
        }
        return '';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        if (type == 'nombre') {
          return 'nombre';
        }
        return '';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB:
        if (type == 'codigo') {
          return 'email';
        }
        if (type == 'nombre') {
          return 'usuario';
        }
        return '';
      default:
        return '';
    }
  }
  static #_ = this.ɵfac = function ConfiguracionReceptorComponent_Factory(t) {
    return new (t || ConfiguracionReceptorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_21__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_6__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_7__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_9__.NotifTipoReceptorServices), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_10__.NotificacionConfigReceptorService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionTipo_service__WEBPACK_IMPORTED_MODULE_11__.NotificacionTipoServices), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_12__.NotificacionCanalServices), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_13__.NotificacionConfiguracionServices));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineComponent"]({
    type: ConfiguracionReceptorComponent,
    selectors: [["app-configuracion-receptor"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__.TourService])],
    decls: 57,
    vars: 36,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "col-xxl-3 col-lg-4 d-none d-lg-block", 4, "ngIf"], [3, "ngClass"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "gap-2", "align-items-center"], [1, "mb-0", "card-title", "flex-grow-1", "d-flex", "flex-row"], ["tourAnchor", "notifConfigReceptor.anchor.id", 1, "mb-1", "align-self-center"], [1, "badge", "rounded-pill", "badge-soft-primary", "font-size-20"], [1, "text-primary", 2, "cursor", "pointer", 3, "click"], [1, "bx", "bx-info-circle", "font-size-24", "align-self-center"], [1, "flex-shrink-0", "d-flex", "gap-1"], ["tourAnchor", "cargarEditConfigReceptor.anchor.id", 1, "btn", "btn-primary", 3, "disabled", "click"], [1, "d-none", "d-md-flex", "gap-2"], ["class", "badge rounded-pill bg-white float-end text-dark align-self-center", 4, "ngIf"], [1, "d-block", "d-md-none", "mdi", "mdi-plus", "mdi-16"], ["class", "d-block d-md-none position-absolute top-0 start-100 translate-middle badge rounded-pill bg-light shadow-sm fw-bold float-end text-dark align-self-center", 4, "ngIf"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-block", "d-lg-none"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], ["class", "col-lg-3", 4, "ngIf"], [1, "card-body"], ["title", "Prueba Tabla Ordenes expandible back", "styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "selectRows", "acciones", "edit", "selectedRows", "expandRows", "expandColumns", "isLoading", "emitAction", "selectRowsAction", "lazyLoad"], ["FILTRO", ""], [1, "col-xxl-3", "col-lg-4", "d-none", "d-lg-block"], ["tourAnchor", "filtroNotifConfigReceptor.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], [1, "badge", "rounded-pill", "bg-white", "float-end", "text-dark", "align-self-center"], [1, "d-block", "d-md-none", "position-absolute", "top-0", "start-100", "translate-middle", "badge", "rounded-pill", "bg-light", "shadow-sm", "fw-bold", "float-end", "text-dark", "align-self-center"], [1, "col-lg-3"], ["tourAnchor", "searchCodigo.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "Codigo", 1, "form-control", 3, "placeholder", "mask", "maxlength", "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["tourAnchor", "searchNombre.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "Nombre", "maxlength", "350", 1, "form-control", 3, "placeholder", "keyup.enter"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "form-label"], ["formControlName", "idNotifTipoReceptor", 1, "form-select"], [3, "value", 4, "ngFor", "ngForOf"], [1, "my-2"], ["labelKey", "Nombre", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "readonly", "emitSelected"], ["header", "Avanzados"], [1, "border", "border-1", "rounded", "border-opacity-10", "p-2", "mb-2"], [1, "text-muted", "font-size-12"], ["labelKey", "Descripcion", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], ["data-cy", "checkbox-filtro-atributo", "title", "Mostrar no configurados", "colorChecked", "success", "colorUncheked", "primary", "colorDisabled", "secondary", 3, "value", "disabled", "emitAction"], [3, "value"]],
    template: function ConfiguracionReceptorComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("visibleChange", function ConfiguracionReceptorComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](3, ConfiguracionReceptorComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](4, ConfiguracionReceptorComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](11, " Configuraci\u00F3n por receptor ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](13, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](15, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](16, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_16_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](17, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](18, "div", 14)(19, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_button_click_19_listener() {
          return ctx.editar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](20, "span", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](21, "Cargar configuraciones");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](22, ConfiguracionReceptorComponent_span_22_Template, 2, 1, "span", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](23, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](24, ConfiguracionReceptorComponent_span_24_Template, 2, 1, "span", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](25, "a", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_25_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](26, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](27, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](28, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_28_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](29, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](30, "div", 22)(31, "button", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](32, "i", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](33, "ul", 25)(34, "li")(35, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_35_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](36, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](37, "li")(38, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_38_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](39, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](40, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementContainerStart"](41, 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](42, "div", 28)(43, "div", 29)(44, "a", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_44_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](45, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](46, "div", 31)(47, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function ConfiguracionReceptorComponent_Template_a_click_47_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](48, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](49, ConfiguracionReceptorComponent_div_49_Template, 6, 4, "div", 33)(50, ConfiguracionReceptorComponent_div_50_Template, 6, 2, "div", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](51, "div", 34)(52, "app-table2", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitAction", function ConfiguracionReceptorComponent_Template_app_table2_emitAction_52_listener($event) {
          return ctx.editarReceptor($event);
        })("selectRowsAction", function ConfiguracionReceptorComponent_Template_app_table2_selectRowsAction_52_listener($event) {
          return ctx.seleccionarRegistros($event);
        })("lazyLoad", function ConfiguracionReceptorComponent_Template_app_table2_lazyLoad_52_listener($event) {
          return ctx.lazyLoadChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](53, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](54, ConfiguracionReceptorComponent_ng_template_54_Template, 27, 15, "ng-template", null, 36, _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](56, "app-tour");
      }
      if (rf & 2) {
        const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵreference"](55);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngTemplateOutlet", _r7);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-9 col-lg-8" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", ctx.getTipoReceptorNombre(), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("disabled", !ctx.permitirAdministrar());
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.itemsSeleccionados.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.itemsSeleccionados.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](27, 31, ctx.notificacionConfigReceptorService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtroMobile ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.obtenerTituloBusquedaPorReceptor("codigo") != "");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.obtenerTituloBusquedaPorReceptor("nombre") != "");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("columns", ctx.ReceptorHeader)("datos", ctx.configuracionesReceptor)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("selectRows", true)("acciones", true)("edit", true)("selectedRows", ctx.itemsSeleccionados)("expandRows", !ctx.mostrarNoConfigFilter)("expandColumns", !ctx.mostrarNoConfigFilter ? ctx.expandHeader : _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpureFunction0"](35, _c1))("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](53, 33, ctx.notificacionConfigReceptorService.isLoading$));
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_24__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_24__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_19__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_19__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbDropdownMenu, ngx_mask__WEBPACK_IMPORTED_MODULE_26__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_27__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_14__.TourComponent, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_15__.CheckboxComponent, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_16__.SelectMultipleComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_17__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_25__.AsyncPipe],
    styles: [".back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}"]
  });
}

/***/ }),

/***/ 11629:
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/inicio-notificaciones/inicio-notificaciones.component.ts ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InicioNotificacionesComponent: () => (/* binding */ InicioNotificacionesComponent)
/* harmony export */ });
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 9315);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 94664);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfigReceptor.service */ 27846);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionCanal.service */ 94260);
/* harmony import */ var src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionHistorial.service */ 97504);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ng-apexcharts */ 86903);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/ui/input-date-time/input-date-time.component */ 75871);

















function InicioNotificacionesComponent_Conditional_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 45)(1, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "h3");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](6, "Total de configuraciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div", 48)(8, "table", 49)(9, "tbody")(10, "tr")(11, "td", 50)(12, "p", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](13, "Activas");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "td", 52)(15, "h5", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](17, "td")(18, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](19, "div", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "tr")(21, "td", 50)(22, "p", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](23, "Inactivas");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "td", 52)(25, "h5", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](27, "td")(28, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](29, "div", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r0.cantTotalConfig);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r0.cantConfigActivas);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](ctx_r0.calcularProgreso(ctx_r0.cantConfigActivas, ctx_r0.cantTotalConfig, "porcentaje"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r0.cantConfigInactivas);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](ctx_r0.calcularProgreso(ctx_r0.cantConfigInactivas, ctx_r0.cantTotalConfig, "porcentaje"));
  }
}
function InicioNotificacionesComponent_Conditional_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
}
function InicioNotificacionesComponent_Conditional_44_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "apx-chart", 30);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("chart", ctx_r2.chartOptionsConfigCanal == null ? null : ctx_r2.chartOptionsConfigCanal.chart)("series", ctx_r2.chartOptionsConfigCanal == null ? null : ctx_r2.chartOptionsConfigCanal.series)("plotOptions", ctx_r2.chartOptionsConfigCanal == null ? null : ctx_r2.chartOptionsConfigCanal.plotOptions)("dataLabels", ctx_r2.chartOptionsConfigCanal == null ? null : ctx_r2.chartOptionsConfigCanal.dataLabels)("xaxis", ctx_r2.chartOptionsConfigCanal == null ? null : ctx_r2.chartOptionsConfigCanal.xaxis);
  }
}
function InicioNotificacionesComponent_Conditional_45_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
}
function InicioNotificacionesComponent_Conditional_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "apx-chart", 31);
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("chart", ctx_r4.chartOptionsReceptorPorTipo == null ? null : ctx_r4.chartOptionsReceptorPorTipo.chart)("series", ctx_r4.chartOptionsReceptorPorTipo == null ? null : ctx_r4.chartOptionsReceptorPorTipo.series)("labels", ctx_r4.chartOptionsReceptorPorTipo == null ? null : ctx_r4.chartOptionsReceptorPorTipo.labels)("legend", ctx_r4.chartOptionsReceptorPorTipo == null ? null : ctx_r4.chartOptionsReceptorPorTipo.legend)("responsive", ctx_r4.chartOptionsReceptorPorTipo == null ? null : ctx_r4.chartOptionsReceptorPorTipo.responsive);
  }
}
function InicioNotificacionesComponent_Conditional_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
}
function InicioNotificacionesComponent_Conditional_77_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "apx-chart", 43);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("chart", ctx_r6.chartOptionsNotifPorEstado == null ? null : ctx_r6.chartOptionsNotifPorEstado.chart)("series", ctx_r6.chartOptionsNotifPorEstado == null ? null : ctx_r6.chartOptionsNotifPorEstado.series)("colors", ctx_r6.chartOptionsNotifPorEstado == null ? null : ctx_r6.chartOptionsNotifPorEstado.colors)("plotOptions", ctx_r6.chartOptionsNotifPorEstado == null ? null : ctx_r6.chartOptionsNotifPorEstado.plotOptions)("dataLabels", ctx_r6.chartOptionsNotifPorEstado == null ? null : ctx_r6.chartOptionsNotifPorEstado.dataLabels)("xaxis", ctx_r6.chartOptionsNotifPorEstado == null ? null : ctx_r6.chartOptionsNotifPorEstado.xaxis);
  }
}
function InicioNotificacionesComponent_Conditional_78_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
}
function InicioNotificacionesComponent_Conditional_84_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "apx-chart", 44);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("chart", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.chart)("series", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.series)("labels", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.labels)("theme", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.theme)("fill", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.fill)("yaxis", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.yaxis)("dataLabels", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.dataLabels)("responsive", ctx_r8.chartOptionsNotifPorCanal == null ? null : ctx_r8.chartOptionsNotifPorCanal.responsive);
  }
}
function InicioNotificacionesComponent_Conditional_85_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 56)(1, "div", 57)(2, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
}
const _c0 = a0 => ({
  "shadow-lg": a0
});
const _c1 = () => ["/notificaciones/listadoNotificaciones"];
class InicioNotificacionesComponent {
  constructor(fb, authService, toast, notificacionConfigReceptorService, notifConfigService, notifCanalService, notificacionHistorialService) {
    this.fb = fb;
    this.authService = authService;
    this.toast = toast;
    this.notificacionConfigReceptorService = notificacionConfigReceptorService;
    this.notifConfigService = notifConfigService;
    this.notifCanalService = notifCanalService;
    this.notificacionHistorialService = notificacionHistorialService;
    this.standalone = true;
    this.subscriptions = [];
    this.useLargeShadow = false;
    // MC SINWEB-486
    // Receptores - Distribución por tipo
    this.loadingIndReceptorPorTipo = false;
    this.chartOptionsReceptorPorTipo = {};
    // Configuraciones - Distribución por canal
    this.loadingIndConfigCanal = false;
    this.chartOptionsConfigCanal = {};
    // Configuraciones - Activas e inactivas
    this.loadingIndConfig = false;
    this.cantTotalConfig = 0;
    this.cantConfigActivas = 0;
    this.cantConfigInactivas = 0;
    this.searchForm = this.fb.group({
      FechaHoraDesdeNotificacion: (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addMonth)(new Date(), -1), 'DD/MM/YYYY HH:mm'),
      FechaHoraHastaNotificacion: (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'DD/MM/YYYY HH:mm') //[fechaHoraActual()]
    });
    // Notificaciones - Distribución por estado
    this.loadingIndNotifPorEstado = false;
    this.chartOptionsNotifPorEstado = {};
    // Notificaciones - Distribución por canal
    this.loadingIndNotifPorCanal = false;
    this.chartOptionsNotifPorCanal = {};
  }
  ngOnInit() {
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_DARK;
    this.useLargeShadow = this.darkMode && window.location.href.includes('/estadistica/inicio');
    this.indReceptorPorTipo();
    this.indConfigCanal();
    this.indConfig();
    this.indNotifPorEstado();
    this.indNotifPorCanal();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  // MC SINWEB-486 Carga indicador Receptores - Distribución por tipo
  indReceptorPorTipo() {
    this.loadingIndReceptorPorTipo = true;
    const datos = {
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      PageNumber: 1,
      PageSize: 1
    };
    const cliente = this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(datos, src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE);
    const proveedor = this.notificacionConfigReceptorService.getNotificacionTipoReceptorPorTipo(datos, src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR);
    let cantCliente = 0;
    let cantProveedor = 0;
    (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.forkJoin)([cliente, proveedor]).subscribe(results => {
      if (results[0].Succeeded) {
        cantCliente = results[0].TotalRecords;
      }
      if (results[1].Succeeded) {
        cantProveedor = results[1].TotalRecords;
      }
      this.chartOptionsReceptorPorTipo = {
        chart: {
          height: 250,
          type: 'donut'
        },
        series: [cantCliente, cantProveedor],
        labels: ['Cliente', 'Proveedor'],
        legend: {
          show: true,
          position: 'right',
          horizontalAlign: 'center',
          verticalAlign: 'middle',
          floating: false,
          fontSize: '14px',
          offsetX: 0,
          offsetY: 50
        },
        responsive: [{
          breakpoint: 480,
          options: {
            chart: {
              height: 200
            },
            legend: {
              position: 'bottom'
            }
          }
        }]
      };
      this.loadingIndReceptorPorTipo = false;
    });
  }
  // MC SINWEB-486 Carga indicador Configuraciones - Distribución por canal
  indConfigCanal() {
    this.loadingIndConfigCanal = true;
    const datosConfigs = {
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      PageNumber: 1,
      PageSize: 1,
      Activo: 'S'
    };
    let canales = [];
    const susc = this.notifCanalService.fetch({}).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_11__.switchMap)(res => {
      if (res.Succeeded && res.Data.length > 0) {
        canales = res.Data;
        const configCalls = canales.map(canal => {
          return this.notifConfigService.fetch({
            ...datosConfigs,
            IdsNotifCanales: canal.Id
          });
        });
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.forkJoin)(configCalls);
      } else {
        return [];
      }
    })).subscribe(results => {
      // console.log(results);
      this.chartOptionsConfigCanal = {
        chart: {
          type: 'bar',
          height: 350
        },
        series: [{
          name: 'Configuraciones',
          data: results.map(res => res.TotalRecords)
        }],
        plotOptions: {
          bar: {
            horizontal: true
          }
        },
        dataLabels: {
          enabled: true,
          dropShadow: {
            enabled: true,
            top: 1,
            left: 1,
            blur: 1,
            opacity: 0.8,
            color: '#000'
          }
        },
        xaxis: {
          categories: [...canales.map(canal => canal.Nombre)]
        }
      };
      this.loadingIndConfigCanal = false;
    });
    this.subscriptions.push(susc);
  }
  // MC SINWEB-486 Carga indicador Configuraciones - Estados
  indConfig() {
    this.loadingIndConfig = true;
    const datos = {
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      PageNumber: 1,
      PageSize: 1
    };
    const activas = this.notifConfigService.fetch({
      ...datos,
      Activo: 'S'
    });
    const inactivas = this.notifConfigService.fetch({
      ...datos,
      Activo: 'N'
    });
    (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.forkJoin)([activas, inactivas]).subscribe(results => {
      if (results[0].Succeeded) {
        this.cantConfigActivas = results[0].TotalRecords;
      }
      if (results[1].Succeeded) {
        this.cantConfigInactivas = results[1].TotalRecords;
      }
      this.cantTotalConfig = this.cantConfigActivas + this.cantConfigInactivas;
      this.loadingIndConfig = false;
    });
  }
  calcularProgreso(cant_realizada, cant_solicitada, responseType) {
    let retorno = 0;
    if (cant_solicitada > 0) {
      retorno = cant_realizada * 100 / cant_solicitada;
    }
    if (responseType === 'numero') {
      return retorno;
    } else {
      return {
        width: `${retorno}%`,
        'min-width': retorno == 0 ? '0%' : '10%'
      };
    }
  }
  // MC SINWEB-486 Carga indicador Notificaciones - Distribución por estado
  indNotifPorEstado() {
    this.loadingIndNotifPorEstado = true;
    const datos = {
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      PageNumber: 1,
      PageSize: 1
    };
    const desde = this.getFechaHoraDesdeNotificacion() ? this.getFechaHoraDesdeNotificacion() : undefined;
    const hasta = this.getFechaHoraHastaNotificacion() ? this.getFechaHoraHastaNotificacion() : undefined;
    if (desde) {
      datos['FechaDesdeNotificacion'] = desde;
    }
    if (hasta) {
      datos['FechaHastaNotificacion'] = hasta;
    }
    const listEstados = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_NOTIF_ESTADO;
    const apiCalls = listEstados.map(estado => {
      return this.notificacionHistorialService.fetch({
        ...datos,
        Estados: estado.Id
      });
    });
    (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.forkJoin)(apiCalls).subscribe(results => {
      this.chartOptionsNotifPorEstado = {
        chart: {
          type: 'bar',
          height: 350
        },
        series: [{
          name: 'Notificaciones',
          data: results.map(res => res.TotalRecords)
        }],
        colors: [...listEstados.map(estado => estado.Style.split(':')[1])],
        plotOptions: {
          bar: {
            distributed: true,
            horizontal: true
          }
        },
        dataLabels: {
          enabled: true,
          dropShadow: {
            enabled: true,
            top: 1,
            left: 1,
            blur: 1,
            opacity: 0.8,
            color: '#000'
          }
        },
        xaxis: {
          categories: [...listEstados.map(estado => estado.Nombre)]
        }
      };
      this.loadingIndNotifPorEstado = false;
      this.fechaHoraDesdeFiltrada = datos.FechaDesdeNotificacion ? datos.FechaDesdeNotificacion : 'inicio';
      this.fechaHoraHastaFiltrada = datos.FechaHastaNotificacion ? datos.FechaHastaNotificacion : 'fin';
    });
  }
  // MC SINWEB-486 Carga indicador Notificaciones - Distribución por canal
  indNotifPorCanal() {
    this.loadingIndNotifPorCanal = true;
    const datos = {
      IdsEmpresas: this.authService.usuario.IdEmpresa,
      PageNumber: 1,
      PageSize: 1
    };
    const desde = this.getFechaHoraDesdeNotificacion() ? this.getFechaHoraDesdeNotificacion() : undefined;
    const hasta = this.getFechaHoraHastaNotificacion() ? this.getFechaHoraHastaNotificacion() : undefined;
    if (desde) {
      datos['FechaDesdeNotificacion'] = desde;
    }
    if (hasta) {
      datos['FechaHastaNotificacion'] = hasta;
    }
    let canales = [];
    const susc = this.notifCanalService.fetch({}).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_11__.switchMap)(res => {
      if (res.Succeeded && res.Data.length > 0) {
        canales = res.Data;
        const apiCalls = canales.map(canal => {
          return this.notificacionHistorialService.fetch({
            ...datos,
            IdsNotifCanales: canal.Id
          });
        });
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.forkJoin)(apiCalls);
      } else {
        return [];
      }
    })).subscribe(results => {
      let series = results.map(res => res.TotalRecords);
      this.chartOptionsNotifPorCanal = {
        chart: {
          type: 'polarArea',
          height: 350
        },
        series: series,
        labels: canales.map(canal => canal.Nombre),
        // theme: {
        //   monochrome: {
        //     enabled: true,
        //     shadeTo: 'light',
        //     shadeIntensity: 0.6
        //   }
        // },
        fill: {
          opacity: 1
        },
        yaxis: {
          show: false
        },
        dataLabels: {
          enabled: !series.every(val => val === 0),
          dropShadow: {
            enabled: true,
            top: 1,
            left: 1,
            blur: 1,
            opacity: 0.8,
            color: '#000'
          }
        },
        responsive: [{
          breakpoint: 480,
          options: {
            legend: {
              position: 'bottom'
            }
          }
        }]
      };
      this.loadingIndNotifPorCanal = false;
      this.fechaHoraDesdeFiltrada = datos.FechaDesdeNotificacion ? datos.FechaDesdeNotificacion : 'inicio';
      this.fechaHoraHastaFiltrada = datos.FechaHastaNotificacion ? datos.FechaHastaNotificacion : 'fin';
    });
    this.subscriptions.push(susc);
  }
  loadIndicadoresNotif() {
    try {
      this.indNotifPorEstado();
      this.indNotifPorCanal();
    } catch (e) {
      this.loadingIndNotifPorCanal = false;
      this.loadingIndNotifPorEstado = false;
      this.toast.error('Fechas invalidas', null, {
        disableTimeOut: false,
        tapToDismiss: true,
        messageClass: 'custom-toast'
      });
    }
  }
  /**
   * SP SINWEB-614 metodos para el filtro de fechas
   **/
  getFechaHoraDesdeNotificacion() {
    return this.searchForm.controls.FechaHoraDesdeNotificacion.value;
  }
  setFechaHoraDesdeNotificacion($event) {
    this.searchForm.controls.FechaHoraDesdeNotificacion.setValue($event);
  }
  getFechaHoraHastaNotificacion() {
    return this.searchForm.controls.FechaHoraHastaNotificacion.value;
  }
  setFechaHoraHastaNotificacion($event) {
    this.searchForm.controls.FechaHoraHastaNotificacion.setValue($event);
  }
  invalidFechas() {
    if (this.getFechaHoraDesdeNotificacion() == '' || this.getFechaHoraDesdeNotificacion() != '' || this.getFechaHoraHastaNotificacion() == '' || this.getFechaHoraHastaNotificacion() != '') {
      return true;
    }
  }
  cleanFechas() {
    this.searchForm.controls.FechaHoraDesdeNotificacion.setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addMonth)(new Date(), -1), 'DD/MM/YYYY HH:mm'));
    this.searchForm.controls.FechaHoraHastaNotificacion.setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'DD/MM/YYYY HH:mm'));
    this.loadIndicadoresNotif();
  }
  hayFechas() {
    return this.getFechaHoraDesdeNotificacion() != '' || this.getFechaHoraHastaNotificacion() != '';
  }
  static #_ = this.ɵfac = function InicioNotificacionesComponent_Factory(t) {
    return new (t || InicioNotificacionesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_13__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfigReceptor_service__WEBPACK_IMPORTED_MODULE_4__.NotificacionConfigReceptorService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_5__.NotificacionConfiguracionServices), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_6__.NotificacionCanalServices), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_7__.NotificacionHistorialServices));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: InicioNotificacionesComponent,
    selectors: [["app-inicio-notificaciones"]],
    inputs: {
      standalone: "standalone"
    },
    decls: 86,
    vars: 36,
    consts: [[1, "row"], [1, "col-lg-12"], [1, "card", 3, "ngClass"], [1, "card-body"], [1, "col-lg-4"], [1, "media", "text-md-start", "text-center"], [1, "text-center", "text-md-start", "me-md-3"], [1, "bx", "bx-bell", "bx-md", "text-primary"], [1, "media-body", "align-self-center"], [1, "text-muted"], [1, "my-2"], [1, "col-lg-5", "align-self-center"], [1, "text-center", "mt-4", "mt-lg-0"], [1, "col-lg-3", "d-none", "d-lg-block"], [1, "clearfix", "mt-4", "mt-lg-0"], ["ngbDropdown", "", 1, "dropdown", "float-end"], ["type", "button", "data-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-primary", "dropdown-toggle"], [1, "bx", "bxs-share", "align-middle", "mr-1"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], ["href", "javascript: void(0);", 1, "dropdown-item", 3, "routerLink"], [1, "row", "pt-1"], [1, "col-xl-12"], [1, "card", "mb-1", 3, "ngClass"], [1, "card-title"], [1, "row", "g-1"], [1, "col-xl-4"], [1, "card", 2, "min-height", "450px", 3, "ngClass"], [1, "text-muted", "mb-5"], [1, "card", "mb-0", 2, "min-height", "450px", 3, "ngClass"], [1, "text-muted", "mb-4"], [3, "chart", "series", "plotOptions", "dataLabels", "xaxis"], [3, "chart", "series", "labels", "legend", "responsive"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], [1, "flex-grow-1"], [1, "card-subtitle"], [1, "text-muted", "font-size-10"], [1, "flex-shrink-0", "d-flex", "gap-1", 3, "formGroup"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"], [1, "btn", "btn-primary", 3, "click"], [1, "mdi", "mdi-refresh"], [1, "btn", "btn-danger", 3, "click"], [1, "mdi", "mdi-trash-can-outline"], [1, "col-xl-6"], [3, "chart", "series", "colors", "plotOptions", "dataLabels", "xaxis"], [3, "chart", "series", "labels", "theme", "fill", "yaxis", "dataLabels", "responsive"], [1, "text-center"], [1, "mb-4"], [1, "bx", "bxs-bell-ring", "text-primary", "display-4"], [1, "table-responsive", "mt-4"], [1, "table", "table-centered", "table-nowrap"], [2, "width", "30%"], [1, "mb-0"], [2, "width", "25%"], [1, "progress", "bg-transparent", "progress-sm"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(cantConfigActivas, cantTotalConfig, 'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-success", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(cantConfigInactivas, cantTotalConfig, 'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-danger", "rounded"], [1, "d-flex", "justify-content-center", "align-items-center"], ["role", "status", 1, "spinner-border"], [1, "visually-hidden"]],
    template: function InicioNotificacionesComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 0)(5, "div", 4)(6, "div", 5)(7, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](8, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "div", 8)(10, "div", 9)(11, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12, "M\u00F3dulo Notificaciones");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](13, "div", 11)(14, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](15, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "div", 13)(17, "div", 14)(18, "div", 15)(19, "button", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](20, "i", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](21, " Accesos directos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "div", 18)(23, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](24, "Listado de notificaciones");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](25, "div", 20)(26, "div", 21)(27, "div", 22)(28, "div", 3)(29, "h4", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](30, "Configuraciones");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](31, "div", 24)(32, "div", 25)(33, "div", 26)(34, "div", 3)(35, "h5", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](36, "Estados");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](37, InicioNotificacionesComponent_Conditional_37_Template, 30, 7)(38, InicioNotificacionesComponent_Conditional_38_Template, 4, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](39, "div", 25)(40, "div", 28)(41, "div", 3)(42, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](43, "Distribuci\u00F3n por canal");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](44, InicioNotificacionesComponent_Conditional_44_Template, 1, 5, "apx-chart", 30)(45, InicioNotificacionesComponent_Conditional_45_Template, 4, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](46, "div", 25)(47, "div", 26)(48, "div", 3)(49, "h5", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](50, "Distribuci\u00F3n por tipo receptor");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](51, InicioNotificacionesComponent_Conditional_51_Template, 1, 5, "apx-chart", 31)(52, InicioNotificacionesComponent_Conditional_52_Template, 4, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](53, "div", 21)(54, "div", 22)(55, "div", 3)(56, "div", 32)(57, "div", 33)(58, "h4", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](59, "Notificaciones");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](60, "h6", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](61, "Hist\u00F3rico");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](62, "span", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](63);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](64, "div", 36)(65, "app-input-date-time", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("valorEmit", function InicioNotificacionesComponent_Template_app_input_date_time_valorEmit_65_listener($event) {
          return ctx.setFechaHoraDesdeNotificacion($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](66, "app-input-date-time", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("valorEmit", function InicioNotificacionesComponent_Template_app_input_date_time_valorEmit_66_listener($event) {
          return ctx.setFechaHoraHastaNotificacion($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](67, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function InicioNotificacionesComponent_Template_button_click_67_listener() {
          return ctx.loadIndicadoresNotif();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](68, "i", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](69, "button", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function InicioNotificacionesComponent_Template_button_click_69_listener() {
          return ctx.cleanFechas();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](70, "i", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](71, "div", 24)(72, "div", 42)(73, "div", 28)(74, "div", 3)(75, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](76, "Distribuci\u00F3n por estado");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](77, InicioNotificacionesComponent_Conditional_77_Template, 1, 6, "apx-chart", 43)(78, InicioNotificacionesComponent_Conditional_78_Template, 4, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](79, "div", 42)(80, "div", 26)(81, "div", 3)(82, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](83, "Distribuci\u00F3n por canal");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](84, InicioNotificacionesComponent_Conditional_84_Template, 1, 8, "apx-chart", 44)(85, InicioNotificacionesComponent_Conditional_85_Template, 4, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](19, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](21);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](21, _c1));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](22, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](24, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](37, !ctx.loadingIndConfig ? 37 : 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](26, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](44, !ctx.loadingIndConfigCanal && ctx.chartOptionsConfigCanal !== undefined ? 44 : 45);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](28, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](51, !ctx.loadingIndReceptorPorTipo && ctx.chartOptionsReceptorPorTipo !== undefined ? 51 : 52);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](30, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate2"]("Desde el ", ctx.fechaHoraDesdeFiltrada, " hasta el ", ctx.fechaHoraHastaFiltrada, "");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("valor", ctx.getFechaHoraDesdeNotificacion());
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("valor", ctx.getFechaHoraHastaNotificacion());
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](32, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](77, !ctx.loadingIndNotifPorEstado && ctx.chartOptionsNotifPorEstado !== undefined ? 77 : 78);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](34, _c0, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](84, !ctx.loadingIndNotifPorCanal && ctx.chartOptionsNotifPorCanal !== undefined ? 84 : 85);
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_14__.RouterLink, _angular_common__WEBPACK_IMPORTED_MODULE_15__.NgClass, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdownMenu, ng_apexcharts__WEBPACK_IMPORTED_MODULE_17__.ChartComponent, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupDirective, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_8__.InputDateTimeComponent]
  });
}

/***/ }),

/***/ 36904:
/*!**********************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/listado-notificaciones/envio-manual-multiple/envio-manual-multiple.component.ts ***!
  \**********************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EnvioManualMultipleComponent: () => (/* binding */ EnvioManualMultipleComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_notificaciones_notificacion_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacion.service */ 84346);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 96814);




const _forTrack0 = ($index, $item) => $item.Id;
function EnvioManualMultipleComponent_For_6_Conditional_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const notif_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", notif_r3.Error, " ");
  }
}
const _c1 = (a0, a1) => ({
  "border-danger border-4 border-start border-top-0 border-bottom-0 border-end-0 rounded-3": a0,
  "border-success border-4 border-start border-top-0 border-bottom-0 border-end-0 rounded-3": a1
});
function EnvioManualMultipleComponent_For_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7)(1, "div", 8)(2, "div", 9)(3, "div", 10)(4, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 12)(7, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 14)(12, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, EnvioManualMultipleComponent_For_6_Conditional_14_Template, 2, 1, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const notif_r3 = ctx.$implicit;
    const $index_r4 = ctx.$index;
    const $count_r6 = ctx.$count;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mb-2", !($index_r4 === $count_r6 - 1));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](9, _c1, notif_r3.Error, notif_r3.Enviado));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", notif_r3.NotifDominio.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", notif_r3.NotificacionConfiguracion.NotifCanal.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", notif_r3.NotificacionConfiguracion.NotificacionTipo.Codigo, ") ", notif_r3.NotificacionConfiguracion.NotificacionTipo.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", notif_r3.Receptor, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](14, notif_r3.Error ? 14 : -1);
  }
}
function EnvioManualMultipleComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 19);
  }
}
function EnvioManualMultipleComponent_Conditional_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EnvioManualMultipleComponent_Conditional_10_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r11.enviar(false));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Enviar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, EnvioManualMultipleComponent_Conditional_10_Conditional_2_Template, 1, 0, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r1.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](2, ctx_r1.isLoading ? 2 : -1);
  }
}
function EnvioManualMultipleComponent_Conditional_11_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 19);
  }
}
function EnvioManualMultipleComponent_Conditional_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EnvioManualMultipleComponent_Conditional_11_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r14.enviar(true));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Reintentar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, EnvioManualMultipleComponent_Conditional_11_Conditional_2_Template, 1, 0, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](2, ctx_r2.isLoading ? 2 : -1);
  }
}
class EnvioManualMultipleComponent {
  constructor(modal, notifService) {
    this.modal = modal;
    this.notifService = notifService;
    this.notifEnviar = [];
    this.isLoading = false;
    this.reintentarBtn = false;
    this.reloadOnDismiss = false;
    this.subscriptions = [];
  }
  ngOnInit() {
    this.notifEnviar = [...this.notificaciones];
    this.notificaciones.forEach(notif => {
      notif['Error'] = '';
      notif['Enviado'] = false;
    });
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sub => sub.unsubscribe());
  }
  enviar(reintento) {
    this.isLoading = true;
    const body = {
      ids: !reintento ? this.notificaciones.map(notif => notif.Id) : this.notifEnviar.map(notif => notif.Id)
    };
    this.subscriptions.push(this.notifService.envioManualMultiple(body).subscribe({
      next: resp => {
        if (resp.data.envios_fallidos == 0) {
          // Se enviaron todas correctamente
          this.modal.close('success');
        } else {
          // Alguna falló
          this.isLoading = false;
          this.reintentarBtn = true;
          if (resp.data.envios_exitosos) this.reloadOnDismiss = true;
          this.notificaciones.forEach(notif => {
            const error = resp.data.errores.find(error => error.ID_NOTIF_NOTIFICACION == notif.Id);
            if (error) {
              notif.Error = error.OBSERVACION_ESTADO;
            } else {
              notif.Error = '';
              notif.Enviado = true;
              this.notifEnviar = this.notifEnviar.filter(notifEnv => notifEnv.Id != notif.Id);
            }
          });
        }
      },
      error: err => this.isLoading = false
    }));
  }
  static #_ = this.ɵfac = function EnvioManualMultipleComponent_Factory(t) {
    return new (t || EnvioManualMultipleComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacion_service__WEBPACK_IMPORTED_MODULE_0__.NotificacionServices));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: EnvioManualMultipleComponent,
    selectors: [["app-envio-manual-multiple"]],
    inputs: {
      notificaciones: "notificaciones"
    },
    decls: 12,
    vars: 1,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "100px"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", "class", "btn btn-success btn-elevate", 3, "disabled"], [1, "card", "mb-0", 3, "ngClass"], [1, "card-body", "p-3", "border", "border-secondary", "border-opacity-25", "rounded-3"], [1, "row", "gy-3"], [1, "col-12", "col-lg-2"], [1, "badge", "fs-6", 2, "background-color", "#aebfb3"], [1, "col-12", "col-lg-7"], [1, "badge", "fs-6", "me-2", 2, "background-color", "#79857c"], [1, "col-12", "col-lg-3"], ["class", "alert alert-danger mt-3 mb-0", "role", "alert"], ["role", "alert", 1, "alert", "alert-danger", "mt-3", "mb-0"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["class", "bx bx-sync bx-spin font-size-16 align-middle"], [1, "bx", "bx-sync", "bx-spin", "font-size-16", "align-middle"], ["class", "card mb-0", 3, "mb-2", "ngClass"]],
    template: function EnvioManualMultipleComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Env\u00EDo manual m\u00FAltiple de notificaciones ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](5, EnvioManualMultipleComponent_For_6_Template, 15, 12, "div", 20, _forTrack0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 4)(8, "button", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EnvioManualMultipleComponent_Template_button_click_8_listener() {
          return ctx.modal.close(ctx.reloadOnDismiss ? "reload" : null);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, EnvioManualMultipleComponent_Conditional_10_Template, 3, 2, "button", 6)(11, EnvioManualMultipleComponent_Conditional_11_Template, 3, 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx.notificaciones);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](10, !ctx.reintentarBtn ? 10 : 11);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass]
  });
}

/***/ }),

/***/ 20989:
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/listado-notificaciones/envio-manual/envio-manual.component.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EnvioManualComponent: () => (/* binding */ EnvioManualComponent)
/* harmony export */ });
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_notificaciones_notificacion_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacion.service */ 84346);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);






function EnvioManualComponent_Case_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_9_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_9_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Comprobante:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr")(24, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Total:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.Cliente.Codigo, ") ", ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.TipoComprobante.Nombre, " (", ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.TipoComprobante.Categoria.Nombre, ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](28, 7, ctx_r19.notificacion.RegistroVenta == null ? null : ctx_r19.notificacion.RegistroVenta.Total, "1.2-2", "es-AR"), " ");
  }
}
function EnvioManualComponent_Case_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_9_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_9_Conditional_1_Template, 29, 11);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r1.notificacion.RegistroVenta ? 0 : 1);
  }
}
function EnvioManualComponent_Case_10_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_10_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Proveedor:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Comprobante:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr")(24, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Total:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.Proveedor.Codigo, ") ", ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.TipoComprobante.Nombre, " (", ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.TipoComprobante.Categoria.Nombre, ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](28, 7, ctx_r21.notificacion.RegistroCompra == null ? null : ctx_r21.notificacion.RegistroCompra.Total, "1.2-2", "es-AR"), " ");
  }
}
function EnvioManualComponent_Case_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_10_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_10_Conditional_1_Template, 29, 11);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r2.notificacion.RegistroCompra ? 0 : 1);
  }
}
function EnvioManualComponent_Case_11_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_11_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Cliente Venta:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr")(24, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Importe:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "tr")(30, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Descripci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.Cliente.Codigo, ") ", ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.ClienteVenta.Codigo, ") ", ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.ClienteVenta.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](28, 8, ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.Importe, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r23.notificacion.RegistroPedidoVenta == null ? null : ctx_r23.notificacion.RegistroPedidoVenta.Descripcion);
  }
}
function EnvioManualComponent_Case_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_11_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_11_Conditional_1_Template, 34, 12);
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r3.notificacion.RegistroPedidoVenta ? 0 : 1);
  }
}
function EnvioManualComponent_Case_12_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_12_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Proveedor:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Importe:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](23, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r25.notificacion.RegistroPedidoCompra == null ? null : ctx_r25.notificacion.RegistroPedidoCompra.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r25.notificacion.RegistroPedidoCompra == null ? null : ctx_r25.notificacion.RegistroPedidoCompra.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r25.notificacion.RegistroPedidoCompra == null ? null : ctx_r25.notificacion.RegistroPedidoCompra.Proveedor.Codigo, ") ", ctx_r25.notificacion.RegistroPedidoCompra == null ? null : ctx_r25.notificacion.RegistroPedidoCompra.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](23, 5, ctx_r25.notificacion.RegistroPedidoCompra == null ? null : ctx_r25.notificacion.RegistroPedidoCompra.Importe, "1.2-2", "es-AR"), " ");
  }
}
function EnvioManualComponent_Case_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_12_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_12_Conditional_1_Template, 24, 9);
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r4.notificacion.RegistroPedidoCompra ? 0 : 1);
  }
}
function EnvioManualComponent_Case_13_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_13_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Observaci\u00F3nth>");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r27.notificacion.RegistroOrdenEntrega == null ? null : ctx_r27.notificacion.RegistroOrdenEntrega.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", ctx_r27.notificacion.RegistroOrdenEntrega == null ? null : ctx_r27.notificacion.RegistroOrdenEntrega.Fecha, " ", ctx_r27.notificacion.RegistroOrdenEntrega == null ? null : ctx_r27.notificacion.RegistroOrdenEntrega.Hora, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r27.notificacion.RegistroOrdenEntrega == null ? null : ctx_r27.notificacion.RegistroOrdenEntrega.Cliente.Codigo, ") ", ctx_r27.notificacion.RegistroOrdenEntrega == null ? null : ctx_r27.notificacion.RegistroOrdenEntrega.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r27.notificacion.RegistroOrdenEntrega == null ? null : ctx_r27.notificacion.RegistroOrdenEntrega.Observacion, " ");
  }
}
function EnvioManualComponent_Case_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_13_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_13_Conditional_1_Template, 23, 6);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r5.notificacion.RegistroOrdenEntrega ? 0 : 1);
  }
}
function EnvioManualComponent_Case_14_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_14_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r29.notificacion.RegistroOrdenTrabajo == null ? null : ctx_r29.notificacion.RegistroOrdenTrabajo.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r29.notificacion.RegistroOrdenTrabajo == null ? null : ctx_r29.notificacion.RegistroOrdenTrabajo.Cliente.Codigo, ") ", ctx_r29.notificacion.RegistroOrdenTrabajo == null ? null : ctx_r29.notificacion.RegistroOrdenTrabajo.Cliente.Nombre, " ");
  }
}
function EnvioManualComponent_Case_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_14_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_14_Conditional_1_Template, 13, 3);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r6.notificacion.RegistroOrdenTrabajo ? 0 : 1);
  }
}
function EnvioManualComponent_Case_15_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_15_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha de solicitud:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r31.notificacion.RegistroOrdenProduccion == null ? null : ctx_r31.notificacion.RegistroOrdenProduccion.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r31.notificacion.RegistroOrdenProduccion == null ? null : ctx_r31.notificacion.RegistroOrdenProduccion.FechaSolicitud, " ");
  }
}
function EnvioManualComponent_Case_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_15_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_15_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r7.notificacion.RegistroOrdenProduccion ? 0 : 1);
  }
}
function EnvioManualComponent_Case_16_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_16_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Art\u00EDculo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Plataforma de integraci\u00F3n: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Familia Web:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r33.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r33.notificacion.RegistroPublicacionPlataforma.Articulo.Codigo, ") ", ctx_r33.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r33.notificacion.RegistroPublicacionPlataforma.Articulo.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r33.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r33.notificacion.RegistroPublicacionPlataforma.PlataformaIntegracion.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r33.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r33.notificacion.RegistroPublicacionPlataforma.WebFamilia.Nombre, " ");
  }
}
function EnvioManualComponent_Case_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_16_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_16_Conditional_1_Template, 18, 4);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r8.notificacion.RegistroPublicacionPlataforma ? 0 : 1);
  }
}
function EnvioManualComponent_Case_17_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_17_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Plataforma de integraci\u00F3n: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "N\u00FAmero pedido venta:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " Importe pedido venta: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r35.notificacion.RegistroPedidoPlataforma == null ? null : ctx_r35.notificacion.RegistroPedidoPlataforma.PlataformaIntegracion.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r35.notificacion.RegistroPedidoPlataforma == null ? null : ctx_r35.notificacion.RegistroPedidoPlataforma.PedidoVenta.Numero, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](18, 3, ctx_r35.notificacion.RegistroPedidoPlataforma == null ? null : ctx_r35.notificacion.RegistroPedidoPlataforma.PedidoVenta.Importe, "1.2-2", "es-AR"), " ");
  }
}
function EnvioManualComponent_Case_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_17_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_17_Conditional_1_Template, 19, 7);
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r9.notificacion.RegistroPedidoPlataforma ? 0 : 1);
  }
}
function EnvioManualComponent_Case_18_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_18_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r37.notificacion.RegistroCliente == null ? null : ctx_r37.notificacion.RegistroCliente.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r37.notificacion.RegistroCliente == null ? null : ctx_r37.notificacion.RegistroCliente.Nombre);
  }
}
function EnvioManualComponent_Case_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_18_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_18_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r10.notificacion.RegistroCliente ? 0 : 1);
  }
}
function EnvioManualComponent_Case_19_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_19_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r39.notificacion.RegistroProveedor == null ? null : ctx_r39.notificacion.RegistroProveedor.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r39.notificacion.RegistroProveedor == null ? null : ctx_r39.notificacion.RegistroProveedor.Nombre);
  }
}
function EnvioManualComponent_Case_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_19_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_19_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r11.notificacion.RegistroProveedor ? 0 : 1);
  }
}
function EnvioManualComponent_Case_20_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_20_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r41.notificacion.RegistroCtaCteCliente == null ? null : ctx_r41.notificacion.RegistroCtaCteCliente.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r41.notificacion.RegistroCtaCteCliente == null ? null : ctx_r41.notificacion.RegistroCtaCteCliente.Nombre);
  }
}
function EnvioManualComponent_Case_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_20_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_20_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r12.notificacion.RegistroCtaCteCliente ? 0 : 1);
  }
}
function EnvioManualComponent_Case_21_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_21_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13)(1, "table", 14)(2, "tbody")(3, "tr")(4, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r43.notificacion.RegistroCtaCteProveedor == null ? null : ctx_r43.notificacion.RegistroCtaCteProveedor.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r43.notificacion.RegistroCtaCteProveedor == null ? null : ctx_r43.notificacion.RegistroCtaCteProveedor.Nombre);
  }
}
function EnvioManualComponent_Case_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EnvioManualComponent_Case_21_Conditional_0_Template, 2, 0, "p", 12)(1, EnvioManualComponent_Case_21_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r13.notificacion.RegistroCtaCteProveedor ? 0 : 1);
  }
}
function EnvioManualComponent_Case_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Case_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function EnvioManualComponent_Conditional_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r16.notificacion.Error, " ");
  }
}
function EnvioManualComponent_Conditional_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 19);
  }
}
// MC SINWEB-654 Componente para enviar manualmente una notificación
class EnvioManualComponent {
  constructor(modal, notifService, toast) {
    this.modal = modal;
    this.notifService = notifService;
    this.toast = toast;
    this.isLoading = false;
    this.subscriptions = [];
  }
  ngOnInit() {
    this.notificacion['Error'] = '';
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sub => sub.unsubscribe());
  }
  enviar() {
    this.isLoading = true;
    const body = {
      id: this.notificacion.Id
    };
    this.subscriptions.push(this.notifService.envioManualSimple(body).subscribe({
      next: resp => {
        if (resp.data.envios_exitosos > 0) {
          this.modal.close('success');
        } else {
          this.isLoading = false;
          this.notificacion.Error = resp.data.errores[0].OBSERVACION_ESTADO;
          this.toast.error(this.notificacion.Error, 'Error');
        }
      },
      error: err => this.isLoading = false
    }));
  }
  static #_ = this.ɵfac = function EnvioManualComponent_Factory(t) {
    return new (t || EnvioManualComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacion_service__WEBPACK_IMPORTED_MODULE_0__.NotificacionServices), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__.ToastrService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: EnvioManualComponent,
    selectors: [["app-envio-manual"]],
    inputs: {
      notificacion: "notificacion"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([ngx_toastr__WEBPACK_IMPORTED_MODULE_3__.ToastrService])],
    decls: 31,
    vars: 5,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "border", "border-light", "border-5", "py-2", "rounded"], [1, "badge", "fs-5", "ms-2", "mb-3", 2, "background-color", "#aebfb3"], ["class", "alert alert-danger mt-3 mb-0", "role", "alert"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["class", "bx bx-sync bx-spin font-size-16 align-middle"], [1, "text-muted", "mb-0", "p-3"], ["class", "text-muted mb-0 p-3"], [1, "table-responsive"], [1, "table", "table-borderless", "mb-0"], ["scope", "row", 2, "width", "20%"], [1, "fw-bold", "text-primary"], [1, "text-primary", "fw-bold"], ["role", "alert", 1, "alert", "alert-danger", "mt-3", "mb-0"], [1, "bx", "bx-sync", "bx-spin", "font-size-16", "align-middle"]],
    template: function EnvioManualComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Env\u00EDo manual de notificaci\u00F3n ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "span", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, EnvioManualComponent_Case_8_Template, 2, 0)(9, EnvioManualComponent_Case_9_Template, 2, 1)(10, EnvioManualComponent_Case_10_Template, 2, 1)(11, EnvioManualComponent_Case_11_Template, 2, 1)(12, EnvioManualComponent_Case_12_Template, 2, 1)(13, EnvioManualComponent_Case_13_Template, 2, 1)(14, EnvioManualComponent_Case_14_Template, 2, 1)(15, EnvioManualComponent_Case_15_Template, 2, 1)(16, EnvioManualComponent_Case_16_Template, 2, 1)(17, EnvioManualComponent_Case_17_Template, 2, 1)(18, EnvioManualComponent_Case_18_Template, 2, 1)(19, EnvioManualComponent_Case_19_Template, 2, 1)(20, EnvioManualComponent_Case_20_Template, 2, 1)(21, EnvioManualComponent_Case_21_Template, 2, 1)(22, EnvioManualComponent_Case_22_Template, 2, 0)(23, EnvioManualComponent_Case_23_Template, 2, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, EnvioManualComponent_Conditional_24_Template, 2, 1, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 7)(26, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EnvioManualComponent_Template_button_click_26_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "button", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EnvioManualComponent_Template_button_click_28_listener() {
          return ctx.enviar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, " Enviar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, EnvioManualComponent_Conditional_30_Template, 1, 0, "i", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        let EnvioManualComponent_contFlowTmp;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.notificacion.NotifDominio.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](8, (EnvioManualComponent_contFlowTmp = ctx.notificacion.NotifDominio.Id) === 1 ? 8 : EnvioManualComponent_contFlowTmp === 2 ? 9 : EnvioManualComponent_contFlowTmp === 3 ? 10 : EnvioManualComponent_contFlowTmp === 4 ? 11 : EnvioManualComponent_contFlowTmp === 5 ? 12 : EnvioManualComponent_contFlowTmp === 6 ? 13 : EnvioManualComponent_contFlowTmp === 7 ? 14 : EnvioManualComponent_contFlowTmp === 8 ? 15 : EnvioManualComponent_contFlowTmp === 9 ? 16 : EnvioManualComponent_contFlowTmp === 10 ? 17 : EnvioManualComponent_contFlowTmp === 11 ? 18 : EnvioManualComponent_contFlowTmp === 12 ? 19 : EnvioManualComponent_contFlowTmp === 13 ? 20 : EnvioManualComponent_contFlowTmp === 14 ? 21 : EnvioManualComponent_contFlowTmp === 15 ? 22 : EnvioManualComponent_contFlowTmp === 16 ? 23 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](24, ctx.notificacion.Error ? 24 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isLoading);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](30, ctx.isLoading ? 30 : -1);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.DecimalPipe]
  });
}

/***/ }),

/***/ 50200:
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/listado-notificaciones/listado-notificaciones-view/listado-notificaciones-view.component.ts ***!
  \**********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ListadoNotificacionesViewComponent: () => (/* binding */ ListadoNotificacionesViewComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 96814);




function ListadoNotificacionesViewComponent_Case_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_30_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_30_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Comprobante:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr")(24, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Total:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.Cliente.Codigo, ") ", ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.TipoComprobante.Nombre, " (", ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.TipoComprobante.Categoria.Nombre, ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](28, 7, ctx_r17.notificacion.RegistroVenta == null ? null : ctx_r17.notificacion.RegistroVenta.Total, "1.2-2", "es-AR"), " ");
  }
}
function ListadoNotificacionesViewComponent_Case_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_30_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_30_Conditional_1_Template, 29, 11);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r1.notificacion.RegistroVenta ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_31_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_31_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Proveedor:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Comprobante:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr")(24, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Total:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.Proveedor.Codigo, ") ", ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.TipoComprobante.Nombre, " (", ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.TipoComprobante.Categoria.Nombre, ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](28, 7, ctx_r19.notificacion.RegistroCompra == null ? null : ctx_r19.notificacion.RegistroCompra.Total, "1.2-2", "es-AR"), " ");
  }
}
function ListadoNotificacionesViewComponent_Case_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_31_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_31_Conditional_1_Template, 29, 11);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r2.notificacion.RegistroCompra ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_32_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_32_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Cliente Venta:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr")(24, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Importe:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "tr")(30, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Descripci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.Cliente.Codigo, ") ", ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.ClienteVenta.Codigo, ") ", ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.ClienteVenta.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](28, 8, ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.Importe, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r21.notificacion.RegistroPedidoVenta == null ? null : ctx_r21.notificacion.RegistroPedidoVenta.Descripcion);
  }
}
function ListadoNotificacionesViewComponent_Case_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_32_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_32_Conditional_1_Template, 34, 12);
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r3.notificacion.RegistroPedidoVenta ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_33_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_33_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Proveedor:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Importe:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](23, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r23.notificacion.RegistroPedidoCompra == null ? null : ctx_r23.notificacion.RegistroPedidoCompra.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r23.notificacion.RegistroPedidoCompra == null ? null : ctx_r23.notificacion.RegistroPedidoCompra.Fecha);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r23.notificacion.RegistroPedidoCompra == null ? null : ctx_r23.notificacion.RegistroPedidoCompra.Proveedor.Codigo, ") ", ctx_r23.notificacion.RegistroPedidoCompra == null ? null : ctx_r23.notificacion.RegistroPedidoCompra.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](23, 5, ctx_r23.notificacion.RegistroPedidoCompra == null ? null : ctx_r23.notificacion.RegistroPedidoCompra.Importe, "1.2-2", "es-AR"), " ");
  }
}
function ListadoNotificacionesViewComponent_Case_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_33_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_33_Conditional_1_Template, 24, 9);
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r4.notificacion.RegistroPedidoCompra ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_34_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_34_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr")(19, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Observaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r25.notificacion.RegistroOrdenEntrega == null ? null : ctx_r25.notificacion.RegistroOrdenEntrega.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", ctx_r25.notificacion.RegistroOrdenEntrega == null ? null : ctx_r25.notificacion.RegistroOrdenEntrega.Fecha, " ", ctx_r25.notificacion.RegistroOrdenEntrega == null ? null : ctx_r25.notificacion.RegistroOrdenEntrega.Hora, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r25.notificacion.RegistroOrdenEntrega == null ? null : ctx_r25.notificacion.RegistroOrdenEntrega.Cliente.Codigo, ") ", ctx_r25.notificacion.RegistroOrdenEntrega == null ? null : ctx_r25.notificacion.RegistroOrdenEntrega.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r25.notificacion.RegistroOrdenEntrega == null ? null : ctx_r25.notificacion.RegistroOrdenEntrega.Observacion, " ");
  }
}
function ListadoNotificacionesViewComponent_Case_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_34_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_34_Conditional_1_Template, 24, 6);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r5.notificacion.RegistroOrdenEntrega ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_35_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_35_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r27.notificacion.RegistroOrdenTrabajo == null ? null : ctx_r27.notificacion.RegistroOrdenTrabajo.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r27.notificacion.RegistroOrdenTrabajo == null ? null : ctx_r27.notificacion.RegistroOrdenTrabajo.Cliente.Codigo, ") ", ctx_r27.notificacion.RegistroOrdenTrabajo == null ? null : ctx_r27.notificacion.RegistroOrdenTrabajo.Cliente.Nombre, " ");
  }
}
function ListadoNotificacionesViewComponent_Case_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_35_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_35_Conditional_1_Template, 13, 3);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r6.notificacion.RegistroOrdenTrabajo ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_36_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_36_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "N\u00FAmero:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Fecha de solicitud:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r29.notificacion.RegistroOrdenProduccion == null ? null : ctx_r29.notificacion.RegistroOrdenProduccion.Numero);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r29.notificacion.RegistroOrdenProduccion == null ? null : ctx_r29.notificacion.RegistroOrdenProduccion.FechaSolicitud, " ");
  }
}
function ListadoNotificacionesViewComponent_Case_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_36_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_36_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r7.notificacion.RegistroOrdenProduccion ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_37_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_37_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Art\u00EDculo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Plataforma de integraci\u00F3n: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Familia Web:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r31.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r31.notificacion.RegistroPublicacionPlataforma.Articulo.Codigo, ") ", ctx_r31.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r31.notificacion.RegistroPublicacionPlataforma.Articulo.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r31.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r31.notificacion.RegistroPublicacionPlataforma.PlataformaIntegracion.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r31.notificacion.RegistroPublicacionPlataforma == null ? null : ctx_r31.notificacion.RegistroPublicacionPlataforma.WebFamilia.Nombre, " ");
  }
}
function ListadoNotificacionesViewComponent_Case_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_37_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_37_Conditional_1_Template, 18, 4);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r8.notificacion.RegistroPublicacionPlataforma ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_38_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_38_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Plataforma de integraci\u00F3n: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "N\u00FAmero pedido venta:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr")(14, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " Importe pedido venta: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r33.notificacion.RegistroPedidoPlataforma == null ? null : ctx_r33.notificacion.RegistroPedidoPlataforma.PlataformaIntegracion.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r33.notificacion.RegistroPedidoPlataforma == null ? null : ctx_r33.notificacion.RegistroPedidoPlataforma.PedidoVenta.Numero, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](18, 3, ctx_r33.notificacion.RegistroPedidoPlataforma == null ? null : ctx_r33.notificacion.RegistroPedidoPlataforma.PedidoVenta.Importe, "1.2-2", "es-AR"), " ");
  }
}
function ListadoNotificacionesViewComponent_Case_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_38_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_38_Conditional_1_Template, 19, 7);
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r9.notificacion.RegistroPedidoPlataforma ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_39_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_39_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r35.notificacion.RegistroCliente == null ? null : ctx_r35.notificacion.RegistroCliente.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r35.notificacion.RegistroCliente == null ? null : ctx_r35.notificacion.RegistroCliente.Nombre);
  }
}
function ListadoNotificacionesViewComponent_Case_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_39_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_39_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r10.notificacion.RegistroCliente ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_40_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_40_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r37.notificacion.RegistroProveedor == null ? null : ctx_r37.notificacion.RegistroProveedor.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r37.notificacion.RegistroProveedor == null ? null : ctx_r37.notificacion.RegistroProveedor.Nombre);
  }
}
function ListadoNotificacionesViewComponent_Case_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_40_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_40_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r11.notificacion.RegistroProveedor ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_41_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_41_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r39.notificacion.RegistroCtaCteCliente == null ? null : ctx_r39.notificacion.RegistroCtaCteCliente.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r39.notificacion.RegistroCtaCteCliente == null ? null : ctx_r39.notificacion.RegistroCtaCteCliente.Nombre);
  }
}
function ListadoNotificacionesViewComponent_Case_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_41_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_41_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r12.notificacion.RegistroCtaCteCliente ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_42_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_42_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15)(1, "table", 25)(2, "tbody")(3, "tr")(4, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "C\u00F3digo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr")(9, "th", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r41.notificacion.RegistroCtaCteProveedor == null ? null : ctx_r41.notificacion.RegistroCtaCteProveedor.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r41.notificacion.RegistroCtaCteProveedor == null ? null : ctx_r41.notificacion.RegistroCtaCteProveedor.Nombre);
  }
}
function ListadoNotificacionesViewComponent_Case_42_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ListadoNotificacionesViewComponent_Case_42_Conditional_0_Template, 2, 0, "p", 24)(1, ListadoNotificacionesViewComponent_Case_42_Conditional_1_Template, 13, 2);
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](0, !ctx_r13.notificacion.RegistroCtaCteProveedor ? 0 : 1);
  }
}
function ListadoNotificacionesViewComponent_Case_43_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesViewComponent_Case_44_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay detalles disponibles");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
// MC SINWEB-572 Componente para visualizar datos de una notificación
class ListadoNotificacionesViewComponent {
  constructor(modal) {
    this.modal = modal;
  }
  findEstado(estadoId) {
    const estadoObj = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.DICCIONARIO_NOTIF_ESTADO.find(estado => estado.Id === estadoId);
    return estadoObj;
  }
  getTipoReceptorNombre() {
    if (this.notificacion?.NotifTipoReceptor.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_WEB) {
      const jsonParams = this.notificacion?.NotificacionConfiguracion.NotificacionTipo.Parametros;
      if (jsonParams.id_plataforma) {
        return jsonParams.id_plataforma == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.PLATAFORMA_MERCADO_LIBRE ? 'Usuario Web - Vendú' : 'Usuario Web - Mercado Libre';
      } else {
        return this.notificacion?.NotifTipoReceptor.Nombre;
      }
    } else {
      return this.notificacion?.NotifTipoReceptor.Nombre;
    }
  }
  static #_ = this.ɵfac = function ListadoNotificacionesViewComponent_Factory(t) {
    return new (t || ListadoNotificacionesViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: ListadoNotificacionesViewComponent,
    selectors: [["app-listado-notificaciones-view"]],
    inputs: {
      notificacion: "notificacion"
    },
    decls: 88,
    vars: 17,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "bg-light", "pt-3", "pb-1", "rounded", "mb-3"], [1, "d-flex", "align-items-center", "mb-3", "ps-2"], [1, "bx", "bx-calendar", 2, "font-size", "1.3rem !important"], [1, "fs-5", "ms-2"], [1, "row", "ps-4"], [1, "col-12", "col-sm-4", "col-md-3", "ps-0"], [1, "fw-bold", "mb-1"], [1, "border", "border-light", "border-5", "mb-3", "py-2", "rounded"], [1, "badge", "fs-5", "ms-2", "mb-3", 2, "background-color", "#aebfb3"], [1, "row"], [1, "col-12"], [1, "table-responsive"], [1, "table"], ["scope", "row", 2, "width", "20%"], [1, "badge", "fs-6"], [1, "badge", "fs-6", 2, "background-color", "#aebfb3"], [1, "badge", "fs-6", 2, "background-color", "#79857c"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", "mr-2", 3, "click"], [1, "text-muted", "mb-0", "p-3"], ["class", "text-muted mb-0 p-3"], [1, "table", "table-borderless", "mb-0"], [1, "fw-bold", "text-primary"], [1, "text-primary", "fw-bold"]],
    template: function ListadoNotificacionesViewComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Detalle de notificaci\u00F3n ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "i", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "span", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Fechas");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 8)(11, "div", 9)(12, "p", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Registro");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 9)(17, "p", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Notificaci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 9)(22, "p", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Notificado");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 11)(27, "span", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, ListadoNotificacionesViewComponent_Case_29_Template, 2, 0)(30, ListadoNotificacionesViewComponent_Case_30_Template, 2, 1)(31, ListadoNotificacionesViewComponent_Case_31_Template, 2, 1)(32, ListadoNotificacionesViewComponent_Case_32_Template, 2, 1)(33, ListadoNotificacionesViewComponent_Case_33_Template, 2, 1)(34, ListadoNotificacionesViewComponent_Case_34_Template, 2, 1)(35, ListadoNotificacionesViewComponent_Case_35_Template, 2, 1)(36, ListadoNotificacionesViewComponent_Case_36_Template, 2, 1)(37, ListadoNotificacionesViewComponent_Case_37_Template, 2, 1)(38, ListadoNotificacionesViewComponent_Case_38_Template, 2, 1)(39, ListadoNotificacionesViewComponent_Case_39_Template, 2, 1)(40, ListadoNotificacionesViewComponent_Case_40_Template, 2, 1)(41, ListadoNotificacionesViewComponent_Case_41_Template, 2, 1)(42, ListadoNotificacionesViewComponent_Case_42_Template, 2, 1)(43, ListadoNotificacionesViewComponent_Case_43_Template, 2, 0)(44, ListadoNotificacionesViewComponent_Case_44_Template, 2, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 13)(46, "div", 14)(47, "div", 15)(48, "table", 16)(49, "tbody")(50, "tr")(51, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, "Estado:");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "td")(54, "span", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "tr")(58, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, "Receptor:");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "td")(61, "span", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](63);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "tr")(65, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, "Tipo:");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "tr")(70, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71, "Canal:");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "td")(73, "span", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](74);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "tr")(76, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](77, "Periodicidad:");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](79);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "tr")(81, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](82, "Observaci\u00F3n:");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](84);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "div", 21)(86, "button", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListadoNotificacionesViewComponent_Template_button_click_86_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](87, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        let ListadoNotificacionesViewComponent_contFlowTmp;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.notificacion.FechaRegistro || "-");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.notificacion.FechaNotificacion || "-");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.notificacion.FechaNotificado || "-");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.notificacion.NotifDominio.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](29, (ListadoNotificacionesViewComponent_contFlowTmp = ctx.notificacion.NotifDominio.Id) === 1 ? 29 : ListadoNotificacionesViewComponent_contFlowTmp === 2 ? 30 : ListadoNotificacionesViewComponent_contFlowTmp === 3 ? 31 : ListadoNotificacionesViewComponent_contFlowTmp === 4 ? 32 : ListadoNotificacionesViewComponent_contFlowTmp === 5 ? 33 : ListadoNotificacionesViewComponent_contFlowTmp === 6 ? 34 : ListadoNotificacionesViewComponent_contFlowTmp === 7 ? 35 : ListadoNotificacionesViewComponent_contFlowTmp === 8 ? 36 : ListadoNotificacionesViewComponent_contFlowTmp === 9 ? 37 : ListadoNotificacionesViewComponent_contFlowTmp === 10 ? 38 : ListadoNotificacionesViewComponent_contFlowTmp === 11 ? 39 : ListadoNotificacionesViewComponent_contFlowTmp === 12 ? 40 : ListadoNotificacionesViewComponent_contFlowTmp === 13 ? 41 : ListadoNotificacionesViewComponent_contFlowTmp === 14 ? 42 : ListadoNotificacionesViewComponent_contFlowTmp === 15 ? 43 : ListadoNotificacionesViewComponent_contFlowTmp === 16 ? 44 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](25);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleMap"](ctx.findEstado(ctx.notificacion.Estado).Style);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.findEstado(ctx.notificacion.Estado).Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx.notificacion.Intentos, " ", ctx.notificacion.Intentos != 1 ? "intentos" : "intento", ") ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.getTipoReceptorNombre(), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.notificacion.Receptor, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx.notificacion.NotificacionConfiguracion.NotificacionTipo.Codigo, ") ", ctx.notificacion.NotificacionConfiguracion.NotificacionTipo.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.notificacion.NotificacionConfiguracion.NotifCanal.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.notificacion.NotificacionConfiguracion.ExpresionCronNatural, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.notificacion.ObservacionEstado);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.DecimalPipe]
  });
}

/***/ }),

/***/ 70054:
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/notificaciones/listado-notificaciones/listado-notificaciones.component.ts ***!
  \*************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ListadoNotificacionesComponent: () => (/* binding */ ListadoNotificacionesComponent)
/* harmony export */ });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _listado_notificaciones_view_listado_notificaciones_view_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./listado-notificaciones-view/listado-notificaciones-view.component */ 50200);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _dashboards_core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-comprobante-venta/seleccionar-comprobante-venta.component */ 98163);
/* harmony import */ var _dashboards_core_seleccionar_comprobante_compra_seleccionar_comprobante_compra_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-comprobante-compra/seleccionar-comprobante-compra.component */ 13484);
/* harmony import */ var _envio_manual_envio_manual_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./envio-manual/envio-manual.component */ 20989);
/* harmony import */ var _envio_manual_multiple_envio_manual_multiple_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./envio-manual-multiple/envio-manual-multiple.component */ 36904);
/* harmony import */ var _dashboards_core_seleccionar_usuarios_seleccionar_usuarios_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-usuarios/seleccionar-usuarios.component */ 32998);
/* harmony import */ var _configuracion_notificacion_seleccionar_tipo_receptor_seleccionar_tipo_receptor_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../configuracion-notificacion/seleccionar-tipo-receptor/seleccionar-tipo-receptor.component */ 50078);
/* harmony import */ var _dashboards_core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-usuario-web/seleccionar-usuario-web.component */ 33974);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_notificaciones_notificacion_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacion.service */ 84346);
/* harmony import */ var src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionHistorial.service */ 97504);
/* harmony import */ var src_app_core_services_notificaciones_notificacionTipo_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionTipo.service */ 12189);
/* harmony import */ var src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionConfiguracion.service */ 47742);
/* harmony import */ var src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! src/app/core/services/notificaciones/notifTipoReceptor.service */ 63438);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionCanal.service */ 94260);
/* harmony import */ var src_app_core_services_notificaciones_notificacionDominio_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionDominio.service */ 20976);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_inputswitch__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! primeng/inputswitch */ 45609);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../../shared/ui/select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../../shared/ui/input-date-time/input-date-time.component */ 75871);









































function ListadoNotificacionesComponent_ng_template_3_Template(rf, ctx) {}
function ListadoNotificacionesComponent_div_4_ng_template_3_Template(rf, ctx) {}
function ListadoNotificacionesComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "div", 45)(1, "div", 46)(2, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](3, ListadoNotificacionesComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵreference"](62);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function ListadoNotificacionesComponent_Conditional_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "span", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtextInterpolate1"](" ", ctx_r2.notifSeleccionadas.length, " ");
  }
}
function ListadoNotificacionesComponent_Conditional_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "span", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtextInterpolate"](ctx_r3.notifSeleccionadas.length);
  }
}
function ListadoNotificacionesComponent_a_55_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "a", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_a_55_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r8.borrarInfContacto());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](1, "i", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesComponent_ng_template_61_a_32_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "a", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_ng_template_61_a_32_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r12.borrarRegistros());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](1, "i", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
  }
}
function ListadoNotificacionesComponent_ng_template_61_a_47_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "a", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_ng_template_61_a_47_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r14.borrarReceptores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](1, "i", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
  }
}
const _c0 = () => [0];
function ListadoNotificacionesComponent_ng_template_61_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "div", 26)(1, "p-accordion", 52)(2, "p-accordionTab", 53)(3, "div")(4, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](5, "Estados");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](6, "app-select-multiple", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("emitSelected", function ListadoNotificacionesComponent_ng_template_61_Template_app_select_multiple_emitSelected_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r16.filterForm.controls.Estados.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](7, "hr", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](8, "div")(9, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](10, "Configuraci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](11, "app-select-multiple", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("emitSelected", function ListadoNotificacionesComponent_ng_template_61_Template_app_select_multiple_emitSelected_11_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r18.filterForm.controls.IdsNotifConfiguraciones.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](12, "hr", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](13, "div")(14, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](15, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](16, "app-select-multiple", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("emitSelected", function ListadoNotificacionesComponent_ng_template_61_Template_app_select_multiple_emitSelected_16_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r19.filterForm.controls.IdsNotifTipos.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](17, "hr", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](18, "div")(19, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](20, "Canales");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](21, "app-select-multiple", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("emitSelected", function ListadoNotificacionesComponent_ng_template_61_Template_app_select_multiple_emitSelected_21_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r20.filterForm.controls.IdsNotifCanales.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](22, "p-accordionTab", 58)(23, "div", 59)(24, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](25, "Dominios");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](26, "app-select-multiple", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("emitSelected", function ListadoNotificacionesComponent_ng_template_61_Template_app_select_multiple_emitSelected_26_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r21.filterForm.controls.IdsNotifDominios.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](27, "div", 61)(28, "label", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](29, "Registros");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](30, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](31, "input", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](32, ListadoNotificacionesComponent_ng_template_61_a_32_Template, 2, 0, "a", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](33, "button", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_ng_template_61_Template_button_click_33_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r22.buscarRegistros());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](34, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](35, "div", 59)(36, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](37, "Receptores");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](38, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](39, "Tipos");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](40, "app-select-multiple", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("emitSelected", function ListadoNotificacionesComponent_ng_template_61_Template_app_select_multiple_emitSelected_40_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r23.filterForm.controls.IdsNotifTiposReceptores.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](41, "div", 61)(42, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](43, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](44, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](45, "input", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementContainerStart"](46);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](47, ListadoNotificacionesComponent_ng_template_61_a_47_Template, 2, 0, "a", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](48, "button", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_ng_template_61_Template_button_click_48_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r24.buscarReceptores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](49, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](50, "div", 59)(51, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](52, "Fecha Registro");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](53, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](54, "Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](55, "app-input-date-time", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("valorEmit", function ListadoNotificacionesComponent_ng_template_61_Template_app_input_date_time_valorEmit_55_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r25.setFechaHoraDesdeRegistro($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](56, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](57, "Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](58, "app-input-date-time", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("valorEmit", function ListadoNotificacionesComponent_ng_template_61_Template_app_input_date_time_valorEmit_58_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r26.setFechaHoraHastaRegistro($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](59, "div", 59)(60, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](61, "Fecha Notificaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](62, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](63, "Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](64, "app-input-date-time", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("valorEmit", function ListadoNotificacionesComponent_ng_template_61_Template_app_input_date_time_valorEmit_64_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r27.setFechaHoraDesdeNotificacion($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](65, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](66, "Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](67, "app-input-date-time", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("valorEmit", function ListadoNotificacionesComponent_ng_template_61_Template_app_input_date_time_valorEmit_67_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r28.setFechaHoraHastaNotificacion($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](68, "div", 59)(69, "p", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](70, "Fecha Notificado");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](71, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](72, "Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](73, "app-input-date-time", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("valorEmit", function ListadoNotificacionesComponent_ng_template_61_Template_app_input_date_time_valorEmit_73_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r29.setFechaHoraDesdeNotificado($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](74, "label", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](75, "Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](76, "app-input-date-time", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("valorEmit", function ListadoNotificacionesComponent_ng_template_61_Template_app_input_date_time_valorEmit_76_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵrestoreView"](_r17);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵresetView"](ctx_r30.setFechaHoraHastaNotificado($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("formGroup", ctx_r5.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpureFunction0"](25, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("selected", ctx_r5.filterForm.controls.Estados.value)("items", ctx_r5.listEstados);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("selected", ctx_r5.filterForm.controls.IdsNotifConfiguraciones.value)("items", ctx_r5.NotifConfNotifs);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("selected", ctx_r5.filterForm.controls.IdsNotifTipos.value)("items", ctx_r5.NotifTipos);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("selected", ctx_r5.filterForm.controls.IdsNotifCanales.value)("items", ctx_r5.NotifCanales);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("selected", ctx_r5.filterForm.controls.IdsNotifDominios.value)("items", ctx_r5.dominios);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngIf", ctx_r5.getRegistros());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("disabled", !ctx_r5.dominioValido());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("selected", ctx_r5.filterForm.controls.IdsNotifTiposReceptores.value)("items", ctx_r5.NotifTiposReceptores);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngIf", ctx_r5.getReceptores());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("disabled", !ctx_r5.habilitarReceptores);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraDesdeRegistro());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraHastaRegistro());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraDesdeNotificacion());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraHastaNotificacion());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraDesdeNotificado());
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraHastaNotificado());
  }
}
class ListadoNotificacionesComponent {
  constructor(fb, alert, exportacion, sf, authService, tourService, NotificacionServices, NotificacionHistorialServices, notificacionTipoServices, notificacionConfiguracionServices, notifTipoReceptorServices, modalService, notificacionCanalServices, notificacionDominioServices) {
    this.fb = fb;
    this.alert = alert;
    this.exportacion = exportacion;
    this.sf = sf;
    this.authService = authService;
    this.tourService = tourService;
    this.NotificacionServices = NotificacionServices;
    this.NotificacionHistorialServices = NotificacionHistorialServices;
    this.notificacionTipoServices = notificacionTipoServices;
    this.notificacionConfiguracionServices = notificacionConfiguracionServices;
    this.notifTipoReceptorServices = notifTipoReceptorServices;
    this.modalService = modalService;
    this.notificacionCanalServices = notificacionCanalServices;
    this.notificacionDominioServices = notificacionDominioServices;
    this.MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente la notificación seleccionada.';
    this.MODO_HISTORICO = 'H';
    this.MODO_POR_NOTIFICAR = 'N';
    this.notificaciones = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.unsubscribe = [];
    this.servicesSelected = this.NotificacionHistorialServices;
    //filtros
    this.NotifTipos = [];
    this.IdsNotifTiposFilter = '';
    this.NotifConfNotifs = [];
    this.IdsNotifConfiguracionesFilter = '';
    this.dominios = [];
    this.IdsNotifDominiosFilter = '';
    this.NotifTiposReceptores = [];
    this.IdsNotifTiposReceptoresFilter = '';
    this.habilitarReceptores = false;
    this.Receptores = [];
    this.IdsReceptoresConTiposFilter = '';
    this.NotifCanales = [];
    this.IdsNotifCanalesFilter = '';
    this.listEstados = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_NOTIF_ESTADO;
    this.EstadoFilter = '';
    //SP SINWEB-614 se agregan filtros de date-time
    this.FechaHoraDesdeRegistroFilter = '';
    this.FechaHoraHastaRegistroFilter = '';
    this.FechaHoraDesdeNotificacionFilter = '';
    this.FechaHoraHastaNotificacionFilter = '';
    this.FechaHoraDesdeNotificadoFilter = '';
    this.FechaHoraHastaNotificadoFilter = '';
    /**
     * SP SINWEB-653 filtro para seleccion de registros y busqueda por inf contacto
     */
    this.IdsRegistrosFilter = '';
    this.InformacionContactoFilter = '';
    //SP SINWEB-614 fin cambio
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.order = 6;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO_DESC;
    this.totalItems = 0;
    //permisos
    //filtros no reactivos
    this.tipoModo = this.MODO_HISTORICO;
    // MC SINWEB-654 Se cambia la elección de modo por config. de columnas de la tabla
    this.NotifHeader = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.NotifHeader;
    this.DropdownActions = [{
      Title: 'Ver detalles',
      Accion: 'view'
    }, {
      Title: 'Envío manual',
      Accion: 'enviar',
      fieldsActivate: ['Estado'],
      activate: (values, action) => {
        if (values[0] === src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.ESTADO_PEND_NOTIFICAR || values[0] === src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.ESTADO_ERROR) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item d-none';
        }
      }
    }, {
      Title: 'Eliminar',
      Accion: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.MODO_ELIMINACION
    }];
    this.searchForm = this.fb.group({
      modo: [this.MODO_HISTORICO],
      InformacionContacto: ['']
    });
    this.filterForm = this.fb.group({
      IdsNotifTipos: [''],
      IdsNotifConfiguraciones: [''],
      IdsNotifTiposReceptores: [''],
      IdsReceptoresConTipos: [''],
      ReceptoresConTipo: [''],
      IdsNotifCanales: [''],
      Estados: [''],
      IdsNotifDominios: [''],
      //SP SINWEB-653 filtro para seleccion de registros
      IdsRegistros: [''],
      Registros: [''],
      //SP SINWEB-614 se agragan forms de date-time
      FechaHoraDesdeRegistro: [''],
      FechaHoraHastaRegistro: [''],
      FechaHoraDesdeNotificacion: [''],
      FechaHoraHastaNotificacion: [''],
      FechaHoraDesdeNotificado: [''],
      FechaHoraHastaNotificado: [''],
      HoraHastaNotificado: ['']
    });
    this.dropdownActions = [];
    this.notifSeleccionadas = [];
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.stateConfig = this.sf.pagenamesNOTIF.NOTIF_LIST_STATES;
    this.inicializarSteps();
    //permisos
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTipoNotif();
    this.cargarNotifConfNotif();
    this.cargarTipoReceptores();
    this.cargarCanales();
    this.cargarDominios();
    this.loadPage();
    this.controlarTour();
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesNOTIF.NOTIF_LIST_STATES;
    //busqueda
    this.searchForm.controls.modo.setValue(this.sf.getState(this.sf.states.NOTIF_LIST_B_MODO));
    this.tipoModo = this.sf.getState(this.sf.states.NOTIF_LIST_B_MODO);
    this.servicesSelected = this.tipoModo == this.MODO_HISTORICO ? this.NotificacionHistorialServices : this.NotificacionServices;
    //SP SINWEB-653 informacion de contacto
    this.searchForm.controls.InformacionContacto.setValue(this.sf.getState(this.sf.states.NOTIF_LIST_B_INFORMACION_CONTACTO));
    this.InformacionContactoFilter = this.sf.getState(this.sf.states.NOTIF_LIST_B_INFORMACION_CONTACTO);
    //filtros
    this.IdsNotifTiposFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_NOTIF_TIPOS);
    if (this.sf.getState(this.sf.states.NOTIF_LIST_F_NOTIF_TIPOS) != '') {
      this.filterForm.controls.IdsNotifTipos.setValue(this.IdsNotifTiposFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifTipos.setValue([], {
        emitEvent: false
      });
    }
    this.IdsNotifConfiguracionesFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_NOTIF_CONF);
    if (this.sf.getState(this.sf.states.NOTIF_LIST_F_NOTIF_CONF) != '') {
      this.filterForm.controls.IdsNotifConfiguraciones.setValue(this.IdsNotifConfiguracionesFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifConfiguraciones.setValue([], {
        emitEvent: false
      });
    }
    this.IdsNotifDominiosFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_NOTIF_DOMINIOS);
    if (this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_NOTIF_DOMINIOS) != '') {
      this.filterForm.controls.IdsNotifDominios.setValue(this.IdsNotifDominiosFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifDominios.setValue([], {
        emitEvent: false
      });
    }
    this.IdsNotifTiposReceptoresFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_TIPOS_RECEPTORES);
    if (this.sf.getState(this.sf.states.NOTIF_LIST_F_TIPOS_RECEPTORES) != '') {
      this.filterForm.controls.IdsNotifTiposReceptores.setValue(this.IdsNotifTiposReceptoresFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifTiposReceptores.setValue([], {
        emitEvent: false
      });
    }
    this.IdsNotifCanalesFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_NOTIF_CANALES);
    if (this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_NOTIF_CANALES) != '') {
      this.filterForm.controls.IdsNotifCanales.setValue(this.IdsNotifCanalesFilter.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.IdsNotifCanales.setValue([], {
        emitEvent: false
      });
    }
    this.EstadoFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_ESTADOS);
    if (this.sf.getState(this.sf.states.NOTIF_LIST_F_ESTADOS) != '') {
      this.filterForm.controls.Estados.setValue(this.EstadoFilter.split(','), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.Estados.setValue([], {
        emitEvent: false
      });
    }
    this.habilitarReceptores = this.IdsNotifTiposReceptoresFilter.split(',').length == 1 && this.IdsNotifDominiosFilter.length == 0 && this.IdsNotifTiposReceptoresFilter.split(',')[0] != '1';
    if (this.habilitarReceptores) {
      if (this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO) !== '') {
        this.IdsReceptoresConTiposFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO).split(',').map(r => '[' + r + '|' + this.IdsNotifTiposReceptoresFilter + ']').join(',');
      } else {
        this.IdsReceptoresConTiposFilter = '';
      }
      this.filterForm.controls.IdsReceptoresConTipos.setValue(this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO), {
        emitEvent: false
      });
      this.filterForm.controls.ReceptoresConTipo.setValue(this.sf.getState(this.sf.states.NOTIF_LIST_F_RECEPTORES_CON_TIPO), {
        emitEvent: false
      });
    }
    //SP SINWEB-653 filtro para seleccion de registros
    this.IdsRegistrosFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_IDS_REGISTROS);
    this.filterForm.controls.IdsRegistros.setValue(this.IdsRegistrosFilter, {
      emitEvent: false
    });
    this.filterForm.controls.Registros.setValue(this.sf.getState(this.sf.states.NOTIF_LIST_F_REGISTROS), {
      emitEvent: false
    });
    //SP SINWEB-614 cambios para filtros de date-time
    this.FechaHoraDesdeRegistroFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_REGISTRO) ? this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_REGISTRO) : '';
    this.filterForm.controls.FechaHoraDesdeRegistro.setValue(this.FechaHoraDesdeRegistroFilter);
    this.FechaHoraHastaRegistroFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_REGISTRO) ? this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_REGISTRO) : '';
    this.filterForm.controls.FechaHoraHastaRegistro.setValue(this.FechaHoraHastaRegistroFilter);
    this.FechaHoraDesdeNotificacionFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICACION) ? this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICACION) : '';
    this.filterForm.controls.FechaHoraDesdeNotificacion.setValue(this.FechaHoraDesdeNotificacionFilter);
    this.FechaHoraHastaNotificacionFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICACION) ? this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICACION) : '';
    this.filterForm.controls.FechaHoraHastaNotificacion.setValue(this.FechaHoraHastaNotificacionFilter);
    this.FechaHoraDesdeNotificadoFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICADO) ? this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICADO) : '';
    this.filterForm.controls.FechaHoraDesdeNotificado.setValue(this.FechaHoraDesdeNotificadoFilter);
    this.FechaHoraHastaNotificadoFilter = this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICADO) ? this.sf.getState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICADO) : '';
    this.filterForm.controls.FechaHoraHastaNotificado.setValue(this.FechaHoraHastaNotificadoFilter);
    //SP SINWEB-614 fin cambios
    //listado
    this.page = Number(this.sf.getState(this.sf.states.NOTIF_LIST_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.NOTIF_LIST_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.NOTIF_LIST_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.NOTIF_LIST_L_SENTIDO);
  }
  /**
   * Metodo observable de cambio de filtro (OPCIONAL)
   */
  configuracionFilter() {
    this.unsubscribe.push(this.searchForm.controls.modo.valueChanges.subscribe(tipoModo => {
      this.tipoModo = tipoModo;
      this.servicesSelected = this.tipoModo == this.MODO_HISTORICO ? this.NotificacionHistorialServices : this.NotificacionServices;
      this.page = 1;
      this.loadPage();
      this.notifSeleccionadas = [];
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifTipos.valueChanges.subscribe(tipoNotif => {
      if (this.filtro || this.filtroMobile) {
        this.IdsNotifTiposFilter = tipoNotif.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifDominios.valueChanges.subscribe(dominio => {
      if (this.filtro || this.filtroMobile) {
        this.IdsNotifDominiosFilter = dominio.join(',');
        this.filterForm.controls.IdsReceptoresConTipos.setValue(null);
        this.filterForm.controls.ReceptoresConTipo.setValue(null);
        this.IdsReceptoresConTiposFilter = '';
        this.habilitarReceptores = this.IdsNotifTiposReceptoresFilter.split(',').length == 1 && dominio.length == 0 && this.IdsNotifTiposReceptoresFilter.split(',')[0] != '1';
        this.borrarRegistros(false);
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifConfiguraciones.valueChanges.subscribe(tipoConfig => {
      if (this.filtro || this.filtroMobile) {
        this.IdsNotifConfiguracionesFilter = tipoConfig.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifTiposReceptores.valueChanges.subscribe(tipoReceptor => {
      if (this.filtro || this.filtroMobile) {
        this.IdsNotifTiposReceptoresFilter = tipoReceptor.join(',');
        this.habilitarReceptores = tipoReceptor.length == 1 && this.IdsNotifDominiosFilter.length == 0 && tipoReceptor[0] != '1';
        this.IdsReceptoresConTiposFilter = '';
        this.borrarReceptores();
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.ReceptoresConTipo.valueChanges.subscribe(receptores => {
      if (receptores != null && receptores != '') {
        let idsReceptores = this.filterForm.get('IdsReceptoresConTipos').value;
        this.IdsReceptoresConTiposFilter = idsReceptores.split(',').map(r => '[' + r + '|' + this.IdsNotifTiposReceptoresFilter + ']').join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.IdsNotifCanales.valueChanges.subscribe(canales => {
      if (this.filtro || this.filtroMobile) {
        this.IdsNotifCanalesFilter = canales.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.Estados.valueChanges.subscribe(estados => {
      if (this.filtro || this.filtroMobile) {
        this.EstadoFilter = estados.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    //SP SINWEB-614 cambios para filtros de date-time
    this.unsubscribe.push(this.filterForm.controls.FechaHoraDesdeRegistro.valueChanges.subscribe(fechaHora => {
      if (this.filtro || this.filtroMobile) {
        this.FechaHoraDesdeRegistroFilter = fechaHora;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.FechaHoraHastaRegistro.valueChanges.subscribe(fechaHora => {
      if (this.filtro || this.filtroMobile) {
        this.FechaHoraHastaRegistroFilter = fechaHora;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.FechaHoraDesdeNotificacion.valueChanges.subscribe(fechaHora => {
      if (this.filtro || this.filtroMobile) {
        this.FechaHoraDesdeNotificacionFilter = fechaHora;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.FechaHoraHastaNotificacion.valueChanges.subscribe(fechaHora => {
      if (this.filtro || this.filtroMobile) {
        this.FechaHoraHastaNotificacionFilter = fechaHora;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.FechaHoraDesdeNotificado.valueChanges.subscribe(fechaHora => {
      if (this.filtro || this.filtroMobile) {
        this.FechaHoraDesdeNotificadoFilter = fechaHora;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.FechaHoraHastaNotificado.valueChanges.subscribe(fechaHora => {
      if (this.filtro || this.filtroMobile) {
        this.FechaHoraHastaNotificadoFilter = fechaHora;
        this.page = 1;
        this.loadPage();
      }
    }));
    //SP SINWEB-614 fin cambios para filtros de date-time
  }
  /**
   * Limpieza de filtros , busquedas , estados
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  /**
   * metodo llamado pro clean estate que reinicia los estados y filtros
   */
  resetComp() {
    this.unsubscribe.forEach(sub => {
      sub.unsubscribe();
    });
    this.page = 1;
    this.previousPage = 1;
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.notifSeleccionadas = [];
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  /**
   * Metodo de recarga de pagina
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * Metodo que cambia el tamaño de pagina y actualiza la busqueda
   * @param {any} event Tamaño de pagina seleccionado
   */
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  /**
   * Metodo de busqueda del crud
   * @param {any} datos Parametros de busqueda
   */
  onSearch(datos) {
    const susc = this.servicesSelected.fetch(datos).subscribe(data => {
      this.notificaciones = this.procesarNotificaciones(data.Data);
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  accionOrder(event) {
    switch (event.accion) {
      case 'view':
        this.verDetalleNotif(event.registro);
        break;
      case 'enviar':
        this.envioManual(event.registro);
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.MODO_ELIMINACION:
        this.eliminar(event.registro.Id, event.registro.FechaRegistro);
        break;
    }
  }
  eliminar(id, fecha) {
    this.alert.showReturnAlert('Eliminación de notificación.', "¿Está seguro de eliminar la notificación registrada: '" + fecha + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarNotificacion(id);
      }
    });
  }
  eliminarNotificacion(id) {
    const sb = this.servicesSelected.eliminar(id).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_31__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(this.MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  procesarNotificaciones(notificaciones) {
    notificaciones.forEach(notif => {
      switch (notif.NotifTipoReceptor.Id) {
        case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_EMPLEADO:
          notif.Receptor = {
            Codigo: notif.ReceptorEmpleado.Codigo,
            Nombre: notif.ReceptorEmpleado.Nombre
          };
          break;
        case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE:
          notif.Receptor = '(' + notif.ReceptorCliente.Codigo + ') ' + notif.ReceptorCliente.Nombre;
          break;
        case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR:
          notif.Receptor = '(' + notif.ReceptorProveedor.Codigo + ') ' + notif.ReceptorProveedor.Nombre;
          break;
        case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB:
          notif.Receptor = notif.ReceptorUsuarioWeb.Usuario + ' (' + notif.ReceptorUsuarioWeb.Nombre + ')';
          const idPlataforma = notif.NotificacionConfiguracion?.NotificacionTipo.Parametros.id_plataforma;
          if (idPlataforma) {
            notif.NotifTipoReceptor.Nombre = notif.NotifTipoReceptor.Nombre + ' - ' + (idPlataforma == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.PLATAFORMA_MERCADO_LIBRE ? 'Mercado Libre' : 'Vendú');
          }
          break;
        case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
          notif.Receptor = notif.ReceptorUsrUsuario.Nombre;
          break;
        // case constantesNotif.TIPO_RECEPTOR_CLIENTE_VENTA:
        //   notif.Receptor = { Codigo: notif.ReceptorClienteVenta.Codigo,
        //                       Nombre: notif.ReceptorClienteVenta.Nombre}
        //   break;
        // case constantesNotif.TIPO_RECEPTOR_PROVEEDOR_COMPRA:
        //   notif.Receptor = { Codigo: notif.ReceptorProveedorCompra.Codigo,
        //                       Nombre: notif.ReceptorProveedorCompra.Nombre}
        //   break;
        // case constantesNotif.TIPO_RECEPTOR_USUARIO_MELI:
        //   notif.Receptor = { Codigo: notif.ReceptorUsuarioMeli.UserId,
        //                       Nombre: notif.ReceptorUsuarioMeli.Usuario}
        //   break;
        // case constantesNotif.TIPO_RECEPTOR_PEDIDO_VENTA_MELI:
        //   notif.Receptor = { Codigo: notif.ReceptorPedidoVentaMeli.Id,
        //                       Nombre: notif.ReceptorPedidoVentaMeli.IdOrdenPlataforma}
        //     break;
        default:
          notif.Receptor = '';
          break;
      }
      if (notif.NotificacionConfiguracion?.NotifCanal.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.CANAL_EMAIL) {
        let obs = !notif.ObservacionEstado ? '' : notif.ObservacionEstado;
        notif.ObservacionEstado = !notif.InformacionContacto?.email ? obs : notif.InformacionContacto.email + ' / ' + obs;
      }
      notif.NotificacionConfiguracion.ExpresionCronNatural = !notif.NotificacionConfiguracion?.ExpresionCron ? 'Instantánea' : cronstrue_i18n__WEBPACK_IMPORTED_MODULE_6___default().toString(notif.NotificacionConfiguracion.ExpresionCron, {
        locale: 'es'
      });
    });
    return notificaciones;
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    datos.IdsEmpresas = this.authService.usuario.IdEmpresa;
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.IncluirReceptores = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO;
    datos.IncluirRegistros = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO;
    //busqueda
    if (this.InformacionContactoFilter != undefined && this.InformacionContactoFilter != '') {
      datos.InformacionContacto = this.InformacionContactoFilter;
    }
    //filtros
    if (this.IdsNotifTiposFilter != undefined && this.IdsNotifTiposFilter != '') {
      datos.IdsNotifTipos = this.IdsNotifTiposFilter;
    }
    if (this.IdsNotifConfiguracionesFilter != undefined && this.IdsNotifConfiguracionesFilter != '') {
      datos.IdsNotifConfiguraciones = this.IdsNotifConfiguracionesFilter;
    }
    if (this.IdsNotifTiposReceptoresFilter != undefined && this.IdsNotifTiposReceptoresFilter != '') {
      datos.IdsNotifTiposReceptores = this.IdsNotifTiposReceptoresFilter;
    }
    if (this.IdsReceptoresConTiposFilter != undefined && this.IdsReceptoresConTiposFilter != '') {
      datos.IdsNotifTiposReceptores = '';
      datos.IdsReceptoresConTipos = this.IdsReceptoresConTiposFilter;
    }
    if (this.IdsNotifCanalesFilter != undefined && this.IdsNotifCanalesFilter != '') {
      datos.IdsNotifCanales = this.IdsNotifCanalesFilter;
    }
    if (this.EstadoFilter != undefined && this.EstadoFilter != '') {
      datos.Estados = this.EstadoFilter;
    }
    //SP SINWEB-614 se agregan cambios para filtrar por fecha y hora
    if (this.FechaHoraDesdeRegistroFilter != undefined && this.FechaHoraDesdeRegistroFilter != '') {
      datos.FechaDesdeRegistro = this.FechaHoraDesdeRegistroFilter;
    }
    if (this.FechaHoraHastaRegistroFilter != undefined && this.FechaHoraHastaRegistroFilter != '') {
      datos.FechaHastaRegistro = this.FechaHoraHastaRegistroFilter;
    }
    if (this.FechaHoraDesdeNotificacionFilter != undefined && this.FechaHoraDesdeNotificacionFilter != '') {
      datos.FechaDesdeNotificacion = this.FechaHoraDesdeNotificacionFilter;
    }
    if (this.FechaHoraHastaNotificacionFilter != undefined && this.FechaHoraHastaNotificacionFilter != '') {
      datos.FechaHastaNotificacion = this.FechaHoraHastaNotificacionFilter;
    }
    if (this.FechaHoraDesdeNotificadoFilter != undefined && this.FechaHoraDesdeNotificadoFilter != '') {
      datos.FechaDesdeNotificado = this.FechaHoraDesdeNotificadoFilter;
    }
    if (this.FechaHoraHastaNotificadoFilter != undefined && this.FechaHoraHastaNotificadoFilter != '') {
      datos.FechaHastaNotificado = this.FechaHoraHastaNotificadoFilter;
    }
    //SP SINWEB-614 fin cambios para filtrar por fecha y hora
    if (this.IdsNotifDominiosFilter != undefined && this.IdsNotifDominiosFilter != '' && (this.IdsRegistrosFilter == undefined || this.IdsRegistrosFilter == '')) {
      datos.IdsNotifDominios = this.IdsNotifDominiosFilter;
    }
    if (this.IdsRegistrosFilter != undefined && this.IdsRegistrosFilter != '' && this.IdsNotifDominiosFilter != undefined && this.IdsNotifDominiosFilter != '' && this.IdsNotifDominiosFilter.split(',').length == 1) {
      datos.IdsRegistrosConDominios = lodash__WEBPACK_IMPORTED_MODULE_8__.join(this.IdsRegistrosFilter.split(',').map(elem => `[${elem}|${this.IdsNotifDominiosFilter}]`), ',');
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * Metodo que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos a guardar en cookies
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.NOTIF_LIST_B_MODO, this.tipoModo);
    //SP SINWEB-653 informacion de contacto
    this.sf.changeState(this.sf.states.NOTIF_LIST_B_INFORMACION_CONTACTO, !datos.InformacionContacto ? this.sf.states.NOTIF_LIST_B_INFORMACION_CONTACTO.default : datos.InformacionContacto);
    //filtros
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_NOTIF_TIPOS, !datos.IdsNotifTipos ? this.sf.states.NOTIF_LIST_F_NOTIF_TIPOS.default : datos.IdsNotifTipos);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_NOTIF_CONF, !datos.IdsNotifConfiguraciones ? this.sf.states.NOTIF_LIST_F_NOTIF_CONF.default : datos.IdsNotifConfiguraciones);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_TIPOS_RECEPTORES, !this.IdsNotifTiposReceptoresFilter ? this.sf.states.NOTIF_LIST_F_TIPOS_RECEPTORES.default : this.IdsNotifTiposReceptoresFilter);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO, !this.IdsReceptoresConTiposFilter ? this.sf.states.NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO.default : this.getIdReceptores());
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_RECEPTORES_CON_TIPO, !this.IdsReceptoresConTiposFilter ? this.sf.states.NOTIF_LIST_F_RECEPTORES_CON_TIPO.default : this.getReceptores());
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_IDS_NOTIF_CANALES, !datos.IdsNotifCanales ? this.sf.states.NOTIF_LIST_F_IDS_NOTIF_CANALES.default : datos.IdsNotifCanales);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_ESTADOS, !datos.Estados ? this.sf.states.NOTIF_LIST_F_ESTADOS.default : datos.Estados);
    //SP SINWEB-614 cambios para filtros defecha y hora
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_REGISTRO, !datos.FechaDesdeRegistro ? this.sf.states.NOTIF_LIST_F_FECHA_DESDE_REGISTRO.default : this.filterForm.get('FechaHoraDesdeRegistro')?.value);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_REGISTRO, !datos.FechaHastaRegistro ? this.sf.states.NOTIF_LIST_F_FECHA_HASTA_REGISTRO.default : this.filterForm.get('FechaHoraHastaRegistro')?.value);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICACION, !datos.FechaDesdeNotificacion ? this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICACION.default : this.filterForm.get('FechaHoraDesdeNotificacion')?.value);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICACION, !datos.FechaHastaNotificacion ? this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICACION.default : this.filterForm.get('FechaHoraHastaNotificacion')?.value);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICADO, !datos.FechaDesdeNotificado ? this.sf.states.NOTIF_LIST_F_FECHA_DESDE_NOTIFICADO.default : this.filterForm.get('FechaHoraDesdeNotificado')?.value);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICADO, !datos.FechaHastaNotificado ? this.sf.states.NOTIF_LIST_F_FECHA_HASTA_NOTIFICADO.default : this.filterForm.get('FechaHoraHastaNotificado')?.value);
    //SP SINWEB-614 fin cambios para filtros de fecha y hora
    //SP SINWEB-653 filtro para seleccion de registros
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_IDS_REGISTROS, !datos.IdsRegistrosConDominios ? this.sf.states.NOTIF_LIST_F_IDS_REGISTROS.default : this.IdsRegistrosFilter);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_REGISTROS, !datos.IdsRegistrosConDominios ? this.sf.states.NOTIF_LIST_F_REGISTROS.default : this.filterForm.get('Registros')?.value);
    this.sf.changeState(this.sf.states.NOTIF_LIST_F_IDS_NOTIF_DOMINIOS, !datos.IdsNotifDominios && !datos.IdsRegistrosConDominios ? this.sf.states.NOTIF_LIST_F_IDS_NOTIF_DOMINIOS.default : datos.IdsNotifDominios ? datos.IdsNotifDominios : this.IdsNotifDominiosFilter);
    //listado
    this.sf.changeState(this.sf.states.NOTIF_LIST_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.NOTIF_LIST_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.NOTIF_LIST_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.NOTIF_LIST_L_SENTIDO, datos.SentidoOrden);
  }
  getReceptores() {
    return this.filterForm.get('ReceptoresConTipo').value;
  }
  getIdReceptores() {
    return this.filterForm.get('IdsReceptoresConTipos').value;
  }
  borrarReceptores() {
    this.filterForm.controls.IdsReceptoresConTipos.setValue(null);
    this.filterForm.controls.ReceptoresConTipo.setValue(null);
    this.IdsReceptoresConTiposFilter = '';
    this.page = 1;
    this.loadPage();
  }
  buscarReceptores() {
    let componenteReceptor = this.filterForm.get('IdsNotifTiposReceptores').value[0];
    switch (componenteReceptor) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE:
        const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_4__.SeleccionarClienteComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef.componentInstance.filtros = {
          Multiple: true,
          Bajas: {
            Id: 'N',
            Ocultar: true
          }
        };
        modalRef.result.then(resolve => {
          if (resolve !== undefined) {
            this.filterForm.controls.IdsReceptoresConTipos.setValue(resolve.IdsClientes.join(','));
            this.filterForm.controls.ReceptoresConTipo.setValue(resolve.Clientes.join(','));
          }
        });
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR:
        const modalRef2 = this.modalService.open(src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_5__.SeleccionarProveedorComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef2.componentInstance.filtros = {
          Multiple: true,
          Bajas: {
            Id: 'N',
            Ocultar: true
          }
        };
        modalRef2.result.then(resolve => {
          if (resolve !== undefined) {
            this.filterForm.controls.IdsReceptoresConTipos.setValue(resolve.IdsProveedores.join(','));
            this.filterForm.controls.ReceptoresConTipo.setValue(resolve.Proveedores.join(','));
          }
        });
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL:
        const modalRef3 = this.modalService.open(_dashboards_core_seleccionar_usuarios_seleccionar_usuarios_component__WEBPACK_IMPORTED_MODULE_13__.SeleccionarUsuariosComponent, {
          size: 'xl',
          backdropClass: 'back-z-index-2',
          windowClass: 'modal-z-index-2',
          backdrop: 'static',
          keyboard: false,
          scrollable: true
        });
        modalRef3.componentInstance.filtros = {
          Multiple: true,
          Bajas: {
            Id: 'N',
            Ocultar: true
          }
        };
        modalRef3.result.then(resolve => {
          if (resolve !== undefined) {
            this.filterForm.controls.IdsReceptoresConTipos.setValue(resolve.IdsUsuarios.join(','));
            this.filterForm.controls.ReceptoresConTipo.setValue(resolve.Usuarios.join(','));
          }
        });
        break;
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB:
        const modalRef4 = this.modalService.open(_configuracion_notificacion_seleccionar_tipo_receptor_seleccionar_tipo_receptor_component__WEBPACK_IMPORTED_MODULE_14__.SeleccionarTipoReceptorComponent, {
          size: 'xs',
          backdropClass: 'back-z-index-3',
          windowClass: 'modal-z-index-3',
          backdrop: 'static',
          keyboard: false,
          scrollable: true,
          centered: true
        });
        modalRef4.componentInstance.receptores = [{
          Id: 1,
          NotifTipoReceptor: {
            Id: 'ML',
            Nombre: 'Usuario Web - Mercado Libre',
            IdPlataforma: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.PLATAFORMA_MERCADO_LIBRE
          }
        }, {
          Id: 2,
          NotifTipoReceptor: {
            Id: 'V',
            Nombre: 'Usuario Web - Vendú',
            IdPlataforma: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.PLATAFORMA_VENDU
          }
        }];
        modalRef4.result.then(resolve => {
          if (resolve !== undefined) {
            this.cargarModalReceptores(resolve);
          }
        });
        break;
      default:
        break;
    }
  }
  cargarModalReceptores(resolve) {
    const modalRef = this.modalService.open(_dashboards_core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_15__.SeleccionarUsuarioWebComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-3',
      windowClass: 'modal-z-index-3',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.filtros = {
      Multiple: true,
      Bajas: {
        Id: 'N',
        Ocultar: true
      },
      Plataforma: {
        Id: resolve.NotifTipoReceptor.IdPlataforma,
        Ocultar: true
      }
    };
    console.log(resolve);
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.filterForm.controls.IdsReceptoresConTipos.setValue(resolve.IdsUsuariosWeb.join(','));
        this.filterForm.controls.ReceptoresConTipo.setValue(resolve.UsuariosWeb.join(','));
      }
    });
  }
  cargarTipoNotif() {
    const datos = {
      PageNumber: -1,
      Orden: 3,
      IdsEmpresas: this.authService.usuario.IdEmpresa
    };
    const susc = this.notificacionTipoServices.fetch(datos).subscribe(data => {
      this.NotifTipos = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  cargarNotifConfNotif() {
    const datos = {
      PageNumber: -1,
      Orden: 9,
      IdsEmpresas: this.authService.usuario.IdEmpresa
    };
    const susc = this.notificacionConfiguracionServices.fetch(datos).subscribe(data => {
      this.NotifConfNotifs = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  cargarTipoReceptores() {
    const datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'asc'
    };
    const susc = this.notifTipoReceptorServices.fetch(datos).subscribe(data => {
      this.NotifTiposReceptores = data.Data;
      this.NotifTiposReceptores = this.NotifTiposReceptores.filter(tipo => tipo.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_CLIENTE || tipo.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_PROVEEDOR || tipo.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL || tipo.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_WEB || tipo.Id == src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_OTRO);
    });
    this.unsubscribe.push(susc);
  }
  cargarCanales() {
    const datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'asc'
    };
    const susc = this.notificacionCanalServices.fetch(datos).subscribe(data => {
      this.NotifCanales = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  cargarDominios() {
    const datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'asc'
    };
    const susc = this.notificacionDominioServices.fetch(datos).subscribe(data => {
      this.dominios = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  /**
   * Metodo para cambio de pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  /**
   * Realiza llamada a la api y exporta a excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    delete datos.PageSize;
    //SP SINWEB-91 se arman las columnas y keys para buscar datos y armar el excel
    const columns = ['Fecha Registro', 'Fecha Notificación', 'Fecha Notificado', 'Estado', 'Intentos', 'Tipo', 'Configuración', 'Canal', 'Periodicidad', 'Tipo Receptor', 'Receptor', 'Observación'];
    const keys = ['FechaRegistro', 'FechaNotificacion', 'FechaNotificado', 'Estado', 'Intentos', 'NotificacionConfiguracion.NotificacionTipo.Nombre', 'NotificacionConfiguracion.Descripcion', 'NotificacionConfiguracion.NotifCanal.Nombre', 'CronTraslate', 'NotifTipoReceptor.Nombre', 'Receptor', 'ObservacionEstado'];
    this.alert.showLoadingAlert('Exportando Notificaciones', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //SP SINWEB-91 llamada al recurso correspondiente de la api
    this.servicesSelected.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Notificaciones Exportadas', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      let result = this.procesarNotificaciones(data.Data);
      // data.Data.map(item => {
      //   return {
      //     ...item,
      //     Receptor: {
      //       Nombre: item.ReceptorProveedor?.Nombre || item.ReceptorCliente?.Nombre,
      //       Codigo: item.ReceptorProveedor?.Codigo || item.ReceptorCliente?.Codigo
      //     },
      //     CronTraslate: !item.NotificacionConfiguracion.ExpresionCron ? null
      //     : cronstrue.toString( item.NotificacionConfiguracion.ExpresionCron,{ locale: "es" })
      //   }
      // });
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(result, columns, keys, 'Listado de Notificaciones');
      } else {
        const columnsReduced = ['Fecha Registro', 'Estado', 'Canal', 'Receptor', 'Observación'];
        const keysReduced = ['FechaRegistro', 'Estado', 'NotificacionConfiguracion.NotifCanal.Nombre', 'Receptor', 'ObservacionEstado'];
        this.exportacion.exportToPdf(result, columnsReduced, keysReduced, 'Listado de Notificaciones', 6);
      }
    });
  }
  /**
   * Metodo para  iniciar tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * Metodo para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de atributos
    fetch('./assets/tours/notificaciones/listado-notificaciones.json').then(response => response.json()).then(tourNotif => {
      this.tourSteps = tourNotif;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this.unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'modoNotif.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  verDetalleNotif(notif) {
    const modalRef = this.modalService.open(_listado_notificaciones_view_listado_notificaciones_view_component__WEBPACK_IMPORTED_MODULE_7__.ListadoNotificacionesViewComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      backdrop: 'static',
      keyboard: false
    });
    modalRef.componentInstance.notificacion = notif;
  }
  /**
   * SP SINWEB-614 se agregan metodo para filtros de hora
   */
  getFechaHoraDesdeRegistro() {
    return this.filterForm.get('FechaHoraDesdeRegistro').value;
  }
  setFechaHoraDesdeRegistro(event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)(event, this.filterForm.get('FechaHoraDesdeRegistro').value)) {
      this.filterForm.controls.FechaHoraDesdeRegistro.setValue(event);
    }
  }
  getFechaHoraHastaRegistro() {
    return this.filterForm.get('FechaHoraHastaRegistro').value;
  }
  setFechaHoraHastaRegistro(event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)(event, this.filterForm.get('FechaHoraHastaRegistro').value)) {
      this.filterForm.controls.FechaHoraHastaRegistro.setValue(event);
    }
  }
  getFechaHoraDesdeNotificacion() {
    return this.filterForm.get('FechaHoraDesdeNotificacion').value;
  }
  setFechaHoraDesdeNotificacion(event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)(event, this.filterForm.get('FechaHoraDesdeNotificacion').value)) {
      this.filterForm.controls.FechaHoraDesdeNotificacion.setValue(event);
    }
  }
  getFechaHoraHastaNotificacion() {
    return this.filterForm.get('FechaHoraHastaNotificacion').value;
  }
  setFechaHoraHastaNotificacion(event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)(event, this.filterForm.get('FechaHoraHastaNotificacion').value)) {
      this.filterForm.controls.FechaHoraHastaNotificacion.setValue(event);
    }
  }
  getFechaHoraDesdeNotificado() {
    return this.filterForm.get('FechaHoraDesdeNotificado').value;
  }
  setFechaHoraDesdeNotificado(event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)(event, this.filterForm.get('FechaHoraDesdeNotificado').value)) {
      this.filterForm.controls.FechaHoraDesdeNotificado.setValue(event);
    }
  }
  getFechaHoraHastaNotificado() {
    return this.filterForm.get('FechaHoraHastaNotificado').value;
  }
  setFechaHoraHastaNotificado(event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)(event, this.filterForm.get('FechaHoraHastaNotificado').value)) {
      this.filterForm.controls.FechaHoraHastaNotificado.setValue(event);
    }
  }
  //SP SINWEB-614 fin de cambios
  //SP SINWEB-653 se agregan metodos para seleccion de registros
  getComponenteSeleccionar(idDominio) {
    switch (idDominio) {
      case 2:
        return {
          componente: _dashboards_core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_9__.SeleccionarComprobanteVentaComponent,
          filtro: {
            Multiple: true
          },
          idsKey: 'IdsComprobantes',
          registrosKey: 'Comprobantes'
        };
      case 3:
        return {
          componente: _dashboards_core_seleccionar_comprobante_compra_seleccionar_comprobante_compra_component__WEBPACK_IMPORTED_MODULE_10__.SeleccionarComprobanteCompraComponent,
          filtro: {
            Multiple: true
          },
          idsKey: 'IdsComprobantes',
          registrosKey: 'Comprobantes'
        };
      default:
        return null;
    }
  }
  buscarRegistros() {
    const comprobanteOptions = this.getComponenteSeleccionar(this.filterForm.get('IdsNotifDominios').value[0]);
    if (comprobanteOptions != null) {
      const modalRef = this.modalService.open(comprobanteOptions.componente, {
        size: 'xl',
        backdropClass: 'back-z-index',
        windowClass: 'modal-z-index',
        backdrop: 'static',
        keyboard: false,
        scrollable: true
      });
      modalRef.componentInstance.filtros = comprobanteOptions.filtro;
      modalRef.result.then(resolve => {
        if (resolve !== undefined) {
          this.filterForm.controls.IdsRegistros.setValue(resolve[comprobanteOptions.idsKey].join(','));
          this.filterForm.controls.Registros.setValue(resolve[comprobanteOptions.registrosKey].join(','));
          this.IdsRegistrosFilter = this.filterForm.controls.IdsRegistros.value;
          this.page = 1;
          this.loadPage();
        }
      });
    }
  }
  getRegistros() {
    return this.filterForm.get('Registros').value;
  }
  borrarRegistros(load = true) {
    this.filterForm.get('Registros').reset('');
    this.filterForm.get('IdsRegistros').reset('');
    this.IdsRegistrosFilter = '';
    if (load) {
      this.page = 1;
      this.loadPage();
    }
  }
  dominioValido() {
    return this.filterForm.get('IdsNotifDominios').value.length == 1 && (this.filterForm.get('IdsNotifDominios').value == 2 || this.filterForm.get('IdsNotifDominios').value == 3);
  }
  buscarPorInfContacto() {
    this.page = 1;
    this.InformacionContactoFilter = this.searchForm.get('InformacionContacto').value;
    this.loadPage();
  }
  busquedaInfContacto() {
    return this.InformacionContactoFilter != undefined && this.InformacionContactoFilter != '';
  }
  borrarInfContacto() {
    this.searchForm.get('InformacionContacto').reset('');
    this.InformacionContactoFilter = '';
    this.page = 1;
    this.loadPage();
  }
  // MC SINWEB-654
  selectNotif(event) {
    this.notifSeleccionadas = event.rows;
  }
  validCheckbox(value, validator) {
    return lodash__WEBPACK_IMPORTED_MODULE_8__.get(value, 'Estado', false) !== src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.ESTADO_PEND_GENERAR;
  }
  envioManual(notif) {
    const modalRef = this.modalService.open(_envio_manual_envio_manual_component__WEBPACK_IMPORTED_MODULE_11__.EnvioManualComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      backdrop: 'static',
      keyboard: false
    });
    modalRef.componentInstance.notificacion = notif;
    modalRef.result.then(resolve => {
      if (resolve == 'success') {
        this.alert.showBasicAlert('Envío de notificación', 'Notificación enviada correctamente', 'success');
        this.loadPage();
      }
    });
  }
  envioManualMultiple() {
    const modalRef = this.modalService.open(_envio_manual_multiple_envio_manual_multiple_component__WEBPACK_IMPORTED_MODULE_12__.EnvioManualMultipleComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      backdrop: 'static',
      keyboard: false
    });
    modalRef.componentInstance.notificaciones = this.notifSeleccionadas;
    modalRef.result.then(resolve => {
      if (resolve == 'success') {
        this.alert.showBasicAlert('Envío múltiple de notificaciones', 'Notificaciones enviadas correctamente', 'success');
        this.loadPage();
      } else if (resolve == 'reload') {
        this.loadPage();
      }
      this.notifSeleccionadas = [];
    });
  }
  static #_ = this.ɵfac = function ListadoNotificacionesComponent_Factory(t) {
    return new (t || ListadoNotificacionesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_32__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_16__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_17__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_18__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacion_service__WEBPACK_IMPORTED_MODULE_19__.NotificacionServices), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_20__.NotificacionHistorialServices), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionTipo_service__WEBPACK_IMPORTED_MODULE_21__.NotificacionTipoServices), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionConfiguracion_service__WEBPACK_IMPORTED_MODULE_22__.NotificacionConfiguracionServices), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notifTipoReceptor_service__WEBPACK_IMPORTED_MODULE_23__.NotifTipoReceptorServices), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionCanal_service__WEBPACK_IMPORTED_MODULE_24__.NotificacionCanalServices), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionDominio_service__WEBPACK_IMPORTED_MODULE_25__.NotificacionDominioServices));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdefineComponent"]({
    type: ListadoNotificacionesComponent,
    selectors: [["app-listado-notificaciones"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.TourService])],
    decls: 64,
    vars: 40,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "baseZIndex", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "col-xxl-3 col-lg-3 d-none d-lg-block", 4, "ngIf"], [3, "ngClass"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "gap-2", "align-items-center"], [1, "mb-0", "card-title", "flex-grow-1", "d-flex", "flex-row"], ["tourAnchor", "listNotif.anchor.id", 1, "mb-1", "align-self-center"], [1, "text-primary", 2, "cursor", "pointer", 3, "click"], [1, "bx", "bx-info-circle", "font-size-24", "align-self-center"], [1, "flex-shrink-0", "d-flex", "gap-1"], [1, "btn", "btn-primary", "position-relative", "me-md-0", "me-2", 3, "disabled", "click"], [1, "d-none", "d-md-flex", "gap-2"], ["class", "badge rounded-pill bg-light float-end text-dark align-self-center"], [1, "d-block", "d-md-none", "mdi", "mdi-send", "mdi-16"], ["class", "d-block d-md-none position-absolute top-0 start-100 translate-middle badge rounded-pill bg-light shadow-sm fw-bold float-end text-dark align-self-center"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-block", "d-lg-none"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], ["tourAnchor", "modoNotif.anchor.id", 1, "col-lg-3"], [1, "form-check", "form-switch", "form-switch-lg", "d-flex", "align-items-center", "mt-1"], ["styleClass", "form-check-input", "inputId", "checkModo", "formControlName", "modo", "trueValue", "N", "falseValue", "H", 3, "disabled"], ["for", "checkModo", 1, "form-check-label", "text-muted", "align-self-center"], [1, "col-lg-6"], [1, "input-group"], ["type", "text", "formControlName", "InformacionContacto", "placeholder", "Buscar por Inf. Contacto", "maxlength", "100", 1, "form-control", 3, "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [1, "card-body"], ["stateConfig", "NOTIF_LIST_F_CONFIG", "title", "tabla de notificaciones", "styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "selectRows", "selectedRows", "selectAllFunc", "validateCheckFunc", "expandRows", "configColumns", "state", "acciones", "dropdownButtons", "isLoading", "selectRowsAction", "emitAction", "lazyLoad"], ["FILTRO", ""], [1, "col-xxl-3", "col-lg-3", "d-none", "d-lg-block"], ["tourAnchor", "filtroNotif.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], [1, "badge", "rounded-pill", "bg-light", "float-end", "text-dark", "align-self-center"], [1, "d-block", "d-md-none", "position-absolute", "top-0", "start-100", "translate-middle", "badge", "rounded-pill", "bg-light", "shadow-sm", "fw-bold", "float-end", "text-dark", "align-self-center"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "form-label"], ["labelKey", "Nombre", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], [1, "my-2"], ["labelKey", "Descripcion", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], ["header", "Avanzados"], [1, "border", "border-1", "rounded", "border-opacity-10", "p-2", "mb-2"], [1, "fw-bold"], [1, "mt-3"], ["data-cy", "registros-search ", 1, "input-group"], ["type", "search", "formControlName", "Registros", "placeholder", "Seleccionar Registros", "readonly", "", 1, "form-control"], [1, "btn", "btn-primary", 3, "disabled", "click"], [1, "text-muted", "font-size-12"], ["type", "search", "formControlName", "ReceptoresConTipo", "placeholder", "Receptores", "Readonly", "", 1, "form-control"], [3, "valor", "valorEmit"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"]],
    template: function ListadoNotificacionesComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("visibleChange", function ListadoNotificacionesComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](3, ListadoNotificacionesComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](4, ListadoNotificacionesComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](11, " Listado de notificaciones ");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_13_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](15, "div", 13)(16, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_button_click_16_listener() {
          return ctx.envioManualMultiple();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](17, "span", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](18, " Env\u00EDo manual m\u00FAltiple ");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](19, ListadoNotificacionesComponent_Conditional_19_Template, 2, 1, "span", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](20, "i", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](21, ListadoNotificacionesComponent_Conditional_21_Template, 2, 1, "span", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](22, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_22_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](23, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpipe"](24, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](25, "a", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_25_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](26, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](27, "div", 21)(28, "button", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](29, "i", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](30, "ul", 24)(31, "li")(32, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_32_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](33, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](34, "li")(35, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_35_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](36, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](37, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementContainerStart"](38, 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](39, "div", 27)(40, "div", 28)(41, "a", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_41_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](42, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](43, "div", 30)(44, "a", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_44_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](45, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](46, "div", 32)(47, "div", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](48, "p-inputSwitch", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpipe"](49, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](50, "label", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtext"](51, "Solo pendientes");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](52, "div", 36)(53, "div", 37)(54, "input", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("keyup.enter", function ListadoNotificacionesComponent_Template_input_keyup_enter_54_listener() {
          return ctx.buscarPorInfContacto();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](55, ListadoNotificacionesComponent_a_55_Template, 2, 0, "a", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](56, "a", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("click", function ListadoNotificacionesComponent_Template_a_click_56_listener() {
          return ctx.buscarPorInfContacto();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](57, "i", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementStart"](58, "div", 42)(59, "app-table2", 43);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵlistener"]("selectRowsAction", function ListadoNotificacionesComponent_Template_app_table2_selectRowsAction_59_listener($event) {
          return ctx.selectNotif($event);
        })("emitAction", function ListadoNotificacionesComponent_Template_app_table2_emitAction_59_listener($event) {
          return ctx.accionOrder($event);
        })("lazyLoad", function ListadoNotificacionesComponent_Template_app_table2_lazyLoad_59_listener($event) {
          return ctx.lazyLoadChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpipe"](60, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplate"](61, ListadoNotificacionesComponent_ng_template_61_Template, 77, 26, "ng-template", null, 44, _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵelement"](63, "app-tour");
      }
      if (rf & 2) {
        const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵreference"](62);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("visible", ctx.filtroMobile)("baseZIndex", 1056);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngTemplateOutlet", _r6);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-9 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("disabled", (ctx.notifSeleccionadas == null ? null : ctx.notifSeleccionadas.length) === 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵconditional"](19, (ctx.notifSeleccionadas == null ? null : ctx.notifSeleccionadas.length) > 0 ? 19 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵconditional"](21, (ctx.notifSeleccionadas == null ? null : ctx.notifSeleccionadas.length) > 0 ? 21 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpipeBind1"](24, 34, ctx.servicesSelected.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngClass", !ctx.filtroMobile ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpipeBind1"](49, 36, ctx.servicesSelected.isLoading$));
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("ngIf", ctx.busquedaInfContacto());
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵproperty"]("columns", ctx.NotifHeader)("datos", ctx.notificaciones)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("selectRows", ctx.tipoModo == ctx.MODO_POR_NOTIFICAR)("selectedRows", ctx.notifSeleccionadas)("selectAllFunc", false)("validateCheckFunc", ctx.validCheckbox)("expandRows", false)("configColumns", true)("state", ctx.stateConfig)("acciones", ctx.tipoModo !== ctx.MODO_HISTORICO)("dropdownButtons", ctx.DropdownActions)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵpipeBind1"](60, 38, ctx.servicesSelected.isLoading$));
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_35__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_35__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_36__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_36__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_36__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_32__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_32__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_32__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_32__.MaxLengthValidator, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_37__.InputSwitch, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_32__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_32__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_38__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_26__.TourComponent, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_27__.SelectMultipleComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_28__.Table2Component, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_29__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_36__.AsyncPipe]
  });
}

/***/ }),

/***/ 68526:
/*!***********************************************************************!*\
  !*** ./src/app/pages/notificaciones/notificaciones-routing.module.ts ***!
  \***********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionesRoutingModule: () => (/* binding */ NotificacionesRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _inicio_notificaciones_inicio_notificaciones_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inicio-notificaciones/inicio-notificaciones.component */ 11629);
/* harmony import */ var _configuracion_receptor_configuracion_receptor_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./configuracion-receptor/configuracion-receptor.component */ 49721);
/* harmony import */ var _configuracion_notificacion_configuracion_notificacion_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configuracion-notificacion/configuracion-notificacion.component */ 25157);
/* harmony import */ var _listado_notificaciones_listado_notificaciones_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./listado-notificaciones/listado-notificaciones.component */ 70054);
/* harmony import */ var _configuracion_notificacion_admin_config_receptores_admin_config_receptores_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./configuracion-notificacion/admin-config-receptores/admin-config-receptores.component */ 44404);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);








const routes = [{
  path: 'inicio',
  component: _inicio_notificaciones_inicio_notificaciones_component__WEBPACK_IMPORTED_MODULE_0__.InicioNotificacionesComponent
}, {
  path: 'configNotif',
  component: _configuracion_notificacion_configuracion_notificacion_component__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionNotificacionComponent
}, {
  path: 'configNotifReceptor',
  component: _configuracion_receptor_configuracion_receptor_component__WEBPACK_IMPORTED_MODULE_1__.ConfiguracionReceptorComponent
}, {
  path: 'listadoNotificaciones',
  component: _listado_notificaciones_listado_notificaciones_component__WEBPACK_IMPORTED_MODULE_3__.ListadoNotificacionesComponent
}, {
  path: 'configNotif/:id/adminReceptores',
  component: _configuracion_notificacion_admin_config_receptores_admin_config_receptores_component__WEBPACK_IMPORTED_MODULE_4__.AdminConfigReceptoresComponent
}];
class NotificacionesRoutingModule {
  static #_ = this.ɵfac = function NotificacionesRoutingModule_Factory(t) {
    return new (t || NotificacionesRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
    type: NotificacionesRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](NotificacionesRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule]
  });
})();

/***/ }),

/***/ 74201:
/*!***************************************************************!*\
  !*** ./src/app/pages/notificaciones/notificaciones.module.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionesModule: () => (/* binding */ NotificacionesModule)
/* harmony export */ });
/* harmony import */ var _notificaciones_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./notificaciones-routing.module */ 68526);
/* harmony import */ var _inicio_notificaciones_inicio_notificaciones_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inicio-notificaciones/inicio-notificaciones.component */ 11629);
/* harmony import */ var _configuracion_receptor_configuracion_receptor_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configuracion-receptor/configuracion-receptor.component */ 49721);
/* harmony import */ var _configuracion_notificacion_configuracion_notificacion_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./configuracion-notificacion/configuracion-notificacion.component */ 25157);
/* harmony import */ var _listado_notificaciones_listado_notificaciones_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./listado-notificaciones/listado-notificaciones.component */ 70054);
/* harmony import */ var _configuracion_receptor_carga_masiva_conf_recep_carga_masiva_conf_recep_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./configuracion-receptor/carga-masiva-conf-recep/carga-masiva-conf-recep.component */ 94170);
/* harmony import */ var _configuracion_receptor_configuracion_receptor_edit_configuracion_receptor_edit_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./configuracion-receptor/configuracion-receptor-edit/configuracion-receptor-edit.component */ 64562);
/* harmony import */ var _configuracion_notificacion_selector_formato_notificacion_selector_formato_notificacion_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./configuracion-notificacion/selector-formato-notificacion/selector-formato-notificacion.component */ 94427);
/* harmony import */ var _configuracion_notificacion_configuracion_notificacion_edit_configuracion_notificacion_edit_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./configuracion-notificacion/configuracion-notificacion-edit/configuracion-notificacion-edit.component */ 64082);
/* harmony import */ var _configuracion_notificacion_admin_config_receptores_admin_config_receptores_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./configuracion-notificacion/admin-config-receptores/admin-config-receptores.component */ 44404);
/* harmony import */ var _configuracion_notificacion_admin_config_receptores_admin_receptores_admin_receptores_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./configuracion-notificacion/admin-config-receptores/admin-receptores/admin-receptores.component */ 55441);
/* harmony import */ var _dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../dashboards/dashboards.module */ 44804);
/* harmony import */ var _configuracion_notificacion_admin_config_receptores_response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./configuracion-notificacion/admin-config-receptores/response-receptores/response-receptores.component */ 89632);
/* harmony import */ var _configuracion_notificacion_admin_config_receptores_admin_receptores_edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./configuracion-notificacion/admin-config-receptores/admin-receptores/edit-receptor/edit-receptor.component */ 5826);
/* harmony import */ var src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/shared/shared.module */ 56208);
/* harmony import */ var _listado_notificaciones_listado_notificaciones_view_listado_notificaciones_view_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./listado-notificaciones/listado-notificaciones-view/listado-notificaciones-view.component */ 50200);
/* harmony import */ var _listado_notificaciones_envio_manual_envio_manual_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./listado-notificaciones/envio-manual/envio-manual.component */ 20989);
/* harmony import */ var _listado_notificaciones_envio_manual_multiple_envio_manual_multiple_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./listado-notificaciones/envio-manual-multiple/envio-manual-multiple.component */ 36904);
/* harmony import */ var _configuracion_notificacion_seleccionar_tipo_receptor_seleccionar_tipo_receptor_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./configuracion-notificacion/seleccionar-tipo-receptor/seleccionar-tipo-receptor.component */ 50078);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/core */ 65879);




















class NotificacionesModule {
  static #_ = this.ɵfac = function NotificacionesModule_Factory(t) {
    return new (t || NotificacionesModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdefineNgModule"]({
    type: NotificacionesModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdefineInjector"]({
    imports: [_notificaciones_routing_module__WEBPACK_IMPORTED_MODULE_0__.NotificacionesRoutingModule, _dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_11__.DashboardsModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_14__.SharedModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵsetNgModuleScope"](NotificacionesModule, {
    declarations: [_inicio_notificaciones_inicio_notificaciones_component__WEBPACK_IMPORTED_MODULE_1__.InicioNotificacionesComponent, _configuracion_receptor_configuracion_receptor_component__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionReceptorComponent, _configuracion_notificacion_configuracion_notificacion_component__WEBPACK_IMPORTED_MODULE_3__.ConfiguracionNotificacionComponent, _listado_notificaciones_listado_notificaciones_component__WEBPACK_IMPORTED_MODULE_4__.ListadoNotificacionesComponent, _configuracion_receptor_carga_masiva_conf_recep_carga_masiva_conf_recep_component__WEBPACK_IMPORTED_MODULE_5__.CargaMasivaConfRecepComponent, _configuracion_receptor_configuracion_receptor_edit_configuracion_receptor_edit_component__WEBPACK_IMPORTED_MODULE_6__.ConfiguracionReceptorEditComponent, _configuracion_notificacion_selector_formato_notificacion_selector_formato_notificacion_component__WEBPACK_IMPORTED_MODULE_7__.SelectorFormatoNotificacionComponent, _configuracion_notificacion_configuracion_notificacion_edit_configuracion_notificacion_edit_component__WEBPACK_IMPORTED_MODULE_8__.ConfiguracionNotificacionEditComponent, _configuracion_notificacion_admin_config_receptores_admin_config_receptores_component__WEBPACK_IMPORTED_MODULE_9__.AdminConfigReceptoresComponent, _configuracion_notificacion_admin_config_receptores_admin_receptores_admin_receptores_component__WEBPACK_IMPORTED_MODULE_10__.AdminReceptoresComponent, _configuracion_notificacion_admin_config_receptores_response_receptores_response_receptores_component__WEBPACK_IMPORTED_MODULE_12__.ResponseReceptoresComponent, _configuracion_notificacion_admin_config_receptores_admin_receptores_edit_receptor_edit_receptor_component__WEBPACK_IMPORTED_MODULE_13__.EditReceptorComponent, _listado_notificaciones_listado_notificaciones_view_listado_notificaciones_view_component__WEBPACK_IMPORTED_MODULE_15__.ListadoNotificacionesViewComponent, _listado_notificaciones_envio_manual_envio_manual_component__WEBPACK_IMPORTED_MODULE_16__.EnvioManualComponent, _listado_notificaciones_envio_manual_multiple_envio_manual_multiple_component__WEBPACK_IMPORTED_MODULE_17__.EnvioManualMultipleComponent, _configuracion_notificacion_seleccionar_tipo_receptor_seleccionar_tipo_receptor_component__WEBPACK_IMPORTED_MODULE_18__.SeleccionarTipoReceptorComponent],
    imports: [_notificaciones_routing_module__WEBPACK_IMPORTED_MODULE_0__.NotificacionesRoutingModule, _dashboards_dashboards_module__WEBPACK_IMPORTED_MODULE_11__.DashboardsModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_14__.SharedModule],
    exports: [_inicio_notificaciones_inicio_notificaciones_component__WEBPACK_IMPORTED_MODULE_1__.InicioNotificacionesComponent]
  });
})();

/***/ })

}]);