(self["webpackChunkskote"] = self["webpackChunkskote"] || []).push([["default-src_app_pages_dashboards_dashboards_module_ts"],{

/***/ 76190:
/*!*******************************************************************************!*\
  !*** ./src/app/core/services/autorizacion/autorizacionComprobante.service.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AutorizacionComprobanteService: () => (/* binding */ AutorizacionComprobanteService)
/* 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);






// MC SINWEB-98 Servicio para la autorización de comprobantes
class AutorizacionComprobanteService 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.autorizacion.AUTORIZACION_COMPROBANTE.VERSION + this.autorizacion.AUTORIZACION_COMPROBANTE.PATH_BASE;
  }
  // MC SINWEB-121 Funcion para obtener los responsables que han autorizado algún comprobante
  getResponsables(params, context) {
    let path = this.url + this.autorizacion.AUTORIZACION_COMPROBANTE.GET_RESPONSABLES.VERSION + this.autorizacion.AUTORIZACION_COMPROBANTE.PATH_BASE + this.autorizacion.AUTORIZACION_COMPROBANTE.GET_RESPONSABLES.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function AutorizacionComprobanteService_Factory(t) {
    return new (t || AutorizacionComprobanteService)(_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: AutorizacionComprobanteService,
    factory: AutorizacionComprobanteService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 53053:
/*!**************************************************************!*\
  !*** ./src/app/core/services/core/atributo-rubro.service.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributoRubroService: () => (/* binding */ AtributoRubroService)
/* 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 _api_base_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api-base.service */ 78169);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../auth.service */ 90304);
/* 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 AtributoRubroService extends _api_base_service__WEBPACK_IMPORTED_MODULE_1__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.ATRIBUTO_RUBRO.VERSION + this.core.ATRIBUTO_RUBRO.PATH_BASE;
  }
  getAtributoRubros(params, context) {
    let path = this.url + this.core.ATRIBUTO_RUBRO.GET_ATRIBUTO_RUBRO.VERSION + (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.allReplace)(this.core.ATRIBUTO_RUBRO.GET_ATRIBUTO_RUBRO.PATH_REL, {
      '{id}': params.idRubro
    });
    return this.fetch(params, path, context);
  }
  putAtributoRubros(params, idRubro, context) {
    let path = this.url + this.core.ATRIBUTO_RUBRO.PUT_ATRIBUTO_RUBRO.VERSION + (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.allReplace)(this.core.ATRIBUTO_RUBRO.PUT_ATRIBUTO_RUBRO.PATH_REL, {
      '{id}': idRubro
    });
    return this.editar(params, idRubro, path, context);
  }
  static #_ = this.ɵfac = function AtributoRubroService_Factory(t) {
    return new (t || AtributoRubroService)(_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_2__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: AtributoRubroService,
    factory: AtributoRubroService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributoService: () => (/* binding */ AtributoService)
/* 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 _api_base_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api-base.service */ 78169);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../auth.service */ 90304);
/* 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 AtributoService extends _api_base_service__WEBPACK_IMPORTED_MODULE_1__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.ATRIBUTO.VERSION + this.core.ATRIBUTO.PATH_BASE;
  }
  getValores(params, context) {
    let path = this.url + this.core.ATRIBUTO.GET_VALORES.VERSION + this.core.ATRIBUTO.PATH_BASE + (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.allReplace)(this.core.ATRIBUTO.GET_VALORES.PATH_REL, {
      '{idAtributo}': params.idAtributo
    });
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function AtributoService_Factory(t) {
    return new (t || AtributoService)(_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_2__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: AtributoService,
    factory: AtributoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ComprobanteCompraServices: () => (/* binding */ ComprobanteCompraServices)
/* 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 _api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./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 ComprobanteCompraServices extends _api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.COMPROBANTE_COMPRA.VERSION + this.core.COMPROBANTE_COMPRA.PATH_BASE;
  }
  getTotalizado(params, context) {
    let path = this.url + this.core.COMPROBANTE_COMPRA.GET_TOTALIZADO.VERSION + this.core.COMPROBANTE_COMPRA.PATH_BASE + this.core.COMPROBANTE_COMPRA.GET_TOTALIZADO.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function ComprobanteCompraServices_Factory(t) {
    return new (t || ComprobanteCompraServices)(_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: ComprobanteCompraServices,
    factory: ComprobanteCompraServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ComprobanteVentaService: () => (/* binding */ ComprobanteVentaService)
/* 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 _recursos_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _api_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./api-base.service */ 78169);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);






class ComprobanteVentaService extends _api_base_service__WEBPACK_IMPORTED_MODULE_3__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.COMPROBANTE_VENTA.VERSION + this.core.COMPROBANTE_VENTA.PATH_BASE;
  }
  static #_ = this.ɵfac = function ComprobanteVentaService_Factory(t) {
    return new (t || ComprobanteVentaService)(_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_1__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: ComprobanteVentaService,
    factory: ComprobanteVentaService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DepositoService: () => (/* binding */ DepositoService)
/* 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 _api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./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 DepositoService extends _api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.DEPOSITO.VERSION + this.core.DEPOSITO.PATH_BASE;
  }
  static #_ = this.ɵfac = function DepositoService_Factory(t) {
    return new (t || DepositoService)(_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: DepositoService,
    factory: DepositoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LogExportacionService: () => (/* binding */ LogExportacionService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __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 _api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* 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 src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);








class LogExportacionService extends _api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + '';
  }
  //get exportacion de local storage
  getExportaciones(datos) {
    let exportaciones = localStorage.getItem('exportaciones') ? JSON.parse(localStorage.getItem('exportaciones')) : [];
    exportaciones = lodash__WEBPACK_IMPORTED_MODULE_4__.orderBy(exportaciones, [datos?.Orden], [datos?.SentidoOrden == 'Asc' ? 'asc' : 'desc']);
    // MC SINWEB-163 Filtros locales
    if (datos?.FechaDesde) {
      exportaciones = lodash__WEBPACK_IMPORTED_MODULE_4__.filter(exportaciones, function (o) {
        return (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.compareFechasDDMMYYYY)(o.FechayHora.substring(0, 10), datos.FechaDesde) >= 0;
      });
    }
    if (datos?.FechaHasta) {
      exportaciones = lodash__WEBPACK_IMPORTED_MODULE_4__.filter(exportaciones, function (o) {
        return (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.compareFechasDDMMYYYY)(o.FechayHora.substring(0, 10), datos.FechaHasta) <= 0;
      });
    }
    if (datos?.TipoExportacion) {
      exportaciones = lodash__WEBPACK_IMPORTED_MODULE_4__.filter(exportaciones, function (o) {
        return o.TipoExportacion == datos.TipoExportacion;
      });
    }
    return exportaciones;
  }
  //insertar exportacion
  postExportacion(exportacion) {
    let exportaciones = this.getExportaciones();
    exportacion.Id = exportaciones.length + 1;
    exportaciones.push(exportacion);
    localStorage.setItem('exportaciones', JSON.stringify(exportaciones));
    return 'exito';
  }
  borrarTodasExportaciones() {
    localStorage.removeItem('exportaciones');
    return 'exito';
  }
  static #_ = this.ɵfac = function LogExportacionService_Factory(t) {
    return new (t || LogExportacionService)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_7__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjectable"]({
    token: LogExportacionService,
    factory: LogExportacionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 68599:
/*!***********************************************************!*\
  !*** ./src/app/core/services/core/usuario-web.service.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   UsuarioWebService: () => (/* binding */ UsuarioWebService)
/* 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 _api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./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 UsuarioWebService extends _api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.USUARIO_WEB.VERSION + this.core.USUARIO_WEB.PATH_BASE;
  }
  getUsuarioWebByPlataforma(params, id, context) {
    let path = this.url + this.core.USUARIO_WEB.GET_USUARIO_BY_INT.VERSION + this.core.USUARIO_WEB.GET_USUARIO_BY_INT.PATH_REL.replace('{IdPlataforma}', id);
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function UsuarioWebService_Factory(t) {
    return new (t || UsuarioWebService)(_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: UsuarioWebService,
    factory: UsuarioWebService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   UsuarioService: () => (/* binding */ UsuarioService)
/* 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 _api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./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);






// MC SINWEB-97 Servicio para el manejo de los usuarios de Sinergial
class UsuarioService extends _api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.USUARIO.VERSION + this.core.USUARIO.PATH_BASE;
  }
  static #_ = this.ɵfac = function UsuarioService_Factory(t) {
    return new (t || UsuarioService)(_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: UsuarioService,
    factory: UsuarioService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ViewHelperService: () => (/* binding */ ViewHelperService)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);

//SP SINWEB-59 cambio migrado de fideliza , ahora cada compente que usa el service crea su propia instancia del VH
class ViewHelperService {
  constructor() {
    this._formGroup = [];
  }
  set formGroup(fg) {
    this._formGroup.push(fg);
  }
  inicializar() {
    this._formGroup = [];
  }
  // helpers for View
  isControlValid(controlName) {
    let retorno = false;
    this._formGroup.forEach(fg => {
      const control = fg.controls[controlName];
      retorno = retorno || control != undefined && control.valid && (control.dirty || control.touched);
    });
    return retorno;
  }
  isControlInvalid(controlName) {
    let retorno = false;
    this._formGroup.forEach(fg => {
      const control = fg.controls[controlName];
      retorno = retorno || control != undefined && control.invalid && (control.dirty || control.touched);
    });
    return retorno;
  }
  isControlInvalidFilter(controlName) {
    let retorno = false;
    this._formGroup.forEach(fg => {
      const control = fg.controls[controlName];
      let value = fg.controls[controlName].value;
      retorno = retorno || control != undefined && control.invalid && value !== '' && value !== null;
    });
    return retorno;
  }
  controlHasError(validation, controlName) {
    let retorno = false;
    this._formGroup.forEach(fg => {
      const control = fg.controls[controlName];
      retorno = retorno || control != undefined && control.hasError(validation) && (control.dirty || control.touched);
    });
    return retorno;
  }
  isControlTouched(controlName) {
    let retorno = false;
    this._formGroup.forEach(fg => {
      const control = fg.controls[controlName];
      retorno = retorno || control != undefined && (control.dirty || control.touched);
    });
    return retorno;
  }
  static #_ = this.ɵfac = function ViewHelperService_Factory(t) {
    return new (t || ViewHelperService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
    token: ViewHelperService,
    factory: ViewHelperService.ɵfac
  });
}

/***/ }),

/***/ 57298:
/*!*******************************************************************!*\
  !*** ./src/app/core/services/estadisticas/estadistica.service.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EstadisticaService: () => (/* binding */ EstadisticaService)
/* 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 EstadisticaService 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.estadistica.ESTADISTICA.VERSION + this.estadistica.ESTADISTICA.PATH_BASE;
  }
  fetchContRelPorRubro(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_CONT_REL_RUBRO.PATH_REL);
  }
  fetchEvolPorRubro(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_EVOL_RUBRO.PATH_REL);
  }
  fetchContRelPorCanal(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_CONT_REL_CANAL.PATH_REL);
  }
  fetchEvolPorCanal(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_EVOL_CANAL.PATH_REL);
  }
  fetchVentasMensuales(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_VENTAS_MENSUALES.PATH_REL);
  }
  fetchAportesClientesNuevos(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_APORTES_CLIENTES_NUEVOS.PATH_REL);
  }
  fetchPerdidasClientes(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_PERDIDAS_CLIENTES.PATH_REL);
  }
  fetchUtilidadBruta(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_UTILIDAD_BRUTA.PATH_REL);
  }
  fetchMargenBruto(params) {
    return this.fetch(params, this.endpoint + this.estadistica.ESTADISTICA.GET_MARGEN_BRUTO.PATH_REL);
  }
  static #_ = this.ɵfac = function EstadisticaService_Factory(t) {
    return new (t || EstadisticaService)(_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: EstadisticaService,
    factory: EstadisticaService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ExportacionService: () => (/* binding */ ExportacionService)
/* harmony export */ });
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! file-saver */ 10217);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! jspdf */ 38919);
/* harmony import */ var jspdf_autotable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! jspdf-autotable */ 33403);
/* harmony import */ var jspdf_autotable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(jspdf_autotable__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_logExportacion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/logExportacion.service */ 81321);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);








class ExportacionService {
  constructor(logExportacionServices, authenticationService) {
    this.logExportacionServices = logExportacionServices;
    this.authenticationService = authenticationService;
    this.currentUser = this.authenticationService.usuario;
  }
  exportToExcel(datos, columns, keys, title) {
    __webpack_require__.e(/*! import() */ "node_modules_xlsx_xlsx_mjs").then(__webpack_require__.bind(__webpack_require__, /*! xlsx */ 11486)).then(xlsx => {
      // SP SINWEB-91 se llama al metodo mapearDatos que arma el body del excel
      const bodyExcel = this.mapearDatos(datos, columns, keys);
      const worksheet = xlsx.utils.json_to_sheet(bodyExcel);
      // SP SINWEB-91 se crea y se guarda el archivo excel
      const workbook = {
        Sheets: {
          listado: worksheet
        },
        SheetNames: ['listado']
      };
      const excelBuffer = xlsx.write(workbook, {
        bookType: 'xlsx',
        type: 'array'
      });
      this.saveAsExcelFile(excelBuffer, title);
      this.saveExportacion(title, 'Excel');
    });
  }
  saveAsExcelFile(buffer, fileName) {
    let EXCEL_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
    let EXCEL_EXTENSION = '.xlsx';
    const data = new Blob([buffer], {
      type: EXCEL_TYPE
    });
    file_saver__WEBPACK_IMPORTED_MODULE_0__.saveAs(data, fileName + '_export_' + new Date().getTime() + EXCEL_EXTENSION);
  }
  exportToPdf(datos, columns, keys, title, fontSize) {
    const bodyHTML = this.mapearDatos(datos, columns, keys);
    const body = bodyHTML.map(obj => Object.values(obj));
    this.saveAsPDFFile(body, columns, title, fontSize);
    this.saveExportacion(title, 'Pdf');
  }
  saveAsPDFFile(body, columns, fileName, fontSize) {
    const doc = columns.length > 5 ? new jspdf__WEBPACK_IMPORTED_MODULE_2__["default"]('l', 'mm', 'a4') : new jspdf__WEBPACK_IMPORTED_MODULE_2__["default"]();
    jspdf_autotable__WEBPACK_IMPORTED_MODULE_3___default()(doc, {
      head: [columns],
      body: body,
      styles: {
        fontSize: fontSize || 8,
        overflow: 'linebreak'
      },
      rowPageBreak: 'auto',
      willDrawPage: function (data) {
        doc.setFontSize(15);
        doc.setTextColor(40);
        doc.text(fileName, data.settings.margin.left, 22);
      },
      margin: {
        top: 28
      }
      // horizontalPageBreak: true,
      // horizontalPageBreakBehaviour: 'immediately',
    });
    doc.save(fileName + '_export_' + new Date().getTime());
  }
  //SP SINWEB-91 metodo que arma el body del excel
  // Por el momento puede armar un tabla con un arrayObject con datos simples , un conjunto de datos simples en un array y un arrayObject
  mapearDatos(datos, columnas, keys) {
    const listadoMapeado = datos.map(dato => {
      const datoToExport = {};
      //SP SINWEB-91 usando las columnas va armando el listado buscando los datos con el metodo buscarValor usando el array de keys que viene en el orden de las columnas , para encontrar cada dato correspondiente
      columnas.forEach((columna, index) => {
        let valor = null;
        //SP SINWEB-91 esta condicion nos diferencia si la key que vamos a buscar es para mapear un dato de tipo listado array object , para el cual queremos mostrar un solo campo de cada elemento
        if (Array.isArray(keys[index])) {
          valor = (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.buscarValor)(dato, keys[index][0]);
          if (valor === undefined || valor === null) {
            valor = [];
          }
          const valorArray = valor.map(element => {
            let valor1 = (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.buscarValor)(element, keys[index][1]);
            let valor2 = keys[index][2] ? (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.buscarValor)(element, keys[index][2]) : '';
            return valor1 + (keys[index].length > 2 ? ': ' + (valor2 ? Array.isArray(valor2) ? valor2.length > 0 && keys[index][3] !== undefined ? ' ' + valor2.map(elem => elem[keys[index][3]][keys[index][4]]) : valor2.join : valor2 : '') : '');
          });
          datoToExport[columna] = valorArray.toString();
        } else {
          //SP SINWEB-91 este else seria el caso que la key corresponda a un tipo de dato simple o a un array de datos simples.
          valor = (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.buscarValor)(dato, keys[index]);
          datoToExport[columna] = Array.isArray(valor) ? valor.toString() : valor;
        }
      });
      return datoToExport;
    });
    return listadoMapeado;
  }
  saveExportacion(title, extension) {
    this.logExportacionServices.postExportacion({
      Id: 0,
      FechayHora: (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaHora)((0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaHoraActual)()),
      Origen: title,
      Usuario: this.currentUser.User.Nombre,
      TipoExportacion: extension
    });
  }
  static #_ = this.ɵfac = function ExportacionService_Factory(t) {
    return new (t || ExportacionService)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](src_app_core_services_core_logExportacion_service__WEBPACK_IMPORTED_MODULE_4__.LogExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjectable"]({
    token: ExportacionService,
    factory: ExportacionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 8020:
/*!************************************************************************!*\
  !*** ./src/app/core/services/integra/meli/publicacion-meli.service.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PublicacioneMeliService: () => (/* binding */ PublicacioneMeliService)
/* 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 rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 37398);
/* 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 src_app_core_context_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 65879);










class PublicacioneMeliService 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.urlIntegra + this.integra.PUBLICACION_MELI.VERSION + this.integra.PUBLICACION_MELI.PATH_BASE;
  }
  getPublicMeliByURL(url, userId, context) {
    let httpContext = {};
    let path = this.urlIntegra + this.integra.PUBLICACION_MELI.GET_BY_URL.VERSION + this.integra.PUBLICACION_MELI.PATH_BASE + (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.allReplace)(this.integra.PUBLICACION_MELI.GET_BY_URL.PATH_REL, {
      '{userId}': userId,
      '{url}': url
    });
    if (context?.error !== undefined && context?.error === true) {
      Object.assign(httpContext, {
        context: new _angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpContext().set(src_app_core_context_context__WEBPACK_IMPORTED_MODULE_5__.CONTEXT, {
          IGNORE_ERROR: true
        })
      });
    }
    return this.http2.get(path, httpContext).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.map)(resp => {
      return resp;
      // if (resp.Data) {
      //   return resp.Data;
      // }
    }));
  }
  getPublicacionesByUser(datos, userId, context) {
    let httpParams = {
      params: datos
    };
    let path = this.urlIntegra + this.integra.PUBLICACION_MELI.GET_BY_USER.VERSION + this.integra.PUBLICACION_MELI.PATH_BASE + (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.allReplace)(this.integra.PUBLICACION_MELI.GET_BY_USER.PATH_REL, {
      '{userId}': userId
    });
    if (context) {
      let contextoToSend = (0,src_app_core_context_context__WEBPACK_IMPORTED_MODULE_5__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpParams, {
          context: contextoToSend
        });
      }
    }
    return this.http2.get(path, httpParams).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.map)(resp => {
      return resp;
    }));
  }
  static #_ = this.ɵfac = function PublicacioneMeliService_Factory(t) {
    return new (t || PublicacioneMeliService)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjectable"]({
    token: PublicacioneMeliService,
    factory: PublicacioneMeliService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PreviewEmailService: () => (/* binding */ PreviewEmailService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var src_app_core_context_context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../recursos.service */ 50657);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../config.service */ 56375);







class PreviewEmailService {
  constructor(http, recursosService, configService) {
    this.http = http;
    this.recursosService = recursosService;
    this.configService = configService;
    this._isLoading$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__.BehaviorSubject(false);
    this.baseIntegra = this.configService.config.servidor?.api_integra;
  }
  get isLoading$() {
    return this._isLoading$.asObservable();
  }
  getPreviewEmail(body, context) {
    this._isLoading$.next(true);
    let httpContext = {};
    let path = this.baseIntegra + this.recursosService.integra.PREVIEW_EMAIL_NOTIFICACIONES.VERSION + this.recursosService.integra.PREVIEW_EMAIL_NOTIFICACIONES.PATH_BASE;
    Object.assign(httpContext, {
      responseType: 'text',
      context: new _angular_common_http__WEBPACK_IMPORTED_MODULE_4__.HttpContext().set(src_app_core_context_context__WEBPACK_IMPORTED_MODULE_0__.CONTEXT, {
        NO_SEND_HEADER: true
      })
    });
    return this.http.post(path, body, httpContext).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_5__.map)(resp => {
      this._isLoading$.next(false);
      return resp;
    }));
  }
  static #_ = this.ɵfac = function PreviewEmailService_Factory(t) {
    return new (t || PreviewEmailService)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_1__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_2__.ConfigService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjectable"]({
    token: PreviewEmailService,
    factory: PreviewEmailService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionFormatoServices: () => (/* binding */ NotificacionFormatoServices)
/* 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 NotificacionFormatoServices 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_FORMATO.VERSION + this.notificaciones.NOTIFICACION_FORMATO.PATH_BASE;
  }
  static #_ = this.ɵfac = function NotificacionFormatoServices_Factory(t) {
    return new (t || NotificacionFormatoServices)(_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: NotificacionFormatoServices,
    factory: NotificacionFormatoServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionDominioServices: () => (/* binding */ NotificacionDominioServices)
/* 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 NotificacionDominioServices 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_DOMINIO.VERSION + this.notificaciones.NOTIFICACION_DOMINIO.PATH_BASE;
  }
  static #_ = this.ɵfac = function NotificacionDominioServices_Factory(t) {
    return new (t || NotificacionDominioServices)(_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: NotificacionDominioServices,
    factory: NotificacionDominioServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionTipoServices: () => (/* binding */ NotificacionTipoServices)
/* 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 NotificacionTipoServices 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.VERSION + this.notificaciones.NOTIFICACION_TIPO.PATH_BASE;
  }
  static #_ = this.ɵfac = function NotificacionTipoServices_Factory(t) {
    return new (t || NotificacionTipoServices)(_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: NotificacionTipoServices,
    factory: NotificacionTipoServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 76939:
/*!*********************************************************************!*\
  !*** ./src/app/core/services/produccion/ordenProduccion.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   OrdenProduccionService: () => (/* binding */ OrdenProduccionService)
/* 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 OrdenProduccionService 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.produccion.ORDEN_PRODUCCION.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE;
  }
  //PM SINWEB-40
  putAbrirOrden(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.PUT_ABRIR.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.PUT_ABRIR.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  //PM SINWEB-40
  putAnularOrden(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.PUT_ANULAR.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.PUT_ANULAR.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  //PM SINWEB-40
  putConfirmarOrden(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.PUT_CONFIRMAR.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.PUT_CONFIRMAR.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  //PM SINWEB-40
  putCerrarOrden(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.PUT_CERRAR.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.PUT_CERRAR.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  //PM SINWEB-58
  putEntregaMercaderia(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.ENTREGA_MERC.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.ENTREGA_MERC.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  //PM SINWEB-58
  putDevolucionMercaderia(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.DEVOLUCION_MERC.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.DEVOLUCION_MERC.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  //PM SINWEB-40
  getMovimientosStock(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.MOVIMIENTO_STOCK.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.MOVIMIENTO_STOCK.PATH_REL.replace('{id}', id);
    return this.fetch(params, path, context);
  }
  //SP SINWEB-77
  getTrazabilidad(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.TRAZABILIDAD.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.TRAZABILIDAD.PATH_REL;
    return this.fetch(params, path, context);
  }
  getTotalizados(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.TOTALIZADOS.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.TOTALIZADOS.PATH_REL;
    return this.fetch(params, path, context);
  }
  //PM SINWEB-64
  postOrdenProduccionPredeterminada(body, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.PREDETERMINADA.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.PREDETERMINADA.PATH_REL;
    return this.nuevo(body, path, context);
  }
  //PM SINWEB-13
  getConsolidado(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.CONSOLIDADO.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.CONSOLIDADO.PATH_REL;
    return this.fetch(params, path, context);
  }
  //PM SINWEB-83
  getComponentesWithStock(params, id, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.GET_COMPONENTES_CON_STOCK.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.GET_COMPONENTES_CON_STOCK.PATH_REL.replace('{id}', id);
    return this.fetch(params, path, context);
  }
  getTercerizadoTotalizado(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.TERCERIZADOS_TOTALIZADOS.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.TERCERIZADOS_TOTALIZADOS.PATH_REL;
    return this.fetch(params, path, context);
  }
  //PM SINWEB-125
  getArticulosXMes(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.ARTICULOS_X_MES.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.ARTICULOS_X_MES.PATH_REL;
    return this.fetch(params, path, context);
  }
  getTiemposProduccion(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.TIEMPOS_PRODUCCION.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.TIEMPOS_PRODUCCION.PATH_REL;
    return this.fetch(params, path, context);
  }
  getComponentesOrdenes(params, context) {
    let path = this.url + this.produccion.ORDEN_PRODUCCION.COMPONENTES_ORDENES.VERSION + this.produccion.ORDEN_PRODUCCION.PATH_BASE + this.produccion.ORDEN_PRODUCCION.COMPONENTES_ORDENES.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function OrdenProduccionService_Factory(t) {
    return new (t || OrdenProduccionService)(_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: OrdenProduccionService,
    factory: OrdenProduccionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 88145:
/*!******************************************************!*\
  !*** ./src/app/core/services/rma/reclamo.service.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReclamoService: () => (/* binding */ ReclamoService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/core/api-base.service */ 78169);
/* harmony import */ var src_app_core_services_recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/recursos.service */ 50657);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);






class ReclamoService extends src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    // if (this.usaMock) { this.fillMockData(createRMA_Reclamo, 10) }
    this.endpoint = this.url + this.rma.RECLAMO.VERSION + this.rma.RECLAMO.PATH_BASE;
  }
  fetchCondicionalReclamo(params) {
    if (params.ModoOperacion == undefined) {
      return this.fetch(params);
    } else {
      return this.getAtributos(params);
    }
  }
  postEnvioProveedor(params, id, context) {
    let path = this.url + this.rma.RECLAMO.POST_ENVIO_PROVEEDOR.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.POST_ENVIO_PROVEEDOR.PATH_REL.replace('{idReclamo}', id);
    return this.nuevo(params, path, context);
  }
  putEnvioProveedor(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_ENVIO_PROVEEDOR.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_ENVIO_PROVEEDOR.PATH_REL.replace('{idRMAProveedor}', id);
    return this.editar(params, id, path, context);
  }
  deleteEnvioProveedor(id, context) {
    let path = this.url + this.rma.RECLAMO.DELETE_ENVIO_PROVEEDOR.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.DELETE_ENVIO_PROVEEDOR.PATH_REL.replace('{idRMAProveedor}', id);
    return this.eliminar(id, path);
  }
  putResolucion(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_RESOLUCION.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_RESOLUCION.PATH_REL.replace('{idRMAProveedor}', id);
    return this.editar(params, id, path, context);
  }
  putRecisionResolucion(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_RESCISION_RESOLUCION.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_RESCISION_RESOLUCION.PATH_REL.replace('{idRMAProveedor}', id);
    return this.editar(params, id, path, context);
  }
  postEntregaCliente(params, id, context) {
    let path = this.url + this.rma.RECLAMO.POST_ENTREGA_CLIENTE.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.POST_ENTREGA_CLIENTE.PATH_REL.replace('{idReclamo}', id);
    return this.nuevo(params, path, context);
  }
  putEntregaCliente(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_ENTREGA_CLIENTE.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_ENTREGA_CLIENTE.PATH_REL.replace('{idReclamo}', id);
    return this.editar(params, id, path, context);
  }
  deleteEntregaCliente(id, context) {
    let path = this.url + this.rma.RECLAMO.DELETE_ENTREGA_CLIENTE.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.DELETE_ENTREGA_CLIENTE.PATH_REL.replace('{idReclamo}', id);
    return this.eliminar(id, path);
  }
  getIndicadores(params, context) {
    let path = this.url + this.rma.RECLAMO.GET_INDICADORES.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.GET_INDICADORES.PATH_REL;
    return this.fetch(params, path);
  }
  getReclamos(params) {
    let path = this.url + this.rma.RECLAMO.VERSION + this.rma.RECLAMO.PATH_BASE;
    return this.fetch(params, path);
  }
  putAnulacion(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_ANULACION.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_ANULACION.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  putCierre(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_CIERRE.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_CIERRE.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  putApertura(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_APERTURA.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_APERTURA.PATH_REL.replace('{id}', id);
    return this.editar(params, id, path, context);
  }
  // MC SINWEB-197
  getProveedores(params, context) {
    let path = this.url + this.rma.RECLAMO.GET_PROVEEDORES.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.GET_PROVEEDORES.PATH_REL;
    return this.fetch(params, path, context);
  }
  getAtributos(params, context) {
    let path = this.url + this.rma.RECLAMO.GET_ATRIBUTOS.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.GET_ATRIBUTOS.PATH_REL;
    return this.fetch(params, path, context);
  }
  putReclamoAnularCerrado(params, id, context) {
    let path = this.url + this.rma.RECLAMO.PUT_ANULACION_CIERRE.VERSION + this.rma.RECLAMO.PATH_BASE + this.rma.RECLAMO.PUT_ANULACION_CIERRE.PATH_REL.replace('{IdReclamo}', id);
    return this.editar(params, id, path, context);
  }
  static #_ = this.ɵfac = function ReclamoService_Factory(t) {
    return new (t || ReclamoService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](src_app_core_services_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: ReclamoService,
    factory: ReclamoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 2158:
/*!******************************************************************!*\
  !*** ./src/app/core/services/servicios/srvContratado.service.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SrvContratadoService: () => (/* binding */ SrvContratadoService)
/* 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 src_app_core_services_recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/recursos.service */ 50657);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);






class SrvContratadoService 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.servicios.SRV_CONTRATADO.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE;
  }
  getServFact(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.GET_SRV_FACT.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.GET_SRV_FACT.PATH_REL;
    return this.fetch(params, path, context);
  }
  postServiciosContratadosMasivo(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.POST_SRV_CONTRATADOS_MASIVO.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.POST_SRV_CONTRATADOS_MASIVO.PATH_REL;
    return this.nuevo(params, path, context);
  }
  postFactMasiva(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.POST_FACT_MASIVA.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.POST_FACT_MASIVA.PATH_REL;
    return this.nuevo(params, path, context);
  }
  getRankingServicios(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.GET_SRV_RANK_SERVICIOS.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.GET_SRV_RANK_SERVICIOS.PATH_REL;
    return this.fetch(params, path, context);
  }
  getRankingClientesMasServicios(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.GET_SRV_RANK_CLIENTES_SERVICIOS.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.GET_SRV_RANK_CLIENTES_SERVICIOS.PATH_REL;
    return this.fetch(params, path, context);
  }
  getIndicadoresKpis(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.GET_SRV_KPIS.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.GET_SRV_KPIS.PATH_REL;
    return this.fetch(params, path, context);
  }
  getAuditoria(params, context) {
    let path = this.url + this.servicios.SRV_CONTRATADO.GET_AUDITORIA.VERSION + this.servicios.SRV_CONTRATADO.PATH_BASE + this.servicios.SRV_CONTRATADO.GET_AUDITORIA.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function SrvContratadoService_Factory(t) {
    return new (t || SrvContratadoService)(_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"](src_app_core_services_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: SrvContratadoService,
    factory: SrvContratadoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 49100:
/*!***************************************************************************!*\
  !*** ./src/app/core/services/web/meli-configuracion-conexion.services.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MeliConfiguracionConexionService: () => (/* binding */ MeliConfiguracionConexionService)
/* 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 MeliConfiguracionConexionService 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.web.MELI_CONFIGURACION_CONEXION.VERSION + this.web.MELI_CONFIGURACION_CONEXION.PATH_BASE;
  }
  static #_ = this.ɵfac = function MeliConfiguracionConexionService_Factory(t) {
    return new (t || MeliConfiguracionConexionService)(_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: MeliConfiguracionConexionService,
    factory: MeliConfiguracionConexionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 79410:
/*!*********************************************************************!*\
  !*** ./src/app/core/services/web/plataforma-integracion.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PlataformaIntegracionService: () => (/* binding */ PlataformaIntegracionService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __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 rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 94664);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);








class PlataformaIntegracionService 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.web.PLATAFORMA_INTEGRACION.VERSION + this.web.PLATAFORMA_INTEGRACION.PATH_BASE;
  }
  fetchSinML(datos, context) {
    let path = this.url + this.web.PLATAFORMA_INTEGRACION.VERSION + this.web.PLATAFORMA_INTEGRACION.PATH_BASE;
    return this.fetch(datos, path, context).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.switchMap)(resp => {
      resp.Data = resp.Data.filter(item => item.Id !== 1);
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(resp);
    }));
  }
  fetchML(datos) {
    let path = this.url + this.web.PLATAFORMA_INTEGRACION.VERSION + this.web.PLATAFORMA_INTEGRACION.PATH_BASE;
    return this.fetch(datos, path).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.switchMap)(resp => {
      resp.Data = resp.Data.filter(item => item.Id === 1);
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(resp);
    }));
  }
  putML(datos) {
    return this.editar(datos, 1);
  }
  getIndicadores(params, context) {
    let path = this.url + this.web.PLATAFORMA_INTEGRACION.GET_INDICADORES.VERSION + this.web.PLATAFORMA_INTEGRACION.GET_INDICADORES.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function PlataformaIntegracionService_Factory(t) {
    return new (t || PlataformaIntegracionService)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_7__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjectable"]({
    token: PlataformaIntegracionService,
    factory: PlataformaIntegracionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 69259:
/*!****************************************************************!*\
  !*** ./src/app/core/utils/constantes/constantes-produccion.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   COLORES_ESTADO: () => (/* binding */ COLORES_ESTADO),
/* harmony export */   COLORES_ROW: () => (/* binding */ COLORES_ROW),
/* harmony export */   ESTADO_COMPRO_CERRADO: () => (/* binding */ ESTADO_COMPRO_CERRADO),
/* harmony export */   ESTADO_ORDEN_ABIERTA: () => (/* binding */ ESTADO_ORDEN_ABIERTA),
/* harmony export */   ESTADO_ORDEN_ANULADA: () => (/* binding */ ESTADO_ORDEN_ANULADA),
/* harmony export */   ESTADO_ORDEN_CERRADA: () => (/* binding */ ESTADO_ORDEN_CERRADA),
/* harmony export */   ESTADO_ORDEN_CONFIRMADA: () => (/* binding */ ESTADO_ORDEN_CONFIRMADA),
/* harmony export */   ESTADO_ORDEN_ESPERA: () => (/* binding */ ESTADO_ORDEN_ESPERA),
/* harmony export */   ESTADO_ORDEN_PROCESO: () => (/* binding */ ESTADO_ORDEN_PROCESO),
/* harmony export */   OPER_ASIGNAR: () => (/* binding */ OPER_ASIGNAR),
/* harmony export */   OPER_CARGAR: () => (/* binding */ OPER_CARGAR),
/* harmony export */   OPER_EDITAR: () => (/* binding */ OPER_EDITAR),
/* harmony export */   OPER_HISTORIAL: () => (/* binding */ OPER_HISTORIAL),
/* harmony export */   OPER_TERCERIZAR: () => (/* binding */ OPER_TERCERIZAR),
/* harmony export */   OPER_TERCERIZAR_EGRESO: () => (/* binding */ OPER_TERCERIZAR_EGRESO),
/* harmony export */   OPER_TERCERIZAR_INGRESO: () => (/* binding */ OPER_TERCERIZAR_INGRESO),
/* harmony export */   OPER_VISUALIZAR: () => (/* binding */ OPER_VISUALIZAR),
/* harmony export */   ORDEN_CONSOLIDAR: () => (/* binding */ ORDEN_CONSOLIDAR),
/* harmony export */   ORDEN_EDITAR: () => (/* binding */ ORDEN_EDITAR),
/* harmony export */   ORDEN_HISTORIAL: () => (/* binding */ ORDEN_HISTORIAL),
/* harmony export */   ORDEN_MOVER_MP: () => (/* binding */ ORDEN_MOVER_MP),
/* harmony export */   ORDEN_TERCERIZADOS: () => (/* binding */ ORDEN_TERCERIZADOS),
/* harmony export */   ORDEN_VER_LOG: () => (/* binding */ ORDEN_VER_LOG),
/* harmony export */   ORDEN_VISUALIZAR: () => (/* binding */ ORDEN_VISUALIZAR),
/* harmony export */   TIPOAVANCE_ASIGNACION: () => (/* binding */ TIPOAVANCE_ASIGNACION),
/* harmony export */   TIPOAVANCE_AVANCE: () => (/* binding */ TIPOAVANCE_AVANCE),
/* harmony export */   TIPOAVANCE_TERC_EGRESO: () => (/* binding */ TIPOAVANCE_TERC_EGRESO),
/* harmony export */   TIPOAVANCE_TERC_INGRESO: () => (/* binding */ TIPOAVANCE_TERC_INGRESO)
/* harmony export */ });
const ESTADO_COMPRO_CERRADO = 2;
const OPER_VISUALIZAR = 101;
const OPER_CARGAR = 102;
const OPER_ASIGNAR = 103;
const OPER_TERCERIZAR = 104;
const OPER_HISTORIAL = 105;
const OPER_EDITAR = 106;
//SP SINWEB-81 nuevas constantes para separar operaciones de tercerizado
const OPER_TERCERIZAR_INGRESO = 107;
const OPER_TERCERIZAR_EGRESO = 108;
const TIPOAVANCE_AVANCE = 'AV';
const TIPOAVANCE_TERC_EGRESO = 'TE';
const TIPOAVANCE_TERC_INGRESO = 'TI';
const TIPOAVANCE_ASIGNACION = 'AS';
const ORDEN_EDITAR = 116;
const ORDEN_VISUALIZAR = 117;
const ORDEN_MOVER_MP = 118;
const ORDEN_VER_LOG = 119;
const ORDEN_CONSOLIDAR = 120;
const ORDEN_HISTORIAL = 121;
const ORDEN_TERCERIZADOS = 122;
const ESTADO_ORDEN_ABIERTA = 1;
const ESTADO_ORDEN_CONFIRMADA = 2;
const ESTADO_ORDEN_PROCESO = 3;
const ESTADO_ORDEN_ESPERA = 4;
const ESTADO_ORDEN_CERRADA = 5;
const ESTADO_ORDEN_ANULADA = 6;
const COLORES_ROW = [{
  registro: 'Creación',
  color: 'success'
}, {
  registro: 'Apertura',
  color: 'success'
}, {
  registro: 'Reactivación',
  color: 'success'
}, {
  registro: 'Modificación',
  color: 'light'
}, {
  registro: 'Confirmación',
  color: 'warning'
}, {
  registro: 'Anulación',
  color: 'danger'
}, {
  registro: 'Suspensión',
  color: 'danger'
}, {
  registro: 'Traspaso',
  color: 'info'
}, {
  registro: 'Egreso',
  color: 'info'
}, {
  registro: 'Entrega',
  color: 'info'
}, {
  registro: 'Devolución',
  color: 'info'
}, {
  registro: 'Conservación',
  color: 'info'
}, {
  registro: 'Finalización',
  color: 'secondary'
}];
const COLORES_ESTADO = [{
  estado: 'Abierta',
  color: '#34c38f'
}, {
  estado: 'Confirmada',
  color: '#f1b44c'
}, {
  estado: 'En Proceso',
  color: '#b8b823'
}, {
  estado: 'En Espera',
  color: '#B695C0'
}, {
  estado: 'Cerrada',
  color: '#ff8000'
}, {
  estado: 'Anulada',
  color: '#FF0000'
}];

/***/ }),

/***/ 9537:
/*!*********************************************************!*\
  !*** ./src/app/core/utils/constantes/constantes-web.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ARTICULOS_PUBLICADOS_LISTADO: () => (/* binding */ ARTICULOS_PUBLICADOS_LISTADO),
/* harmony export */   ART_PUBLIC_MELI_ACTIVAR: () => (/* binding */ ART_PUBLIC_MELI_ACTIVAR),
/* harmony export */   ART_PUBLIC_MELI_EDITAR: () => (/* binding */ ART_PUBLIC_MELI_EDITAR),
/* harmony export */   ART_PUBLIC_MELI_ELIMINAR: () => (/* binding */ ART_PUBLIC_MELI_ELIMINAR),
/* harmony export */   ART_PUBLIC_MELI_HISTORIAL: () => (/* binding */ ART_PUBLIC_MELI_HISTORIAL),
/* harmony export */   ART_PUBLIC_MELI_NEW: () => (/* binding */ ART_PUBLIC_MELI_NEW),
/* harmony export */   ART_PUBLIC_MELI_PAUSAR: () => (/* binding */ ART_PUBLIC_MELI_PAUSAR),
/* harmony export */   ART_PUBLIC_MELI_VISUALIZAR: () => (/* binding */ ART_PUBLIC_MELI_VISUALIZAR),
/* harmony export */   DICCIONARIO_MELI_ESTADO_PUBLIC: () => (/* binding */ DICCIONARIO_MELI_ESTADO_PUBLIC),
/* harmony export */   DICCIONARIO_MELI_TIPO_PUBLIC: () => (/* binding */ DICCIONARIO_MELI_TIPO_PUBLIC),
/* harmony export */   DICCIONARIO_WEB_ATRIBUTO_BAJA_LOGICA: () => (/* binding */ DICCIONARIO_WEB_ATRIBUTO_BAJA_LOGICA),
/* harmony export */   DICCIONARIO_WEB_ESTADO_ACTUALIZACION: () => (/* binding */ DICCIONARIO_WEB_ESTADO_ACTUALIZACION),
/* harmony export */   DICCIONARIO_WEB_ESTADO_PUBLICACION: () => (/* binding */ DICCIONARIO_WEB_ESTADO_PUBLICACION),
/* harmony export */   DICCIONARIO_WEB_SUSPENDIDO_ESTADO: () => (/* binding */ DICCIONARIO_WEB_SUSPENDIDO_ESTADO),
/* harmony export */   DICCIONARIO_WEB_TIPO_ACTUALIZACION: () => (/* binding */ DICCIONARIO_WEB_TIPO_ACTUALIZACION),
/* harmony export */   PLATAFORMA_WEB_EDITAR: () => (/* binding */ PLATAFORMA_WEB_EDITAR),
/* harmony export */   PLATAFORMA_WEB_VISUALIZAR: () => (/* binding */ PLATAFORMA_WEB_VISUALIZAR),
/* harmony export */   USUARIOS_WEB_EDITAR: () => (/* binding */ USUARIOS_WEB_EDITAR),
/* harmony export */   USUARIOS_WEB_ELIMINAR: () => (/* binding */ USUARIOS_WEB_ELIMINAR),
/* harmony export */   USUARIOS_WEB_LISTADO: () => (/* binding */ USUARIOS_WEB_LISTADO),
/* harmony export */   actionArtPublicML: () => (/* binding */ actionArtPublicML),
/* harmony export */   artPublicMLHeader: () => (/* binding */ artPublicMLHeader),
/* harmony export */   articulosHeader: () => (/* binding */ articulosHeader),
/* harmony export */   stockPorDepositoHeader: () => (/* binding */ stockPorDepositoHeader),
/* harmony export */   stockPorSucursalHeader: () => (/* binding */ stockPorSucursalHeader),
/* harmony export */   variacionesMLHeader: () => (/* binding */ variacionesMLHeader)
/* harmony export */ });
const PLATAFORMA_WEB_VISUALIZAR = 301;
const PLATAFORMA_WEB_EDITAR = 302;
const ARTICULOS_PUBLICADOS_LISTADO = 303;
const USUARIOS_WEB_EDITAR = 304;
const USUARIOS_WEB_ELIMINAR = 305;
const USUARIOS_WEB_LISTADO = 306;
const ART_PUBLIC_MELI_VISUALIZAR = 307;
const ART_PUBLIC_MELI_EDITAR = 308;
const ART_PUBLIC_MELI_ACTIVAR = 309;
const ART_PUBLIC_MELI_PAUSAR = 310;
const ART_PUBLIC_MELI_ELIMINAR = 311;
const ART_PUBLIC_MELI_HISTORIAL = 312;
const ART_PUBLIC_MELI_NEW = 313;
const DICCIONARIO_WEB_ATRIBUTO_BAJA_LOGICA = [{
  Id: 'S',
  Nombre: 'Si',
  Style: 'background:#34c38f',
  Clase: 'badge font-size-14'
}, {
  Id: 'N',
  Nombre: 'No',
  Style: 'background:#f1b44c',
  Clase: 'badge font-size-14'
}];
const DICCIONARIO_WEB_TIPO_ACTUALIZACION = [{
  Id: 'S  ',
  Nombre: 'Stock',
  Style: 'background:#f1b44c',
  Clase: 'badge font-size-14'
}, {
  Id: 'P  ',
  Nombre: 'Precio',
  Style: 'background:#673ab7',
  Clase: 'badge font-size-14'
}, {
  Id: 'E  ',
  Nombre: 'Estado',
  Style: 'background:#00B7EB',
  Clase: 'badge font-size-14'
}];
const DICCIONARIO_WEB_ESTADO_ACTUALIZACION = [{
  Id: 'F',
  Nombre: 'Fallido',
  Style: 'background:#ff0000',
  Clase: 'badge font-size-14'
}, {
  Id: 'E',
  Nombre: 'Exitoso',
  Style: 'background:#34c38f',
  Clase: 'badge font-size-14'
}];
const DICCIONARIO_WEB_ESTADO_PUBLICACION = [{
  Id: 'paused',
  Nombre: 'En Pausa',
  Style: 'background:#f1b44c',
  Clase: 'badge font-size-14'
}, {
  Id: 'closed',
  Nombre: 'Cerrada',
  Style: 'background:#ff0000',
  Clase: 'badge font-size-14'
}, {
  Id: 'active',
  Nombre: 'Activa',
  Style: 'background:#34c38f',
  Clase: 'badge font-size-14'
}];
const DICCIONARIO_WEB_SUSPENDIDO_ESTADO = [{
  Id: 'N',
  Nombre: 'No',
  Style: 'background:#A2B06D',
  Clase: 'badge font-size-14'
}, {
  Id: 'V',
  Nombre: 'Venta',
  Style: 'background:#AD1C42',
  Clase: 'badge font-size-14'
}, {
  Id: 'C',
  Nombre: 'Compra',
  Style: 'background:#FF0000',
  Clase: 'badge font-size-14'
}, {
  Id: 'A',
  Nombre: 'Compra y Venta',
  Style: 'background:#00B7EB',
  Clase: 'badge font-size-14'
}];
const DICCIONARIO_MELI_TIPO_PUBLIC = [{
  Id: 'gold_pro',
  Nombre: 'Premium',
  Style: 'background:#FFC100',
  Class: 'badge font-size-14'
}, {
  Id: 'gold_special',
  Nombre: 'Clásica',
  Style: 'background:#9AC8CD',
  Class: 'badge font-size-14'
}, {
  Id: 'free',
  Nombre: 'Gratuita',
  Style: 'background:#8DECB4',
  Class: 'badge font-size-14'
}];
const DICCIONARIO_MELI_ESTADO_PUBLIC = [{
  Id: 'active',
  Nombre: 'Activa',
  Style: 'background:#34c38f',
  Class: 'badge font-size-14'
}, {
  Id: 'paused',
  Nombre: 'Pausada',
  Style: 'background:#f1b44c',
  Class: 'badge font-size-14'
}, {
  Id: 'closed',
  Nombre: 'Cerrada',
  Style: 'background:#ff0000',
  Class: 'badge font-size-14'
}, {
  Id: 'inactive',
  Nombre: 'Inactiva',
  Style: 'background:#68D2E8',
  Class: 'badge font-size-14'
}, {
  Id: 'under_review',
  Nombre: 'En revisión',
  Style: 'background:#B51B75',
  Class: 'badge font-size-14'
}, {
  Id: 'payment_required',
  Nombre: 'Pago requerido',
  Style: 'background:#E65C19',
  Class: 'badge font-size-14'
}];
const articulosHeader = [{
  Nombre: 'Descripción',
  Order: 3,
  Key: 'Nombre',
  WCol: '25%',
  Disabled: false
}, {
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Unidad',
  Key: 'Unidad.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Proveedor',
  Key: 'Proveedor.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Cod. Proveedor',
  Key: 'Proveedor.Codigo',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Marca',
  Order: 4,
  Key: 'Marca.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Rubro',
  Order: 5,
  Key: 'Rubro.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Cod. Fabricante',
  Key: 'CodigoFabricante',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Cod. Proveedor',
  Key: 'PjeIVA',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'F. Precios Venta',
  Key: 'FechaUpdatePrecioVenta',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Moneda',
  Key: 'Moneda.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Unid. X Bulto',
  Key: 'TipoArticulo.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Unid. X Display',
  Key: 'TipoArticulo.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Estado',
  Key: 'FechaUpdatePrecioCompra',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Suspendido',
  Type: 'diccionario',
  Diccionario: DICCIONARIO_WEB_SUSPENDIDO_ESTADO,
  Key: 'Suspendido',
  WCol: '6%'
}, {
  Nombre: 'Discontinuado',
  Key: 'Discontinuo',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: false,
  Frozen: true
}];
const stockPorDepositoHeader = {
  FirstKey: 'DepositoArticulos',
  FirstExpand: [{
    Nombre: 'Deposito',
    Key: 'Deposito.Nombre',
    Order: true
  }, {
    Nombre: 'Cantidad',
    Key: 'Cantidad',
    Order: true
  }, {
    Nombre: 'Comprometido',
    Key: 'Comprometido',
    Order: true
  }, {
    Nombre: 'Reservado',
    Key: 'Reservado',
    Order: true
  }]
};
const stockPorSucursalHeader = {
  FirstKey: 'StockPorSucursal',
  FirstExpand: [{
    Nombre: 'Sucursal',
    Key: 'Sucursal',
    Order: true
  }, {
    Nombre: 'Cantidad',
    Key: 'Cantidad',
    Order: true
  }, {
    Nombre: 'Comprometido',
    Key: 'Comprometido',
    Order: true
  }, {
    Nombre: 'Reservado',
    Key: 'Reservado',
    Order: true
  }]
};
const artPublicMLHeader = [{
  Nombre: 'Código',
  Order: 3,
  Key: 'Articulo.Codigo',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Nombre',
  Order: 4,
  Key: 'Articulo.Nombre',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Descripción',
  Key: 'Descripcion',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Tipo Publicación',
  Type: 'dictionary',
  Diccionario: DICCIONARIO_MELI_TIPO_PUBLIC,
  Key: 'TipoPublicacionId',
  WCol: '6%',
  Disabled: false
}, {
  Nombre: 'Fecha Publicación',
  Order: 9,
  Type: 'date',
  Key: 'FechaPublicacion',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Fecha Actualización',
  Type: 'date',
  Key: 'TimeStamp',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Fecha Vencimiento',
  Order: 10,
  Type: 'date',
  Key: 'FechaVencimiento',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Estado',
  Type: 'dictionary',
  Diccionario: DICCIONARIO_MELI_ESTADO_PUBLIC,
  Key: 'EstadoPublicacion',
  WCol: '6%',
  Disabled: false
}, {
  Nombre: 'Precio',
  Key: 'Precio',
  WCol: '10%',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  Disabled: false
}, {
  Nombre: 'Stock',
  Key: 'Stock',
  Class: 'badge font-size-14 bg-dark text-light',
  Type: 'number',
  Pipe: 'number:1.2-5',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: '(Cod.) Marca',
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'Articulo.Marca.Codigo',
      b: 'Articulo.Marca.Nombre'
    }
  },
  WCol: '20%',
  Disabled: false
}, {
  Nombre: '(Cod.) Rubro',
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'Articulo.Rubro.Codigo',
      b: 'Articulo.Rubro.Nombre'
    }
  },
  WCol: '20%',
  Disabled: false
}, {
  Nombre: '(Cod.) Proveedor',
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'Articulo.Proveedor.Codigo',
      b: 'Articulo.Proveedor.Nombre'
    }
  },
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'URL de Public.',
  WCol: '30%',
  Type: 'url',
  Key: 'ItemUrl',
  LinkNav: 'ItemUrl'
}, {
  Nombre: '(N°) Depósito',
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'Deposito.Numero',
      b: 'Deposito.Nombre'
    }
  },
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Lista de Precios',
  Key: 'ListaPrecio.Nombre',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Usuario',
  Key: 'MeliConfiguracionUsuario.Usuario',
  WCol: '20%',
  Disabled: false
}];
const actionArtPublicML = [{
  Title: 'Visualizar',
  Accion: ART_PUBLIC_MELI_VISUALIZAR
}, {
  Title: 'Editar',
  Accion: ART_PUBLIC_MELI_EDITAR
}, {
  Type: 'divider',
  disabled: true
}, {
  Title: 'Activar',
  Accion: ART_PUBLIC_MELI_ACTIVAR
}, {
  Title: 'Pausar',
  Accion: ART_PUBLIC_MELI_PAUSAR
}, {
  Title: 'Eliminar',
  Accion: ART_PUBLIC_MELI_ELIMINAR
}, {
  Type: 'divider',
  disabled: true
}, {
  Title: 'Registro de Cambios',
  Accion: ART_PUBLIC_MELI_HISTORIAL
}];
const variacionesMLHeader = [{
  Nombre: 'Articulo Id',
  //Order:3,
  Key: 'IdArticulo',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Variación Nombre',
  //Order:3,
  Key: 'Nombre',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Variación Id',
  //Order:3,
  Key: 'VariacionId',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Precio',
  Key: 'Precio',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Stock',
  Key: 'Stock',
  Type: 'number',
  Pipe: 'number:1.2-5',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Usa Cota Stock Min.',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  Key: 'CotaMin',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Usa Stock Propio',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  Key: 'StockPropio',
  WCol: '10%',
  Disabled: false
}];

/***/ }),

/***/ 51175:
/*!**********************************************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/articulos/articulo-atributo-edit/articulo-atrib-edit-form/articulo-atrib-edit-form.component.ts ***!
  \**********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ArticuloAtribEditFormComponent: () => (/* binding */ ArticuloAtribEditFormComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* 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_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_pages_dashboards_atributos_atributo_edit_atributo_edit_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/dashboards/atributos/atributo-edit/atributo-edit.component */ 58694);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_core_atributo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/atributo.service */ 70612);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/selectbutton */ 16128);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../shared/ui/select-multiple/select-multiple.component */ 54245);












function ArticuloAtribEditFormComponent_button_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "button", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ArticuloAtribEditFormComponent_button_12_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r4.agregarPredeterminado());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", !ctx_r0.tienePredeterminado());
  }
}
function ArticuloAtribEditFormComponent_button_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "button", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ArticuloAtribEditFormComponent_button_13_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r6.configurarValores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function ArticuloAtribEditFormComponent_app_select_multiple_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "app-select-multiple", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("emitSelected", function ArticuloAtribEditFormComponent_app_select_multiple_15_Template_app_select_multiple_emitSelected_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r8.filterForm.controls.idsValores.setValue($event));
    });
    _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"]("selected", ctx_r2.filterForm.controls.idsValores.value)("items", ctx_r2.valores);
  }
}
function ArticuloAtribEditFormComponent_ng_container_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0, 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "p-selectButton", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("options", ctx_r3.stateOptions);
  }
}
class ArticuloAtribEditFormComponent {
  constructor(fb, modal, atributoService, modalService, alert) {
    this.fb = fb;
    this.modal = modal;
    this.atributoService = atributoService;
    this.modalService = modalService;
    this.alert = alert;
    this.MSJ_EXITO_EDICION = 'Se modificó correctamente el atributo.';
    this.administrar = false;
    this.filterForm = this.fb.group({
      idsValores: [''],
      valorCheck: 'N'
    });
    this.valores = [];
    this.stateOptions = [{
      label: 'Si',
      value: 'S'
    }, {
      label: 'No',
      value: 'N'
    }];
    this.dominioOptions = [{
      id: 'B',
      nombre: 'Texto largo'
    }, {
      id: 'D',
      nombre: 'Fecha'
    }, {
      id: 'I',
      nombre: 'Entero'
    }, {
      id: 'L',
      nombre: 'Lógico (S/N)'
    }, {
      id: 'R',
      nombre: 'Real'
    }, {
      id: 'S',
      nombre: 'Texto'
    }];
  }
  ngOnInit() {
    if (this.atributoSeleccionado.Data.Valores == undefined) {
      this.atributoSeleccionado.Data.Valores = [];
    }
    this.cargarValores();
  }
  cargarValores() {
    let susc = this.atributoService.getValores({
      idAtributo: this.atributoSeleccionado.Data.Id,
      PageNumber: -1
    }).subscribe(resp => {
      if (resp.Data.length > 0) {
        this.valores = resp.Data;
        this.filterForm.controls.idsValores.setValue(this.atributoSeleccionado.Data.Valores.map(valor => valor.Valor.Id), {
          emitEvent: false
        });
        this.valorPredeterminado = this.valores.find(valor => valor.Predeterminado == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO);
        this.filterForm.controls.valorCheck.setValue(this.atributoSeleccionado.Data.Valores.length > 0 ? this.atributoSeleccionado.Data.Valores[0].Valor.Valor : this.valorPredeterminado.Valor);
      }
    });
  }
  configurarValores() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_atributos_atributo_edit_atributo_edit_component__WEBPACK_IMPORTED_MODULE_3__.AtributoEditComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      scrollable: true
    });
    this.atributoSeleccionado.Data.ValoresAtributo = this.valores;
    modalRef.componentInstance.atributo = this.atributoSeleccionado.Data;
    modalRef.componentInstance.dominioOptions = this.dominioOptions;
    modalRef.componentInstance.modoValores = true;
    modalRef.result.then(() => {
      this.atributoSeleccionado.Data.Valores = [];
      this.cargarValores();
      this.alert.showBasicAlert(this.MSJ_EXITO_EDICION, '', 'success');
    }, () => {});
  }
  valorPorDominio(valor, valorPredeterminado) {
    if (valor == 'L') {
      return valorPredeterminado ? valorPredeterminado : 'N';
    }
    if (valor == 'S' || valor == 'B') {
      return valorPredeterminado ? valorPredeterminado : 'S';
    }
    if (valor == 'I' || valor == 'R') {
      return valorPredeterminado ? valorPredeterminado : 0;
    }
    if (valor == 'D') {
      return valorPredeterminado ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.formatFechaComp)(valorPredeterminado) : (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.fechaActual)();
    }
  }
  agregarPredeterminado() {
    if (this.filterForm.controls.idsValores.value.filter(idValor => idValor == this.valorPredeterminado.Id).length == 0) {
      this.filterForm.controls.idsValores.setValue([...this.filterForm.controls.idsValores.value, this.valorPredeterminado.Id]);
    }
  }
  aceptarValores() {
    let valoresNuevos = [];
    if (this.atributoSeleccionado.Data.Dominio !== 'L') {
      if (this.filterForm.controls.idsValores.value.length == 0 && this.atributoSeleccionado.Data.Requerido == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO) {
        valoresNuevos.push(this.atributoSeleccionado.Data.Valores.find(valor => valor.Valor.Predeterminado == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO));
        if (valoresNuevos.length == 0) {
          let valorNuevo = this.valores.find(valor => valor.Predeterminado == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO);
          valorNuevo.idArt = this.atributoSeleccionado.Data.IdArticulo;
          valoresNuevos.push({
            Valor: valorNuevo,
            Id: null
          });
        }
      } else {
        this.filterForm.controls.idsValores.value.forEach(idValor => {
          if (this.atributoSeleccionado.Data.Valores.find(valor => valor.Valor.Id == idValor)) {
            valoresNuevos.push(this.atributoSeleccionado.Data.Valores.find(valor => valor.Valor.Id == idValor));
          } else {
            let valorNuevo = this.valores.find(valor => valor.Id == idValor);
            valorNuevo.idArt = this.atributoSeleccionado.Data.IdArticulo;
            valoresNuevos.push({
              Valor: valorNuevo,
              Id: null
            });
          }
        });
      }
    } else {
      let valorNuevo = this.valores.find(valor => valor.Valor == this.filterForm.controls.valorCheck.value);
      valoresNuevos.push({
        Valor: valorNuevo,
        Id: null
      });
    }
    this.atributoSeleccionado.Data.Valores = valoresNuevos;
    this.modal.close(this.atributoSeleccionado);
  }
  tienePredeterminado() {
    return this.valores.filter(valor => valor.Predeterminado == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO).length > 0;
  }
  static #_ = this.ɵfac = function ArticuloAtribEditFormComponent_Factory(t) {
    return new (t || ArticuloAtribEditFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _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_core_atributo_service__WEBPACK_IMPORTED_MODULE_4__.AtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: ArticuloAtribEditFormComponent,
    selectors: [["app-articulo-atrib-edit-form"]],
    inputs: {
      atributoSeleccionado: "atributoSeleccionado",
      administrar: "administrar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService])],
    decls: 22,
    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", "100px"], [1, "row", "justify-content-between"], [1, "col-auto"], ["class", "btn btn-sm btn-success mx-1", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-sm btn-success mx-1", 3, "click", 4, "ngIf"], [1, "row", "mt-3", 3, "formGroup"], ["labelKey", "Valor", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected", 4, "ngIf"], ["class", "pe-2", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", "mr-2", 3, "disabled", "click"], [1, "btn", "btn-sm", "btn-success", "mx-1", 3, "disabled", "click"], [1, "bx", "bxs-cog"], [1, "btn", "btn-sm", "btn-success", "mx-1", 3, "click"], [1, "bx", "bxs-edit-alt"], ["labelKey", "Valor", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], [1, "pe-2"], [1, "flex", "flex-wrap", "gap-3"], ["formControlName", "valorCheck", "optionLabel", "label", "optionValue", "value", 3, "options"]],
    template: function ArticuloAtribEditFormComponent_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__["ɵɵelementContainerStart"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4, " Administrar valores de atributo ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "div", 4)(8, "div", 5)(9, "h5");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](10, "Seleccionar valores");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](11, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, ArticuloAtribEditFormComponent_button_12_Template, 2, 1, "button", 6)(13, ArticuloAtribEditFormComponent_button_13_Template, 2, 0, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](15, ArticuloAtribEditFormComponent_app_select_multiple_15_Template, 1, 2, "app-select-multiple", 9)(16, ArticuloAtribEditFormComponent_ng_container_16_Template, 3, 1, "ng-container", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "div", 11)(18, "button", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ArticuloAtribEditFormComponent_Template_button_click_18_listener() {
          return ctx.modal.close();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](19, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function ArticuloAtribEditFormComponent_Template_button_click_20_listener() {
          return ctx.aceptarValores();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](21, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", (ctx.administrar ? ctx.atributoSeleccionado.Data.Dominio !== "L" : ctx.atributoSeleccionado.Data.Dominio !== "L") && ctx.atributoSeleccionado.Form.controls.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", (ctx.administrar ? ctx.atributoSeleccionado.Data.Dominio !== "L" : ctx.atributoSeleccionado.Data.Dominio !== "L") && ctx.atributoSeleccionado.Form.controls.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.filterForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.administrar ? ctx.atributoSeleccionado.Data.Dominio !== "L" : ctx.atributoSeleccionado.Data.Dominio !== "L");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.administrar ? ctx.atributoSeleccionado.Data.Dominio == "L" : ctx.atributoSeleccionado.Data.Dominio == "L");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.filterForm.controls.idsValores.value.length == 0 && (ctx.administrar ? ctx.atributoSeleccionado.Data.Dominio !== "L" : ctx.atributoSeleccionado.Data.Dominio !== "L"));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, primeng_selectbutton__WEBPACK_IMPORTED_MODULE_10__.SelectButton, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_5__.SelectMultipleComponent],
    styles: [".back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}"]
  });
}

/***/ }),

/***/ 61089:
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/articulos/articulo-atributo-edit/articulo-atributo-edit.component.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ArticuloAtributoEditComponent: () => (/* binding */ ArticuloAtributoEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var _articulo_atrib_edit_form_articulo_atrib_edit_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./articulo-atrib-edit-form/articulo-atrib-edit-form.component */ 51175);
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _articulo_atributo_envio_masivo_articulo_atributo_envio_masivo_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./articulo-atributo-envio-masivo/articulo-atributo-envio-masivo.component */ 31631);
/* harmony import */ var _angular_common_locales_es__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common/locales/es */ 46828);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/atributo.service */ 70612);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_checkbox__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/checkbox */ 38057);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/table */ 94267);
/* 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_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_order_column_order_column_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/ui/order-column/order-column.component */ 69246);
/* harmony import */ var _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/ui/pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/ui/pagination/pagination.component */ 74813);























function ArticuloAtributoEditComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " Administrar Atributos de Art\u00EDculo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_template_3_Template(rf, ctx) {}
function ArticuloAtributoEditComponent_ng_container_5_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 19)(1, "label", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](3, "input", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_a_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_a_18_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r14.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_div_23_ng_template_1_Template(rf, ctx) {}
function ArticuloAtributoEditComponent_ng_container_5_div_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](1, ArticuloAtributoEditComponent_ng_container_5_div_23_ng_template_1_Template, 0, 0, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r8.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r4);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_div_25_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 44)(1, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, " No hay Art\u00EDculos , seleccione alguno ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_div_25_li_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "li", 46)(1, "h5", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const art_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](art_r19.Nombre);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_div_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 36)(1, "div", 37)(2, "div", 38)(3, "h5", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, "Art\u00EDculos Seleccionados");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](6, ArticuloAtributoEditComponent_ng_container_5_div_25_div_6_Template, 3, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "ul", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](8, ArticuloAtributoEditComponent_ng_container_5_div_25_li_8_Template, 3, 1, "li", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", !ctx_r9.articulos || (ctx_r9.articulos == null ? null : ctx_r9.articulos.length) == 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r9.articulos);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_th_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "th")(1, "app-order-column", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onOrder", function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_th_4_Template_app_order_column_onOrder_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r25.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("orderId", 3)("active", ctx_r23.order == 3)("sentido", ctx_r23.sentido);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_th_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "th")(1, "app-order-column", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onOrder", function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_th_5_Template_app_order_column_onOrder_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r28);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r27.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("orderId", 5)("active", ctx_r24.order == 5)("sentido", ctx_r24.sentido);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "th")(3, "app-order-column", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onOrder", function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_Template_app_order_column_onOrder_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r30);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r29.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_th_4_Template, 2, 3, "th", 3)(5, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_th_5_Template, 2, 3, "th", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7, "Valores");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("orderId", 2)("active", ctx_r21.order == 2)("sentido", ctx_r21.sentido);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r21.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r21.getAdmin());
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_td_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "td")(1, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    let tmp_0_0;
    let tmp_1_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵstyleMap"]((tmp_0_0 = ctx_r33.getDiccionario(atributo_r31.Dominio)) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r33.getDiccionario(atributo_r31.Dominio)) == null ? null : tmp_1_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r33.getDiccionario(atributo_r31.Dominio).Nombre, " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_td_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "td")(1, "span", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", atributo_r31.Requerido == "S" ? "Si" : "No", " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r41.mostrarFecha(valor_r39.Valor.Valor), " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind3"](2, 1, valor_r39.Valor.Valor, "1.2-5", "es"), " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", valor_r39.Valor.Valor, " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "li", 61)(2, "span", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_ng_container_4_Template, 2, 1, "ng-container", 3)(5, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_ng_container_5_Template, 3, 5, "ng-container", 3)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_ng_container_6_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const i_r40 = ctx.index;
    const atributo_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](i_r40 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r31.Dominio === "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r31.Dominio === "I" || atributo_r31.Dominio === "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r31.Dominio !== "D" && atributo_r31.Dominio !== "I" && atributo_r31.Dominio !== "R");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_button_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_button_11_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r50);
      const atributo_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
      const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r48.selectAtribEdicion(atributo_r31));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "tr", 54)(1, "td", 55)(2, "p-checkbox", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onChange", function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_Template_p_checkbox_onChange_2_listener($event) {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r52);
      const atributo_r31 = restoredCtx.$implicit;
      const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r51.selectAtrib($event, atributo_r31));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](5, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_td_5_Template, 3, 4, "td", 3)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_td_6_Template, 3, 1, "td", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "td")(8, "ul", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](9, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_ng_container_9_Template, 7, 4, "ng-container", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](11, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_button_11_Template, 2, 0, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r31 = ctx.$implicit;
    const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngModel", ctx_r22.buscarSeleccionado(atributo_r31.Id))("binary", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](atributo_r31.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r22.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r22.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r22.valoresCargados(atributo_r31));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r22.buscarSeleccionado(atributo_r31.Id) == "S");
  }
}
const _c0 = () => ({
  width: "100%"
});
function ArticuloAtributoEditComponent_ng_container_5_ng_container_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "p-table", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](2, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_2_Template, 10, 5, "ng-template", 49)(3, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_ng_template_3_Template, 12, 7, "ng-template", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("scrollable", true)("rowHover", true)("value", ctx_r10.atributos)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpureFunction0"](12, _c0))("responsive", true)("totalRecords", ctx_r10.totalItems)("sortField", ctx_r10.order)("sortOrder", ctx_r10.sentido)("customSort", true)("rowSelectable", true)("resizableColumns", true)("lazy", true);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_th_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "th")(1, "app-order-column", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onOrder", function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_th_4_Template_app_order_column_onOrder_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r58);
      const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r57.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("orderId", 3)("active", ctx_r55.order == 3)("sentido", ctx_r55.sentido);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_th_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r60 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "th")(1, "app-order-column", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onOrder", function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_th_5_Template_app_order_column_onOrder_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r60);
      const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r59.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("orderId", 5)("active", ctx_r56.order == 5)("sentido", ctx_r56.sentido);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "th")(3, "app-order-column", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onOrder", function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_Template_app_order_column_onOrder_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r62);
      const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r61.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_th_4_Template, 2, 3, "th", 3)(5, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_th_5_Template, 2, 3, "th", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7, "Valores");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("orderId", 2)("active", ctx_r53.order == 2)("sentido", ctx_r53.sentido);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r53.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r53.getAdmin());
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_td_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "td")(1, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    let tmp_0_0;
    let tmp_1_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵstyleMap"]((tmp_0_0 = ctx_r65.getDiccionario(atributo_r63.Dominio)) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r65.getDiccionario(atributo_r63.Dominio)) == null ? null : tmp_1_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r65.getDiccionario(atributo_r63.Dominio).Nombre, " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_td_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "td")(1, "span", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", atributo_r63.Requerido == "S" ? "Si" : "No", " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r73.mostrarFecha(valor_r71.Valor.Valor), " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind3"](2, 1, valor_r71.Valor.Valor, "1.2-5", "es"), " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", valor_r71.Valor.Valor, " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "li", 61)(2, "span", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_ng_container_4_Template, 2, 1, "ng-container", 3)(5, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_ng_container_5_Template, 3, 5, "ng-container", 3)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_ng_container_6_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const i_r72 = ctx.index;
    const atributo_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](i_r72 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r63.Dominio == "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r63.Dominio === "I" || atributo_r63.Dominio === "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r63.Dominio !== "D" && atributo_r63.Dominio !== "I" && atributo_r63.Dominio !== "R");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_button_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r82 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_button_11_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r82);
      const atributo_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
      const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r80.selectAtribEdicion(atributo_r63));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "tr", 54)(1, "td", 55)(2, "p-checkbox", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onChange", function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_Template_p_checkbox_onChange_2_listener($event) {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r84);
      const atributo_r63 = restoredCtx.$implicit;
      const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r83.selectAtrib($event, atributo_r63));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](5, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_td_5_Template, 3, 4, "td", 3)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_td_6_Template, 3, 1, "td", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "td")(8, "ul", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](9, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_ng_container_9_Template, 7, 4, "ng-container", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](11, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_button_11_Template, 2, 0, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r63 = ctx.$implicit;
    const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngModel", ctx_r54.buscarSeleccionado(atributo_r63.Id))("binary", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](atributo_r63.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r54.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r54.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r54.valoresCargados(atributo_r63));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r54.buscarSeleccionado(atributo_r63.Id) == "S");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "p-table", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](2, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_2_Template, 10, 5, "ng-template", 49)(3, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_ng_template_3_Template, 12, 7, "ng-template", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("scrollable", true)("rowHover", true)("value", ctx_r11.atributosArticulos)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpureFunction0"](12, _c0))("responsive", true)("totalRecords", ctx_r11.totalItems)("sortField", ctx_r11.order)("sortOrder", ctx_r11.sentido)("customSort", true)("rowSelectable", true)("resizableColumns", true)("lazy", true);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_2_th_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "p-sortIcon", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, " Dominio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_2_th_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "th", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "p-sortIcon", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, " Requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "th", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](3, "p-sortIcon", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4, " Nombre ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](5, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_2_th_5_Template, 3, 0, "th", 68)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_2_th_6_Template, 3, 0, "th", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](8, "Valores");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](9, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](10, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r85.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r85.getAdmin());
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_td_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "td")(1, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    let tmp_0_0;
    let tmp_1_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵstyleMap"]((tmp_0_0 = ctx_r91.getDiccionario(atributo_r89.Dominio)) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r91.getDiccionario(atributo_r89.Dominio)) == null ? null : tmp_1_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r91.getDiccionario(atributo_r89.Dominio).Nombre, " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_td_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "td")(1, "span", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", atributo_r89.Requerido == "S" ? "Si" : "No", " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", ctx_r99.mostrarFecha(valor_r97.Valor.Valor), " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind3"](2, 1, valor_r97.Valor.Valor, "1.2-5", "es"), " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", valor_r97.Valor.Valor, " ");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "li", 61)(2, "span", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_ng_container_4_Template, 2, 1, "ng-container", 3)(5, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_ng_container_5_Template, 3, 5, "ng-container", 3)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_ng_container_6_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const i_r98 = ctx.index;
    const atributo_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](i_r98 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r89.Dominio === "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r89.Dominio === "I" || atributo_r89.Dominio === "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", atributo_r89.Dominio !== "D" && atributo_r89.Dominio !== "I" && atributo_r89.Dominio !== "R");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_button_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "button", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_button_11_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r108);
      const atributo_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
      const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r106.selectAtribEdicion(atributo_r89));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r110 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "tr", 54)(1, "td", 55)(2, "p-checkbox", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onChange", function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_Template_p_checkbox_onChange_2_listener($event) {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r110);
      const atributo_r89 = restoredCtx.$implicit;
      const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r109.selectAtrib($event, atributo_r89));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](5, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_td_5_Template, 3, 4, "td", 3)(6, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_td_6_Template, 3, 1, "td", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "td")(8, "ul", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](9, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_ng_container_9_Template, 7, 4, "ng-container", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](11, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_button_11_Template, 2, 0, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atributo_r89 = ctx.$implicit;
    const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngModel", ctx_r86.buscarSeleccionado(atributo_r89.Id))("binary", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate"](atributo_r89.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r86.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r86.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r86.valoresCargados(atributo_r89));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r86.buscarSeleccionado(atributo_r89.Id) == "S");
  }
}
function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r112 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "p-table", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("onPage", function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_Template_p_table_onPage_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r112);
      const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r111.pageChange($event));
    })("sortFunction", function ArticuloAtributoEditComponent_ng_container_5_ng_container_29_Template_p_table_sortFunction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r112);
      const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r113.ordenar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](2, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_2_Template, 11, 2, "ng-template", 49)(3, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_ng_template_3_Template, 12, 7, "ng-template", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("scrollable", true)("rowHover", true)("value", ctx_r12.atributosArticulos)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpureFunction0"](15, _c0))("responsive", true)("sortOrder", 1)("customSort", true)("rowSelectable", true)("resizableColumns", true)("resetPageOnSort", true)("first", ctx_r12.page)("paginator", true)("rows", ctx_r12.cantSearch)("totalRecords", ctx_r12.totalItems)("showCurrentPageReport", true);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_div_30_Template(rf, ctx) {
  if (rf & 1) {
    const _r115 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 74)(1, "div", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](2, "app-page-info", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "div", 77)(4, "div", 78)(5, "div", 79)(6, "app-pagination", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("pageChanges", function ArticuloAtributoEditComponent_ng_container_5_div_30_Template_app_pagination_pageChanges_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r115);
      const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r114.pageChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("select", false)("page", ctx_r13.page)("totalItems", ctx_r13.totalItems)("defaultValue", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("currentPage", ctx_r13.page)("limit", ctx_r13.cantSearch)("total", ctx_r13.totalItems);
  }
}
function ArticuloAtributoEditComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r117 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "p-sidebar", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("visibleChange", function ArticuloAtributoEditComponent_ng_container_5_Template_p_sidebar_visibleChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r117);
      const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r116.filtroMobile = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, ArticuloAtributoEditComponent_ng_container_5_ng_template_3_Template, 0, 0, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "form", 11)(5, "div", 12)(6, "div", 13)(7, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_Template_a_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r117);
      const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r118.filtro = !ctx_r118.filtro);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](8, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](9, "div", 16)(10, "a", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_Template_a_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r117);
      const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r119.filtroMobile = !ctx_r119.filtroMobile);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](11, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](12, ArticuloAtributoEditComponent_ng_container_5_div_12_Template, 4, 0, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "div", 19)(14, "label", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](15, "Atributo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](16, "div", 21)(17, "input", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("keyup.enter", function ArticuloAtributoEditComponent_ng_container_5_Template_input_keyup_enter_17_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r117);
      const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r120.buscarPorNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](18, ArticuloAtributoEditComponent_ng_container_5_a_18_Template, 2, 0, "a", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](19, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_5_Template_a_click_19_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r117);
      const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r121.buscarPorNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](20, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](21, "div", 26)(22, "app-checkbox", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("emitAction", function ArticuloAtributoEditComponent_ng_container_5_Template_app_checkbox_emitAction_22_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r117);
      const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r122.setAdmin());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](23, ArticuloAtributoEditComponent_ng_container_5_div_23_Template, 2, 2, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](24, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](25, ArticuloAtributoEditComponent_ng_container_5_div_25_Template, 9, 2, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](26, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](27, ArticuloAtributoEditComponent_ng_container_5_ng_container_27_Template, 4, 13, "ng-container", 3)(28, ArticuloAtributoEditComponent_ng_container_5_ng_container_28_Template, 4, 13, "ng-container", 3)(29, ArticuloAtributoEditComponent_ng_container_5_ng_container_29_Template, 4, 16, "ng-container", 3)(30, ArticuloAtributoEditComponent_ng_container_5_div_30_Template, 7, 7, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("visible", ctx_r1.filtroMobile);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", !ctx_r1.filtro ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", !ctx_r1.filtroMobile ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", !ctx_r1.masivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r1.busquedaNombre());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", ctx_r1.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r1.filtro);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r1.masivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx_r1.masivo ? "col-lg-9" : "col-lg-12");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r1.getAdmin());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", !ctx_r1.getAdmin() && !ctx_r1.masivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", !ctx_r1.getAdmin() && ctx_r1.masivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r1.masivo && ctx_r1.getAdmin() || !ctx_r1.masivo && ctx_r1.getAdmin() || !ctx_r1.masivo && !ctx_r1.getAdmin());
  }
}
function ArticuloAtributoEditComponent_ng_container_9_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](0, "i", 83);
  }
}
function ArticuloAtributoEditComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r125 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "button", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_ng_container_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r125);
      const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r124.enviarAtributos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ArticuloAtributoEditComponent_ng_container_9_i_4_Template, 1, 0, "i", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
  }
  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__["ɵɵproperty"]("disabled", ctx_r2.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](2, 2, ctx_r2.atributoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](5, 4, ctx_r2.atributoService.isLoading$));
  }
}
function ArticuloAtributoEditComponent_ng_template_10_option_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "option", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r128 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", option_r128.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", option_r128.nombre, " ");
  }
}
function ArticuloAtributoEditComponent_ng_template_10_option_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "option", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r129 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", option_r129.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", option_r129.nombre, " ");
  }
}
function ArticuloAtributoEditComponent_ng_template_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 84)(1, "div", 85)(2, "p", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "select", 87)(5, "option", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](6, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](7, ArticuloAtributoEditComponent_ng_template_10_option_7_Template, 2, 2, "option", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "div", 85)(9, "p", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](10, "Requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](11, "select", 90)(12, "option", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](13, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](14, ArticuloAtributoEditComponent_ng_template_10_option_14_Template, 2, 2, "option", 89);
    _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__["ɵɵproperty"]("formGroup", ctx_r3.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r3.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r3.todosOptions);
  }
}
class ArticuloAtributoEditComponent {
  constructor(fb, modal, atributoService, articuloService, modalService) {
    this.fb = fb;
    this.modal = modal;
    this.atributoService = atributoService;
    this.articuloService = articuloService;
    this.modalService = modalService;
    this.masivo = false;
    this.articulos = [];
    this._unsubscribe = [];
    this.btnActivo = true;
    this.filtro = false;
    this.filtroMobile = false;
    /**
     * //SP SINWEB-247 Variables de datos
     */
    this.atributos = [];
    this.articulosEnvio = [];
    this.eliminadosMasivo = [];
    /**
     * paginacion
     */
    this.cantSearch = 5;
    /**
     * SP arreglo paginas seleccionables pasadas al app-select component
     */
    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;
    /**
     * variables de busqueda/filtros
     */
    this.buscarNombre = '';
    this.filterDominio = '';
    this.filterBaja = '';
    this.filterRequerido = '';
    /**
     * SP SINWEB-247 variables requeridas para seleccion de atributos
     */
    this.atributosSeleccionados = [];
    this.atributosArtSeleccionados = [];
    this.inicializar = true;
    /**
     * SP SINWEB-247 Objetos usados en filtros
     */
    this.dominioOptions = [{
      id: 'B',
      nombre: 'Texto largo'
    }, {
      id: 'D',
      nombre: 'Fecha'
    }, {
      id: 'I',
      nombre: 'Entero'
    }, {
      id: 'L',
      nombre: 'Lógico (S/N)'
    }, {
      id: 'R',
      nombre: 'Real'
    }, {
      id: 'S',
      nombre: 'Texto'
    }];
    this.todosOptions = [{
      id: 'N',
      nombre: 'No'
    }, {
      id: 'S',
      nombre: 'Si'
    }];
    this.filterForm = this.fb.group({
      dominio: [''],
      baja: [''],
      requerido: ['']
    });
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_12__.registerLocaleData)(_angular_common_locales_es__WEBPACK_IMPORTED_MODULE_13__["default"]);
    this.formGroup = this.fb.group({
      nombreArticulo: [this.articulo ? this.articulo.Nombre : ''],
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.maxLength(100)],
      administrar: [false]
    });
    /**
     * SP deshabilitar campo nombreArticulo
     */
    this.formGroup.get('nombreArticulo').disable();
    this.page = this.masivo && !this.getAdmin() ? 0 : 1;
    this.cargarAtributos();
    this.configurarFilter();
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //SP SINWEB-243 parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //busqueda
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      if (this.getAdmin()) {
        datos.Nombre = this.buscarNombre;
      } else {
        datos.NombreAtributo = this.buscarNombre;
      }
    }
    //filtros
    if (this.filterDominio != '') {
      if (this.getAdmin()) {
        datos.Dominio = this.filterDominio;
      } else {
        datos.DominioAtributo = this.filterDominio;
      }
    }
    this.filterBaja = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    if (this.filterBaja != '') {
      if (this.getAdmin()) {
        datos.BajaLogica = this.filterBaja;
      } else {
        datos.BajaLogicaAtributo = this.filterBaja;
      }
    }
    if (this.filterRequerido != '') {
      if (this.getAdmin()) {
        datos.Requerido = this.filterRequerido;
      } else {
        datos.RequeridoAtributo = this.filterRequerido;
      }
    }
    return datos;
  }
  configurarFilter() {
    this._unsubscribe.push(this.formGroup.controls.administrar.valueChanges.subscribe(value => {
      this.page = this.masivo && !this.getAdmin() ? 0 : 1;
      this.cargarAtributos();
    }));
    this._unsubscribe.push(this.filterForm.controls.dominio.valueChanges.subscribe(IdDominio => {
      if (this.filtro || this.filtroMobile) {
        this.filterDominio = IdDominio;
        this.page = this.masivo && !this.getAdmin() ? 0 : 1;
        this.cargarAtributos();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.requerido.valueChanges.subscribe(requerido => {
      if (this.filtro || this.filtroMobile) {
        this.filterRequerido = requerido;
        this.page = this.masivo && !this.getAdmin() ? 0 : 1;
        this.cargarAtributos();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.baja.valueChanges.subscribe(baja => {
      if (this.filtro || this.filtroMobile) {
        this.filterBaja = baja;
        this.page = this.masivo && !this.getAdmin() ? 0 : 1;
        this.cargarAtributos();
      }
    }));
  }
  cargarAtributos() {
    if (!this.masivo) {
      this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
    } else {
      this.onSearchMasivo(this.cargarFiltros(this.page, this.order, this.sentido));
    }
  }
  /**
   * SP SINWEB-247 metodo para buscar los atributos en el caso que la administracion sea masiva
   * @param datos
   */
  onSearchMasivo(datos) {
    //SP SINWEB-247 caso de que la tabla visualizada de atributos sea la de atributos en comun
    if (!this.getAdmin()) {
      this.atributosArticulos = this.filtrarAtribComunes(this.articulos);
      this.atributosArticulos.forEach(atributo => {
        if (this.buscarSeleccionado(atributo.Id) == 'N') {
          //SP SINWEB-247 controla que el atributo seleccionado no este en el array y arma los formularios de valores
          this.atributosArtSeleccionados.push({
            Data: atributo,
            Form: new _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormArray(this.crearFormsValores(atributo.Valores, atributo))
          });
        }
      });
      this.totalItems = this.atributosArticulos.length;
    } else {
      //SP SINWEB-247 caso de que la tabla visualizada de atributos sea la de atributos disponibles
      const susc = this.atributoService.fetch(datos).subscribe(data => {
        this.atributos = data.Data;
        if (this.inicializar) {
          let auxArtAtribs = this.filtrarAtribComunes(this.articulos);
          auxArtAtribs.forEach(atributo => {
            //const atributoArticulo =  auxArtAtribs.find(atrib => atrib.Id == atributo.Id)
            if (this.buscarSeleccionado(atributo.Id) == 'N') {
              //SP SINWEB-247 controla que el atributo seleccionado no este en el array y arma los formularios de valores
              this.atributosSeleccionados.push({
                Data: atributo,
                Form: new _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormArray(this.crearFormsValores(atributo.Valores, atributo))
              });
            }
          });
          this.inicializar = false;
        }
        if (data.Data != undefined) {
          this.totalItems = data.TotalRecords;
        } else {
          this.totalItems = 0;
        }
      });
      susc.unsubscribe;
    }
  }
  /**
   * SP SINWEB-247  metodo que filtra los atributos en comun de los articulso seleccionados
   * @param articulos
   * @returns
   */
  filtrarAtribComunes(articulos) {
    let atribDeArt = articulos.map(art => art.Atributos);
    if (atribDeArt[0] == null) {
      return [];
    }
    let commonAtribs = atribDeArt[0].filter(element => {
      let res = true;
      atribDeArt.forEach(element2 => {
        if (element2 !== null) {
          res = res && element2.some(element3 => element3.Id === element.Id);
        } else {
          res = false;
        }
      });
      return res;
    });
    commonAtribs.forEach(element => {
      atribDeArt.forEach(element2 => {
        if (element2 !== null) {
          element2 = element2.filter(element3 => element3.Id === element.Id);
        }
        if (element2 !== null && element2.length > 0) {
          element.Valores = Array.from(new Set(element.Valores?.concat(element2[0].Valores)));
        }
      });
      let elementosUnicos = {};
      element.Valores = element.Valores?.filter(element2 => {
        const clave = JSON.stringify(element2.Valor);
        if (!elementosUnicos[clave]) {
          elementosUnicos[clave] = true;
          return true;
        } else {
          return false;
        }
      });
    });
    return commonAtribs;
  }
  /**
   * SP SINWEB-246 metodo que trae los atributos del articulo seleccionado (carga simple)
   * @param datos
   */
  onSearch(datos) {
    const susc = (this.getAdmin() ? this.atributoService.fetch(datos) : this.articuloService.getArticuloAtributos(datos, this.articulo.Id)).subscribe(data => {
      data.Data.forEach(atributo => atributo.Atributo = {
        Id: atributo.Id,
        Nombre: atributo.Nombre,
        Dominio: atributo.Dominio,
        Requerido: atributo.Requerido,
        BajaLogica: atributo.BajaLogica
      });
      if (!this.getAdmin()) {
        this.atributosArticulos = data.Data;
        if (this.inicializar) {
          this.atributosArtSeleccionados = [];
          this.atributosArticulos.forEach(atributo => {
            if (this.buscarSeleccionado(atributo.Atributo.Id) == 'N') {
              this.atributosArtSeleccionados.push({
                Data: atributo,
                Form: new _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormArray(this.crearFormsValores(atributo.Valores, atributo.Atributo))
              });
            }
          });
          this.inicializar = false;
        }
      } else {
        this.atributos = data.Data;
        if (this.inicializar) {
          this.atributosSeleccionados = [];
          if (this.articulo.Atributos !== null) {
            this.articulo.Atributos.forEach(atributo => {
              if (this.buscarSeleccionado(atributo.Id) == 'N') {
                this.atributosSeleccionados.push({
                  Data: atributo,
                  Form: new _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormArray(this.crearFormsValores(atributo.Valores, atributo))
                });
              }
            });
          }
          this.inicializar = false;
        }
      }
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * SP SINWEB-246 metodo que crea los formularios de valores usado en los metodo onSearch y onSearchMasivo
   * @param atributosArticulo
   * @param atributo
   * @returns
   */
  crearFormsValores(atributosArticulo, atributo) {
    let arrayForm = [];
    if (atributosArticulo == undefined || atributosArticulo.length == 0 || atributosArticulo == null) {
      arrayForm.push(this.fb.group({
        Valor: [this.masivo && !this.getAdmin() ? this.valorPorDominio(atributo.Dominio, atributo.ValorPredeterminado) : this.valorPorDominio(atributo.Dominio, atributo.ValorPredeterminado)]
      }));
    } else {
      atributosArticulo.forEach(element => {
        arrayForm.push(this.fb.group({
          Valor: [(this.masivo && !this.getAdmin() ? atributo.Dominio == 'D' : atributo.Dominio == 'D') ? element : element]
        }));
      });
    }
    //arrayForm.push(this.fb.group({Valor:[this.masivo && !this.getAdmin()? this.valorPorDominio(atributo.Atributo.Dominio,atributo.Atributo.ValorPredeterminado) : this.valorPorDominio(atributo.Dominio,atributo.ValorPredeterminado)]}));
    return arrayForm;
  }
  /**
   * SP SINWEB-246 metodo que llama al modal de edicion de un row de atributo de la tabla
   * @param atributo
   */
  selectAtribEdicion(atributo) {
    const modalRef = this.modalService.open(_articulo_atrib_edit_form_articulo_atrib_edit_form_component__WEBPACK_IMPORTED_MODULE_2__.ArticuloAtribEditFormComponent, {
      backdrop: 'static',
      keyboard: false,
      size: 'md',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1'
    });
    if (this.getAdmin()) {
      modalRef.componentInstance.atributoSeleccionado = this.atributosSeleccionados.find(atrib => atrib.Data.Id == atributo.Id);
      modalRef.componentInstance.administrar = true;
    } else {
      modalRef.componentInstance.atributoSeleccionado = this.atributosArtSeleccionados.find(atrib => atrib.Data.Id == atributo.Id);
      modalRef.componentInstance.administrar = false;
    }
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        if (this.getAdmin()) {
          this.atributosSeleccionados.find(atrib => atrib.Data.Id == resolve.Data.Id).Data.Valores = resolve.Data.Valores;
        } else {
          this.atributosArtSeleccionados.find(atrib => atrib.Data.Id == resolve.Data.Id).Data.Valores = resolve.Data.Valores;
        }
      }
    });
  }
  /**
   * SP SINWEB-246 metodo de busqueda usado para encontrar el atributo seleccionado.
   * @param id
   * @returns
   */
  buscarSeleccionado(id) {
    if (this.getAdmin()) {
      return this.atributosSeleccionados.find(atrib => atrib.Data.Id == id) ? 'S' : 'N';
    } else {
      return this.atributosArtSeleccionados.find(atrib => atrib.Data.Id == id) ? 'S' : 'N';
    }
  }
  /**
   * SP SINWEB-246 metodo usado para seleccionar un atributo
   * @param event
   * @param atributo
   */
  selectAtrib(event, atributo) {
    if (event.checked == 'S') {
      if (this.getAdmin()) {
        this.eliminadosMasivo = this.eliminadosMasivo.filter(atribElim => atribElim != atributo.Id);
        if (!this.atributosSeleccionados.includes(atrib => atrib.Data.Id == atributo.Id)) {
          this.atributosSeleccionados.push({
            Data: atributo,
            Form: new _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormArray([this.fb.group({
              Valor: [this.valorPorDominio(atributo.Dominio, atributo.ValorPredeterminado)]
            })])
          });
        }
      } else {
        if (!this.atributosArtSeleccionados.includes(atrib => atrib.Data.Atributo.Id == atributo.Atributo.Id)) {
          this.atributosArtSeleccionados.push({
            Data: atributo,
            Form: new _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormArray([this.fb.group({
              Valor: [this.valorPorDominio(atributo.Atributo.Dominio, atributo.Atributo.ValorPredeterminado)]
            })])
          });
        }
      }
    } else {
      this.eliminadosMasivo.push(atributo.Id);
      if (this.getAdmin()) {
        this.atributosSeleccionados = this.atributosSeleccionados.filter(atrib => atrib.Data.Id != atributo.Id);
      } else {
        this.atributosArtSeleccionados = this.atributosArtSeleccionados.filter(atrib => atrib.Data.Id != atributo.Id);
      }
    }
  }
  /**
   * SP SINWEB-246 Metodo usado en el html para obtener el valor por dominio
   * @param valor
   * @param valorPredeterminado
   * @returns
   */
  valorPorDominio(valor, valorPredeterminado) {
    if (valor == 'L') {
      return valorPredeterminado ? valorPredeterminado : 'N';
    }
    if (valor == 'S' || valor == 'B') {
      return valorPredeterminado ? valorPredeterminado : '';
    }
    if (valor == 'I' || valor == 'R') {
      return valorPredeterminado ? valorPredeterminado : 0;
    }
    if (valor == 'D') {
      return valorPredeterminado ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(valorPredeterminado) : (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaActual)();
    }
  }
  /**
   * Método que cambia el tamaño de página y actualiza la búsqueda
   * @param {any} event Evento con la cantidad de registros a mostrar
   */
  setPage(event) {
    this.page = this.masivo && !this.getAdmin() ? 0 : 1;
    this.cantSearch = event;
    this.cargarAtributos();
  }
  getAdmin() {
    return this.formGroup.controls.administrar.value;
  }
  setAdmin() {
    this.inicializar = true;
    this.formGroup.controls.administrar.setValue(!this.getAdmin());
  }
  pageChange(event) {
    this.page = this.masivo && !this.getAdmin() ? event.first : event;
    this.cargarAtributos();
  }
  /**
   * Método que setea el orden página y actualiza la búsqueda
   * @param {any} event Evento con el orden y sentido de la búsqueda
   */
  setOrder(event) {
    this.page = this.masivo && !this.getAdmin() ? 0 : 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.cargarAtributos();
  }
  getNombre() {
    return this.formGroup.controls.nombre.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarNombre() {
    this.formGroup.get('nombre').reset('');
    this.page = this.masivo && !this.getAdmin() ? 0 : 1;
    this.buscarNombre = '';
    this.cargarAtributos();
  }
  buscarPorNombre() {
    this.page = this.masivo && !this.getAdmin() ? 0 : 1;
    this.buscarNombre = this.getNombre();
    this.cargarAtributos();
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * SP ISNWEB-246 metodo para enviar los atributos llamando a un recurso de la api
   */
  enviarAtributos() {
    //SP SINWEB-246 en el caso de ser envio simple , prepara los atributos y toma el id de articulo y lo envia a la api
    //luego cierra y dispara una alerta
    if (!this.masivo) {
      const susc = this.articuloService.putArticuloAtributos(this.prepararAtribArticulo(), this.articulo.Id).subscribe(res => {
        this.btnActivo = true;
        if (res.Errors == null) {
          this.modal.close({
            error: false
          });
        }
      });
    } else {
      //SP SINWEB-246 en el caso de ser envio masivo , abre otro modal donde realiza el envio haciendo una llamada a la api para cada articulo
      const atribMasivo = this.prepararAtribArticuloMasivo();
      const modalRef = this.modalService.open(_articulo_atributo_envio_masivo_articulo_atributo_envio_masivo_component__WEBPACK_IMPORTED_MODULE_4__.ArticuloAtributoEnvioMasivoComponent, {
        backdrop: 'static',
        keyboard: false,
        size: 'md',
        backdropClass: 'back-z-index-1',
        windowClass: 'modal-z-index-1',
        scrollable: true
      });
      modalRef.componentInstance.articulosEnvio = this.articulos;
      modalRef.componentInstance.atributosEnvio = atribMasivo;
      modalRef.componentInstance.eliminadosMasivo = this.eliminadosMasivo;
      modalRef.result.then(result => {
        this.modal.close({
          error: false
        });
      });
    }
  }
  /**
   * SP SINWEB-247 metodo usado para preparar el objeto para el envio para le caso de envio masivo
   * @returns
   */
  prepararAtribArticuloMasivo() {
    let atributosPorArt = [];
    const res = [];
    this.articulos.forEach(art => {
      if (!this.getAdmin()) {
        this.atributosArtSeleccionados.forEach(atrib => {
          const atribArt = art.Atributos.find(elem => elem.Id == atrib.Data.Id);
          atrib.Data.Valores.forEach(valor => {
            const valorArt = atribArt.Valores.find(elem => elem.Valor.Id == valor.Valor.Id && elem.Valor.idArt == art.Id);
            const atributo = {
              IdArticulo: art.Id,
              Id: !valorArt ? null : valorArt.Id,
              IdAtributo: atrib.Data.Id,
              Valor: {
                Id: valor.Valor.Id,
                Valor: valor.Valor.Dominio == 'D' ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(valor.Valor.Valor) : valor.Valor.Valor,
                Predeterminado: valor.Valor.Predeterminado
              }
            };
            res.push(atributo);
          });
        });
      } else {
        this.atributosSeleccionados.forEach(atrib => {
          const atribArt = art.Atributos?.find(elem => elem.Id == atrib.Data.Id);
          atrib.Data.Valores?.forEach(valor => {
            let valorArt;
            if (atribArt) {
              valorArt = atribArt.Valores?.find(elem => elem.Valor.Id == valor.Valor.Id && elem.Valor.idArt == art.Id);
            } else {
              valorArt = null;
            }
            const atributo = {
              IdArticulo: art.Id,
              Id: !valorArt ? null : valorArt.Id,
              IdAtributo: atrib.Data.Id,
              Valor: {
                Id: valor.Valor.Id,
                Valor: valor.Valor.Dominio == 'D' ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(valor.Valor.Valor) : valor.Valor.Valor,
                Predeterminado: valor.Valor.Predeterminado
              }
            };
            res.push(atributo);
          });
        });
      }
    });
    atributosPorArt = res.filter(atrib => this.eliminadosMasivo.indexOf(atrib.Id) == -1);
    return atributosPorArt;
  }
  /**
   * SP SINWEB-247 metod auxiliar que concatena los valores de los atributos usado por preparar masivo
   * @param articulo
   * @param atributo
   * @returns
   */
  auxAtribResto(articulo, atributo) {
    const atribNuevos = atributo.Form.controls.map(form => {
      return atributo.Data.Dominio == 'D' ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(form.controls.Valor.value) : form.controls.Valor.value;
      //return form.controls.Valor.value
    });
    const atribViejos = articulo.AtributosArticulo.filter(atrib => atrib.Atributo.Id == atributo.Data.Id).map(atrib => atrib.Valores);
    return Array.from(new Set(atribNuevos.concat(atribViejos.length > 0 ? atribViejos[0] : []))).join('|');
  }
  /**
   * SP SINWEB-247 metodo auxiliar que concatena los valores de un atributo
   * @param atributos
   * @returns
   */
  auxResto(atributos) {
    return atributos.map(atrib => {
      return {
        Id: atrib.Id,
        IdAtributo: atrib.Atributo.Id,
        Valor: atrib.Valores ? atrib.Valores.join('|') : null
      };
    });
  }
  /**
   * SP SINWEB-246 metodo que prepara el objeto para el envio simple de atributos
   * @returns
   */
  prepararAtribArticulo() {
    let res = [];
    if (!this.getAdmin()) {
      this.atributosArtSeleccionados.forEach(atrib => {
        atrib.Data.Valores.forEach(valor => {
          const atributo = {
            Id: valor.Id,
            IdAtributo: atrib.Data.Atributo.Id,
            Valor: {
              Id: valor.Valor.Id,
              Valor: valor.Valor.Dominio == 'D' ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(valor.Valor.Valor) : valor.Valor.Valor,
              Predeterminado: valor.Valor.Predeterminado
            }
          };
          res.push(atributo);
        });
      });
    } else {
      this.atributosSeleccionados.forEach(atrib => {
        const atribArt = this.articulo.Atributos?.find(elem => elem.Id == atrib.Data.Id);
        atrib.Data.Valores?.forEach(valor => {
          const atributo = {
            Id: valor.Id,
            IdAtributo: atribArt ? atribArt.Id : atrib.Data.Atributo.Id,
            Valor: {
              Id: valor.Valor.Id,
              Valor: valor.Valor.Dominio == 'D' ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(valor.Valor.Valor) : valor.Valor.Valor,
              Predeterminado: valor.Valor.Predeterminado
            }
          };
          res.push(atributo);
        });
      });
    }
    return res;
  }
  /**
   * SP SINWEB-246 metodo que obtiene los valores de un atributo para mostrarlos en el html
   * @param atributo
   * @returns
   */
  valoresCargados(atributo) {
    let atributoEncontrado;
    if (this.getAdmin()) {
      atributoEncontrado = this.atributosSeleccionados.find(atrib => atrib.Data.Id == atributo.Id);
    } else {
      atributoEncontrado = this.atributosArtSeleccionados.find(atrib => atrib.Data.Id == atributo.Id);
    }
    return atributoEncontrado ? atributoEncontrado.Data.Valores : [];
  }
  getDiccionario(valor) {
    let elementoEncontrado = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO.find(elemDicc => elemDicc.Id == valor);
    return elementoEncontrado;
  }
  ordenar(sort) {
    (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.ordenar)(sort);
  }
  mostrarFecha(fecha) {
    if (fecha.includes('-')) {
      return (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(fecha);
    } else {
      return fecha;
    }
  }
  static #_ = this.ɵfac = function ArticuloAtributoEditComponent_Factory(t) {
    return new (t || ArticuloAtributoEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_5__.AtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_6__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({
    type: ArticuloAtributoEditComponent,
    selectors: [["app-articulo-atributo-edit"]],
    inputs: {
      articulo: "articulo",
      masivo: "masivo",
      articulos: "articulos"
    },
    decls: 12,
    vars: 3,
    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", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["FILTRO", ""], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "row", "form-group", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block", "align-self-end"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], [1, "col-auto", "d-block", "d-lg-none"], ["data-cy", "boton-filtroMobile", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], ["class", "col-lg-4 mt-2", 4, "ngIf"], [1, "col-lg-4", "mt-2"], [1, "form-label"], ["tourAnchor", "search.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "nombre", "placeholder", "Buscar por Nombre", "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, "col-lg-3", "align-self-end", "mt-2"], ["title", "Admin. Atributos", "colorChecked", "success", "colorUncheked", "primary", 3, "value", "emitAction"], ["class", "card-body border-bottom mt-3", "tourAnchor", "filtroArt.anchor.id", 3, "formGroup", 4, "ngIf"], [1, "row", "mt-3"], ["class", "col-lg-3", 4, "ngIf"], ["class", "row justify-content-between align-items-center", 4, "ngIf"], ["type", "text", "name", "Nombre", "formControlName", "nombreArticulo", 1, "form-control", "form-control-solid"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["tourAnchor", "filtroArt.anchor.id", 1, "card-body", "border-bottom", "mt-3", 3, "formGroup"], [1, "col-lg-3"], [1, "card"], [1, "card-header"], [1, "card-title", "my-2"], [1, "card-body", 2, "max-height", "300px", "overflow-y", "scroll"], ["class", "row justify-content-center mx-1", 4, "ngIf"], [1, "list-group"], ["class", "list-group-item d-flex", 4, "ngFor", "ngForOf"], [1, "row", "justify-content-center", "mx-1"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"], [1, "list-group-item", "d-flex"], [1, "m-0", "ps-2"], ["scrollDirection", "horizontal", "dataKey", "Id", "styleClass", "p-datatable-gridlines", "currentPageReportTemplate", "P\u00E1gina {currentPage} con {rows} de {totalRecords}", "columnResizeMode", "expand", 1, "", 3, "scrollable", "rowHover", "value", "tableStyle", "responsive", "totalRecords", "sortField", "sortOrder", "customSort", "rowSelectable", "resizableColumns", "lazy"], ["pTemplate", "header"], ["pTemplate", "body"], ["name", "Nombre", 3, "orderId", "active", "sentido", "onOrder"], ["name", "Dominio", 3, "orderId", "active", "sentido", "onOrder"], ["name", "Requerido", 3, "orderId", "active", "sentido", "onOrder"], [1, "animate__animated", "animate__fadeIn"], [1, "text-center"], ["inputId", "binary", "trueValue", "S", "falseValue", "N", 3, "ngModel", "binary", "onChange"], [1, "list-unstyled"], [4, "ngFor", "ngForOf"], ["class", "btn btn-sm btn-soft-primary", 3, "click", 4, "ngIf"], [1, "badge", "font-size-14", "bg-primary"], [1, "font-size-14"], [1, "badge", "rounded-pill", "bg-dark"], [1, "btn", "btn-sm", "btn-soft-primary", 3, "click"], [1, "mdi", "mdi-pencil-outline"], ["scrollDirection", "horizontal", "dataKey", "Atributo.Id", "styleClass", "p-datatable-gridlines", "sortField", "Atributo.Nombre", "currentPageReportTemplate", "P\u00E1gina {currentPage} con {rows} de {totalRecords}", "columnResizeMode", "expand", 3, "scrollable", "rowHover", "value", "tableStyle", "responsive", "sortOrder", "customSort", "rowSelectable", "resizableColumns", "resetPageOnSort", "first", "paginator", "rows", "totalRecords", "showCurrentPageReport", "onPage", "sortFunction"], ["pSortableColumn", "Atributo.Nombre"], ["field", "Atributo.Nombre"], ["pSortableColumn", "Atributo.Dominio", 4, "ngIf"], ["pSortableColumn", "Atributo.Requerido", 4, "ngIf"], ["pSortableColumn", "Atributo.Dominio"], ["field", "Atributo.Dominio"], ["pSortableColumn", "Atributo.Requerido"], ["field", "Atributo.Requerido"], [1, "row", "justify-content-between", "align-items-center"], [1, "col-auto", "me-auto"], [3, "select", "page", "totalItems", "defaultValue"], [1, "col-auto"], [1, "card", "d-inline-block", "ms-auto", "mb-0"], [1, "card-body", "p-2", 2, "background", "transparent"], [3, "currentPage", "limit", "total", "pageChanges"], ["data-cy", "save-atributo", "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"], [1, "row", 3, "formGroup"], [1, "col-lg-4"], [1, "text-muted"], ["formControlName", "dominio", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "requerido", 1, "form-select"], [3, "value"]],
    template: function ArticuloAtributoEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, ArticuloAtributoEditComponent_ng_container_3_Template, 2, 0, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](5, ArticuloAtributoEditComponent_ng_container_5_Template, 31, 15, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ArticuloAtributoEditComponent_Template_button_click_7_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](8, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](9, ArticuloAtributoEditComponent_ng_container_9_Template, 6, 6, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](10, ArticuloAtributoEditComponent_ng_template_10_Template, 15, 3, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.articulo || ctx.articulos);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.articulo || ctx.articulos);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.atributos);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_16__.PrimeTemplate, _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, primeng_checkbox__WEBPACK_IMPORTED_MODULE_17__.Checkbox, _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_18__.Sidebar, primeng_table__WEBPACK_IMPORTED_MODULE_19__.Table, primeng_table__WEBPACK_IMPORTED_MODULE_19__.SortableColumn, primeng_table__WEBPACK_IMPORTED_MODULE_19__.SortIcon, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.TourAnchorNgBootstrapDirective, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__.CheckboxComponent, _shared_ui_order_column_order_column_component__WEBPACK_IMPORTED_MODULE_8__.OrderColumnComponent, _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_9__.PageInfoComponent, _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_10__.PaginationComponent, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_12__.DecimalPipe],
    styles: [".back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}"]
  });
}

/***/ }),

/***/ 31631:
/*!**********************************************************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/articulos/articulo-atributo-edit/articulo-atributo-envio-masivo/articulo-atributo-envio-masivo.component.ts ***!
  \**********************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ArticuloAtributoEnvioMasivoComponent: () => (/* binding */ ArticuloAtributoEnvioMasivoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* 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 primeng_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primeng/tooltip */ 33259);





function ArticuloAtributoEnvioMasivoComponent_tr_15_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "i", 20);
  }
  if (rf & 2) {
    const i_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r4.statusArticulos[i_r3].status === true ? "bx bx-check-circle bx-sm text-success" : "bx bx-x-circle bx-sm text-danger")("pTooltip", ctx_r4.statusArticulos[i_r3].status === true ? "Envi\u00F3 realizado con \u00E9xito" : ctx_r4.statusArticulos[i_r3].error);
  }
}
function ArticuloAtributoEnvioMasivoComponent_tr_15_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 21)(1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Loading...");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
}
function ArticuloAtributoEnvioMasivoComponent_tr_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 16)(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ArticuloAtributoEnvioMasivoComponent_tr_15_i_4_Template, 1, 2, "i", 18)(5, ArticuloAtributoEnvioMasivoComponent_tr_15_div_5_Template, 3, 0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const art_r2 = ctx.$implicit;
    const i_r3 = ctx.index;
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r0.articulosEnvio[i_r3].status !== undefined ? ctx_r0.articulosEnvio[i_r3].status == false ? "bg-danger bg-soft" : "bg-warning bg-soft" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](art_r2.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.statusArticulos[i_r3].status !== undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.statusArticulos[i_r3].status === undefined);
  }
}
function ArticuloAtributoEnvioMasivoComponent_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 23)(1, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " No hay Articulos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
}
class ArticuloAtributoEnvioMasivoComponent {
  constructor(articuloService, modal) {
    this.articuloService = articuloService;
    this.modal = modal;
    this.eliminadosMasivo = [];
  }
  ngOnInit() {
    this.statusArticulos = this.articulosEnvio.map(articulo => {
      return {
        status: undefined,
        error: '',
        id: articulo.Id
      };
    });
    let atributosId = this.atributosDistintos();
    this.articulosEnvio.forEach((art, index) => {
      let data = this.atributosEnvio.filter(atr => art.Id == atr.IdArticulo);
      art.Atributos?.forEach(atributo => {
        if (!atributosId.find(atr => atributo.Id == atr)) {
          atributo.Valores.forEach(valor => {
            data.push({
              IdArticulo: art.Id,
              IdAtributo: atributo.Id,
              Id: valor.Id,
              Valor: valor.Valor
            });
          });
        }
      });
      const susc = this.articuloService.putArticuloAtributos(data, art.Id, {
        error: true
      }).subscribe(res => {
        this.statusArticulos[index].status = true;
      }, error => {
        this.statusArticulos[index].status = false;
        this.statusArticulos[index].error = error.error.Errors[0];
      });
    });
  }
  atributosDistintos() {
    let retorno = [];
    this.atributosEnvio.forEach(atributo => {
      if (!retorno.find(atr => atr === atributo.IdAtributo)) {
        retorno.push(atributo.IdAtributo);
      }
    });
    this.eliminadosMasivo.forEach(atributo => {
      if (!retorno.find(atr => atr === atributo)) {
        retorno.push(atributo);
      }
    });
    return retorno;
  }
  calcularProgreso(tipo, completo) {
    const cant_total = this.articulosEnvio.length;
    const cant_realizada = this.statusArticulos.filter(articulo => articulo.status === (completo ? true : false)).length;
    let retorno = 0;
    if (cant_total > 0) {
      retorno = cant_realizada * 100 / cant_total;
    }
    if (tipo === 'numero') {
      return retorno;
    } else {
      return {
        width: `${retorno}%`,
        'min-width': retorno == 0 ? '0%' : '10%'
      };
    }
  }
  static #_ = this.ɵfac = function ArticuloAtributoEnvioMasivoComponent_Factory(t) {
    return new (t || ArticuloAtributoEnvioMasivoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_0__.ArticuloService), _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: ArticuloAtributoEnvioMasivoComponent,
    selectors: [["app-articulo-atributo-envio-masivo"]],
    inputs: {
      atributosEnvio: "atributosEnvio",
      articulosEnvio: "articulosEnvio",
      eliminadosMasivo: "eliminadosMasivo"
    },
    decls: 21,
    vars: 9,
    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, "row", "mb-3"], [1, "col-lg-12"], [1, "progress"], ["role", "progressbar", "aria-valuenow", "calcularProgreso('numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-success"], ["role", "progressbar", "aria-valuenow", "calcularProgreso('numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-danger"], [1, "row"], [1, "table-responsive", "scrollable-panel"], [1, "table", "table-bordered", "border-dark", "border-opacity-25", "align-middle", "nowrap", "table-hover", "borderless"], [3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "row justify-content-center mx-1", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-primary", 3, "disabled", "click"], [3, "ngClass"], [1, "text-center"], ["tooltipPosition", "top", 3, "ngClass", "pTooltip", 4, "ngIf"], ["class", "spinner-border text-primary m-1", "role", "status", 4, "ngIf"], ["tooltipPosition", "top", 3, "ngClass", "pTooltip"], ["role", "status", 1, "spinner-border", "text-primary", "m-1"], [1, "sr-only"], [1, "row", "justify-content-center", "mx-1"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"]],
    template: function ArticuloAtributoEnvioMasivoComponent_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, " Envio Masivo ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "div", 7)(9, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 9)(11, "div", 5)(12, "div", 10)(13, "table", 11)(14, "tbody");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, ArticuloAtributoEnvioMasivoComponent_tr_15_Template, 6, 4, "tr", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ArticuloAtributoEnvioMasivoComponent_div_16_Template, 3, 0, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 14)(18, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ArticuloAtributoEnvioMasivoComponent_Template_button_click_18_listener() {
          return ctx.modal.close();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](19, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleMap"](ctx.calcularProgreso("porcentaje", true));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleMap"](ctx.calcularProgreso("porcentaje", false));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.articulosEnvio);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.articulosEnvio || (ctx.articulosEnvio == null ? null : ctx.articulosEnvio.length) == 0 || !ctx.atributosEnvio || (ctx.atributosEnvio == null ? null : ctx.atributosEnvio.length) == 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](19, 7, ctx.articuloService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, _angular_common__WEBPACK_IMPORTED_MODULE_3__.AsyncPipe]
  });
}

/***/ }),

/***/ 63762:
/*!*******************************************************************!*\
  !*** ./src/app/pages/dashboards/articulos/articulos.component.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ArticulosComponent: () => (/* binding */ ArticulosComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! rxjs */ 9315);
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* 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_gen__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* harmony import */ var src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-general */ 15372);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var _core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var _core_seleccionar_marca_seleccionar_marca_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/seleccionar-marca/seleccionar-marca.component */ 20224);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* harmony import */ var _core_seleccionar_deposito_seleccionar_deposito_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/seleccionar-deposito/seleccionar-deposito.component */ 89730);
/* harmony import */ var _articulo_atributo_edit_articulo_atributo_edit_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./articulo-atributo-edit/articulo-atributo-edit.component */ 61089);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var src_app_core_services_core_marca_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/core/marca.service */ 73364);
/* harmony import */ var src_app_core_services_core_rubro_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/core/rubro.service */ 16777);
/* harmony import */ var src_app_core_services_core_unidad_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/core/unidad.service */ 24861);
/* harmony import */ var src_app_core_services_core_tipoMoneda_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/core/tipoMoneda.service */ 29845);
/* harmony import */ var src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/core/proveedor.service */ 19803);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* 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 src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/core/services/core/atributo.service */ 70612);
/* harmony import */ var _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../core/directives/format-codigo-input.directive */ 48508);
/* harmony import */ var primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! primeng/inputtextarea */ 96218);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var primeng_tree__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! primeng/tree */ 3745);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../../shared/ui/select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);











































function ArticulosComponent_ng_template_3_Template(rf, ctx) {}
function ArticulosComponent_ng_template_6_Template(rf, ctx) {}
function ArticulosComponent_div_7_ng_template_2_Template(rf, ctx) {}
function ArticulosComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 52)(1, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](2, ArticulosComponent_div_7_ng_template_2_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵreference"](99);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("formGroup", ctx_r2.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngTemplateOutlet", _r13);
  }
}
function ArticulosComponent_button_19_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "span", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate"](ctx_r15.articuloSeleccionados.length);
  }
}
function ArticulosComponent_button_19_span_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "span", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate"](ctx_r16.articuloSeleccionados.length);
  }
}
function ArticulosComponent_button_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "button", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_button_19_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r17.adminMasivaArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](1, "span", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](2, " Admin. Masiva de Art\u00EDculos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](3, ArticulosComponent_button_19_span_3_Template, 2, 1, "span", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](4, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](5, ArticulosComponent_button_19_span_5_Template, 2, 1, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("disabled", ctx_r3.articuloSeleccionados.length == 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx_r3.articuloSeleccionados.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx_r3.articuloSeleccionados.length > 0);
  }
}
function ArticulosComponent_a_53_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "a", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_a_53_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r20);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r19.borrarCodigo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](1, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
}
function ArticulosComponent_a_59_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "a", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_a_59_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r21.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](1, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
}
function ArticulosComponent_a_65_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "a", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_a_65_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r23.borrarMultiple());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](1, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
}
function ArticulosComponent_a_72_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "a", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_a_72_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r25.borrarMarca());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](1, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
}
function ArticulosComponent_a_78_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "a", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_a_78_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r28);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r27.borrarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](1, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
}
function ArticulosComponent_div_81_ng_template_1_Template(rf, ctx) {}
function ArticulosComponent_div_81_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](1, ArticulosComponent_div_81_ng_template_1_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵreference"](97);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("formGroup", ctx_r9.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngTemplateOutlet", _r11);
  }
}
function ArticulosComponent_ng_template_96_option_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r37 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", option_r37.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate1"](" ", option_r37.nombre, " ");
  }
}
function ArticulosComponent_ng_template_96_option_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r38 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", option_r38.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate1"](" ", option_r38.nombre, " ");
  }
}
function ArticulosComponent_ng_template_96_option_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r39 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", option_r39.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate1"](" ", option_r39.nombre, " ");
  }
}
function ArticulosComponent_ng_template_96_option_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r40 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", option_r40.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate1"](" ", option_r40.nombre, " ");
  }
}
function ArticulosComponent_ng_template_96_option_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r41 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", option_r41.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtextInterpolate1"](" ", option_r41.nombre, " ");
  }
}
function ArticulosComponent_ng_template_96_div_36_Template(rf, ctx) {
  if (rf & 1) {
    const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 76)(1, "app-checkbox", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("emitAction", function ArticulosComponent_ng_template_96_div_36_Template_app_checkbox_emitAction_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r43);
      const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r42.setFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", ctx_r35.getFiltroAtributo());
  }
}
function ArticulosComponent_ng_template_96_div_37_Template(rf, ctx) {
  if (rf & 1) {
    const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 78)(1, "div", 29)(2, "div")(3, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](4, "Atributo");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](5, "select-loading", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("valueSelect", function ArticulosComponent_ng_template_96_div_37_Template_select_loading_valueSelect_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r45);
      const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r44.filterForm.controls.atributo.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](6, "div", 29)(7, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](8, "Valor(es)");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](9, "app-select-multiple", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("emitSelected", function ArticulosComponent_ng_template_96_div_37_Template_app_select_multiple_emitSelected_9_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r45);
      const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r46.filterForm.controls.atributoValor.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](10, "div", 81)(11, "a", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_ng_template_96_div_37_Template_a_click_11_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r45);
      const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r47.limpiarFiltroAtributoValores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](12, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](13, "a", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_ng_template_96_div_37_Template_a_click_13_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r45);
      const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r48.agregarFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](14, "i", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](15, "div", 29)(16, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](17, "Filtrar por");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](18, "textarea", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](19, "div", 87)(20, "a", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_ng_template_96_div_37_Template_a_click_20_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r45);
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r49.limpiarFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](21, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Seleccione un atributo")("items", ctx_r36.atributos)("valueSelected", ctx_r36.filterForm.controls.atributo.value)("defaultValueDis", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("selected", ctx_r36.filterForm.controls.atributoValor.value)("items", ctx_r36.valores);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("rows", 1)("autoResize", true);
  }
}
function ArticulosComponent_ng_template_96_Template(rf, ctx) {
  if (rf & 1) {
    const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 22)(1, "div", 0)(2, "div", 29)(3, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](4, "Unidades");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](5, "select-loading", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("valueSelect", function ArticulosComponent_ng_template_96_Template_select_loading_valueSelect_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r51);
      const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r50.filterForm.controls.idUnidad.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipe"](6, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](7, "div", 29)(8, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](9, "Tipo de Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](10, "app-select-multiple", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("emitSelected", function ArticulosComponent_ng_template_96_Template_app_select_multiple_emitSelected_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r51);
      const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r52.filterForm.controls.idsTiposArticulos.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](11, "div", 29)(12, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](13, "Baja L\u00F3gica");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](14, "select", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](15, ArticulosComponent_ng_template_96_option_15_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](16, "div", 29)(17, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](18, "Discontinuados");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](19, "select", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](20, ArticulosComponent_ng_template_96_option_20_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](21, "div", 29)(22, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](23, "Suspendidos");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](24, "select", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](25, ArticulosComponent_ng_template_96_option_25_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](26, "div", 29)(27, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](28, "Art. Producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](29, "select", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](30, ArticulosComponent_ng_template_96_option_30_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](31, "div", 29)(32, "p", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](33, "Art. Combo");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](34, "select", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](35, ArticulosComponent_ng_template_96_option_35_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](36, ArticulosComponent_ng_template_96_div_36_Template, 2, 1, "div", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](37, ArticulosComponent_ng_template_96_div_37_Template, 22, 9, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("formGroup", ctx_r10.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Todos")("items", ctx_r10.unidades)("valueSelected", ctx_r10.filterForm.controls.idUnidad.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipeBind1"](6, 15, ctx_r10.unidadService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("selected", ctx_r10.filterForm.controls.idsTiposArticulos.value)("items", ctx_r10.tipoArticuloOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngForOf", ctx_r10.bajaOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngForOf", ctx_r10.todosOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngForOf", ctx_r10.suspendOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngForOf", ctx_r10.todosOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngForOf", ctx_r10.todosOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx_r10.permisoListAtribArt);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx_r10.getFiltroAtributo());
  }
}
function ArticulosComponent_ng_template_98_Template(rf, ctx) {
  if (rf & 1) {
    const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 22)(1, "p-tree", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("onNodeSelect", function ArticulosComponent_ng_template_98_Template_p_tree_onNodeSelect_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵrestoreView"](_r54);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵresetView"](ctx_r53.filtrarRubro($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("formGroup", ctx_r12.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("value", ctx_r12.rubros)("filter", true)("selection", ctx_r12.selectNode)("metaKeySelection", true)("virtualScrollItemSize", 46)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipeBind1"](2, 7, ctx_r12.rubroService.isLoading$));
  }
}
class ArticulosComponent {
  constructor(fb, toast, articuloService, marcaService, rubroService, unidadService, tipoMonedaService, proveedorService, modalService, alert, exportacion, sf, authService, tourService, atributoService) {
    this.fb = fb;
    this.toast = toast;
    this.articuloService = articuloService;
    this.marcaService = marcaService;
    this.rubroService = rubroService;
    this.unidadService = unidadService;
    this.tipoMonedaService = tipoMonedaService;
    this.proveedorService = proveedorService;
    this.modalService = modalService;
    this.alert = alert;
    this.exportacion = exportacion;
    this.sf = sf;
    this.authService = authService;
    this.tourService = tourService;
    this.atributoService = atributoService;
    this.MSJ_EXITO_INSERCION = 'Se insertó correctamente un artículo.';
    this.MSJ_EXITO_EDICION = 'Se modificó correctamente el artículo seleccionado.';
    this.MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente el artículo seleccionado.';
    this.articulos = [];
    this.articuloSeleccionados = [];
    this.total = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.filtroRubroMobile = false;
    this._unsubscribe = [];
    this.atributos = [];
    this.config = false;
    this.configMobile = false;
    this.treeView = true;
    //filtros
    this.filterTipoArticulo = '';
    this.filterCombo = '';
    this.filterProd = '';
    this.filterDiscontinuo = '';
    this.filterBaja = '';
    this.filterSusp = '';
    this.rubros = [];
    this.filterRubro = -1;
    this.monedas = [];
    this.filterMoneda = -1;
    this.unidades = [];
    this.filterUnidad = -1;
    this.filterIdsAtributosValores = [];
    this.valores = [];
    //paginacion
    this.cantSearch = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.CANT_SEARCH;
    //SP arreglo paginas seleccionables pasadas al app-select component
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.PAGE_OPTIONS;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO;
    this.totalItems = 0;
    //permisos
    this.permisoAdmAtribArt = false;
    // public permisoModifArt: boolean = false;
    // public permisoElimArt: boolean = false;
    this.permisoListAtribArt = false; // MC SINWEB-354 Para ocultar "Filtrar atributos"
    this.articulosHeader = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_2__.articulosHeader;
    this.dropdownActions = [{
      Title: 'Admin. Atributos',
      Accion: 'administrarAtributos',
      disabled: false
    }];
    this.tipoArticuloOptions = [{
      id: 1,
      nombre: 'Compra'
    }, {
      id: 3,
      nombre: 'Compra y venta'
    }, {
      id: 4,
      nombre: 'Gasto'
    }, {
      id: 5,
      nombre: 'Servicio a tercero'
    }, {
      id: 2,
      nombre: 'Venta'
    }];
    this.suspendOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'N',
      nombre: 'No suspendido'
    }, {
      id: 'C',
      nombre: 'Suspendido para compra'
    }, {
      id: 'A',
      nombre: 'Suspendido para compra y venta'
    }, {
      id: 'V',
      nombre: 'Suspendido para venta'
    }];
    this.bajaOptions = [{
      id: 'N',
      nombre: 'No'
    }, {
      id: 'S',
      nombre: 'Si'
    }];
    this.todosOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'N',
      nombre: 'No'
    }, {
      id: 'S',
      nombre: 'Si'
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_27__.Validators.maxLength(200)],
      codigo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_27__.Validators.maxLength(20)],
      busquedaMultiple: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_27__.Validators.maxLength(350)],
      marcas: [],
      idMarcas: [''],
      proveedor: [],
      idProveedor: [-1],
      deposito: [],
      idDeposito: [-1]
    });
    this.filterForm = this.fb.group({
      idsTiposArticulos: [''],
      idRubro: [-1],
      idUnidad: [-1],
      idTipoMoneda: [-1],
      esCombo: [''],
      discontinuo: [''],
      esProd: [''],
      bajaLogica: ['N'],
      suspendidos: [''],
      filtroAtributo: [false],
      atributo: [0],
      atributoValor: [''],
      atributoFiltro: ['']
    });
    this.configForm = this.fb.group({
      config: this.fb.array(new Array(34).fill(false)),
      todos: [false]
    });
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_28__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_29__["default"]);
    this.stateConfig = this.sf.pagenamesGEN.ART_GENERAL_STATES;
    /**
     * SP deshabilitar campos del formulario
     */
    this.searchForm.get('marcas').disable();
    this.searchForm.get('proveedor').disable();
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    //SP SINWEB-560 se agrega el metodo para inicializar los permisos
    this.cargarPermisos();
    this.cargarUnidades();
    this.cargarTipoMonedas();
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTodo();
    this.controlarTour();
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_4__.THEME_DARK;
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisoAdmAtribArt = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_3__.PERMISO_ADMIN_ATRIBUTOS_ARTICULOS);
    this.permisoListAtribArt = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_ATRIBUTOS_ART);
    this.dropdownActions[0]['Show'] = this.permisoAdmAtribArt;
  }
  /**
   * PM SINWEB-93 Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesGEN.ART_GENERAL_STATES;
    //config
    this.sf.getState(this.sf.states.ART_GENERAL_F_CONFIG).split(',').forEach((element, index) => {
      this.configForm.get('config').at(index).setValue(element == 'true');
      this.articulosHeader[index].Disabled = element == 'true' ? false : true;
    });
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_NOMBRE));
    this.buscarNombre = this.sf.getState(this.sf.states.ART_GENERAL_S_NOMBRE);
    this.searchForm.controls.codigo.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_CODIGO));
    this.buscarCodigo = this.sf.getState(this.sf.states.ART_GENERAL_S_CODIGO);
    this.searchForm.controls.busquedaMultiple.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_MULTIPLE));
    this.buscarMultiple = this.sf.getState(this.sf.states.ART_GENERAL_S_MULTIPLE);
    this.treeView = this.sf.getState(this.sf.states.ART_GENERAL_S_TREEVIEW) == 'S' && !this.filtroRubroMobile ? true : false;
    //select component
    this.searchForm.controls.idMarcas.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_MARCAID));
    this.searchForm.controls.marcas.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_MARCA));
    this.searchForm.controls.idProveedor.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_PROVEEDORID));
    this.searchForm.controls.proveedor.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_PROVEEDOR));
    this.searchForm.controls.idDeposito.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_DEPOSITOID));
    this.searchForm.controls.deposito.setValue(this.sf.getState(this.sf.states.ART_GENERAL_S_DEPOSITO));
    //filtros
    this.filterTipoArticulo = this.sf.getState(this.sf.states.ART_GENERAL_F_TIPOART);
    if (this.sf.getState(this.sf.states.ART_GENERAL_F_TIPOART) != '') {
      this.filterForm.controls.idsTiposArticulos.setValue(this.filterTipoArticulo.split(',').map(id => +id), {
        emitEvent: false
      });
    } else {
      this.filterForm.controls.idsTiposArticulos.setValue([], {
        emitEvent: false
      });
    }
    this.filterForm.controls.idRubro.setValue(this.sf.getState(this.sf.states.ART_GENERAL_F_RUBRO));
    this.filterUnidad = this.sf.getState(this.sf.states.ART_GENERAL_F_UNIDAD);
    this.filterForm.controls.idUnidad.setValue(this.filterUnidad, {
      emitEvent: false
    });
    this.filterMoneda = this.sf.getState(this.sf.states.ART_GENERAL_F_TIPOMONEDA);
    this.filterForm.controls.idTipoMoneda.setValue(this.filterMoneda, {
      emitEvent: false
    });
    this.filterCombo = this.sf.getState(this.sf.states.ART_GENERAL_F_COMBO);
    this.filterForm.controls.esCombo.setValue(this.filterCombo, {
      emitEvent: false
    });
    this.filterProd = this.sf.getState(this.sf.states.ART_GENERAL_F_PROD);
    this.filterForm.controls.esProd.setValue(this.filterProd, {
      emitEvent: false
    });
    this.filterDiscontinuo = this.sf.getState(this.sf.states.ART_GENERAL_F_DISCONTINUO);
    this.filterForm.controls.discontinuo.setValue(this.filterDiscontinuo, {
      emitEvent: false
    });
    this.filterBaja = this.sf.getState(this.sf.states.ART_GENERAL_F_BAJA);
    this.filterForm.controls.bajaLogica.setValue(this.filterBaja, {
      emitEvent: false
    });
    this.filterSusp = this.sf.getState(this.sf.states.ART_GENERAL_F_SUSPENDIDOS);
    this.filterForm.controls.suspendidos.setValue(this.filterSusp, {
      emitEvent: false
    });
    //SP SINWEB-416 se agrega a cookies el estado del filtro de atributos
    this.filterForm.controls.atributoFiltro.setValue(this.sf.getState(this.sf.states.ART_GENERAL_F_ATRIBUTOFILTRO), {
      emitEvent: false
    });
    if (this.filterForm.controls.atributoFiltro.value !== '') {
      this.filterForm.controls.filtroAtributo.setValue(true);
      this.inicializarAtributos();
    }
    //listado
    this.page = Number(this.sf.getState(this.sf.states.ART_GENERAL_L_PAGE));
    this.cantSearch = Number(this.sf.getState(this.sf.states.ART_GENERAL_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.ART_GENERAL_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.ART_GENERAL_L_SENTIDO);
  }
  /**
   * Método para escuchar a los cambios en el formulario de filtros
   */
  configuracionFilter() {
    this._unsubscribe.push(this.filterForm.controls.idsTiposArticulos.valueChanges.subscribe(IdsTiposArticulos => {
      if (this.filtro || this.filtroMobile) {
        this.filterTipoArticulo = IdsTiposArticulos.join(',');
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.idUnidad.valueChanges.subscribe(IdUnidad => {
      if (this.filtro || this.filtroMobile) {
        this.filterUnidad = IdUnidad;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.esCombo.valueChanges.subscribe(combo => {
      if (this.filtro || this.filtroMobile) {
        this.filterCombo = combo;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.esProd.valueChanges.subscribe(prod => {
      if (this.filtro || this.filtroMobile) {
        this.filterProd = prod;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.discontinuo.valueChanges.subscribe(disc => {
      if (this.filtro || this.filtroMobile) {
        this.filterDiscontinuo = disc;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.bajaLogica.valueChanges.subscribe(baja => {
      if (this.filtro || this.filtroMobile) {
        this.filterBaja = baja;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.suspendidos.valueChanges.subscribe(susp => {
      if (this.filtro || this.filtroMobile) {
        this.filterSusp = susp;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.atributo.valueChanges.subscribe(atr => {
      if (this.filtro || this.filtroMobile) {
        this.cambioFiltroAtributo(atr);
      }
    }));
  }
  /**
   * Método para limpiar los filtros
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  /**
   * SP SINWEB-166 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.buscarNombre = '';
    this.buscarCodigo = '';
    this.buscarMultiple = '';
    this.articuloSeleccionados = [];
    if (this.getFiltroAtributo()) {
      //SP SINWEB-416 se cambio el metodo ya que internamente recargaba pagina y ocacionaba comportamiento erroneo
      this.filterIdsAtributosValores = [];
      this.filterForm.controls.filtroAtributo.setValue(!this.getFiltroAtributo());
      this.filterForm.controls.atributo.setValue(0);
      this.filterForm.controls.atributoValor.setValue('');
    }
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTodo();
  }
  cargarRubros() {
    this.rubros = [];
    let datos = {
      PageNumber: -1,
      Orden: 2
    };
    const susc = this.rubroService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(resp => {
      this.rubros = (0,_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.armarArbol)(resp.Data, true, true, true);
    });
    susc.unsubscribe;
  }
  cargarUnidades() {
    this.unidades = [];
    let datos = {
      PageNumber: -1
    };
    const susc = this.unidadService.fetch(datos).subscribe(resp => {
      this.unidades = resp.Data;
      this.filterForm.controls.idUnidad.setValue(this.sf.getState(this.sf.states.ART_GENERAL_F_UNIDAD), {
        emitEvent: false
      });
    });
    susc.unsubscribe;
  }
  /**
   * Método para cargar los tipos de monedas
   */
  cargarTipoMonedas() {
    this.monedas = [];
    let datos = {
      PageNumber: -1
    };
    const susc = this.tipoMonedaService.fetch(datos).subscribe(resp => {
      this.monedas = resp.Data;
      this.filterForm.controls.idTipoMoneda.setValue(this.sf.getState(this.sf.states.ART_GENERAL_F_TIPOMONEDA), {
        emitEvent: false
      });
    });
    susc.unsubscribe;
  }
  /**
   * Método para cargar los datos de la página
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * SP SINWEB-560 metodo requerido para migrar tabla
   * @param $event
   */
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  cargarTodo() {
    this.rubros = [];
    let datos = {
      PageNumber: -1,
      Orden: 2
    };
    const susc = this.rubroService.fetch(datos, undefined, {
      permisos: false
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_30__.map)(resp => {
      this.rubros = (0,_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.armarArbol)(resp.Data, true, true, true);
      return this.rubros[0];
    })).subscribe(resp => {
      this.setRubro(this.sf.getState(this.sf.states.ART_GENERAL_F_RUBRO) != -1 ? this.sf.getState(this.sf.states.ART_GENERAL_F_RUBRO) : resp.id, false);
      this.filterRubro = this.getRubro();
      let nodo = (0,_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.buscarEnArbol)(this.rubros[0], +this.filterRubro);
      this.selectNode = nodo ? nodo : this.rubros[0];
      this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
    });
    susc.unsubscribe;
  }
  /**
   * Método que trae las máquinas del servicio
   * @param {object} datos Datos de búsqueda
   */
  onSearch(datos) {
    const susc = this.articuloService.fetch(datos).subscribe(data => {
      this.articulos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Método que carga los filtros de búsqueda para realizar la petición
   * @param {any} page Página actual
   * @param {any} order Orden
   * @param {any} sentido Sentido (ascendente o descendente)
   * @returns {object} Datos de búsqueda
   */
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //SP SINWEB-38 parametros de orden
    datos.Orden = order;
    datos.OrdenAscDesc = sentido;
    //busqueda
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.Nombre = this.buscarNombre;
    }
    if (this.buscarCodigo != undefined && this.buscarCodigo != '') {
      datos.Codigo = this.buscarCodigo;
    }
    if (this.buscarMultiple != undefined && this.buscarMultiple != '') {
      datos.BusquedaMultiple = this.buscarMultiple;
    }
    //select comp
    if (this.searchForm.value.idMarcas != undefined && this.searchForm.value.idMarcas != '') {
      datos.IdsMarcas = this.searchForm.value.idMarcas.toString();
    }
    if (this.searchForm.value.idProveedor != undefined && this.searchForm.value.idProveedor != -1) {
      datos.IdProveedor = this.searchForm.get('idProveedor').value.toString();
    }
    if (this.searchForm.value.idDeposito != undefined && this.searchForm.value.idDeposito != -1) {
      datos.IdDeposito = this.searchForm.get('idDeposito').value.toString();
    }
    //filtros
    if (this.filterTipoArticulo != '') {
      datos.IdsTiposArticulos = this.filterTipoArticulo;
    }
    if (this.filterUnidad >= 0) {
      datos.IdUnidad = this.filterUnidad;
    }
    if (this.filterMoneda >= 0) {
      datos.IdTipoMoneda = this.filterMoneda;
    }
    if (this.filterCombo != '') {
      datos.EsCombo = this.filterCombo;
    }
    if (this.filterProd != '') {
      datos.EsProduccion = this.filterProd;
    }
    if (this.filterDiscontinuo != '') {
      datos.Discontinuo = this.filterDiscontinuo;
    }
    if (this.filterBaja != '') {
      datos.BajaLogica = this.filterBaja;
    }
    if (this.filterSusp != '') {
      datos.Suspendidos = this.filterSusp;
    }
    if (this.filterForm.controls.idRubro.value != undefined && this.filterForm.controls.idRubro.value > 0) {
      datos.IdRubro = this.filterForm.controls.idRubro.value;
      datos.IncluirSubRubros = 'S';
    }
    if (this.getFiltroAtributo() && this.filterIdsAtributosValores.length > 0) {
      datos.IdsAtributosValores = this.filterIdsAtributosValores.map(valores => `[${valores.join('|')}]`).join(',');
    }
    datos.IncluirComponentesCombo = 'N';
    datos.IncluirStock = 'N';
    datos.IncluirAtributos = 'S';
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * PM SINWEB-93 Método que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos de búsqueda
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.ART_GENERAL_S_NOMBRE, !datos.Nombre ? this.sf.states.ART_GENERAL_S_NOMBRE.default : datos.Nombre);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_CODIGO, !datos.Codigo ? this.sf.states.ART_GENERAL_S_CODIGO.default : datos.Codigo);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_MULTIPLE, !datos.BusquedaMultiple ? this.sf.states.ART_GENERAL_S_MULTIPLE.default : datos.BusquedaMultiple);
    //select comp
    this.sf.changeState(this.sf.states.ART_GENERAL_S_MARCAID, !datos.IdsMarcas ? this.sf.states.ART_GENERAL_S_MARCAID.default : datos.IdsMarcas);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_MARCA, !datos.IdsMarcas ? this.sf.states.ART_GENERAL_S_MARCA.default : this.searchForm.get('marcas').value);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_PROVEEDORID, !datos.IdProveedor ? this.sf.states.ART_GENERAL_S_PROVEEDORID.default : datos.IdProveedor);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_PROVEEDOR, !datos.IdProveedor ? this.sf.states.ART_GENERAL_S_PROVEEDOR.default : this.searchForm.get('proveedor').value);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_DEPOSITOID, !datos.IdDeposito ? this.sf.states.ART_GENERAL_S_DEPOSITOID.default : datos.IdDeposito);
    this.sf.changeState(this.sf.states.ART_GENERAL_S_DEPOSITO, !datos.IdDeposito ? this.sf.states.ART_GENERAL_S_DEPOSITO.default : this.searchForm.get('deposito').value);
    //filtros
    this.sf.changeState(this.sf.states.ART_GENERAL_F_TIPOART, !datos.IdsTiposArticulos ? this.sf.states.ART_GENERAL_F_TIPOART.default : datos.IdsTiposArticulos);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_RUBRO, !datos.IdRubro ? this.sf.states.ART_GENERAL_F_RUBRO.default : datos.IdRubro);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_UNIDAD, !datos.IdUnidad ? this.sf.states.ART_GENERAL_F_UNIDAD.default : datos.IdUnidad);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_TIPOMONEDA, !datos.IdTipoMoneda ? this.sf.states.ART_GENERAL_F_TIPOMONEDA.default : datos.IdTipoMoneda);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_COMBO, !datos.EsCombo ? this.sf.states.ART_GENERAL_F_COMBO.default : datos.EsCombo);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_PROD, !datos.EsProduccion ? this.sf.states.ART_GENERAL_F_PROD.default : datos.EsProduccion);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_DISCONTINUO, !datos.Discontinuo ? this.sf.states.ART_GENERAL_F_DISCONTINUO.default : datos.Discontinuo);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_BAJA, !datos.BajaLogica ? this.sf.states.ART_GENERAL_F_BAJA.default : datos.BajaLogica);
    this.sf.changeState(this.sf.states.ART_GENERAL_F_SUSPENDIDOS, !datos.Suspendidos ? this.sf.states.ART_GENERAL_F_SUSPENDIDOS.default : datos.Suspendidos);
    //SP SINWEB-416 se agrega a cookies el estado del filtro de atributos
    this.sf.changeState(this.sf.states.ART_GENERAL_F_ATRIBUTOFILTRO, !datos.IdsAtributosValores ? this.sf.states.ART_GENERAL_F_ATRIBUTOFILTRO.default : this.filterForm.controls.atributoFiltro.value);
    //listado
    this.sf.changeState(this.sf.states.ART_GENERAL_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.ART_GENERAL_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.ART_GENERAL_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.ART_GENERAL_L_SENTIDO, datos.OrdenAscDesc);
  }
  getRubro() {
    return this.filterForm.controls.idRubro.value;
  }
  setRubro(rubro, evento) {
    this.filterForm.controls.idRubro.setValue(rubro, {
      emitEvent: evento != undefined ? evento : true
    });
  }
  /**
   * Metodo para mostrar u ocultar columnas
   * @param pos
   */
  setDisabled(pos) {
    this.configForm.get('config').at(pos).setValue(!this.getDisabled(pos));
    this.articulosHeader[pos].Disabled = this.getDisabled(pos) == true ? false : true;
    this.sf.changeState(this.sf.states.ART_GENERAL_F_CONFIG, this.configForm.get('config').value.join(','));
    this.configForm.controls.todos.setValue(false);
  }
  getDisabled(pos) {
    return this.configForm.get('config').at(pos).value;
  }
  adminMasivaArticulo() {
    this.administrarArticulo(null, true);
  }
  administrarArticulo(articulo, masivo) {
    const modalRef = this.modalService.open(_articulo_atributo_edit_articulo_atributo_edit_component__WEBPACK_IMPORTED_MODULE_9__.ArticuloAtributoEditComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      scrollable: true,
      keyboard: false
    });
    if (masivo) {
      modalRef.componentInstance.masivo = true;
      modalRef.componentInstance.articulos = this.articuloSeleccionados;
    } else {
      modalRef.componentInstance.articulo = articulo;
    }
    modalRef.result.then(resolve => {
      if (!resolve.error) {
        this.alert.showBasicAlert('Atributos modificados con éxito', '', 'success');
      }
      this.articuloSeleccionados = [];
      this.page = 1;
      this.loadPage();
    });
  }
  /**
   * Método para activar acción
   * @param {any} event Evento con la acción a realizar
   */
  acciones($event) {
    switch ($event.accion) {
      case 'administrarAtributos':
        this.administrarArticulo($event.registro);
        break;
      default:
        console.log(`La accion ${$event.accion} no esta disponible`);
    }
  }
  /**
   * Método para exportar a Excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    delete datos.PageSize;
    //SP se arman las columnas y keys para buscar datos y armar el excel
    const columns = this.articulosHeader.filter(elem => !elem.Disabled).map(elem => elem.Nombre);
    const keys = this.articulosHeader.filter(elem => !elem.Disabled).map(elem => {
      if (elem.Nombre == 'Nombre Atributos') {
        return ['Atributos', 'Nombre'];
      } else {
        if (elem.Nombre == 'Valores Atributos') {
          return ['Atributos', 'Nombre', 'Valores', 'Valor', 'Valor'];
        } else {
          return elem.Key;
        }
      }
    });
    this.alert.showLoadingAlert('Exportando Artículos', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //SP llamada al recurso correspondiente de la api
    this.articuloService.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Artículos Exportados', 'Archivo ' + extension + ' generado', 'success');
      if (extension == 'Excel') {
        this.exportacion.exportToExcel(data.Data, columns, keys, 'Listado de Artículos');
      } else {
        this.exportacion.exportToPdf(data.Data, columns, keys, 'Listado de Artículos');
      }
    });
  }
  /**
   * SP Método get para obtener campo nombre
   * @returns {string} Nombre
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarNombre() {
    this.searchForm.get('nombre').reset('');
    this.page = 1;
    this.buscarNombre = '';
    this.loadPage();
  }
  buscarPorNombre() {
    this.page = 1;
    this.buscarNombre = this.getNombre();
    this.loadPage();
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * SP Método get para obtener campo codigo
   * @returns {string} Codigo
   */
  getCodigo() {
    return this.searchForm.controls.codigo.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarCodigo() {
    this.searchForm.get('codigo').reset('');
    this.page = 1;
    this.buscarCodigo = '';
    this.loadPage();
  }
  buscarPorCodigo() {
    this.page = 1;
    this.buscarCodigo = this.getCodigo();
    this.loadPage();
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaCodigo() {
    return this.buscarCodigo != undefined && this.buscarCodigo != '';
  }
  /**
   * SP Método get para obtener campo nombre
   * @returns {string} Nombre
   */
  getMultiple() {
    return this.searchForm.controls.busquedaMultiple.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarMultiple() {
    this.searchForm.get('busquedaMultiple').reset('');
    this.page = 1;
    this.buscarMultiple = '';
    this.loadPage();
  }
  buscarPorMultiple() {
    this.page = 1;
    this.buscarMultiple = this.getMultiple();
    this.loadPage();
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaMultiple() {
    return this.buscarMultiple != undefined && this.buscarMultiple != '';
  }
  /**
   * SP SINWEB-259 - Método get para obtener campo marcas
   * @returns {any} Marca
   */
  getMarca() {
    return this.searchForm.get('marcas').value;
  }
  /**
   * SP SINWEB-259 - Método para limpiar el filtro marca
   */
  borrarMarca() {
    this.searchForm.get('marcas').reset('');
    this.searchForm.get('idMarcas').reset('');
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP SINWEB-259 - Método para buscar una marca
   */
  buscarMarca() {
    const modalRef = this.modalService.open(_core_seleccionar_marca_seleccionar_marca_component__WEBPACK_IMPORTED_MODULE_6__.SeleccionarMarcaComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.filtros = {
      Multiple: true,
      Bajas: {
        Id: 'N',
        Ocultar: true
      }
    };
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.searchForm.controls.idMarcas.setValue(resolve.IdsMarcas.join(','));
        this.searchForm.controls.marcas.setValue(resolve.Marcas.join(','));
        this.page = 1;
        this.loadPage();
      }
    });
  }
  /**
   * SP SINWEB-259 - Método get para obtener campo Proveedor
   * @returns {any} Proveedor
   */
  getProveedor() {
    return this.searchForm.get('proveedor').value;
  }
  /**
   * SP SINWEB-259 - Método para limpiar el filtro Proveedor
   */
  borrarProveedor() {
    this.searchForm.get('proveedor').reset('');
    this.searchForm.get('idProveedor').reset(-1);
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP SINWEB-259 - Método para buscar un proveedor
   */
  buscarProveedor() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_7__.SeleccionarProveedorComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.searchForm.controls.idProveedor.setValue(resolve.IdProveedor);
        this.searchForm.controls.proveedor.setValue(resolve.Proveedor);
        this.page = 1;
        this.loadPage();
      }
    });
  }
  /**
   * SP SINWEB-260 - Método get para obtener campo Depósito
   * @returns {any} Proveedor
   */
  getDeposito() {
    return this.searchForm.get('deposito').value;
  }
  /**
   * SP SINWEB-260 - Método para limpiar el filtro Depósito
   */
  borrarDeposito() {
    this.searchForm.get('deposito').reset('');
    this.searchForm.get('idDeposito').reset(-1);
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP SINWEB-260 - Método para buscar un Depósito
   */
  buscarDeposito() {
    const modalRef = this.modalService.open(_core_seleccionar_deposito_seleccionar_deposito_component__WEBPACK_IMPORTED_MODULE_8__.SeleccionarDepositoComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.searchForm.controls.idDeposito.setValue(resolve.IdDeposito);
        this.searchForm.controls.deposito.setValue(resolve.Deposito);
        this.page = 1;
        this.loadPage();
      }
    });
  }
  /**
   * Método para filtrar por familia
   */
  filtrarRubro(event) {
    this.filterForm.controls.idRubro.setValue(event.node.data.Id);
    this.selectNode = event.node;
    this.page = 1;
    this.loadPage();
  }
  /**
   * 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 de maquinas
    fetch('./assets/tours/general/articulos.json').then(response => response.json()).then(tourArticulos => {
      this.tourSteps = tourArticulos;
      if (!this.permisoAdmAtribArt) {
        this.tourSteps = this.tourSteps.filter(step => step.step.anchorId !== 'seleccionarArticulo.anchor.id');
      }
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * SP  Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this._unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'articulosRubro.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  buscarValor(dato, key) {
    return (0,_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.buscarValor)(dato, key);
  }
  buscarValoresAcciones(datos, valores) {
    let resultado = [];
    valores.forEach(valor => resultado.push(this.buscarValor(datos, valor)));
    return resultado;
  }
  armarListado(valores) {
    return valores.map(valor => valor.Valor.Valor).join(' | ');
  }
  /**
   * SP SINWEB-560
   * @param $event
   */
  selectArticulo($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.articuloService.fetch(datos).subscribe(res => {
        this.articuloSeleccionados = res.Data;
      });
    } else {
      this.articuloSeleccionados = $event.rows;
    }
  }
  getColorRegistro(articulo) {
    if (articulo.Suspendido == 'N' && articulo.Discontinuo == 'S') {
      return ' bg-warning-subtle';
    }
    if (articulo.Suspendido == 'N' && articulo.BajaLogica == 'S') {
      return ' bg-danger-subtle';
    }
    if (articulo.Suspendido != 'N') {
      return ' bg-primary-subtle';
    }
    return '';
  }
  changeTreeView() {
    this.treeView = !this.treeView;
    this.sf.changeState(this.sf.states.ART_GENERAL_S_TREEVIEW, this.treeView ? 'S' : 'N');
  }
  getFiltroAtributo() {
    return this.filterForm.controls.filtroAtributo.value;
  }
  setFiltroAtributo() {
    this.filterIdsAtributosValores = [];
    this.filterForm.controls.filtroAtributo.setValue(!this.getFiltroAtributo());
    if (!this.getFiltroAtributo()) {
      this.loadPage();
    } else {
      this.limpiarFiltroAtributo();
      if (this.atributos.length == 0) {
        this.insertarAtributos();
      }
    }
  }
  /**
   * SP SINWEB-416 Metodo para obtener los valores de los atributos filtrados usado en inicualizarAtributos
   * @param stringAtributos
   * @param atrib
   * @returns
   */
  obtenerValores(stringAtributos, atrib) {
    const gruposAtributos = stringAtributos.split('|');
    // Iteramos sobre cada grupo y lo parseamos
    const atributos = gruposAtributos.map(grupo => {
      // Separamos el nombre del atributo y los valores
      const [nombreAtributo, valores] = grupo.split(':');
      // Eliminamos espacios en blanco y dividimos los valores por ","
      const valoresArray = valores.trim().split(',').map(valor => valor.trim());
      // Creamos un objeto para representar el atributo y sus valores
      let atribEncontrado = atrib.find(elem => elem.Nombre.trim() === nombreAtributo.trim());
      if (atribEncontrado) {
        return {
          id: atribEncontrado.Id,
          nombre: nombreAtributo.trim(),
          valores: valoresArray
        };
      } else {
        return null;
      }
    });
    return atributos.filter(atributo => atributo != null);
  }
  /**
   * SP SINWEB-416 Metodo para inicializar los atributos, filtrando aquellos que no encuentre ya que pudieron cambiar el nombre o los valores
   */
  inicializarAtributos() {
    let datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO
    };
    let susc = this.atributoService.fetch(datos).subscribe(resp => {
      if (resp.Data.length > 0) {
        this.atributos = resp.Data;
      }
      let AtribValsEncontrados = [];
      const obs = this.obtenerValores(this.filterForm.controls.atributoFiltro.value, this.atributos).map(atributo => this.atributoService.getValores({
        idAtributo: atributo.id,
        PageNumber: -1
      }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_30__.map)(res => ({
        atributo,
        resultado: res
      }))));
      (0,rxjs__WEBPACK_IMPORTED_MODULE_31__.forkJoin)(obs).subscribe(resp => {
        resp.forEach(({
          atributo,
          resultado
        }) => {
          if (resultado.Data.length > 0) {
            if (atributo.valores[0] == '<Todos>') {
              this.filterIdsAtributosValores.push(resultado.Data.map(valor => valor.Id));
            } else {
              let valoresEncontrados = resultado.Data.filter(valor => atributo.valores.includes(valor.Valor));
              AtribValsEncontrados.push({
                nombre: atributo.nombre,
                valores: valoresEncontrados.map(valor => valor.Valor)
              });
              this.filterIdsAtributosValores.push(valoresEncontrados.map(valor => valor.Id));
            }
          }
        });
        this.filterForm.controls.atributoFiltro.setValue(AtribValsEncontrados.map(atr => atr.nombre + ' : ' + atr.valores.join(', ')).join(' | '), {
          emitEvent: false
        });
      });
    });
  }
  insertarAtributos() {
    let datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO
    };
    let susc = this.atributoService.fetch(datos).subscribe(resp => {
      if (resp.Data.length > 0) {
        this.atributos = resp.Data;
      }
    });
  }
  limpiarFiltroAtributoValores() {
    this.filterForm.controls.atributo.setValue(0);
    this.filterForm.controls.atributoValor.setValue('');
    this.valores = [];
  }
  agregarFiltroAtributo() {
    if (this.filterForm.controls.atributo.value != 0 && this.filterForm.controls.atributoValor.value != '') {
      this.filterIdsAtributosValores.push(this.filterForm.controls.atributoValor.value);
      this.actualizarFiltroAtributo();
      this.page = 1;
      this.loadPage();
      this.limpiarFiltroAtributoValores();
    }
  }
  limpiarFiltroAtributo() {
    this.filterForm.controls.atributoFiltro.setValue('');
    this.filterIdsAtributosValores = [];
    this.page = 1;
    this.loadPage();
  }
  cambioFiltroAtributo(atributo) {
    if (atributo !== 0) {
      this.filterForm.controls.atributoValor.setValue('');
      let susc = this.atributoService.getValores({
        idAtributo: atributo,
        PageNumber: -1
      }).subscribe(resp => {
        if (resp.Data.length > 0) {
          this.valores = resp.Data;
        }
      });
    }
  }
  actualizarFiltroAtributo() {
    let filtrarPor = this.filterForm.controls.atributoFiltro.value;
    const nombreAtributo = this.atributos.find(atributo => atributo.Id == this.filterForm.controls.atributo.value).Nombre;
    const valoresAtributoIds = this.valores.filter(elemento => this.filterForm.controls.atributoValor.value.includes(elemento.Id)).map(valor => valor.Valor);
    const valoresAtributo = valoresAtributoIds.length !== this.valores.length ? valoresAtributoIds.join(', ') : '<Todos>';
    filtrarPor += (filtrarPor != '' ? ' | ' : '') + nombreAtributo + ' : ' + valoresAtributo;
    this.filterForm.controls.atributoFiltro.setValue(filtrarPor);
  }
  static #_ = this.ɵfac = function ArticulosComponent_Factory(t) {
    return new (t || ArticulosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_27__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_32__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_10__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_marca_service__WEBPACK_IMPORTED_MODULE_11__.MarcaService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_rubro_service__WEBPACK_IMPORTED_MODULE_12__.RubroService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_unidad_service__WEBPACK_IMPORTED_MODULE_13__.UnidadService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_tipoMoneda_service__WEBPACK_IMPORTED_MODULE_14__.TipoMonedaService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_15__.ProveedorService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_16__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_17__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_18__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_19__.AtributoService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵdefineComponent"]({
    type: ArticulosComponent,
    selectors: [["app-articulos"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService])],
    decls: 101,
    vars: 42,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "d-lg-block d-none col-lg-3", 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", "articulos.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", "factMasiva.anchor.id", "class", "btn btn-primary position-relative me-md-0 me-2", 3, "disabled", "click", 4, "ngIf"], ["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-block", "d-lg-none"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], ["data-cy", "boton-filtroMobile", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-lg-3"], ["tourAnchor", "searchCod.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "codigo", "placeholder", "Buscar por C\u00F3digo", "formatCodigoInput", "", "maxlength", "20", 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"], ["tourAnchor", "searchNom.anchor.id", 1, "input-group"], ["data-cy", "buscar-nro-serie", "type", "text", "formControlName", "nombre", "placeholder", "Buscar por Nombre", "maxlength", "200", 1, "form-control", 3, "keyup.enter"], ["tourAnchor", "searchMulti.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "busquedaMultiple", "placeholder", "B\u00FAsqueda m\u00FAltiple", "maxlength", "350", 1, "form-control", 3, "keyup.enter"], ["tourAnchor", "searchMarca.anchor.id", 1, "input-group"], ["type", "search", "formControlName", "marcas", "placeholder", "Seleccionar Marcas", "disabled", "", 1, "form-control"], ["tourAnchor", "searchProv.anchor.id", 1, "input-group"], ["type", "search", "formControlName", "proveedor", "placeholder", "Seleccionar Proveedor", 1, "form-control"], ["class", "d-none d-lg-block card-body border-bottom", "tourAnchor", "filtroArticulo.anchor.id", 3, "formGroup", 4, "ngIf"], [1, "card-body"], [1, "d-flex", "flex-md-row", "flex-column", "gap-3"], [1, "box", "bg-danger-subtle", "shadow-sm", "text-muted"], [1, "box", "bg-warning-subtle", "shadow-sm", "text-muted"], [1, "box", "bg-primary-subtle", "shadow-sm"], ["styleTableClass", "p-datatable-gridlines", "stateConfig", "ART_GENERAL_F_CONFIG", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "claseRow", "claseRowFunc", "configColumns", "state", "acciones", "dropdownButtons", "selectRows", "selectedRows", "lazyLoad", "emitAction", "selectRowsAction"], ["FILTRO", ""], ["FILTRORUBRO", ""], [1, "d-lg-block", "d-none", "col-lg-3"], ["tourAnchor", "articulosRubro.anchor.id", 3, "formGroup"], ["tourAnchor", "factMasiva.anchor.id", 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", 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"], [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"], ["tourAnchor", "filtroArticulo.anchor.id", 1, "d-none", "d-lg-block", "card-body", "border-bottom", 3, "formGroup"], [1, "text-muted"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["labelKey", "nombre", "valueKey", "id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], ["formControlName", "bajaLogica", 1, "form-select"], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "discontinuo", 1, "form-select"], ["formControlName", "suspendidos", 1, "form-select"], ["formControlName", "esProd", 1, "form-select"], ["formControlName", "esCombo", 1, "form-select"], ["class", "col-lg-3 off-set-3 align-self-end", 4, "ngIf"], ["class", "row p-1 mt-2 bg-warning-subtle", 4, "ngIf"], [3, "value"], [1, "col-lg-3", "off-set-3", "align-self-end"], ["data-cy", "checkbox-filtro-atributo", "title", "Filtrar atributos", "colorChecked", "success", "colorUncheked", "primary", 3, "value", "emitAction"], [1, "row", "p-1", "mt-2", "bg-warning-subtle"], [3, "defaultValue", "defaultString", "items", "valueSelected", "defaultValueDis", "valueSelect"], ["labelKey", "Valor", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], [1, "col-lg-2", "mt-4", "pt-2"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [1, "mdi", "mdi-trash-can-outline", "align-middle"], ["data-cy", "boton-filtro", 1, "mx-1", "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [1, "mdi", "mdi-plus-thick"], ["pInputTextarea", "", "formControlName", "atributoFiltro", "placeholder", "Valor filtro atributo", "readonly", "", 2, "width", "100%", "padding", "7.52px 12px", 3, "rows", "autoResize"], [1, "col-lg-1", "mt-4", "pt-2"], ["filterMode", "strict", "filterPlaceholder", "Filtrar rubro", "selectionMode", "single", "scrollHeight", "100vh", 3, "value", "filter", "selection", "metaKeySelection", "virtualScrollItemSize", "loading", "onNodeSelect"]],
    template: function ArticulosComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("visibleChange", function ArticulosComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](3, ArticulosComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](4, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("visibleChange", function ArticulosComponent_Template_p_sidebar_visibleChange_4_listener($event) {
          return ctx.filtroRubroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](5, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](6, ArticulosComponent_ng_template_6_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](7, ArticulosComponent_div_7_Template, 3, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](8, "div", 5)(9, "div", 6)(10, "div", 7)(11, "div", 8)(12, "span", 9)(13, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](14, " Art\u00EDculos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](15, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](16, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_16_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](17, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](18, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](19, ArticulosComponent_button_19_Template, 6, 3, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](20, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_20_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](21, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipe"](22, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](23, "a", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_23_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](24, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](25, "div", 17)(26, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](27, "i", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](28, "ul", 20)(29, "li")(30, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_30_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](31, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](32, "li")(33, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_33_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](34, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](35, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementContainerStart"](36, 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](37, "div", 23)(38, "div", 24)(39, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_39_listener() {
          return ctx.filtroRubroMobile = !ctx.filtroRubroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](40, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](41, "div", 26)(42, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_42_listener() {
          return ctx.changeTreeView();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](43, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](44, "div", 26)(45, "a", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_45_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](46, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](47, "div", 24)(48, "a", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_48_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](49, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](50, "div", 29)(51, "div", 30)(52, "input", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("keyup.enter", function ArticulosComponent_Template_input_keyup_enter_52_listener() {
          return ctx.buscarPorCodigo();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](53, ArticulosComponent_a_53_Template, 2, 0, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](54, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_54_listener() {
          return ctx.buscarPorCodigo();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](55, "i", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](56, "div", 29)(57, "div", 35)(58, "input", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("keyup.enter", function ArticulosComponent_Template_input_keyup_enter_58_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](59, ArticulosComponent_a_59_Template, 2, 0, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](60, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_60_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](61, "i", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](62, "div", 29)(63, "div", 37)(64, "input", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("keyup.enter", function ArticulosComponent_Template_input_keyup_enter_64_listener() {
          return ctx.buscarPorMultiple();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](65, ArticulosComponent_a_65_Template, 2, 0, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](66, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_66_listener() {
          return ctx.buscarPorMultiple();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](67, "i", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](68, "div", 29)(69, "div", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](70, "input", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementContainerStart"](71);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](72, ArticulosComponent_a_72_Template, 2, 0, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](73, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_73_listener() {
          return ctx.buscarMarca();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](74, "i", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](75, "div", 29)(76, "div", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](77, "input", 42);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](78, ArticulosComponent_a_78_Template, 2, 0, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](79, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("click", function ArticulosComponent_Template_a_click_79_listener() {
          return ctx.buscarProveedor();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](80, "i", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](81, ArticulosComponent_div_81_Template, 2, 2, "div", 43);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](82, "div", 44)(83, "div", 45)(84, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](85, "span", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](86, " Baja L\u00F3gica ");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](87, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](88, "span", 47);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](89, " Discontinuo ");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](90, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](91, "span", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtext"](92, " Suspendido ");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementStart"](93, "div", 44)(94, "app-table2", 49);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵlistener"]("lazyLoad", function ArticulosComponent_Template_app_table2_lazyLoad_94_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function ArticulosComponent_Template_app_table2_emitAction_94_listener($event) {
          return ctx.acciones($event);
        })("selectRowsAction", function ArticulosComponent_Template_app_table2_selectRowsAction_94_listener($event) {
          return ctx.selectArticulo($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipe"](95, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplate"](96, ArticulosComponent_ng_template_96_Template, 38, 17, "ng-template", null, 50, _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplateRefExtractor"])(98, ArticulosComponent_ng_template_98_Template, 3, 9, "ng-template", null, 51, _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵelement"](100, "app-tour");
      }
      if (rf & 2) {
        const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵreference"](97);
        const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵreference"](99);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngTemplateOutlet", _r11);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("visible", ctx.filtroRubroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngTemplateOutlet", _r13);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.treeView);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngClass", !ctx.treeView ? "col-lg-12" : "col-lg-9");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.permisoAdmAtribArt);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipeBind1"](22, 38, ctx.articuloService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngClass", !ctx.filtroRubroMobile ? "mdi mdi-file-tree mdi-18px align-middle" : "mdi mdi-arrow-collapse-left mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngClass", !ctx.treeView ? "mdi mdi-file-tree mdi-18px align-middle" : "mdi mdi-arrow-collapse-left mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵ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_26__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵ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_26__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.busquedaCodigo());
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.busquedaNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.busquedaMultiple());
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.getMarca());
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.getProveedor());
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵadvance"](13);
        _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵproperty"]("columns", ctx.articulosHeader)("datos", ctx.articulos)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cantSearch)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_26__["ɵɵpipeBind1"](95, 40, ctx.articuloService.isLoading$))("claseRow", true)("claseRowFunc", ctx.getColorRegistro)("configColumns", true)("state", ctx.stateConfig)("acciones", ctx.permisoAdmAtribArt)("dropdownButtons", ctx.dropdownActions)("selectRows", ctx.permisoAdmAtribArt)("selectedRows", ctx.articuloSeleccionados);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_28__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_28__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_28__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_28__.NgTemplateOutlet, _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_20__.FormatCodigoInputDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_27__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_27__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.MaxLengthValidator, primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_35__.InputTextarea, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_27__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_36__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.TourAnchorNgBootstrapDirective, primeng_tree__WEBPACK_IMPORTED_MODULE_37__.Tree, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_21__.TourComponent, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_22__.CheckboxComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_23__.SelectLoadingComponent, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_24__.SelectMultipleComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_25__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_28__.AsyncPipe],
    styles: [".back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n.box[_ngcontent-%COMP%] {\n  padding: 2.5px 12px 2.5px 12px;\n  box-shadow: #d4daf9;\n  border-radius: 5px;\n  margin-right: 8px;\n}\n\n[data-layout-mode=dark][_ngcontent-%COMP%]   .bg-danger-subtle[_ngcontent-%COMP%] {\n  background-color: rgb(252, 217, 217) !important;\n}\n[data-layout-mode=dark][_ngcontent-%COMP%]   .bg-warning-subtle[_ngcontent-%COMP%] {\n  background-color: rgba(252, 236, 210, 0.4) !important;\n}\n[data-layout-mode=dark][_ngcontent-%COMP%]   .bg-primary-subtle[_ngcontent-%COMP%] {\n  background-color: rgb(212, 218, 249) !important;\n}\n\n[data-layout-mode=light][_ngcontent-%COMP%]   .bg-danger-subtle[_ngcontent-%COMP%] {\n  background-color: #fcd9d9 !important;\n}\n[data-layout-mode=light][_ngcontent-%COMP%]   .bg-warning-subtle[_ngcontent-%COMP%] {\n  background-color: #fcecd2 !important;\n}\n[data-layout-mode=light][_ngcontent-%COMP%]   .bg-primary-subtle[_ngcontent-%COMP%] {\n  background-color: #d4daf9 !important;\n}"],
    changeDetection: 0
  });
}

/***/ }),

/***/ 75363:
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/atributos-rubros/atributo-rubro-edit/atributo-rubro-edit.component.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributoRubroEditComponent: () => (/* binding */ AtributoRubroEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/core/atributo.service */ 70612);
/* harmony import */ var src_app_core_services_core_atributo_rubro_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/atributo-rubro.service */ 53053);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* 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 AtributoRubroEditComponent_a_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_a_16_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r6.borrarAtribNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function AtributoRubroEditComponent_div_19_ng_template_2_Template(rf, ctx) {}
function AtributoRubroEditComponent_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 43)(1, "div", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, AtributoRubroEditComponent_div_19_ng_template_2_Template, 0, 0, "ng-template", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](69);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngTemplateOutlet", _r5);
  }
}
function AtributoRubroEditComponent_div_21_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_div_21_div_4_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r13);
      const atribSelect_r11 = restoredCtx.$implicit;
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r12.quitarAtributo(atribSelect_r11));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const atribSelect_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", atribSelect_r11.Nombre, " ");
  }
}
function AtributoRubroEditComponent_div_21_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_div_21_div_5_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r14.EliminarAtributos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function AtributoRubroEditComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 46)(1, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Atributos seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, AtributoRubroEditComponent_div_21_div_4_Template, 3, 1, "div", 48)(5, AtributoRubroEditComponent_div_21_div_5_Template, 3, 0, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r2.atributos_aux);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r2.atributos_aux.length > 1);
  }
}
function AtributoRubroEditComponent_tr_39_div_12_i_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "i", 61);
  }
}
function AtributoRubroEditComponent_tr_39_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 57)(1, "div", 29)(2, "h5")(3, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, AtributoRubroEditComponent_tr_39_div_12_i_7_Template, 1, 0, "i", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const elem_r18 = ctx.$implicit;
    const i_r19 = ctx.index;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](i_r19 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", elem_r18.Valor, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", elem_r18.Predeterminado == "S");
  }
}
const _c0 = () => ({
  "background-color": "#ffffff"
});
function AtributoRubroEditComponent_tr_39_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr", 52)(1, "td")(2, "ul", 53)(3, "li", 54)(4, "a", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_tr_39_Template_a_click_4_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r22);
      const atrib_r16 = restoredCtx.$implicit;
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r21.seleccionarAtributo(atrib_r16));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "i", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "td")(9, "span", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](12, AtributoRubroEditComponent_tr_39_div_12_Template, 8, 3, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](14, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const atrib_r16 = ctx.$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    let tmp_3_0;
    let tmp_4_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction0"](10, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx_r3.controlCheckArticulo(atrib_r16.Id));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](atrib_r16.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleMap"]((tmp_3_0 = ctx_r3.buscarDominio(atrib_r16.Dominio)) == null ? null : tmp_3_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", (tmp_4_0 = ctx_r3.buscarDominio(atrib_r16.Dominio)) == null ? null : tmp_4_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx_r3.buscarDominio(atrib_r16.Dominio).Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", atrib_r16.ValoresAtributo);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassMap"](atrib_r16.Requerido != "N" ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
function AtributoRubroEditComponent_ng_template_68_option_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r25 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", option_r25.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", option_r25.nombre, " ");
  }
}
function AtributoRubroEditComponent_ng_template_68_option_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r26 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", option_r26.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", option_r26.nombre, " ");
  }
}
function AtributoRubroEditComponent_ng_template_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0, 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 63)(2, "div", 64)(3, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "select", 66)(6, "option", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](8, AtributoRubroEditComponent_ng_template_68_option_8_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "div", 64)(10, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, "Requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "select", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](13, AtributoRubroEditComponent_ng_template_68_option_13_Template, 2, 2, "option", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx_r4.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r4.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r4.todosOptions);
  }
}
class AtributoRubroEditComponent {
  constructor(atributoService, atributoRubroService, fb, modal, modalService) {
    this.atributoService = atributoService;
    this.atributoRubroService = atributoRubroService;
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.atributosRubro = [];
    this.idRubro = -1;
    this.nombreRubro = '';
    this.dominioOptions = [];
    this.btnActivo = true;
    this.atributos_seleccionados = [];
    this.atributos_aux = [];
    this.filtro = false;
    this.formGroup = this.fb.group({
      Atributos: [[]],
      dominio: [''],
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.maxLength(100)],
      requerido: ['']
    });
    this.todosOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'N',
      nombre: 'No'
    }, {
      id: 'S',
      nombre: 'Si'
    }];
    this.subscriptions = [];
    //paginacion articulos
    this.cant_search = 5;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.atributos_seleccionados = this.atributosRubro;
    this.cargarAtributos();
    this.configuracionFilter();
  }
  cargarAtributos() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  onSearch(datos) {
    const susc = this.atributoService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.atributos = data.Data;
      this.atributos.filter(atrib => this.atributos_seleccionados.includes(atrib.Id) && !this.atributos_aux.find(elem => elem.Id == atrib.Id)).forEach(atrib => {
        this.atributos_aux.push(atrib);
      });
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {
    this.subscriptions.push(this.formGroup.controls.dominio.valueChanges.subscribe(dominio => {
      this.dominio_seleccionado = dominio;
      this.page = 1;
      this.cargarAtributos();
    }));
    this.subscriptions.push(this.formGroup.controls.requerido.valueChanges.subscribe(req => {
      this.requerido_seleccionado = req;
      this.page = 1;
      this.cargarAtributos();
    }));
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //predeterminado
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.IdsTiposArticulos = '2,3';
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.orden = order;
    datos.OrdenAscDesc = sentido;
    datos.IncluirValores = 'S';
    if (this.formGroup.value.nombre != undefined && this.formGroup.value.nombre != '') {
      datos.Nombre = this.formGroup.value.nombre;
    }
    if (this.dominio_seleccionado != undefined && this.dominio_seleccionado != '') {
      datos.Dominio = this.dominio_seleccionado;
    }
    if (this.requerido_seleccionado != undefined && this.requerido_seleccionado != '') {
      datos.Requerido = this.requerido_seleccionado;
    }
    return datos;
  }
  /* Metodo que dado un articulo, emite el resultado y lo selecciona en el input de articulo seleccionado */
  seleccionarAtributo(atributo) {
    let existe = this.atributos_seleccionados?.some(elem => elem == atributo.Id);
    if (!existe) {
      this.atributos_seleccionados.push(atributo.Id);
      this.atributos_aux.push(atributo);
      this.formGroup.get('Atributos').setValue([...this.formGroup.get('Atributos').value, atributo.Nombre]);
    } else {
      this.quitarAtributo(atributo);
    }
  }
  /* Metodo que elimina el articulo de la selección */
  EliminarAtributos() {
    this.atributos_seleccionados = [];
    this.atributos_aux = [];
    this.formGroup.get('Atributos').setValue([]);
  }
  select() {
    this.btnActivo = false;
    const sbCreate = this.atributoRubroService.putAtributoRubros(this.prepararAtributos(this.atributos_seleccionados), this.idRubro).subscribe(res => {
      this.btnActivo = true;
      if (res.Errors == null) {
        this.modal.close();
      }
    });
  }
  prepararAtributos(atributos) {
    return atributos.map(elem => ({
      IdAtributo: elem
    }));
  }
  controlCheckArticulo(id) {
    if (this.atributos_seleccionados?.some(elem => elem == id)) {
      return 'mdi mdi-checkbox-marked-outline mdi-18px';
    } else {
      return 'mdi mdi-checkbox-blank-outline mdi-18px';
    }
  }
  quitarAtributo(atributo) {
    this.atributos_seleccionados = this.atributos_seleccionados.filter(art => art !== atributo.Id);
    this.atributos_aux = this.atributos_aux.filter(art => art.Id !== atributo.Id);
    this.formGroup.get('Atributos').setValue(this.formGroup.get('Atributos').value.filter(art => art !== atributo.Nombre));
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  getAtribNom() {
    return this.formGroup.controls.nombre.value;
  }
  borrarAtribNom() {
    this.formGroup.controls.nombre.reset('');
    this.cargarAtributos();
  }
  buscarDominio(dominio) {
    const resDom = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO.find(elem => elem.Id == dominio);
    return resDom ? resDom : {
      Id: dominio,
      Nombre: 'Error',
      Style: 'background:#000',
      Clase: 'badge font-size-14'
    };
  }
  static #_ = this.ɵfac = function AtributoRubroEditComponent_Factory(t) {
    return new (t || AtributoRubroEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_2__.AtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_rubro_service__WEBPACK_IMPORTED_MODULE_3__.AtributoRubroService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
    type: AtributoRubroEditComponent,
    selectors: [["app-atributo-rubro-edit"]],
    inputs: {
      atributosRubro: "atributosRubro",
      idRubro: "idRubro",
      nombreRubro: "nombreRubro",
      dominioOptions: "dominioOptions"
    },
    decls: 70,
    vars: 23,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "badge", "rounded-pill", "badge-soft-primary", "font-size-20"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], [1, "col-xxl-6", "col-lg-6", "col-md-4"], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "nombre", "placeholder", "", "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"], ["class", "card", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], [1, "table", "table-bordered", "align-middle", "border-dark", "border-opacity-25", "nowrap", "table-hover"], [2, "width", "5px"], ["scope", "col"], ["class", "animate__animated animate__fadeIn", 3, "ngStyle", 4, "ngFor", "ngForOf"], [1, "row", "justify-content-between", "align-items-center"], [1, "col-auto", "me-auto"], [1, "text-muted", "mb-0"], [1, "col-auto"], [1, "card", "d-inline-block", "ms-auto", "mb-0"], [1, "card-body", "p-2"], ["aria-label", "Page navigation example", 1, "mb-0"], [1, "pagination", "mb-0"], [3, "collectionSize", "page", "pageSize", "maxSize", "rotate", "boundaryLinks", "pageChange"], [1, "form-group", "row"], [1, "col-lg-6"], [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"], ["FILTRO_ATRIB", ""], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], [1, "col-12"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "animate__animated", "animate__fadeIn", 3, "ngStyle"], [1, "list-unstyled", "hstack", "gap-1", "mb-0"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Seleccionar"], [1, "btn", "btn-sm", "btn-soft-info", 3, "click"], ["class", "col-12 d-flex flex-row gap-2", 4, "ngFor", "ngForOf"], [1, "col-12", "d-flex", "flex-row", "gap-2"], [1, "badge", "rounded-pill", "bg-dark"], [1, "col-sm-10"], ["pTooltip", "Valor Predeterminado", "tooltipPosition", "top", "class", "mdi mdi-flag-triangle", 4, "ngIf"], ["pTooltip", "Valor Predeterminado", "tooltipPosition", "top", 1, "mdi", "mdi-flag-triangle"], [3, "formGroup"], [1, "row", "p-2"], [1, "col-xxl-4", "col-lg-4", "mt-2"], [1, "text-muted"], ["formControlName", "dominio", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "requerido", 1, "form-select"], [3, "value"]],
    template: function AtributoRubroEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " Seleccionar Atributos de Rubro: ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 4)(7, "div", 5)(8, "div", 6)(9, "a", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_Template_a_click_9_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div", 9)(12, "label", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Buscar por nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 11)(15, "input", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keyup.enter", function AtributoRubroEditComponent_Template_input_keyup_enter_15_listener() {
          return ctx.cargarAtributos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](16, AtributoRubroEditComponent_a_16_Template, 2, 0, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_Template_a_click_17_listener() {
          return ctx.cargarAtributos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](18, "i", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](19, AtributoRubroEditComponent_div_19_Template, 3, 1, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "div", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](21, AtributoRubroEditComponent_div_21_Template, 6, 2, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](22, "form", 19)(23, "div", 17)(24, "div", 20)(25, "div", 21)(26, "table", 22)(27, "thead")(28, "tr");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](29, "th", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](30, "th", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](31, "Nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](32, "th", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](33, "Dominio");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](34, "th", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](35, "Valores Permitidos");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](36, "th", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](37, "Requerido");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "tbody");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](39, AtributoRubroEditComponent_tr_39_Template, 15, 11, "tr", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](40, "div", 26)(41, "div", 27)(42, "p", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](43, " P\u00E1gina ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](44, "b");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](45);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](46, " con ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](47, "b");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](48);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](49, " de ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](50, "b");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](51);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](52, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](53, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](54, "div", 29)(55, "div", 30)(56, "div", 31)(57, "nav", 32)(58, "ul", 33)(59, "ngb-pagination", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("pageChange", function AtributoRubroEditComponent_Template_ngb_pagination_pageChange_59_listener($event) {
          return ctx.page = $event;
        })("pageChange", function AtributoRubroEditComponent_Template_ngb_pagination_pageChange_59_listener() {
          return ctx.cargarAtributos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](60, "div", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](61, "div", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](62, "div", 37)(63, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_Template_button_click_63_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](64, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](65, "button", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function AtributoRubroEditComponent_Template_button_click_65_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](66, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](67, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](68, AtributoRubroEditComponent_ng_template_68_Template, 14, 3, "ng-template", null, 40, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.nombreRubro, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵ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_4__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.getAtribNom());
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.atributos_aux.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](17);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.atributos);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.page);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.cant_search);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ctx.totalItems);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](53, 19, ctx.atributoService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("collectionSize", ctx.totalItems)("page", ctx.page)("pageSize", ctx.cant_search)("maxSize", 5)("rotate", true)("boundaryLinks", true);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.atributos_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](66, 21, ctx.atributoService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgTemplateOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgStyle, primeng_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbPagination, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_7__.AsyncPipe]
  });
}

/***/ }),

/***/ 43385:
/*!*********************************************************************************!*\
  !*** ./src/app/pages/dashboards/atributos-rubros/atributos-rubros.component.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributosRubrosComponent: () => (/* binding */ AtributosRubrosComponent)
/* harmony export */ });
/* 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 _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var _atributo_rubro_edit_atributo_rubro_edit_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./atributo-rubro-edit/atributo-rubro-edit.component */ 75363);
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-general */ 15372);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_core_rubro_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/rubro.service */ 16777);
/* harmony import */ var src_app_core_services_core_atributo_rubro_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/atributo-rubro.service */ 53053);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var primeng_tree__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primeng/tree */ 3745);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);
























function AtributosRubrosComponent_ng_template_3_Template(rf, ctx) {}
function AtributosRubrosComponent_ng_template_6_Template(rf, ctx) {}
function AtributosRubrosComponent_div_7_ng_template_2_Template(rf, ctx) {}
function AtributosRubrosComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 41)(1, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](2, AtributosRubrosComponent_div_7_ng_template_2_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](62);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx_r2.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngTemplateOutlet", _r10);
  }
}
function AtributosRubrosComponent_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", ctx_r3.selectNode.label, " ");
  }
}
function AtributosRubrosComponent_button_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_button_21_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r12.cargaMasiva());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](1, "span", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, "Admin. Atrib. del Rubro");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](3, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function AtributosRubrosComponent_a_52_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_a_52_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r14.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](1, "i", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function AtributosRubrosComponent_div_55_ng_template_1_Template(rf, ctx) {}
function AtributosRubrosComponent_div_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](1, AtributosRubrosComponent_div_55_ng_template_1_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](60);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx_r6.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngTemplateOutlet", _r8);
  }
}
function AtributosRubrosComponent_ng_template_59_option_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "option", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", option_r19.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", option_r19.nombre, " ");
  }
}
function AtributosRubrosComponent_ng_template_59_option_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "option", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", option_r20.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtextInterpolate1"](" ", option_r20.nombre, " ");
  }
}
function AtributosRubrosComponent_ng_template_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 23)(1, "div", 0)(2, "div", 30)(3, "p", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "select", 51)(6, "option", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](8, AtributosRubrosComponent_ng_template_59_option_8_Template, 2, 2, "option", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](9, "div", 30)(10, "p", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, "Requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](12, "select", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](13, AtributosRubrosComponent_ng_template_59_option_13_Template, 2, 2, "option", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx_r7.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngForOf", ctx_r7.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngForOf", ctx_r7.todosOptions);
  }
}
function AtributosRubrosComponent_ng_template_61_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 23)(1, "p-tree", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("onNodeSelect", function AtributosRubrosComponent_ng_template_61_Template_p_tree_onNodeSelect_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r21.filtrarRubro($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx_r9.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("value", ctx_r9.rubros)("filter", true)("selection", ctx_r9.selectNode)("metaKeySelection", true)("virtualScrollItemSize", 46)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](2, 7, ctx_r9.rubroService.isLoading$));
  }
}
class AtributosRubrosComponent {
  constructor(fb, toast, rubroService, atributoRubroService, modalService, alert, exportacion, sf, authService, tourService) {
    this.fb = fb;
    this.toast = toast;
    this.rubroService = rubroService;
    this.atributoRubroService = atributoRubroService;
    this.modalService = modalService;
    this.alert = alert;
    this.exportacion = exportacion;
    this.sf = sf;
    this.authService = authService;
    this.tourService = tourService;
    this.MSJ_EXITO_INSERCION = 'Se insertó correctamente el atributo en el rubro.';
    this.MSJ_EXITO_CARGA_MASIVA = 'Se modificaron correctamente los atributos del rubro: ';
    this.MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente el atributo seleccionado del rubro.';
    this.atributosRubro = [];
    this.total = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.filtroRubroMobile = false;
    this.treeView = true;
    this._unsubscribe = [];
    //filtros
    this.filterDominio = '';
    this.filterRequerido = '';
    this.rubros = [];
    this.filterRubro = -1;
    //paginacion
    this.cantSearch = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    //SP SINWEB-37 arreglo paginas seleccionables pasadas al app-select component
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
    //permisos
    this.permisoAdminAtrib = false;
    this.atributosRubroHeader = [{
      Nombre: 'Nombre',
      Order: 3,
      Key: 'Atributo.Nombre',
      WCol: '40%'
    }, {
      Nombre: 'Dominio',
      Order: 4,
      Type: 'dictionary',
      Key: 'Atributo.Dominio',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_4__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO,
      WCol: '20%'
    }, {
      Nombre: 'Requerido',
      Key: 'Requerido',
      Order: 6,
      Type: 'checkbox',
      TrueValue: 'S',
      FalseValue: 'N',
      WCol: '10%'
    }];
    this.dominioOptions = [
    // {id: "", nombre: "Todos"},
    {
      id: 'I',
      nombre: 'Entero'
    }, {
      id: 'R',
      nombre: 'Real'
    }, {
      id: 'S',
      nombre: 'Texto'
    }, {
      id: 'B',
      nombre: 'Texto largo'
    }, {
      id: 'D',
      nombre: 'Fecha'
    }, {
      id: 'L',
      nombre: 'Logico'
    }];
    this.todosOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'N',
      nombre: 'No'
    }, {
      id: 'S',
      nombre: 'Si'
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.maxLength(100)]
    });
    this.filterForm = this.fb.group({
      IdRubro: [-1],
      DominioAtributo: [''],
      Requerido: ['']
    });
    this.configForm = this.fb.group({
      config: this.fb.array(new Array(31).fill(false))
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    //SP SINWEB-560 Inicializa los permisos
    this.cargarPermsisos();
    //this.cargarRubros();
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTodo();
    this.controlarTour();
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarPermsisos() {
    this.permisoAdminAtrib = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_5__.PERMISO_ADMIN_ATRIBUTOS_RUBROS);
  }
  /**
   * SP SINWEB-244 Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesGEN.ATRIBUTOS_RUBRO_GENERAL_STATES;
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_S_NOMBRE));
    this.buscarNombre = this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_S_NOMBRE);
    //filtros
    this.filterDominio = this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_DOMINIO);
    if (this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_DOMINIO) != '') {
      this.filterForm.controls.DominioAtributo.setValue(this.filterDominio.split(',').map(id => +id), {
        emitEvent: false
      });
    }
    this.filterRequerido = this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_REQUERIDO);
    this.filterForm.controls.Requerido.setValue(this.filterRequerido, {
      emitEvent: false
    });
    this.filterForm.controls.IdRubro.setValue(this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_RUBRO));
    //listado
    this.page = Number(this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_PAGE));
    this.cantSearch = Number(this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_SENTIDO);
  }
  /**
   * Método para escuchar a los cambios en el formulario de filtros
   */
  configuracionFilter() {
    this._unsubscribe.push(this.filterForm.controls.DominioAtributo.valueChanges.subscribe(dominio => {
      if (this.filtro || this.filtroMobile) {
        this.filterDominio = dominio, this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.Requerido.valueChanges.subscribe(requerido => {
      if (this.filtro || this.filtroMobile) {
        this.filterRequerido = requerido;
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Método para limpiar los filtros
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  /**
   * SP SINWEB-244 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.buscarNombre = '';
    this.filterDominio = '';
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarTodo();
  }
  cargarRubros() {
    this.rubros = [];
    let datos = {
      PageNumber: -1,
      Orden: 2
    };
    const susc = this.rubroService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(resp => {
      this.rubros = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.armarArbol)(resp.Data, true, true, true);
    });
    susc.unsubscribe;
  }
  cargarTodo() {
    this.rubros = [];
    let datos = {
      PageNumber: -1,
      Orden: 2
    };
    const susc = this.rubroService.fetch(datos, undefined, {
      permisos: false
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.map)(resp => {
      this.rubros = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.armarArbol)(resp.Data, true, true, true);
      return this.rubros[0];
    })).subscribe(resp => {
      this.setRubro(this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_RUBRO) != -1 ? this.sf.getState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_RUBRO) : resp.id, false);
      this.filterRubro = this.getRubro();
      let nodo = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.buscarEnArbol)(this.rubros[0], +this.filterRubro);
      this.selectNode = nodo ? nodo : this.rubros[0];
      this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
    });
    susc.unsubscribe;
  }
  /**
   * Método para cargar los datos de la página
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * SP SINWEB-560 metodo requerido para migrar tabla
   * @param $event
   */
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  /**
   * Método que trae las máquinas del servicio
   * @param {object} datos Datos de búsqueda
   */
  onSearch(datos) {
    const susc = this.atributoRubroService.getAtributoRubros(datos).subscribe(data => {
      this.atributosRubro = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Método que carga los filtros de búsqueda para realizar la petición
   * @param {any} page Página actual
   * @param {any} order Orden
   * @param {any} sentido Sentido (ascendente o descendente)
   * @returns {object} Datos de búsqueda
   */
  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;
    //busqueda
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.NombreAtributo = this.buscarNombre;
    }
    //filtros
    if (this.filterDominio != '') {
      datos.DominioAtributo = this.filterDominio;
    }
    if (this.filterRequerido != '') {
      datos.Requerido = this.filterRequerido;
    }
    if (this.filterForm.controls.IdRubro.value != undefined && this.filterForm.controls.IdRubro.value >= 0) {
      datos.idRubro = this.filterForm.controls.IdRubro.value;
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * SP SINWEB-244 Método que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos de búsqueda
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_S_NOMBRE, !datos.NombreAtributo ? this.sf.states.ATRIBUTOS_RUBRO_GENERAL_S_NOMBRE.default : datos.NombreAtributo);
    //filtros
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_DOMINIO, !datos.DominioAtributo ? this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_DOMINIO.default : datos.DominioAtributo);
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_RUBRO, !datos.idRubro ? this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_RUBRO.default : datos.idRubro);
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_REQUERIDO, !datos.Requerido ? this.sf.states.ATRIBUTOS_RUBRO_GENERAL_F_REQUERIDO.default : datos.Requerido);
    //listado
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.ATRIBUTOS_RUBRO_GENERAL_L_SENTIDO, datos.SentidoOrden);
  }
  /**
   * Método que abre el modal para editar un atributoRubro
   * @param {any} atributoRubro atributoRubro a editar
   * @param {boolean} esEditar Indica si es una edición (true) o una creación (false)
   */
  cargaMasiva() {
    const modalRef = this.modalService.open(_atributo_rubro_edit_atributo_rubro_edit_component__WEBPACK_IMPORTED_MODULE_3__.AtributoRubroEditComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.atributosRubro = this.atributosRubro.map(x => x.Atributo.Id);
    modalRef.componentInstance.dominioOptions = this.dominioOptions;
    modalRef.componentInstance.idRubro = this.filterRubro;
    modalRef.componentInstance.nombreRubro = this.selectNode.label;
    modalRef.result.then(() => {
      this.loadPage();
      this.alert.showBasicAlert(this.MSJ_EXITO_CARGA_MASIVA + this.selectNode.label, '', 'success');
    }, () => {});
  }
  /**
   * Método que abre el modal para eliminar un atributoRubro
   * @param {number} idAtributoRubro Id de la articulo a eliminar
   * @param {string} nombreAtribtuo Número de serie de la articulo a eliminar
   */
  eliminar(idAtributoRubro, nombreAtributo, rubro) {
    this.alert.showReturnAlert('Eliminación de atributo del rubro.', "¿Está seguro de eliminar el atributo: '" + nombreAtributo + "' del rubro " + rubro + ' ?', 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarAtributoRubro(idAtributoRubro);
      }
    });
  }
  /**
   * Método que elimina un atributo de un rubro una vez confirmada la acción
   * @param idAtributoRubro del atributo del rubro a eliminar
   */
  eliminarAtributoRubro(idAtributoRubro) {
    const sb = this.atributoRubroService.eliminar(idAtributoRubro).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(this.MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * Método para activar acción
   * @param {any} event Evento con la acción a realizar
   */
  acciones(event) {
    switch (event.accion) {
      case 'delete':
        this.eliminar(event.registro.Id, event.registro.Atributo.Nombre, this.selectNode.data.Nombre);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * Método para cambio de página
   * @param {any} event Evento con la pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  /**
   * Método para exportar a Excel
   */
  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 columns = ['Nombre', 'Dominio', 'Requerido'];
    // const keys = ["Atributo.Nombre","Atributo.Dominio","Atributo.Requerido"]
    const keys = ['Atributo.Nombre', 'Dominio', 'Atributo.Requerido'];
    this.alert.showLoadingAlert('Exportando Atributos de rubro: ' + this.selectNode.label, 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //SP llamada al recurso correspondiente de la api
    this.atributoRubroService.getAtributoRubros(datos, this.selectNode.data.Id).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Atributos de rubro: ' + this.selectNode.label + ' Exportados', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      let result = data.Data.map(item => ({
        ...item,
        Dominio: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_4__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO.find(dominio => dominio.Id == item.Atributo.Dominio).Nombre
      }));
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(result, columns, keys, 'Listado de Atributos de Rubro: ' + this.selectNode.label);
      } else {
        this.exportacion.exportToPdf(result, columns, keys, 'Listado de Atributos de Rubro: ' + this.selectNode.label, 10);
      }
    });
  }
  getRubro() {
    return this.filterForm.controls.IdRubro.value;
  }
  setRubro(rubro, evento) {
    this.filterForm.controls.IdRubro.setValue(rubro, {
      emitEvent: evento != undefined ? evento : true
    });
  }
  /**
   * SP Método get para obtener campo nombre
   * @returns {string} Nombre
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarNombre() {
    this.searchForm.get('nombre').reset('');
    this.page = 1;
    this.buscarNombre = '';
    this.loadPage();
  }
  buscarPorNombre() {
    this.page = 1;
    this.buscarNombre = this.getNombre();
    this.loadPage();
  }
  /**
   * SP control de filtro no reactivo
   */
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * Método para filtrar por rubro
   */
  filtrarRubro(event) {
    this.filterForm.controls.IdRubro.setValue(event.node.data.Id);
    this.selectNode = event.node;
    this.filterRubro = event.node.data.Id;
    this.page = 1;
    this.loadPage();
  }
  /**
   * SP Método que inicia tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * SP SINWEB-244 Método para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de maquinas
    fetch('./assets/tours/general/atributos-rubro.json').then(response => response.json()).then(tourAtribRubro => {
      this.tourSteps = tourAtribRubro;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * SP SINWEB-244 Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this._unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'rubros.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  changeTreeView() {
    this.treeView = !this.treeView;
    //this.sf.changeState(this.sf.states.ART_GENERAL_S_TREEVIEW,this.treeView ? 'S' : 'N');
  }
  static #_ = this.ɵfac = function AtributosRubrosComponent_Factory(t) {
    return new (t || AtributosRubrosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_17__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_core_rubro_service__WEBPACK_IMPORTED_MODULE_6__.RubroService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_rubro_service__WEBPACK_IMPORTED_MODULE_7__.AtributoRubroService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_8__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_9__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_10__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.TourService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineComponent"]({
    type: AtributosRubrosComponent,
    selectors: [["app-atributos-rubros"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService])],
    decls: 64,
    vars: 32,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "d-lg-block d-none col-lg-3", 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", "align-items-center"], ["tourAnchor", "atribRubro.anchor.id", 1, "mb-1", "align-self-center"], ["class", "badge rounded-pill badge-soft-primary font-size-20", 4, "ngIf"], [1, "text-primary", "mt-1", "ps-2", 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", "adminAtribRubro.anchor.id", "class", "btn btn-primary", 3, "click", 4, "ngIf"], ["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"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], ["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-lg-3"], ["tourAnchor", "search.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "nombre", "placeholder", "Buscar por Nombre", "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"], ["class", "card-body border-bottom", "tourAnchor", "filtroAtribRubro.anchor.id", 3, "formGroup", 4, "ngIf"], [1, "card-body"], ["anchorActions", "deleteAtribRubro.anchor.id", "anchorPaginacion", "atribRubroPage.anchor.id", "anchorRegistros", "atribRubroRegs.anchor.id", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "delete", "acciones", "lazyLoad", "emitAction"], ["FILTRO", ""], ["FILTRORUBRO", ""], [1, "d-lg-block", "d-none", "col-lg-3"], ["tourAnchor", "rubros.anchor.id", 3, "formGroup"], [1, "badge", "rounded-pill", "badge-soft-primary", "font-size-20"], ["tourAnchor", "adminAtribRubro.anchor.id", 1, "btn", "btn-primary", 3, "click"], [1, "d-none", "d-md-block"], [1, "d-block", "d-md-none", "mdi", "mdi-plus", "mdi-16"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["tourAnchor", "filtroAtribRubro.anchor.id", 1, "card-body", "border-bottom", 3, "formGroup"], [1, "text-muted"], ["formControlName", "DominioAtributo", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "Requerido", 1, "form-select"], [3, "value"], ["filterMode", "strict", "filterPlaceholder", "Filtrar rubro", "selectionMode", "single", "scrollHeight", "100vh", 3, "value", "filter", "selection", "metaKeySelection", "virtualScrollItemSize", "loading", "onNodeSelect"]],
    template: function AtributosRubrosComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("visibleChange", function AtributosRubrosComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](3, AtributosRubrosComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](4, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("visibleChange", function AtributosRubrosComponent_Template_p_sidebar_visibleChange_4_listener($event) {
          return ctx.filtroRubroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](6, AtributosRubrosComponent_ng_template_6_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](7, AtributosRubrosComponent_div_7_Template, 3, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](8, "div", 5)(9, "div", 6)(10, "div", 7)(11, "div", 8)(12, "span", 9)(13, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](14, " Atributos del rubro: ");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](15, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](16, AtributosRubrosComponent_div_16_Template, 2, 1, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](17, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](18, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_18_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](19, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](20, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](21, AtributosRubrosComponent_button_21_Template, 4, 0, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](22, "a", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_22_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](23, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](24, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](25, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_25_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](26, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](27, "div", 18)(28, "button", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](29, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](30, "ul", 21)(31, "li")(32, "a", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_32_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](33, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](34, "li")(35, "a", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_35_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](36, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](37, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerStart"](38, 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](39, "div", 24)(40, "div", 25)(41, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_41_listener() {
          return ctx.changeTreeView();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](42, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](43, "div", 25)(44, "a", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_44_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](45, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](46, "div", 28)(47, "a", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_47_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](48, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](49, "div", 30)(50, "div", 31)(51, "input", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("keyup.enter", function AtributosRubrosComponent_Template_input_keyup_enter_51_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](52, AtributosRubrosComponent_a_52_Template, 2, 0, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](53, "a", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function AtributosRubrosComponent_Template_a_click_53_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](54, "i", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](55, AtributosRubrosComponent_div_55_Template, 2, 2, "div", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](56, "div", 37)(57, "app-table2", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("lazyLoad", function AtributosRubrosComponent_Template_app_table2_lazyLoad_57_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function AtributosRubrosComponent_Template_app_table2_emitAction_57_listener($event) {
          return ctx.acciones($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](58, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](59, AtributosRubrosComponent_ng_template_59_Template, 14, 3, "ng-template", null, 39, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplateRefExtractor"])(61, AtributosRubrosComponent_ng_template_61_Template, 3, 9, "ng-template", null, 40, _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](63, "app-tour");
      }
      if (rf & 2) {
        const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](60);
        const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵreference"](62);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngTemplateOutlet", _r8);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("visible", ctx.filtroRubroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngTemplateOutlet", _r10);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.treeView);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", !ctx.treeView ? "col-lg-12" : "col-lg-9");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.selectNode);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.permisoAdminAtrib);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](24, 28, ctx.atributoRubroService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngClass", !ctx.treeView ? "mdi mdi-file-tree mdi-18px align-middle" : "mdi mdi-arrow-collapse-left mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵ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_13__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵ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_13__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.busquedaNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("columns", ctx.atributosRubroHeader)("datos", ctx.atributosRubro)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cantSearch)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](58, 30, ctx.atributoRubroService.isLoading$))("delete", ctx.permisoAdminAtrib)("acciones", ctx.permisoAdminAtrib);
      }
    },
    dependencies: [_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_14__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_14__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_14__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.TourAnchorNgBootstrapDirective, primeng_tree__WEBPACK_IMPORTED_MODULE_22__.Tree, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_11__.TourComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_12__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_20__.AsyncPipe]
  });
}

/***/ }),

/***/ 58694:
/*!*************************************************************************************!*\
  !*** ./src/app/pages/dashboards/atributos/atributo-edit/atributo-edit.component.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributoEditComponent: () => (/* binding */ AtributoEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __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_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/atributo.service */ 70612);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* 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_checkbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primeng/checkbox */ 38057);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_13__ = __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);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primeng/table */ 94267);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/input-number/input-number.component */ 62271);

















function AtributoEditComponent_ng_container_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
}
function AtributoEditComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, "Nuevo");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
}
function AtributoEditComponent_ng_container_3_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("'", ctx_r12.atributo.Nombre, "'");
  }
}
function AtributoEditComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, AtributoEditComponent_ng_container_3_ng_container_1_Template, 2, 0, "ng-container", 3)(2, AtributoEditComponent_ng_container_3_ng_container_2_Template, 2, 0, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Atributo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, AtributoEditComponent_ng_container_3_ng_container_4_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.atributo.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx_r0.atributo.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.atributo.Id);
  }
}
function AtributoEditComponent_ng_container_4_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("'", ctx_r13.atributo.Nombre, "'");
  }
}
function AtributoEditComponent_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Valores de Atributo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](2, AtributoEditComponent_ng_container_4_ng_container_2_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.atributo.Id);
  }
}
function AtributoEditComponent_li_8_ng_template_4_ng_template_0_Template(rf, ctx) {}
function AtributoEditComponent_li_8_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, AtributoEditComponent_li_8_ng_template_4_ng_template_0_Template, 0, 0, "ng-template", 17);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngTemplateOutlet", _r7);
  }
}
function AtributoEditComponent_li_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li", 8)(1, "a", 9)(2, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Atributo");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, AtributoEditComponent_li_8_ng_template_4_Template, 1, 1, "ng-template", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngbNavItem", 1);
  }
}
function AtributoEditComponent_ng_template_13_ng_template_0_Template(rf, ctx) {}
function AtributoEditComponent_ng_template_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, AtributoEditComponent_ng_template_13_ng_template_0_Template, 0, 0, "ng-template", 17);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngTemplateOutlet", _r9);
  }
}
function AtributoEditComponent_ng_container_18_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i", 20);
  }
}
function AtributoEditComponent_ng_container_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "button", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AtributoEditComponent_ng_container_18_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r19);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r18.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, AtributoEditComponent_ng_container_18_i_4_Template, 1, 0, "i", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx_r5.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 2, ctx_r5.atributoService.isLoading$) || !ctx_r5.hayPredeterminado());
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](5, 4, ctx_r5.atributoService.isLoading$));
  }
}
function AtributoEditComponent_ng_template_19_ng_container_0_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Nombre correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function AtributoEditComponent_ng_template_19_ng_container_0_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Nombre del atributo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function AtributoEditComponent_ng_template_19_ng_container_0_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Nombre del atributo no debe tener m\u00E1s de 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function AtributoEditComponent_ng_template_19_ng_container_0_ng_container_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "option", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r25 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("value", item_r25.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](item_r25.nombre);
  }
}
function AtributoEditComponent_ng_template_19_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "form", 21)(2, "div", 22)(3, "div", 23)(4, "label", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](7, AtributoEditComponent_ng_template_19_ng_container_0_div_7_Template, 2, 0, "div", 26)(8, AtributoEditComponent_ng_template_19_ng_container_0_div_8_Template, 2, 0, "div", 27)(9, AtributoEditComponent_ng_template_19_ng_container_0_div_9_Template, 2, 0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "div", 28)(11, "label", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "select", 30)(14, "option", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](15, "Seleccione el dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](16, AtributoEditComponent_ng_template_19_ng_container_0_ng_container_16_Template, 3, 2, "ng-container", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](17, "div", 33)(18, "app-checkbox", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("emitAction", function AtributoEditComponent_ng_template_19_ng_container_0_Template_app_checkbox_emitAction_18_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r27);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r26.setRequerido());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](19, "div", 33)(20, "app-checkbox", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("emitAction", function AtributoEditComponent_ng_template_19_ng_container_0_Template_app_checkbox_emitAction_20_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r27);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r28.setBaja());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx_r20.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassProp"]("is-invalid", ctx_r20.vh.isControlInvalid("Nombre"))("is-valid", ctx_r20.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.vh.controlHasError("required", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.vh.controlHasError("maxlength", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r20.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r20.getRequerido());
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r20.getBaja());
  }
}
function AtributoEditComponent_ng_template_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, AtributoEditComponent_ng_template_19_ng_container_0_Template, 21, 11, "ng-container", 3);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r6.atributo);
  }
}
function AtributoEditComponent_ng_template_21_div_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "app-input-number", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("emitValue", function AtributoEditComponent_ng_template_21_div_1_ng_container_2_Template_app_input_number_emitValue_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r39);
      const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r38.setearNuevoValor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r32.atribNewValor)("decimals", 0)("isInvalid", ctx_r32.atribNewValor === null)("isValid", ctx_r32.atribNewValor === null);
  }
}
function AtributoEditComponent_ng_template_21_div_1_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "app-input-number", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("emitValue", function AtributoEditComponent_ng_template_21_div_1_ng_container_3_Template_app_input_number_emitValue_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r41);
      const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r40.setearNuevoValor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r33.atribNewValor)("isInvalid", ctx_r33.atribNewValor == null)("isValid", ctx_r33.atribNewValor == null);
  }
}
function AtributoEditComponent_ng_template_21_div_1_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "input", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_div_1_ng_container_4_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r43);
      const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r42.atribNewValor = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassProp"]("is-valid", ctx_r34.atribNewValor != "")("is-invalid", ctx_r34.atribNewValor == "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", ctx_r34.atribNewValor);
  }
}
function AtributoEditComponent_ng_template_21_div_1_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "textarea", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_div_1_ng_container_5_Template_textarea_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r45);
      const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r44.atribNewValor = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "          ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassProp"]("is-valid", ctx_r35.atribNewValor != "")("is-invalid", ctx_r35.atribNewValor == "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", ctx_r35.atribNewValor);
  }
}
function AtributoEditComponent_ng_template_21_div_1_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_div_1_ng_container_6_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r47);
      const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r46.atribNewValor = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassProp"]("is-valid", ctx_r36.atribNewValor != "")("is-invalid", ctx_r36.atribNewValor == "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", ctx_r36.atribNewValor);
  }
}
function AtributoEditComponent_ng_template_21_div_1_button_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "button", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AtributoEditComponent_ng_template_21_div_1_button_7_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r49);
      const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r48.agregarValor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx_r37.atribNewValor === undefined || ctx_r37.atribNewValor === "" || ctx_r37.atribNewValor === null);
  }
}
function AtributoEditComponent_ng_template_21_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 41)(1, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](2, AtributoEditComponent_ng_template_21_div_1_ng_container_2_Template, 2, 4, "ng-container", 3)(3, AtributoEditComponent_ng_template_21_div_1_ng_container_3_Template, 2, 3, "ng-container", 3)(4, AtributoEditComponent_ng_template_21_div_1_ng_container_4_Template, 2, 5, "ng-container", 3)(5, AtributoEditComponent_ng_template_21_div_1_ng_container_5_Template, 3, 5, "ng-container", 3)(6, AtributoEditComponent_ng_template_21_div_1_ng_container_6_Template, 2, 5, "ng-container", 3)(7, AtributoEditComponent_ng_template_21_div_1_button_7_Template, 2, 1, "button", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r29.getDominio() == "I");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r29.getDominio() == "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r29.getDominio() == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r29.getDominio() == "B");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r29.getDominio() == "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r29.getDominio() !== "L");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "th", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Valor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "p-sortIcon", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "th", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, " Predeterminado ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "p-sortIcon", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "th", 58)(8, "div", 59)(9, "button", 60)(10, "i", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AtributoEditComponent_ng_template_21_ng_template_4_Template_i_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r51);
      const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r50.reiniciarValores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "button", 62)(12, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AtributoEditComponent_ng_template_21_ng_template_4_Template_i_click_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r51);
      const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r52.borrarValores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()();
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r68 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "app-input-number", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("emitValue", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_0_Template_app_input_number_emitValue_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r68);
      const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](valor_r53.Valor = $event.toString());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", valor_r53.Valor)("decimals", 0)("isInvalid", valor_r53.Valor === null)("isValid", valor_r53.Valor === null);
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "app-input-number", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("emitValue", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_1_Template_app_input_number_emitValue_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r72);
      const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](valor_r53.Valor = $event.toString());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", valor_r53.Valor)("isInvalid", valor_r53.Valor === null)("isValid", valor_r53.Valor === null);
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "input", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_2_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r76);
      const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](valor_r53.Valor = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassProp"]("is-valid", valor_r53.Valor != "")("is-invalid", valor_r53.Valor == "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", valor_r53.Valor);
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r80 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "textarea", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_3_Template_textarea_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r80);
      const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](valor_r53.Valor = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "                    ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassProp"]("is-valid", valor_r53.Valor != "")("is-invalid", valor_r53.Valor == "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", valor_r53.Valor);
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "input", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_4_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r84);
      const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](valor_r53.Valor = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", valor_r53.Valor);
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", valor_r53.Valor, " ");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_0_Template, 2, 4, "ng-container", 3)(1, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_1_Template, 2, 3, "ng-container", 3)(2, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_2_Template, 2, 5, "ng-container", 3)(3, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_3_Template, 3, 5, "ng-container", 3)(4, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_4_Template, 2, 1, "ng-container", 3)(5, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_ng_container_5_Template, 2, 1, "ng-container", 3);
  }
  if (rf & 2) {
    const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r56.getDominio() == "I");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r56.getDominio() == "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r56.getDominio() == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r56.getDominio() == "B");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r56.getDominio() == "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r56.getDominio() == "L");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind2"](2, 1, valor_r53.Valor, "1.2-2"), " ");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](2, 1, valor_r53.Valor, "1.2-5", "es"), " ");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", valor_r53.Valor, " ");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r90.isFormatDate(valor_r53.Valor) ? valor_r53.Valor : _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind2"](2, 1, valor_r53.Valor, "dd/MM/yyyy"), " ");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", valor_r53.Valor, " ");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_0_Template, 3, 4, "ng-container", 3)(1, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_1_Template, 3, 5, "ng-container", 3)(2, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_2_Template, 2, 1, "ng-container", 3)(3, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_3_Template, 3, 4, "ng-container", 3)(4, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_ng_container_4_Template, 2, 1, "ng-container", 3);
  }
  if (rf & 2) {
    const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r57.getDominio() == "I");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r57.getDominio() == "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r57.getDominio() == "B" || ctx_r57.getDominio() == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r57.getDominio() == "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r57.getDominio() == "L");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r99 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "p-checkbox", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_7_Template_p_checkbox_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r99);
      const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](valor_r53.Predeterminado = $event);
    })("onChange", function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_7_Template_p_checkbox_onChange_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r99);
      const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      const ri_r55 = ctx_r101.rowIndex;
      const valor_r53 = ctx_r101.$implicit;
      const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r100.setPredeterminados(ri_r55, valor_r53.Predeterminado));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", valor_r53.Predeterminado)("binary", true);
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_ng_template_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "span");
  }
  if (rf & 2) {
    const valor_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMap"](valor_r53.Predeterminado != "N" ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
function AtributoEditComponent_ng_template_21_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r105 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr", 64)(1, "td", 65)(2, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_3_Template, 6, 6, "ng-template", 66)(4, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_4_Template, 5, 5, "ng-template", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "td", 68)(6, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](7, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_7_Template, 1, 2, "ng-template", 66)(8, AtributoEditComponent_ng_template_21_ng_template_5_ng_template_8_Template, 1, 2, "ng-template", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "td", 69)(10, "div")(11, "button", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AtributoEditComponent_ng_template_21_ng_template_5_Template_button_click_11_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r105);
      const ri_r55 = restoredCtx.rowIndex;
      const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r104.borrarValor(ri_r55));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](12, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const valor_r53 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("pEditableColumn", valor_r53.Valor);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("pEditableColumn", valor_r53.Predeterminado);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("pEditableColumn", valor_r53.price);
  }
}
const _c0 = () => ({
  "min-width": "50rem"
});
function AtributoEditComponent_ng_template_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, AtributoEditComponent_ng_template_21_div_1_Template, 8, 6, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "div", 41)(3, "p-table", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, AtributoEditComponent_ng_template_21_ng_template_4_Template, 13, 0, "ng-template", 43)(5, AtributoEditComponent_ng_template_21_ng_template_5_Template, 13, 3, "ng-template", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r8.getDominio() !== "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r8.atribValores)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction0"](4, _c0))("scrollable", true);
  }
}
class AtributoEditComponent {
  constructor(atributoService, fb, modal, vh) {
    this.atributoService = atributoService;
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.dominioOptions = [];
    /**
     * SP SINWEB-290 variable para el modo de valores
     */
    this.modoValores = false;
    /**
     * SP SINWEB-290 listado de valores logicos
     */
    this.logicoInit = [{
      Id: null,
      Valor: 'S',
      Predeterminado: 'S'
    }, {
      Id: null,
      Valor: 'N',
      Predeterminado: 'N'
    }];
    /**
     * SP SINWEB-290 variable para listado de valores de atributos
     */
    this.atribValores = [];
    this.atribNewValor = '';
    this.subscriptions = [];
    this.btnActivo = true;
  }
  ngOnInit() {
    /**
     * SP SINWEB-290 se cambio el objeto inicial
     */
    if (!this.atributo) {
      this.atributo = {
        Id: undefined,
        Nombre: '',
        Dominio: '',
        ValoresAtributo: [],
        BajaLogica: 'N',
        Requerido: 'N'
      };
    }
    this.loadForm();
    this.configFilter();
  }
  /**
   * SP SINWEB-243 carga el formulario
   */
  loadForm() {
    this.formGroup = this.fb.group({
      Nombre: [this.atributo.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.maxLength(100)])],
      Dominio: [this.atributo.Dominio, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required])],
      BajaLogica: [this.atributo.BajaLogica == 'N' ? false : true],
      Requerido: [this.atributo.Requerido == 'N' ? false : true]
    });
    /**
     * SP SINWEB-290 carga el listado de valores
     */
    this.cargarValores();
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  /**
   * SP SINWEB-243 controla el cambio de valor del select de dominio
   */
  configFilter() {
    this.subscriptions.push(this.formGroup.get('Dominio')?.valueChanges.subscribe(value => {
      if (value == 'L') {
        this.atribNewValor = this.getValorDominio(value);
        this.atribValores = JSON.parse(JSON.stringify(this.logicoInit));
      } else {
        this.atribNewValor = this.getValorDominio(value);
        this.atribValores = [];
      }
    }));
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  /**
   * SP SINWEB-243 metodo que llama a editar o guardar
   */
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      return;
    }
    this.prepararAtributo();
    if (this.atributo.Id) {
      this.edit();
    } else {
      this.create();
    }
  }
  /**
   * SP SINWEB-243 llama a endpoint de la api y edita CRUD
   */
  edit() {
    const sbUpdate = this.atributoService.editar(this.atributo, this.atributo.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbUpdate);
  }
  /**
   * SP SINWEB-243 llama a endpoint de la api y guarda crud
   */
  create() {
    this.btnActivo = false;
    const sbCreate = this.atributoService.nuevo(this.atributo).subscribe(res => {
      this.btnActivo = true;
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbCreate);
  }
  /**
   * SP SINWEB-243 prepara el objeto a insertar modificar
   * SP SINWEB-290 se cambio la estructura a preparar ya que cambio lo requerido por la api
   */
  prepararAtributo() {
    const formData = this.formGroup.value;
    this.atributo.Nombre = formData.Nombre;
    this.atributo.Dominio = formData.Dominio;
    this.atributo.ValoresAtributo = this.atribValores;
    /**
     * SP SINWEB-290 setea los valores cargados en el objeto final en caso de ser tipo fecha el dominio formatea los valores
     */
    if (formData.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ATRIBUTO_DATE) {
      this.atributo.ValoresAtributo = this.atribValores.map(x => {
        return {
          Id: x.Id,
          Valor: this.isFormatDate(x.Valor) ? x.Valor : (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(x.Valor),
          Predeterminado: x.Predeterminado
        };
      });
    } else {
      this.atributo.ValoresAtributo = this.atribValores;
    }
    this.atributo.BajaLogica = formData.BajaLogica ? 'S' : 'N';
    this.atributo.Requerido = formData.Requerido ? 'S' : 'N';
  }
  getDominio() {
    const formData = this.formGroup.value;
    return formData.Dominio;
  }
  getRequerido() {
    const formData = this.formGroup.value;
    return formData.Requerido;
  }
  setRequerido() {
    this.formGroup.get('Requerido')?.setValue(!this.getRequerido());
  }
  getBaja() {
    const formData = this.formGroup.value;
    return formData.BajaLogica;
  }
  setBaja() {
    this.formGroup.get('BajaLogica')?.setValue(!this.getBaja());
  }
  /**
   * SP SINWEB-290 agrega un valor a la tabla
   */
  agregarValor() {
    this.atribValores.push({
      Id: null,
      Valor: this.atribNewValor,
      Predeterminado: 'N'
    });
    this.atribNewValor = this.getValorDominio(this.getDominio());
  }
  /**
   * SP SINWEB-290 elimina un valor de la tabla
   * @param index
   */
  borrarValor(index) {
    this.atribValores.splice(index, 1);
    //this.atribValores = this.atribValores.filter(x => x.Id != id);
  }
  /**
   * SP SINWEB-290 setea el valor predeterminado y cambia el valor del resto si es true para que solo haya un predeterminado
   * @param id
   * @param valor
   */
  setPredeterminados(index, valor) {
    this.atribValores = this.atribValores.map((x, i) => {
      if (i !== index) {
        x.Predeterminado = valor == 'S' ? 'N' : x.Predeterminado;
      }
      return x;
    });
  }
  /**
   * SP SINWEB-290 Valida si hay un valor predeterminado entre todos los valores
   * @returns
   */
  hayPredeterminado() {
    if (this.atribValores.length == 0) {
      return true;
    }
    return this.atribValores.some(x => x.Predeterminado == 'S') || !this.getRequerido();
  }
  /**
   * SP SINWEB-290 Carga los valores en la tabla
   */
  cargarValores() {
    if (!this.atributo) {
      this.atribValores = this.getDominio() == 'L' ? JSON.parse(JSON.stringify(this.logicoInit)) : [];
    } else {
      this.atribValores = JSON.parse(JSON.stringify(this.atributo.ValoresAtributo));
    }
  }
  /**
   * SP SINWEB-290 reinicia los valores
   */
  reiniciarValores() {
    if (this.getDominio() != this.atributo.Dominio) {
      this.atribValores = this.getDominio() == 'L' ? JSON.parse(JSON.stringify(this.logicoInit)) : [];
    } else {
      this.atribValores = this.atribValores.length < 2 && this.getDominio() == 'L' ? JSON.parse(JSON.stringify(this.logicoInit)) : JSON.parse(JSON.stringify(this.atributo.ValoresAtributo));
    }
  }
  //SP SINWEB-290 metodo usado para borrar todos los valores
  borrarValores() {
    this.atribValores = [];
  }
  /**
   * SP SINWEB-290 metodo usado para setear valor inicial del input dependiendo el dominio
   * @param dominio
   * @returns
   */
  getValorDominio(dominio) {
    switch (dominio) {
      case 'S':
        return '';
        break;
      case 'B':
        return '';
        break;
      case 'I':
        return 0;
        break;
      case 'D':
        return '';
        break;
      case 'L':
        return '';
        break;
      case 'R':
        return 0;
        break;
      default:
        return '';
    }
  }
  /**
   * SP SINWEB-290 metodo usado para setear valor de los input-number
   * @param event
   */
  setearNuevoValor(event) {
    this.atribNewValor = event == null ? null : event.toString();
  }
  isFormatDate(fecha) {
    if (fecha == '' || fecha == null || fecha == undefined) {
      return true;
    }
    var formatoFecha = /^(0[1-9]|1\d|2\d|3[01])\/(0[1-9]|1[0-2])\/\d{4}$/;
    if (formatoFecha.test(fecha)) {
      // El string tiene el formato de fecha correcto
      return true;
    } else {
      // El string no tiene el formato de fecha correcto
      return false;
    }
  }
  static #_ = this.ɵfac = function AtributoEditComponent_Factory(t) {
    return new (t || AtributoEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_3__.AtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: AtributoEditComponent,
    selectors: [["app-atributo-edit"]],
    inputs: {
      atributo: "atributo",
      dominioOptions: "dominioOptions",
      modoValores: "modoValores"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 23,
    vars: 8,
    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"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified", 3, "activeId", "destroyOnHide"], ["mainNav", "ngbNav"], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavItem"], ["ngbNavLink", ""], [1, "d-block"], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["ATRIBUTO", ""], ["VALORES", ""], [3, "ngTemplateOutlet"], ["data-cy", "save-atributo", "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"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], ["data-cy", "nombre-atributo", 1, "col-lg-6", "p-2"], ["campoObligatorio", "", 1, "form-label"], ["type", "text", "name", "Nombre", "autocomplete", "off", "formControlName", "Nombre", 1, "form-control", "form-control-solid"], ["class", "valid-feedback", 4, "ngIf"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], [1, "col-lg-6", "p-2"], ["campoObligatorio", ""], ["placeholder", "buscar dominio", "name", "Dominio", "formControlName", "Dominio", 1, "form-control", "form-control-lg", "form-control-solid", "form-select"], ["value", "", "disabled", ""], [4, "ngFor", "ngForOf"], [1, "col-lg-6", "p-2", "align-self-end"], ["title", "Requerido", "colorChecked", "success", "colorUncheked", "danger", 3, "value", "emitAction"], ["title", "Baja L\u00F3gica", "colorChecked", "success", "colorUncheked", "danger", 3, "value", "emitAction"], [1, "valid-feedback"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [3, "value"], [1, "row"], ["class", "col-12 py-2", 4, "ngIf"], [1, "col-12", "py-2"], ["dataKey", "id", "scrollHeight", "400px", 3, "value", "tableStyle", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [1, "d-flex", "flex-row", "gap-2", "justify-content-between"], ["class", "btn btn-primary", 3, "disabled", "click", 4, "ngIf"], [3, "title", "value", "decimals", "isInvalid", "isValid", "emitValue"], [3, "title", "value", "isInvalid", "isValid", "emitValue"], ["type", "text", "autocomplete", "off", "required", "", 1, "form-control", "form-control-solid", 3, "ngModel", "ngModelChange"], ["rows", "2", "name", "ValorPredeterminado", "required", "", 1, "form-control", "form-control-solid", 3, "ngModel", "ngModelChange"], ["type", "date", "required", "", 1, "form-control", "digits", 3, "ngModel", "ngModelChange"], [1, "btn", "btn-primary", 3, "disabled", "click"], [1, "mdi", "mdi-plus", "mdi-18px"], ["pSortableColumn", "Valor", 2, "width", "10%"], ["field", "Valor"], ["pSortableColumn", "Predeterminado", 2, "width", "10%"], ["field", "Predeterminado"], [1, "text-center", 2, "width", "10%"], [1, "d-flex", "flex-row", "gap-1", "justify-content-center"], ["pTooltip", "Reiniciar tabla de valores posibles", "tooltipPosition", "top", 1, "btn", "btn-sm", "btn-soft-info"], [1, "mdi", "mdi-refresh", "mdi-18px", 3, "click"], ["pTooltip", "Eliminar todos los valores de la tabla", "tooltipPosition", "top", 1, "btn", "btn-sm", "btn-soft-dark"], [1, "mdi", "mdi-delete", "mdi-18px", 3, "click"], [1, "animate__animated", "animate__fadeIn"], ["pEditableColumnField", "Valor", 3, "pEditableColumn"], ["pTemplate", "input"], ["pTemplate", "output"], ["pEditableColumnField", "Predeterminado", 3, "pEditableColumn"], ["pEditableColumnField", "price", 1, "text-center", 3, "pEditableColumn"], ["type", "button", 1, "btn", "btn-sm", "btn-soft-danger", 3, "click"], [1, "mdi", "mdi-delete-outline", "mdi-18px"], ["falseValue", "N", "trueValue", "S", "inputId", "binary", "required", "", 3, "ngModel", "binary", "ngModelChange", "onChange"]],
    template: function AtributoEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, AtributoEditComponent_ng_container_3_Template, 5, 3, "ng-container", 3)(4, AtributoEditComponent_ng_container_4_Template, 3, 1, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "div", 4)(6, "ul", 5, 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](8, AtributoEditComponent_li_8_Template, 5, 1, "li", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "li", 8)(10, "a", 9)(11, "span", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "Valores Permitidos");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](13, AtributoEditComponent_ng_template_13_Template, 1, 1, "ng-template", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](14, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](15, "div", 13)(16, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function AtributoEditComponent_Template_button_click_16_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, AtributoEditComponent_ng_container_18_Template, 6, 6, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](19, AtributoEditComponent_ng_template_19_Template, 1, 1, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplateRefExtractor"])(21, AtributoEditComponent_ng_template_21_Template, 6, 5, "ng-template", null, 16, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.atributo && !ctx.modoValores);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.atributo && ctx.modoValores);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("activeId", ctx.modoValores ? 2 : 1)("destroyOnHide", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.modoValores && ctx.atributo);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngbNavItem", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngbNavOutlet", _r2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.atributo);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_10__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, primeng_checkbox__WEBPACK_IMPORTED_MODULE_12__.Checkbox, primeng_tooltip__WEBPACK_IMPORTED_MODULE_13__.Tooltip, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbNavOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormControlName, primeng_table__WEBPACK_IMPORTED_MODULE_14__.Table, primeng_table__WEBPACK_IMPORTED_MODULE_14__.SortableColumn, primeng_table__WEBPACK_IMPORTED_MODULE_14__.EditableColumn, primeng_table__WEBPACK_IMPORTED_MODULE_14__.CellEditor, primeng_table__WEBPACK_IMPORTED_MODULE_14__.SortIcon, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_5__.CheckboxComponent, _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_6__.InputNumberComponent, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_11__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_11__.DatePipe]
  });
}

/***/ }),

/***/ 33471:
/*!*******************************************************************!*\
  !*** ./src/app/pages/dashboards/atributos/atributos.component.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributosComponent: () => (/* binding */ AtributosComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __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_services_stateful_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _atributo_edit_atributo_edit_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./atributo-edit/atributo-edit.component */ 58694);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-general */ 15372);
/* harmony import */ var src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/atributo.service */ 70612);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);
























function AtributosComponent_ng_template_3_Template(rf, ctx) {}
function AtributosComponent_div_4_ng_template_3_Template(rf, ctx) {}
function AtributosComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 37)(1, "div", 38)(2, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, AtributosComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](51);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngTemplateOutlet", _r5);
  }
}
function AtributosComponent_a_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "a", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_a_16_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r7.nuevo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "Nuevo Atributo");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](3, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function AtributosComponent_a_44_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "a", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_a_44_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r9.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function AtributosComponent_ng_template_50_option_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "option", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", option_r14.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", option_r14.nombre, " ");
  }
}
function AtributosComponent_ng_template_50_option_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "option", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r15 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", option_r15.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", option_r15.nombre, " ");
  }
}
function AtributosComponent_ng_template_50_option_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "option", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", option_r16.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", option_r16.nombre, " ");
  }
}
const _c0 = () => [0];
function AtributosComponent_ng_template_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 22)(1, "p-accordion", 45)(2, "p-accordionTab", 46)(3, "div")(4, "p", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](5, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "select", 48)(7, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](8, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](9, AtributosComponent_ng_template_50_option_9_Template, 2, 2, "option", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](10, "hr", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](11, "div")(12, "p", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](13, "Baja L\u00F3gica");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](14, "select", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](15, AtributosComponent_ng_template_50_option_15_Template, 2, 2, "option", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](16, "hr", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](17, "div")(18, "p", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](19, "Requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](20, "select", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](21, AtributosComponent_ng_template_50_option_21_Template, 2, 2, "option", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("formGroup", ctx_r4.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction0"](6, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx_r4.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx_r4.todosOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx_r4.todosOptions);
  }
}
class AtributosComponent {
  constructor(atributoService, fb, toast, modalService, alert, exportacion, sf, authService, tourService) {
    this.atributoService = atributoService;
    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.MSJ_EXITO_INSERCION = 'Se insertó correctamente un atributo.';
    this.MSJ_EXITO_EDICION = 'Se modificó correctamente el atributo seleccionado.';
    this.MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente el atributo seleccionado.';
    this.atributos = [];
    this.total = [];
    this.filtro = true;
    this.filtroMobile = false;
    this._unsubscribe = [];
    //filtros
    this.filterDominio = '';
    this.filterBaja = '';
    this.filterRequerido = '';
    //paginacion
    this.cantSearch = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.CANT_SEARCH;
    //SP SINWEB-243 arreglo paginas seleccionables pasadas al app-select component
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.PAGE_OPTIONS;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.INIT_SENTIDO;
    this.totalItems = 0;
    //permisos
    this.permisoInsAtrib = false;
    this.permisoModifAtrib = false;
    this.permisoElimAtrib = false;
    this.atributosHeader = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_6__.atributosHeader;
    this.todosOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'N',
      nombre: 'No'
    }, {
      id: 'S',
      nombre: 'Si'
    }];
    this.dominioOptions = [{
      id: 'B',
      nombre: 'Texto largo'
    }, {
      id: 'D',
      nombre: 'Fecha'
    }, {
      id: 'I',
      nombre: 'Entero'
    }, {
      id: 'L',
      nombre: 'Lógico (S/N)'
    }, {
      id: 'R',
      nombre: 'Real'
    }, {
      id: 'S',
      nombre: 'Texto'
    }];
    this.dropdownActions = [{
      Title: 'Editar',
      Accion: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.ATRIBUTOS_EDITAR
    }, {
      Title: 'Eliminar',
      Accion: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.ATRIBUTOS_ELIMINAR
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(100)]
    });
    this.filterForm = this.fb.group({
      dominio: [''],
      bajaLogica: [''],
      requerido: ['']
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    //SP SINWEB-560 se llama al metodo para cargar los permisos
    this.cargarPermisos();
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisoInsAtrib = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_5__.PERMISO_INS_ATRIBUTOS_ART);
    this.permisoModifAtrib = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_5__.PERMISO_MODIF_ATRIBUTOS_ART);
    this.permisoElimAtrib = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_5__.PERMISO_ELIM_ATRIBUTOS_ART);
    this.dropdownActions[0]['Show'] = this.permisoModifAtrib;
    this.dropdownActions[1]['Show'] = this.permisoElimAtrib;
  }
  /**
   * SP SINWEB-243 Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesGEN.ATRIBUTOS_GENERAL_STATES;
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_S_NOMBRE));
    this.buscarNombre = this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_S_NOMBRE);
    //filtros
    this.filterDominio = this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_F_DOMINIO);
    this.filterForm.controls.dominio.setValue(this.filterDominio, {
      emitEvent: false
    });
    this.filterRequerido = this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_F_REQUERIDO);
    this.filterForm.controls.requerido.setValue(this.filterRequerido, {
      emitEvent: false
    });
    this.filterBaja = this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_F_BAJA_LOGICA);
    this.filterForm.controls.bajaLogica.setValue(this.filterBaja, {
      emitEvent: false
    });
    //listado
    this.page = Number(this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_L_PAGE));
    this.cantSearch = Number(this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.ATRIBUTOS_GENERAL_L_SENTIDO);
  }
  /**
   * Método para escuchar a los cambios en el formulario de filtros
   */
  configuracionFilter() {
    this._unsubscribe.push(this.filterForm.controls.dominio.valueChanges.subscribe(IdDominio => {
      if (this.filtro || this.filtroMobile) {
        this.filterDominio = IdDominio;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.bajaLogica.valueChanges.subscribe(baja => {
      if (this.filtro || this.filtroMobile) {
        this.filterBaja = baja;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.requerido.valueChanges.subscribe(requerido => {
      if (this.filtro || this.filtroMobile) {
        this.filterRequerido = requerido;
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Método para limpiar los filtros
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  /**
   * SP SINWEB-166 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.buscarNombre = '';
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
  }
  /**
   * Método para cargar los datos de la página
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * SP SINWEB-560 metodo requerido para migrar tabla
   * @param $event
   */
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  /**
   * Método que trae los atributos del servicio
   * @param {object} datos Datos de búsqueda
   */
  onSearch(datos) {
    const susc = this.atributoService.fetch(datos).subscribe(data => {
      this.atributos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Método que carga los filtros de búsqueda para realizar la petición
   * @param {any} page Página actual
   * @param {any} order Orden
   * @param {any} sentido Sentido (ascendente o descendente)
   * @returns {object} Datos de búsqueda
   */
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //SP SINWEB-243 parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.IncluirValores = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.VERDADERO;
    //SP SINWEB-243 parametros de busqueda
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.Nombre = this.buscarNombre;
    }
    //filtros
    if (this.filterDominio != '') {
      datos.Dominio = this.filterDominio;
    }
    if (this.filterBaja != '') {
      datos.BajaLogica = this.filterBaja;
    }
    if (this.filterRequerido != '') {
      datos.Requerido = this.filterRequerido;
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * SP SINWEB-2433 Método que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos de búsqueda
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_S_NOMBRE, !datos.Nombre ? this.sf.states.ATRIBUTOS_GENERAL_S_NOMBRE.default : datos.Nombre);
    //filtros
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_F_DOMINIO, !datos.Dominio ? this.sf.states.ATRIBUTOS_GENERAL_F_DOMINIO.default : datos.Dominio);
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_F_BAJA_LOGICA, !datos.BajaLogica ? this.sf.states.ATRIBUTOS_GENERAL_F_BAJA_LOGICA.default : datos.BajaLogica);
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_F_REQUERIDO, !datos.Requerido ? this.sf.states.ATRIBUTOS_GENERAL_F_REQUERIDO.default : datos.Requerido);
    //listado
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.ATRIBUTOS_GENERAL_L_SENTIDO, datos.SentidoOrden);
  }
  /**
   * Método que abre el modal para crear un nuevo atributo
   */
  nuevo() {
    this.editar(undefined, false);
  }
  /**
   * Método que abre el modal para editar una atributo
   * @param {boolean} esEditar Indica si es una edición (true) o una creación (false)
   */
  editar(atributo, esEditar) {
    const modalRef = this.modalService.open(_atributo_edit_atributo_edit_component__WEBPACK_IMPORTED_MODULE_2__.AtributoEditComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.atributo = atributo;
    modalRef.componentInstance.dominioOptions = this.dominioOptions;
    modalRef.result.then(() => {
      this.loadPage();
      if (esEditar) {
        this.alert.showBasicAlert(this.MSJ_EXITO_EDICION, '', 'success');
      } else {
        this.alert.showBasicAlert(this.MSJ_EXITO_INSERCION, '', 'success');
      }
    }, () => {});
  }
  /**
   * Método que abre el modal para eliminar un atributo
   * @param {number} idAtributo Id del atributo a eliminar
   * @param {string} nombre Nombre del atributo a eliminar
   */
  eliminar(idAtributo, nombre) {
    this.alert.showReturnAlert('Eliminación de atributo.', "¿Está seguro de eliminar el atributo: '" + nombre + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarMaquina(idAtributo);
      }
    });
  }
  /**
   * Método que elimina un atributo una vez confirmada la acción
   * @param idAtributo Id del atributo a eliminar
   */
  eliminarMaquina(idAtributo) {
    const sb = this.atributoService.eliminar(idAtributo).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(this.MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * SP SINWEB-243 Método para activar acción
   * @param {any} event Evento con la acción a realizar
   */
  acciones(event) {
    switch (event.accion) {
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.ATRIBUTOS_VALORES:
        this.editar(event.registro, true);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.ATRIBUTOS_EDITAR:
        this.editar(event.registro, true);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.ATRIBUTOS_ELIMINAR:
        this.eliminar(event.registro.Id, event.registro.Nombre);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * Método para exportar a Excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    delete datos.PageSize;
    //datos.PageSize= this.totalItems;
    //SP SINWEB-91 se arman las columnas y keys para buscar datos y armar el excel
    // const columns = ["Nombre","Dominio","Valores Permitidos (Valor: Predeterminado)","Baja Lógica","Requerido"];
    // const keys = ["Nombre","Dominio",["ValoresAtributo","Valor","Predeterminado"],"BajaLogica","Requerido"];
    const columns = ['Nombre', 'Dominio', 'Valores Permitidos', 'Baja Lógica', 'Requerido'];
    const keys = ['Nombre', 'Dominio', 'ValoresPermitidos', 'BajaLogica', 'Requerido'];
    this.alert.showLoadingAlert('Exportando Atributos', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //SP SINWEB-91 llamada al recurso correspondiente de la api
    this.atributoService.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Atributos Exportados', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      let result = data.Data.map(item => ({
        ...item,
        Dominio: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO.find(dominio => dominio.Id == item.Dominio).Nombre,
        ValoresPermitidos: item.ValoresAtributo.map(valor => valor.Valor + (valor.Predeterminado == 'S' ? ' (Predeterminado)' : '')).join('\n')
      }));
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(result, columns, keys, 'Listado de Atributos');
      } else {
        this.exportacion.exportToPdf(result, columns, keys, 'Listado de Atributos', 10);
      }
    });
  }
  /**
   * SP Método get para obtener campo nombre
   * @returns {string} Número de serie
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * SP Método para limpiar filtro
   */
  borrarNombre() {
    this.searchForm.get('nombre').reset('');
    this.page = 1;
    this.buscarNombre = '';
    this.loadPage();
  }
  buscarPorNombre() {
    this.page = 1;
    this.buscarNombre = this.getNombre();
    this.loadPage();
  }
  /**
   * SP SINWEB-243 control de filtro no reactivo
   */
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * SP SINWEB-243 Método que inicia tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * SP SINWEB-243 Método para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de maquinas
    fetch('./assets/tours/general/atributos.json').then(response => response.json()).then(tourAtributos => {
      this.tourSteps = tourAtributos;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * SP SINWEB-243 Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this._unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'atributos.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  static #_ = this.ɵfac = function AtributosComponent_Factory(t) {
    return new (t || AtributosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_atributo_service__WEBPACK_IMPORTED_MODULE_7__.AtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_15__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_8__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_1__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_9__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.TourService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
    type: AtributosComponent,
    selectors: [["app-atributos"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵProvidersFeature"]([src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_1__.StatefulService, src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService])],
    decls: 53,
    vars: 27,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "d-none d-lg-block col-xxl-2 col-lg-3", 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", "atributos.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", "newAtrib.anchor.id", "class", "btn btn-primary", 3, "click", 4, "ngIf"], ["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-4", "col-lg-6"], ["tourAnchor", "search.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "nombre", "placeholder", "Buscar por Nombre", "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"], ["anchorRegistros", "atribRegs.anchor.id", "anchorPaginacion", "atribPage.anchor.id", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "acciones", "isLoading", "dropdownButtons", "lazyLoad", "emitAction"], ["FILTRO", ""], [1, "d-none", "d-lg-block", "col-xxl-2", "col-lg-3"], ["tourAnchor", "filtroAtrib.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], ["tourAnchor", "newAtrib.anchor.id", 1, "btn", "btn-primary", 3, "click"], [1, "d-none", "d-md-block"], [1, "d-block", "d-md-none", "mdi", "mdi-plus", "mdi-16"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "text-muted"], ["formControlName", "dominio", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "my-2"], ["formControlName", "bajaLogica", 1, "form-select"], ["formControlName", "requerido", 1, "form-select"], [3, "value"]],
    template: function AtributosComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("visibleChange", function AtributosComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, AtributosComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, AtributosComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](11, " Atributos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_13_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](15, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](16, AtributosComponent_a_16_Template, 4, 0, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](17, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_17_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](18, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](19, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](20, "a", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_20_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](21, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](22, "div", 17)(23, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](24, "i", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](25, "ul", 20)(26, "li")(27, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_27_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](28, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](29, "li")(30, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_30_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](31, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](32, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](33, 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](34, "div", 23)(35, "div", 24)(36, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_36_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](37, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](38, "div", 26)(39, "a", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_39_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](40, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](41, "div", 28)(42, "div", 29)(43, "input", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("keyup.enter", function AtributosComponent_Template_input_keyup_enter_43_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](44, AtributosComponent_a_44_Template, 2, 0, "a", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](45, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_45_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](46, "i", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](47, "div", 34)(48, "app-table2", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("lazyLoad", function AtributosComponent_Template_app_table2_lazyLoad_48_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function AtributosComponent_Template_app_table2_emitAction_48_listener($event) {
          return ctx.acciones($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](49, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](50, AtributosComponent_ng_template_50_Template, 22, 7, "ng-template", null, 36, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](52, "app-tour");
      }
      if (rf & 2) {
        const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](51);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngTemplateOutlet", _r5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-10 col-lg-9" : "col-lg-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.permisoInsAtrib);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](19, 23, ctx.atributoService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵ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_12__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵ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_12__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.busquedaNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("columns", ctx.atributosHeader)("datos", ctx.atributos)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cantSearch)("totalItems", ctx.totalItems)("apiTable", true)("acciones", ctx.permisoElimAtrib || ctx.permisoModifAtrib)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](49, 25, ctx.atributoService.isLoading$))("dropdownButtons", ctx.dropdownActions);
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_18__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_18__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_19__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_19__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_19__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_19__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.MaxLengthValidator, _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, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_20__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_10__.TourComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_11__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_19__.AsyncPipe]
  });
}

/***/ }),

/***/ 37763:
/*!***************************************************************************!*\
  !*** ./src/app/pages/dashboards/configuracion/configuracion.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionComponent: () => (/* binding */ ConfiguracionComponent)
/* harmony export */ });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! rxjs/operators */ 94664);
/* 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 _core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../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 _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_core_deposito_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/services/core/deposito.service */ 31758);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/services/config.service */ 56375);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var src_app_core_services_web_plataforma_integracion_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/web/plataforma-integracion.service */ 79410);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/core/canal.service */ 84003);
/* harmony import */ var src_app_core_services_web_meli_configuracion_conexion_services__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/web/meli-configuracion-conexion.services */ 49100);
/* harmony import */ var src_app_core_services_core_familia_articulo_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/core/familia-articulo.service */ 38080);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_inputswitch__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primeng/inputswitch */ 45609);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../shared/ui/input-number/input-number.component */ 62271);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _panel_soporte_verificar_api_verificar_api_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../panel-soporte/verificar-api/verificar-api.component */ 71917);
























function ConfiguracionComponent_ng_template_20_ng_template_11_i_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_ng_template_11_i_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_ng_template_11_i_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_ng_template_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 31)(1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "p-inputSwitch", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Recordar estados");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](5, ConfiguracionComponent_ng_template_20_ng_template_11_i_5_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](7, "p-inputSwitch", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "label", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, "Modo oscuro");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](10, ConfiguracionComponent_ng_template_20_ng_template_11_i_10_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](12, "p-inputSwitch", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "label", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "Habilitar notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](15, ConfiguracionComponent_ng_template_20_ng_template_11_i_15_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "div", 41)(17, "select", 42)(18, "option", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, " Men\u00FA en posici\u00F3n izquierda ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](20, "option", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21, " Men\u00FA en posici\u00F3n superior ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "div", 41)(23, "select", 45)(24, "option", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](25, " Ordenar men\u00FA por prioridad ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](26, "option", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](27, " Ordenar men\u00FA alfabeticamente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](28, "hr", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](29, "button", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ConfiguracionComponent_ng_template_20_ng_template_11_Template_button_click_29_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r14.actualizarPermisos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](30, " Actualizar permisos almacenados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r8.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r8.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r8.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r8.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r8.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r8.cookieConsent);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_0_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "p-inputSwitch", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "label", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Autorizaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_0_i_4_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r17.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r17.cookieConsent);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_1_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "p-inputSwitch", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "label", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Producci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_1_i_4_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r18.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r18.cookieConsent);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_2_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "p-inputSwitch", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "label", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " RMA ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_2_i_4_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r19.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r19.cookieConsent);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_3_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "p-inputSwitch", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Servicios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_3_i_4_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r20.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r20.cookieConsent);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_4_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "i", 48);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](1, "p-inputSwitch", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "label", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Estad\u00EDstica ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](4, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_4_i_4_Template, 1, 0, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r21.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", !ctx_r21.cookieConsent);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](0, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_0_Template, 5, 2, "div", 49)(1, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_1_Template, 5, 2, "div", 49)(2, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_2_Template, 5, 2, "div", 49)(3, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_3_Template, 5, 2, "div", 49)(4, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Conditional_4_Template, 5, 2, "div", 49);
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](0, ctx_r16.autorizacionActivo ? 0 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](1, ctx_r16.produccionActivo ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](2, ctx_r16.rmaActivo ? 2 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](3, ctx_r16.serviciosActivo ? 3 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](4, ctx_r16.estadisticaActivo ? 4 : -1);
  }
}
function ConfiguracionComponent_ng_template_20_Conditional_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 26)(1, "h2", 27)(2, "button", 28)(3, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Visualizaci\u00F3n de widgets del Inicio");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "div", 29)(6, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](7, ConfiguracionComponent_ng_template_20_Conditional_12_ng_template_7_Template, 5, 5, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", true);
  }
}
function ConfiguracionComponent_ng_template_20_ng_template_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 31)(1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](2, "p-inputSwitch", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](3, "label", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, " Comprobante en Serie ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](5, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](7, "p-inputSwitch", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "label", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, " Comprobante en nueva pesta\u00F1a ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](10, "i", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](12, "p-inputSwitch", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "label", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, " Filtrar Vendedores por Zona del Cliente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](15, "i", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](17, "p-inputSwitch", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "label", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, " Im\u00E1genes ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](20, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "div", 72)(22, "div", 41)(23, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](24, "Vendedor predeterminado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](25, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_ng_template_20_ng_template_20_Template_select_loading_valueSelect_25_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r28);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r27.configGroup.controls.ComprobanteVendPred.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](26, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "div", 41)(28, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](29, "Canal predeterminado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](30, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_ng_template_20_ng_template_20_Template_select_loading_valueSelect_30_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r28);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r29.configGroup.controls.ComprobanteCanalPred.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](31, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r10.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r10.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r10.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", !ctx_r10.cookieConsent);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", false)("defaultString", "Seleccione Vendedor predeterminado")("items", ctx_r10.vendedores)("valueSelected", ctx_r10.configGroup.controls.ComprobanteVendPred.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](26, 16, ctx_r10.empleadoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", false)("defaultString", "Seleccione Canal de venta predeterminado")("items", ctx_r10.canales)("valueSelected", ctx_r10.configGroup.controls.ComprobanteCanalPred.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](31, 18, ctx_r10.canalService.isLoading$));
  }
}
function ConfiguracionComponent_ng_template_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "div", 24, 25)(4, "div", 26)(5, "h2", 27)(6, "button", 28)(7, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Preferencias");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "div", 29)(10, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](11, ConfiguracionComponent_ng_template_20_ng_template_11_Template, 31, 6, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](12, ConfiguracionComponent_ng_template_20_Conditional_12_Template, 8, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](13, "div", 26)(14, "h2", 27)(15, "button", 28)(16, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](17, "Comprobantes");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](18, "div", 29)(19, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](20, ConfiguracionComponent_ng_template_20_ng_template_20_Template, 32, 20, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("closeOthers", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](12, ctx_r1.autorizacionActivo || ctx_r1.produccionActivo || ctx_r1.rmaActivo || ctx_r1.serviciosActivo || ctx_r1.estadisticaActivo ? 12 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", true);
  }
}
function ConfiguracionComponent_ng_template_26_ng_template_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, "Acciones de mantenimiento >");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
const _forTrack0 = ($index, $item) => $item.id;
function ConfiguracionComponent_ng_template_26_ng_template_18_For_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 95)(1, "div", 96)(2, "div", 97)(3, "p", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "p")(6, "small");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](8, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const m_r35 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngClass", m_r35.activo ? "bg-success-subtle text-success-emphasis" : "bg-danger-subtle text-danger-emphasis");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate1"](" ", m_r35.nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtextInterpolate"](m_r35.version || "Versi\u00F3n desconocida");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵclassMap"](m_r35.icon);
  }
}
function ConfiguracionComponent_ng_template_26_ng_template_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 77)(1, "div", 78)(2, "h5", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "div", 77)(5, "div", 80)(6, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "Logo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](9, "img", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](10, "div", 84)(11, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](12, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](13, "input", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](14, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, "Serial");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](16, "input", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "h5", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](18, "Servidor");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "div", 77)(20, "div", 88)(21, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](22, "API Server");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](23, "input", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](24, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](25, "API GPO");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](26, "input", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](27, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](28, "API Integra");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](29, "input", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](30, "label", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](31, "Im\u00E1genes");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](32, "input", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](33, "div", 93)(34, "div", 94)(35, "h5", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](36, "M\u00F3dulos");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrepeaterCreate"](37, ConfiguracionComponent_ng_template_26_ng_template_18_For_38_Template, 9, 5, "div", 99, _forTrack0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r32.advInfoForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("src", ctx_r32.config.config.cliente.logo, _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrepeater"](ctx_r32.modulos);
  }
}
function ConfiguracionComponent_ng_template_26_ng_template_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](0, "app-verificar-api");
  }
}
function ConfiguracionComponent_ng_template_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 23)(1, "div", 24, 25)(3, "div", 26)(4, "h2", 75)(5, "button", 28)(6, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "Mantenimiento");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "div", 29)(9, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](10, ConfiguracionComponent_ng_template_26_ng_template_10_Template, 2, 0, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 76)(12, "h2", 75)(13, "button", 28)(14, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, "Informaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "div", 29)(17, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](18, ConfiguracionComponent_ng_template_26_ng_template_18_Template, 39, 2, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "div", 76)(20, "h2", 75)(21, "button", 28)(22, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](23, "Verificar API's");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](24, "div", 29)(25, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](26, ConfiguracionComponent_ng_template_26_ng_template_26_Template, 1, 0, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("closeOthers", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", false);
  }
}
function ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Conditional_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 119);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " Primero Configurables ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "option", 120);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Primero No configurables ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Conditional_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "option", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](1, " Ascendente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](2, "option", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, " Descendente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
}
function ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 101)(1, "div", 102)(2, "div", 93)(3, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "P\u00E1gina de Inicio");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](5, "select", 103)(6, "option", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, " Colecci\u00F3n Predeterminada ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "option", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, " Colecci\u00F3n Favoritos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](10, "option", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](11, " P\u00E1gina de inicio ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "div", 102)(13, "div", 107)(14, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](15, "Ordenar Colecciones de tableros");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "div", 108)(17, "div", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](18, " Por ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](19, "select", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("change", function ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Template_select_change_19_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r46);
      const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r45.resetValorOrd());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](20, "option", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](21, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](22, "option", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](23, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](24, "div", 109);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](25, " y ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](26, "select", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](27, ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Conditional_27_Template, 4, 0)(28, ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Conditional_28_Template, 4, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](29, "div", 113)(30, "div", 114)(31, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](32, "p-inputSwitch", 115);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](33, "label", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](34, "Mostrar Colecci\u00F3n Favoritos");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](35, "div", 113)(36, "div", 114)(37, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](38, "p-inputSwitch", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](39, "label", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](40, "Estilo visual monocrom\u00E1tico");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](41, "div", 113)(42, "div", 93)(43, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](44, "Posici\u00F3n de filtros de indicador");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](45, "select", 118)(46, "option", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](47, " Lateral izquierdo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](48, "option", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](49, "Superior");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r42.configGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵconditional"](27, ctx_r42.configGroup.get("OrdTipo").value == "T" ? 27 : 28);
  }
}
function ConfiguracionComponent_li_27_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "div", 24, 25)(4, "div", 26)(5, "h2", 27)(6, "button", 28)(7, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Opciones de visualizaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "div", 29)(10, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](11, ConfiguracionComponent_li_27_ng_template_5_ng_template_11_Template, 50, 2, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("closeOthers", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", false);
  }
}
function ConfiguracionComponent_li_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li", 13)(1, "a", 14)(2, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Estadistica");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](5, ConfiguracionComponent_li_27_ng_template_5_Template, 12, 2, "ng-template", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", 4);
  }
}
function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 101)(1, "div", 77)(2, "div", 88)(3, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "URL de API");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](5, "input", 124);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 77)(7, "div", 88)(8, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](9, "URL de Autorizaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](10, "input", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 77)(12, "div", 88)(13, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](14, "URL de Solicitud");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](15, "input", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](16, "div", 77)(17, "div", 88)(18, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, "URL de Redirecci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](20, "input", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "div", 77)(22, "div", 93)(23, "app-input-number", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("emitValue", function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template_app_input_number_emitValue_23_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r52);
      const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r51.setValor("CostoFijoComision", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](24, "div", 93)(25, "app-input-number", 129);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("emitValue", function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template_app_input_number_emitValue_25_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r52);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r53.setValor("CotaComision", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](26, "div", 77)(27, "div", 93)(28, "app-input-number", 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("emitValue", function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template_app_input_number_emitValue_28_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r52);
      const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r54.setValor("PjDecReputacionVerde", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](29, "div", 93)(30, "app-input-number", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("emitValue", function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template_app_input_number_emitValue_30_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r52);
      const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r55.setValor("PjDecReputacionAmarilla", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](31, "div", 77)(32, "div", 93)(33, "app-input-number", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("emitValue", function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template_app_input_number_emitValue_33_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r52);
      const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r56.setValor("CostoMinimoEnvioGratis", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](34, "div", 93)(35, "app-input-number", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("emitValue", function ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template_app_input_number_emitValue_35_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r52);
      const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r57.setValor("MontoMinimoPublicacion", $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx_r49.configGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", ctx_r49.configGroup.controls.CostoFijoComision.value)("isInvalid", ctx_r49.vh.isControlInvalid("CostoFijoComision"))("isValid", ctx_r49.vh.isControlValid("CostoFijoComision"))("templateErrors", ctx_r49.INPUT_ERRORS);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", ctx_r49.configGroup.controls.CotaComision.value)("isInvalid", ctx_r49.vh.isControlInvalid("CotaComision"))("isValid", ctx_r49.vh.isControlValid("CotaComision"))("templateErrors", ctx_r49.INPUT_ERRORS);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", ctx_r49.configGroup.controls.PjDecReputacionVerde.value)("isInvalid", ctx_r49.vh.isControlInvalid("PjDecReputacionVerde"))("isValid", ctx_r49.vh.isControlValid("PjDecReputacionVerde"))("templateErrors", ctx_r49.INPUT_ERRORS);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", ctx_r49.configGroup.controls.PjDecReputacionAmarilla.value)("isInvalid", ctx_r49.vh.isControlInvalid("PjDecReputacionAmarilla"))("isValid", ctx_r49.vh.isControlValid("PjDecReputacionAmarilla"))("templateErrors", ctx_r49.INPUT_ERRORS);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", ctx_r49.configGroup.controls.CostoMinimoEnvioGratis.value)("isInvalid", ctx_r49.vh.isControlInvalid("CostoMinimoEnvioGratis"))("isValid", ctx_r49.vh.isControlValid("CostoMinimoEnvioGratis"))("templateErrors", ctx_r49.INPUT_ERRORS);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("value", ctx_r49.configGroup.controls.MontoMinimoPublicacion.value)("isInvalid", ctx_r49.vh.isControlInvalid("MontoMinimoPublicacion"))("isValid", ctx_r49.vh.isControlValid("MontoMinimoPublicacion"))("templateErrors", ctx_r49.INPUT_ERRORS);
  }
}
function ConfiguracionComponent_li_28_ng_template_5_ng_template_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 72)(1, "div", 88)(2, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Vendedor predeterminado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_li_28_ng_template_5_ng_template_19_Template_select_loading_valueSelect_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r59);
      const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r58.configGroup.controls.MLVendedorPred.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 88)(7, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Canal predeterminado");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_li_28_ng_template_5_ng_template_19_Template_select_loading_valueSelect_9_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r59);
      const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r60.configGroup.controls.MLCanalPred.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](10, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Vendedor predeterminado")("items", ctx_r50.vendedores)("valueSelected", ctx_r50.configGroup.controls.MLVendedorPred.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](5, 12, ctx_r50.depositoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Canal predeterminado")("items", ctx_r50.canales)("valueSelected", ctx_r50.configGroup.controls.MLCanalPred.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](10, 14, ctx_r50.depositoService.isLoading$));
  }
}
function ConfiguracionComponent_li_28_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "div", 24, 25)(4, "div", 26)(5, "h2", 27)(6, "button", 28)(7, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Mercado Libre - Integraci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "div", 29)(10, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](11, ConfiguracionComponent_li_28_ng_template_5_ng_template_11_Template, 36, 25, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](12, "div", 26)(13, "h2", 27)(14, "button", 28)(15, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](16, "Mercado Libre - Par\u00E1metros generales");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](17, "div", 29)(18, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](19, ConfiguracionComponent_li_28_ng_template_5_ng_template_19_Template, 11, 16, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("closeOthers", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", false);
  }
}
function ConfiguracionComponent_li_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li", 13)(1, "a", 14)(2, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Plataformas de pago");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](5, ConfiguracionComponent_li_28_ng_template_5_Template, 20, 3, "ng-template", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", 6);
  }
}
function ConfiguracionComponent_li_29_ng_template_5_ng_template_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 72)(1, "div", 88)(2, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Origen");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_li_29_ng_template_5_ng_template_11_Template_select_loading_valueSelect_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r65);
      const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r64.configGroup.controls.DepositoOrigenId.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](6, "div", 88)(7, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_li_29_ng_template_5_ng_template_11_Template_select_loading_valueSelect_9_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r65);
      const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r66.configGroup.controls.DepositoProduccionId.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](10, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 88)(12, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](13, "Destino");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](14, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_li_29_ng_template_5_ng_template_11_Template_select_loading_valueSelect_14_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r65);
      const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r67.configGroup.controls.DepositoDestinoId.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](15, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Dep\u00F3sito Origen")("items", ctx_r63.depositos)("valueSelected", ctx_r63.configGroup.controls.DepositoOrigenId.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](5, 18, ctx_r63.depositoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Dep\u00F3sito Producci\u00F3n")("items", ctx_r63.depositos)("valueSelected", ctx_r63.configGroup.controls.DepositoProduccionId.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](10, 20, ctx_r63.depositoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Dep\u00F3sito Destino")("items", ctx_r63.depositos)("valueSelected", ctx_r63.configGroup.controls.DepositoDestinoId.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](15, 22, ctx_r63.depositoService.isLoading$));
  }
}
function ConfiguracionComponent_li_29_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "div", 24, 25)(4, "div", 26)(5, "h2", 27)(6, "button", 28)(7, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](8, "Selecci\u00F3n de dep\u00F3sitos de empresa");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](9, "div", 29)(10, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](11, ConfiguracionComponent_li_29_ng_template_5_ng_template_11_Template, 16, 24, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("closeOthers", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("collapsed", false);
  }
}
function ConfiguracionComponent_li_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li", 13)(1, "a", 14)(2, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](5, ConfiguracionComponent_li_29_ng_template_5_Template, 12, 2, "ng-template", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", 7);
  }
}
function ConfiguracionComponent_li_30_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r70 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 72)(1, "div", 88)(2, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](3, "Familia Art\u00EDculos");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](4, "select-loading", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("valueSelect", function ConfiguracionComponent_li_30_ng_template_5_Template_select_loading_valueSelect_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵrestoreView"](_r70);
      const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵresetView"](ctx_r69.configGroup.controls.FamiliaArtSrvId.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Familia de Art\u00EDculos")("items", ctx_r68.familiasArticulos)("valueSelected", ctx_r68.configGroup.controls.FamiliaArtSrvId.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵpipeBind1"](5, 6, ctx_r68.familiaArticuloService.isLoading$));
  }
}
function ConfiguracionComponent_li_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "li", 13)(1, "a", 14)(2, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](3, "i", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](4, "Servicios");
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](5, ConfiguracionComponent_li_30_ng_template_5_Template, 6, 8, "ng-template", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", 9);
  }
}
class ConfiguracionComponent {
  constructor(depositoService, fb, authenticationService, configGralService, config, alert, vh, router, plataformaIntegracionService, empleadoService, canalService, meliConfiguracionConexionService, familiaArticuloService, authService) {
    this.depositoService = depositoService;
    this.fb = fb;
    this.authenticationService = authenticationService;
    this.configGralService = configGralService;
    this.config = config;
    this.alert = alert;
    this.vh = vh;
    this.router = router;
    this.plataformaIntegracionService = plataformaIntegracionService;
    this.empleadoService = empleadoService;
    this.canalService = canalService;
    this.meliConfiguracionConexionService = meliConfiguracionConexionService;
    this.familiaArticuloService = familiaArticuloService;
    this.authService = authService;
    this.activeTab = 1;
    //SP SINWEB-135 variable para habilitar o deshabilitar guardado de estados usando coockies
    this.cookieConsent = true;
    this.MenuPosInicial = 'N';
    this.MenuOrdenInicial = 'N';
    this.DarkMode = 'N';
    this.NotifRealtime = 'S';
    this.datos = {
      PageNumber: 1,
      PageSize: 150,
      ExcluirDepositoCero: 'S'
    };
    this.configGroup = this.fb.group({
      RecEst: ['N'],
      MenuPos: ['N'],
      MenuOrden: ['N'],
      DarkMode: ['N'],
      NotifRealtime: ['N'],
      // MC SINWEB-639 Opciones para mostrar/ocultar widgets del Inicio
      WidgetsAUT: ['N'],
      WidgetsPRD: ['N'],
      WidgetsRMA: ['N'],
      WidgetsSRV: ['N'],
      WidgetsEST: ['N'],
      //COMPROBANTES
      //SP SINWEB-905 nuevo campo para realizar comprobantes en serie
      ComprobanteSerie: ['S'],
      //SP SAD-165 nueva configuracion para abrir comprobantes en una nueva pestaña
      ComprobanteNuevaPagina: ['N'],
      // MC SINWEB-953 Campos para configuracion de codigo de articulo
      IdFormatoCodArt: [''],
      // SP SAD-114 este campo es para definir la longitud del codigo numerico ,
      // no limita la longitud del codigo de articulo si no que completa con ceros a la izquierda hasta que llega a ese valor
      LongitudCodArt: ['000000'],
      //MaskCodArt: [''],
      //SP SAD-113
      VerImagenArticulo: ['N'],
      //SP SINWEB-949
      ComprobanteFilterVendZonaCliente: ['N'],
      ComprobanteVendPred: [-1],
      ComprobanteCanalPred: [-1],
      DepositoOrigenId: [-1],
      DepositoProduccionId: [-1],
      DepositoDestinoId: [-1],
      //SP SINWEB-350 nuevo campo de configuracion para la seccion servicios
      FamiliaArtSrvId: [-1],
      URLApi: [''],
      URLApiAutorizacion: [''],
      URLSolicitud: [''],
      URLRedireccion: [''],
      CostoFijoComision: [0],
      CotaComision: [0],
      PjDecReputacionVerde: [0],
      PjDecReputacionAmarilla: [0],
      CostoMinimoEnvioGratis: [0],
      MontoMinimoPublicacion: [0],
      MLVendedorPred: [-1],
      MLCanalPred: [-1],
      /**
       * SP SINWEB-679 nuevos campos para la configuracion de estadistica
       */
      OrdTipo: ['T'],
      OrdValor: ['E'],
      VerEnInicio: ['S'],
      ModoVisualTablero: ['C'],
      VerFavoritos: ['S'],
      PosFiltroInd: ['I']
    });
    this.modoDesarrollo = false;
    this.advInfoForm = this.fb.group({
      cliente_nombre: [{
        value: '',
        disabled: true
      }],
      cliente_serial: [{
        value: '',
        disabled: true
      }],
      api_server: [{
        value: '',
        disabled: true
      }],
      api_gpo: [{
        value: '',
        disabled: true
      }],
      api_integra: [{
        value: '',
        disabled: true
      }],
      url_imagenes: [{
        value: '',
        disabled: true
      }]
    });
    this.modulos = [{
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PRODUCCION,
      nombre: 'Producción',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-wrench',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_AUTORIZACION,
      nombre: 'Autorización',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-lock-open',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_RMA,
      nombre: 'RMA',
      activo: false,
      icon: 'mdi mdi-certificate-outline fs-1 mdi-48px',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_WEB,
      nombre: 'Web',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-cloud',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_SERVICIOS,
      nombre: 'Servicios',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-briefcase-alt-2',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_ESTADISTICA,
      nombre: 'Estadísticas',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-line-chart',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_NOTIFICACIONES,
      nombre: 'Notificaciones',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-bell',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PLATAFORMAS,
      nombre: 'Plataformas de pago',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-dollar-circle',
      version: ''
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_DESARROLLO,
      nombre: 'Desarrollo',
      activo: false,
      icon: 'bx bx-lg mt-2 bx-joystick',
      version: ''
    }];
    this.unsubscribe = [];
    this.zeroPattern = {
      Z: {
        pattern: /0/
      }
    };
  }
  ngOnInit() {
    /**
     * SP SINWEB-151 no muestra las tabs de config si los modulos no estan activos.
     */
    this.produccionActivo = this.config.config.modulos.produccion.activo;
    this.autorizacionActivo = this.config.config.modulos.autorizacion.activo;
    this.rmaActivo = this.config.config.modulos.rma.activo;
    this.webActivo = this.config.config.modulos.web.activo;
    this.serviciosActivo = this.config.config.modulos.servicios.activo;
    this.estadisticaActivo = this.config.config.modulos.estadistica.activo;
    this.notificacionesActivo = this.config.config.modulos.notificaciones.activo;
    this.plataformasActivo = this.config.config.modulos.plataformas.activo;
    this.produccionVersion = this.config.config.modulos.produccion.version;
    this.autorizacionVersion = this.config.config.modulos.autorizacion.version;
    this.rmaVersion = this.config.config.modulos.rma.version;
    this.webVersion = this.config.config.modulos.web.version;
    this.serviciosVersion = this.config.config.modulos.servicios.version;
    this.estadisticaVersion = this.config.config.modulos.estadistica.version;
    this.notificacionesVersion = this.config.config.modulos.notificaciones.version;
    this.plataformasVersion = this.config.config.modulos.plataformas.version;
    this.modoDesarrollo = this.config.config.cliente.validacion.includes('i02B');
    //SP SINWEB-135 control de variable en local storage si se rechazaron las coockies o no se hizo nada aun ,
    //se setea en falso , si se aceptaron o no se a echo nada aun se deja en true
    this.configGralService.cookieConsent$.subscribe(resp => {
      this.cookieConsent = resp;
      if (resp == false) {
        this.configGroup.controls.RecEst.setValue('N');
        this.configGroup.controls.MenuPos.setValue('N');
        this.configGroup.controls.MenuOrden.setValue('N');
        this.configGroup.controls.DarkMode.setValue('N');
        this.configGroup.controls.NotifRealtime.setValue('N');
      }
    });
    this.currentUser = this.authenticationService.usuario;
    //SP SINWEB-88 observable que controla que haya terminado la carga de la configuracion
    const susc = this.configGralService.isLoading$.subscribe(resp => {
      if (!resp) {
        this.cargarConfiguracion();
      }
    });
    this.cargarDepositos();
    this.cargarCanales();
    this.cargarEmpleados();
    this.cargarFamiliasArticulos();
    this.vh.inicializar();
    //cargar configuracion ml
    if (this.webActivo) {
      this.vh.formGroup = this.configGroup;
      this.cargarConfiguracionWeb();
    }
    if (this.estadisticaActivo) {
      this.vh.formGroup = this.configGroup;
      this.cargarConfiguracionEst();
    }
    this.unsubscribe.push(susc);
    this.prepareAdvInfoData();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarDepositos() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 3;
    datos.IdEmpresa = this.currentUser.IdEmpresa;
    datos.IdSucursal = this.currentUser.IdSucursal;
    const susc = this.depositoService.fetch(datos).subscribe(data => {
      this.depositos = data.Data;
    });
    susc.unsubscribe;
  }
  cargarEmpleados() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 3;
    datos.PermiteVender = 'S';
    datos.PermiteComprar = 'S';
    const susc = this.empleadoService.fetch(datos).subscribe(data => {
      this.vendedores = data.Data;
    });
    susc.unsubscribe;
  }
  cargarCanales() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 1;
    const susc = this.canalService.fetch(datos).subscribe(data => {
      this.canales = data.Data;
    });
    susc.unsubscribe;
  }
  cargarFamiliasArticulos() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 2;
    datos.SentidoOrden = 'Asc';
    this.familiaArticuloService.fetch(datos).subscribe(data => {
      this.familiasArticulos = data.Data;
    });
  }
  /**
   * SP SINWEB-679 nuevo metodo para cargar la configuracion de estadistica
   */
  cargarConfiguracionEst() {
    this.configGroup.get('OrdTipo').setValue(this.configGralService._config.OrdTipo);
    this.configGroup.get('OrdValor').setValue(this.configGralService._config.OrdValor);
    this.configGroup.get('ModoVisualTablero').setValue(this.configGralService._config.ModoVisualTablero);
    this.configGroup.get('PosFiltroInd').setValue(this.configGralService._config.PosFiltroInd);
  }
  cargarConfiguracionWeb() {
    const platSusc = this.plataformaIntegracionService.fetchML(this.datos).subscribe(resp => {
      this.plataformaML = resp.Data[0];
      this.configGroup.get('MLVendedorPred').setValue(this.plataformaML.Empleado.Id);
      this.configGroup.get('MLCanalPred').setValue(this.plataformaML.Canal.Id);
    });
    platSusc.unsubscribe;
    const conexion = this.meliConfiguracionConexionService.fetch({}).subscribe(resp => {
      let conexion = resp.Data[0];
      this.configGroup.get('URLApi').setValue(conexion.UrlApi);
      this.configGroup.get('URLApiAutorizacion').setValue(conexion.UrlAutorizacion);
      this.configGroup.get('URLSolicitud').setValue(conexion.UrlToken);
      this.configGroup.get('URLRedireccion').setValue(conexion.UrlRedireccion);
      this.configGroup.get('CostoFijoComision').setValue(conexion.CostoFijoComision);
      this.configGroup.get('CotaComision').setValue(conexion.CotaComision);
      this.configGroup.get('PjDecReputacionVerde').setValue(conexion.PjeBonifReputacionVerde);
      this.configGroup.get('PjDecReputacionAmarilla').setValue(conexion.PjeBonifReputacionAmarilla);
      this.configGroup.get('CostoMinimoEnvioGratis').setValue(conexion.MinimoEnvioGratis);
      this.configGroup.get('MontoMinimoPublicacion').setValue(conexion.MontoMinimoPublicacion);
    });
    conexion.unsubscribe;
  }
  cargarConfiguracion() {
    this.configGroup.get('RecEst').setValue(this.configGralService._config.RecordarEstado);
    this.configGroup.get('MenuPos').setValue(this.configGralService._config.MenuPosicion);
    this.MenuPosInicial = this.configGralService._config.MenuPosicion;
    this.configGroup.get('MenuOrden').setValue(this.configGralService._config.MenuOrden);
    this.MenuOrdenInicial = this.configGralService._config.MenuOrden;
    this.configGroup.get('DarkMode').setValue(this.configGralService._config.DarkMode);
    this.DarkMode = this.configGralService._config.DarkMode;
    this.configGroup.get('NotifRealtime').setValue(this.configGralService._config.NotifRealtime);
    this.NotifRealtime = this.configGralService._config.NotifRealtime;
    if (this.autorizacionActivo) {
      this.configGroup.get('WidgetsAUT').setValue(this.configGralService._config.WidgetsAUT);
    }
    if (this.produccionActivo) {
      this.configGroup.get('WidgetsPRD').setValue(this.configGralService._config.WidgetsPRD);
    }
    if (this.rmaActivo) {
      this.configGroup.get('WidgetsRMA').setValue(this.configGralService._config.WidgetsRMA);
    }
    if (this.serviciosActivo) {
      this.configGroup.get('WidgetsSRV').setValue(this.configGralService._config.WidgetsSRV);
    }
    if (this.estadisticaActivo) {
      this.configGroup.get('WidgetsEST').setValue(this.configGralService._config.WidgetsEST);
    }
    this.configGroup.get('DepositoOrigenId').setValue(Number(this.configGralService._config.DepositoO));
    this.configGroup.get('DepositoProduccionId').setValue(Number(this.configGralService._config.DepositoP));
    this.configGroup.get('DepositoDestinoId').setValue(Number(this.configGralService._config.DepositoD));
    this.configGroup.get('FamiliaArtSrvId').setValue(Number(this.configGralService._config.FamiliaArtSrv));
    this.configGroup.get('VerEnInicio').setValue(this.configGralService._config.VerEnInicio);
    this.configGroup.get('ModoVisualTablero').setValue(this.configGralService._config.ModoVisualTablero);
    this.configGroup.get('VerFavoritos').setValue(this.configGralService._config.VerFavoritos);
    this.configGroup.get('ComprobanteSerie').setValue(this.configGralService._config.ComprobanteSerie);
    //SP SAD-165
    this.configGroup.get('ComprobanteNuevaPagina').setValue(this.configGralService._config.ComprobanteNuevaPagina);
    this.configGroup.get('IdFormatoCodArt').setValue(this.configGralService._config.IdFormatoCodArt);
    this.configGroup.get('LongitudCodArt').setValue(this.configGralService._config.LongitudCodArt);
    //SP SINWEB-949
    this.configGroup.get('ComprobanteFilterVendZonaCliente').setValue(this.configGralService._config.ComprobanteFilterVendZonaCliente);
    this.configGroup.get('ComprobanteVendPred').setValue(this.configGralService._config.ComprobanteVendPred);
    this.configGroup.get('ComprobanteCanalPred').setValue(this.configGralService._config.ComprobanteCanalPred);
    //SP SAD-113
    this.configGroup.get('VerImagenArticulo').setValue(this.configGralService._config.VerImagenArticulo);
  }
  // SP SINWEB-88 este metodo se llama cuando clickea el boton guardar.
  guardarConfig() {
    switch (this.activeTab) {
      case 1:
        this.guardarConfigGral();
        break;
      /**
       * SP SINWEB-679 nuevo case para guardar la configuracion del modulo estadistica
       */
      case 4:
        this.guardarConfigEst();
        break;
      case 6:
        this.guardarConfigPlat();
        break;
      case 7:
        this.guardarCondigProd();
        break;
      case 9:
        this.guardarConfigSrv();
        break;
      default:
        this.alert.showBasicAlert('Configuración no encontrada', '', 'error');
        break;
    }
  }
  // SP SINWEB-88 este metodo se llama cuando se guarda la configuracion estando en la tab de general
  guardarConfigGral() {
    const config = {
      RecordarEstado: this.configGroup.controls.RecEst.value,
      MenuPosicion: this.configGroup.controls.MenuPos.value,
      MenuOrden: this.configGroup.controls.MenuOrden.value,
      DarkMode: this.configGroup.controls.DarkMode.value,
      NotifRealtime: this.configGroup.controls.NotifRealtime.value,
      WidgetsAUT: this.configGroup.controls.WidgetsAUT.value,
      WidgetsPRD: this.configGroup.controls.WidgetsPRD.value,
      WidgetsRMA: this.configGroup.controls.WidgetsRMA.value,
      WidgetsSRV: this.configGroup.controls.WidgetsSRV.value,
      WidgetsEST: this.configGroup.controls.WidgetsEST.value,
      //COMPROBANTES CONFIGS
      ComprobanteSerie: this.configGroup.controls.ComprobanteSerie.value,
      //SP SAD-165
      ComprobanteNuevaPagina: this.configGroup.controls.ComprobanteNuevaPagina.value,
      //IdFormatoCodArt: this.configGroup.controls.IdFormatoCodArt.value,
      //LongitudCodArt: this.configGroup.controls.LongitudCodArt.value,
      // MaskCodArt: getMaskByFormat(
      //   this.configGroup.controls.IdFormatoCodArt.value,
      //   Number(this.configGroup.controls.LongitudCodArt.value)
      // ),
      //SP SINWEB-949
      ComprobanteFilterVendZonaCliente: this.configGroup.controls.ComprobanteFilterVendZonaCliente.value,
      ComprobanteVendPred: this.configGroup.controls.ComprobanteVendPred.value,
      ComprobanteCanalPred: this.configGroup.controls.ComprobanteCanalPred.value,
      //SP SAD-113
      VerImagenArticulo: this.configGroup.controls.VerImagenArticulo.value
    };
    this.configGralService.guardarConfigGral(config).subscribe(resp => {
      if (resp) {
        this.alert.showBasicAlert('Guardado', '', 'success');
        location.reload();
      }
    });
  }
  // SP SINWEB-88 este metodo se llama cuando se guarda la configuracion estando en la tab de produccion
  guardarCondigProd() {
    const config = {
      DepositoO: this.configGroup.controls.DepositoOrigenId.value,
      DepositoP: this.configGroup.controls.DepositoProduccionId.value,
      DepositoD: this.configGroup.controls.DepositoDestinoId.value
    };
    //SINWEB-136 , se agrego observable que recibe lo retornado por el service , si es true dispara alerta
    this.configGralService.guardarConfigProd(config).subscribe(resp => {
      if (resp) {
        this.alert.showBasicAlert('Guardado', '', 'success');
      }
    });
  }
  /**
   * SP SINWEB-350 nuevo metodo para guardar la config de servicios
   */
  guardarConfigSrv() {
    const config = {
      FamiliaArtSrv: this.configGroup.controls.FamiliaArtSrvId.value
    };
    this.configGralService.guardarCondigSrv(config).subscribe(resp => {
      if (resp) {
        this.alert.showBasicAlert('Guardado', '', 'success');
      }
    });
  }
  //
  guardarCondigWeb() {
    // MC SINWEB-620 Se mueve la lógica al método de Plataformas de pago
  }
  /**
   * SP SINWEB-679 nuevo metodo para guardar la config de estadistica
   */
  guardarConfigEst() {
    const config = {
      OrdTipo: this.configGroup.controls.OrdTipo.value,
      OrdValor: this.configGroup.controls.OrdValor.value,
      VerEnInicio: this.configGroup.controls.VerEnInicio.value,
      VerFavoritos: this.configGroup.controls.VerFavoritos.value,
      ModoVisualTablero: this.configGroup.controls.ModoVisualTablero.value,
      PosFiltroInd: this.configGroup.controls.PosFiltroInd.value
    };
    this.configGralService.guardarConfigEst(config).subscribe(resp => {
      if (resp) {
        this.alert.showBasicAlert('Guardado', '', 'success');
      }
    });
  }
  ver() {
    console.log(this.configGroup);
  }
  guardarConfigPlat() {
    const plataformaML = {
      Nombre: this.plataformaML.Nombre,
      Descripcion: this.plataformaML.Descripcion,
      IdVendedor: this.configGroup.controls.MLVendedorPred.value,
      IdCanal: this.configGroup.controls.MLCanalPred.value,
      AccessToken: this.plataformaML.AccessToken,
      SincManual: this.plataformaML.SincManual,
      IdFamiliaRaiz: this.plataformaML.IdFamiliaRaiz,
      MonedaOriginal: this.plataformaML.MonedaOriginal,
      AplicarDescuentoGeneral: this.plataformaML.AplicarDescuentoGeneral,
      AplicarDescuentoEspecial: this.plataformaML.AplicarDescuentoEspecial,
      IdsDepositos: this.plataformaML.IdsDepositos,
      UtilizaVendedorCliente: this.plataformaML.UtilizaVendedorCliente,
      ApiUrl: this.plataformaML.ApiUrl,
      ModoPorSucursal: this.plataformaML.ModoPorSucursal,
      SincDeleteAt: this.plataformaML.SincDeleteAt,
      AplicarDescGralComp: this.plataformaML.AplicarDescGralComp,
      AplicarDescEspComp: this.plataformaML.AplicarDescEspComp,
      Activo: this.plataformaML.Activo
    };
    const conexionML = {
      UrlApi: this.configGroup.controls.URLApi.value,
      UrlAutorizacion: this.configGroup.controls.URLApiAutorizacion.value,
      UrlToken: this.configGroup.controls.URLSolicitud.value,
      UrlRedireccion: this.configGroup.controls.URLRedireccion.value,
      CostoFijoComision: this.configGroup.controls.CostoFijoComision.value,
      CotaComision: this.configGroup.controls.CotaComision.value,
      PjeBonifReputacionVerde: this.configGroup.controls.PjDecReputacionVerde.value,
      PjeBonifReputacionAmarilla: this.configGroup.controls.PjDecReputacionAmarilla.value,
      MinimoEnvioGratis: this.configGroup.controls.CostoMinimoEnvioGratis.value,
      MontoMinimoPublicacion: this.configGroup.controls.MontoMinimoPublicacion.value
    };
    this.plataformaIntegracionService.putML(plataformaML).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.map)(resp => {
      return resp;
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.switchMap)(resp => {
      if (resp) {
        return this.meliConfiguracionConexionService.editar(conexionML, 1).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.map)(resp2 => {
          return resp2;
        }));
      } else {
        return resp;
      }
    })).subscribe(resp => {
      if (resp) {
        this.alert.showBasicAlert('Guardado', '', 'success');
      }
    });
  }
  //
  actualizarPermisos() {
    const loginPermiso = this.authenticationService.getPermisos(this.currentUser.IdUsrUsuario, this.currentUser.IdSucursal).subscribe(permisos => {
      if (permisos.Succeeded) {
        this.authenticationService.setPermisos(permisos.Data);
        window.location.reload();
        this.alert.showBasicAlert('Permisos actualizados', '', 'success');
      }
    }, error => {
      this.alert.showBasicAlert('Ha sucedido un error en la actualizacion de permisos.', '', 'error');
      //SINWEB-14 Buscamos los permisos de usuario
    });
    this.unsubscribe.push(loginPermiso);
  }
  // SP SINWEB-88 metodo para controlar tab activa
  changeTab(event) {
    this.activeTab = event.nextId;
  }
  setValor(control, event) {
    this.configGroup.controls[control].setValue(event);
    this.configGroup.controls[control].markAsTouched();
  }
  // MC SINWEB-485 Prepara los datos para mostrarlos en la parte de Avanzada --> Información
  prepareAdvInfoData() {
    // Si no esta en modo desarrollo determino el 'activo' usando lo local
    if (!this.modoDesarrollo) {
      this.modulos = this.modulos.map(m => ({
        ...m,
        activo: this.authService.hasModulo(m.id)
      }));
    }
    Object.entries(this.config.config.modulos).forEach(([key, value]) => {
      const i = this.modulos.findIndex(m => m.id === value.id);
      if (i !== -1) {
        if (this.modoDesarrollo) this.modulos[i].activo = value.activo;
        // La version la tengo que sacar si o si del page.json
        this.modulos[i].version = value.version;
      }
    });
    this.modulos.sort((a, b) => a.nombre.localeCompare(b.nombre));
    this.advInfoForm.patchValue({
      cliente_nombre: this.config.config.cliente.nombre,
      cliente_serial: this.authService.decryptLicencia(this.config.config.cliente.serial),
      api_server: this.config.config.servidor.api_server,
      api_gpo: this.config.config.servidor.api_gpo,
      api_integra: this.config.config.servidor.api_integra,
      url_imagenes: this.config.config.servidor.url_img
    });
    this.advInfoForm.disable();
  }
  resetValorOrd() {
    if (this.configGroup.controls.OrdTipo.value == 'T') {
      this.configGroup.controls.OrdValor.setValue('D');
    } else {
      this.configGroup.controls.OrdValor.setValue('asc');
    }
  }
  static #_ = this.ɵfac = function ConfiguracionComponent_Factory(t) {
    return new (t || ConfiguracionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_core_services_core_deposito_service__WEBPACK_IMPORTED_MODULE_3__.DepositoService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_18__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_5__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_6__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_19__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_web_plataforma_integracion_service__WEBPACK_IMPORTED_MODULE_7__.PlataformaIntegracionService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_8__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_9__.CanalService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_web_meli_configuracion_conexion_services__WEBPACK_IMPORTED_MODULE_10__.MeliConfiguracionConexionService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_core_familia_articulo_service__WEBPACK_IMPORTED_MODULE_11__.FamiliaArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineComponent"]({
    type: ConfiguracionComponent,
    selectors: [["app-configuracion"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵProvidersFeature"]([_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService, src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService])],
    decls: 33,
    vars: 10,
    consts: [[1, "row", "justify-content-center"], [1, "col-xl-9"], [1, "card"], [1, "card-body"], [1, "row", "mb-4"], [1, "col-6", "col-md-10", "align-self-center"], [1, "card-title"], [1, "col-6", "col-md-2", "text-end"], [1, "btn", "btn-success", 3, "disabled", "click"], [1, "row", 3, "formGroup"], ["data-cy", "config-menu", 1, "col-md-3"], ["ngbNav", "", 1, "nav-pills", "flex-column", 3, "activeId", "navChange"], ["verticalNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 1, "mb-2"], [1, "d-block"], [1, "bx", "bx-cog", "m-2"], ["ngbNavContent", ""], [1, "bx", "bx-slider", "m-2"], [3, "ngbNavItem", 4, "ngIf"], [1, "col-md-9"], [3, "ngbNavOutlet"], [1, "col"], [1, "mt-4"], ["ngbAccordion", "", 3, "closeOthers"], ["accordion", "ngbAccordion"], ["ngbAccordionItem", "", 3, "collapsed"], ["ngbAccordionHeader", "", 1, "text-black"], ["ngbAccordionButton", ""], ["ngbAccordionCollapse", ""], ["ngbAccordionBody", ""], [1, "p-2"], [1, "form-check", "form-switch", "form-switch-lg", "d-flex", "align-items-center", "gap-1"], ["styleClass", "form-check-input", "inputId", "checkEstados", "formControlName", "RecEst", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados", 1, "form-check-label", "text-muted", "align-self-center"], ["ngbTooltip", "Deshabilitado por rechazo de cookies", "class", "bx bx-info-circle font-size-20", 4, "ngIf"], [1, "form-check", "form-switch", "form-switch-lg", "d-flex", "align-items-center", "gap-1", "mt-2"], ["styleClass", "form-check-input", "inputId", "checkEstados4", "formControlName", "DarkMode", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados4", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "checkEstados5", "formControlName", "NotifRealtime", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados5", 1, "form-check-label", "text-muted", "align-self-center"], [1, "col-12", "col-lg-6", "col-xl-4", "my-2"], ["formControlName", "MenuPos", 1, "form-select"], ["value", "S"], ["value", "N"], ["formControlName", "MenuOrden", 1, "form-select"], [1, "my-2"], [1, "btn", "btn-success", 3, "click"], ["ngbTooltip", "Deshabilitado por rechazo de cookies", 1, "bx", "bx-info-circle", "font-size-20"], ["class", "form-check form-switch form-switch-lg d-flex align-items-center gap-1 mt-2"], ["styleClass", "form-check-input", "inputId", "checkEstados6", "formControlName", "WidgetsAUT", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados6", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "checkEstados7", "formControlName", "WidgetsPRD", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados7", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "checkEstados8", "formControlName", "WidgetsRMA", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados8", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "checkEstados9", "formControlName", "WidgetsSRV", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados9", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "checkEstados10", "formControlName", "WidgetsEST", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados10", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "checkEstados11", "formControlName", "ComprobanteSerie", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados11", 1, "form-check-label", "text-muted", "align-self-center"], ["ngbTooltip", "Permite seguir cargando comprobantes en serie", 1, "bx", "bx-info-circle", "font-size-20"], ["styleClass", "form-check-input", "inputId", "checkEstados12", "formControlName", "ComprobanteNuevaPagina", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados12", 1, "form-check-label", "text-muted", "align-self-center"], ["ngbTooltip", "Al habilitar esta opci\u00F3n, la carga de comprobante se abrir\u00E1 en una nueva pesta\u00F1a", 1, "bx", "bx-info-circle", "font-size-20"], ["styleClass", "form-check-input", "inputId", "checkEstados13", "formControlName", "ComprobanteFilterVendZonaCliente", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados13", 1, "form-check-label", "text-muted", "align-self-center"], ["ngbTooltip", "Filtra los vendedores seg\u00FAn la zona del cliente seleccionado", 1, "bx", "bx-info-circle", "font-size-20"], ["styleClass", "form-check-input", "inputId", "checkEstados14", "formControlName", "VerImagenArticulo", "trueValue", "S", "falseValue", "N", 3, "disabled"], ["for", "checkEstados14", 1, "form-check-label", "text-muted", "align-self-center"], ["ngbTooltip", "Ver im\u00E1genes del art\u00EDculo", 1, "bx", "bx-info-circle", "font-size-20"], [1, "row", "gap-1"], [1, "form-label", "text-muted"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["ngbAccordionHeader", ""], ["ngbAccordionItem", ""], [1, "row"], [1, "col-lg-6", 3, "formGroup"], [1, "mb-4"], [1, "col-lg-3"], [1, "form-label"], [1, "mb-sm-4", "py-3"], ["alt", "logo", 1, "img-fluid", 3, "src"], [1, "col-lg-9"], ["type", "text", "formControlName", "cliente_nombre", 1, "form-control", "form-control-solid", "mb-2"], ["type", "text", "formControlName", "cliente_serial", 1, "form-control", "form-control-solid"], [1, "mt-5", "mb-4"], [1, "col-12"], ["type", "text", "formControlName", "api_server", 1, "form-control", "form-control-solid", "mb-2"], ["type", "text", "formControlName", "api_gpo", 1, "form-control", "form-control-solid", "mb-2"], ["type", "text", "formControlName", "api_integra", 1, "form-control", "form-control-solid", "mb-2"], ["type", "text", "formControlName", "url_imagenes", 1, "form-control", "form-control-solid"], [1, "col-lg-6"], [1, "row", "mt-5", "mt-lg-0"], [1, "col-xl-4", "col-lg-6", "col-md-6"], [1, "card", 2, "min-height", "170px", 3, "ngClass"], [1, "card-body", "text-center"], [1, "fw-bold", "mb-1", 2, "font-size", "11px"], ["class", "col-xl-4 col-lg-6 col-md-6"], [1, "bx", "bx-line-chart", "m-2"], [1, "form-group", "gap-1", 3, "formGroup"], [1, "row", "mb-2"], ["formControlName", "VerEnInicio", 1, "form-select"], ["value", "P"], ["value", "F"], ["value", "I"], [1, "col-lg-8"], [1, "input-group"], [1, "input-group-text", "text-muted"], ["formControlName", "OrdTipo", 1, "form-select", 3, "change"], ["value", "T"], ["formControlName", "OrdValor", 1, "form-select"], [1, "row", "mt-3"], [1, "col-lg-6", "ps-4"], ["styleClass", "form-check-input", "inputId", "verFavoritos", "formControlName", "VerFavoritos", "trueValue", "S", "falseValue", "N"], ["for", "verFavoritos", 1, "form-check-label", "text-muted", "align-self-center"], ["styleClass", "form-check-input", "inputId", "ModoVisualTablero", "formControlName", "ModoVisualTablero", "trueValue", "M", "falseValue", "C"], ["formControlName", "PosFiltroInd", 1, "form-select"], ["value", "D"], ["value", "E"], ["value", "asc"], ["value", "desc"], [1, "bx", "bx-dollar-circle", "m-2"], ["type", "text", "formControlName", "URLApi", 1, "form-control"], ["type", "text", "formControlName", "URLApiAutorizacion", 1, "form-control"], ["type", "text", "formControlName", "URLSolicitud", 1, "form-control"], ["type", "text", "formControlName", "URLRedireccion", 1, "form-control"], ["title", "Costo fijo de comisi\u00F3n", 3, "value", "isInvalid", "isValid", "templateErrors", "emitValue"], ["title", "Cota de comisi\u00F3n", 3, "value", "isInvalid", "isValid", "templateErrors", "emitValue"], ["title", "%Dec. Reputaci\u00F3n Verde", 3, "value", "isInvalid", "isValid", "templateErrors", "emitValue"], ["title", "%Dec. Reputaci\u00F3n Amarilla", 3, "value", "isInvalid", "isValid", "templateErrors", "emitValue"], ["title", "Costo m\u00EDnimo env\u00EDo gratis", 3, "value", "isInvalid", "isValid", "templateErrors", "emitValue"], ["title", "Costo m\u00EDnimo publicaci\u00F3n", 3, "value", "isInvalid", "isValid", "templateErrors", "emitValue"], [1, "bx", "bx-wrench", "m-2"], [1, "bx", "bx-briefcase-alt-2", "m-2"]],
    template: function ConfiguracionComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "h3", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](7, "Opciones de configuraci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](8, "div", 7)(9, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("click", function ConfiguracionComponent_Template_button_click_9_listener() {
          return ctx.guardarConfig();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](10, " Guardar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](11, "div", 9)(12, "div", 10)(13, "ul", 11, 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵlistener"]("navChange", function ConfiguracionComponent_Template_ul_navChange_13_listener($event) {
          return ctx.changeTab($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](15, "li", 13)(16, "a", 14)(17, "span", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](18, "i", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](19, "General");
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](20, ConfiguracionComponent_ng_template_20_Template, 21, 4, "ng-template", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](21, "li", 13)(22, "a", 14)(23, "span", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](24, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtext"](25, "Avanzada");
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](26, ConfiguracionComponent_ng_template_26_Template, 27, 2, "ng-template", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵtemplate"](27, ConfiguracionComponent_li_27_Template, 6, 1, "li", 19)(28, ConfiguracionComponent_li_28_Template, 6, 1, "li", 19)(29, ConfiguracionComponent_li_29_Template, 6, 1, "li", 19)(30, ConfiguracionComponent_li_30_Template, 6, 1, "li", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementStart"](31, "div", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelement"](32, "div", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵelementEnd"]()()()()()();
      }
      if (rf & 2) {
        const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵreference"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("disabled", ctx.configGroup.invalid);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("formGroup", ctx.configGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("activeId", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavItem", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.estadisticaActivo);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.plataformasActivo);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.produccionActivo);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngIf", ctx.serviciosActivo);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵproperty"]("ngbNavOutlet", _r0);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_20__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_20__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_18__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_18__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgControlStatusGroup, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_21__.InputSwitch, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbAccordionButton, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbAccordionDirective, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbAccordionItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbAccordionHeader, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbAccordionBody, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbAccordionCollapse, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbNavOutlet, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_22__.NgbTooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.FormControlName, _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_12__.InputNumberComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_13__.SelectLoadingComponent, _panel_soporte_verificar_api_verificar_api_component__WEBPACK_IMPORTED_MODULE_14__.VerificarApiComponent, _angular_common__WEBPACK_IMPORTED_MODULE_20__.AsyncPipe]
  });
}

/***/ }),

/***/ 13484:
/*!******************************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-comprobante-compra/seleccionar-comprobante-compra.component.ts ***!
  \******************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarComprobanteCompraComponent: () => (/* binding */ SeleccionarComprobanteCompraComponent)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_comprobanteCompra_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/comprobanteCompra.service */ 40010);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);











function SeleccionarComprobanteCompraComponent_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r4);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r3.borrarComprobante());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function SeleccionarComprobanteCompraComponent_div_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 24)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Comprobante seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_div_15_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r5.EliminarComprobantes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 23);
    _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"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", ctx_r1.comprobante_seleccionado);
  }
}
function SeleccionarComprobanteCompraComponent_div_17_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_div_17_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r13);
      const comprSelect_r11 = restoredCtx.$implicit;
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r12.quitarComprobante(comprSelect_r11));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const comprSelect_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", comprSelect_r11.Numero, " ");
  }
}
function SeleccionarComprobanteCompraComponent_div_17_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_div_17_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r14.EliminarComprobantes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarComprobanteCompraComponent_div_17_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, SeleccionarComprobanteCompraComponent_div_17_div_3_div_1_Template, 3, 2, "div", 31)(2, SeleccionarComprobanteCompraComponent_div_17_div_3_div_2_Template, 3, 1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r7.comprobantes_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r7.comprobantes_seleccionados.length > 1);
  }
}
function SeleccionarComprobanteCompraComponent_div_17_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_div_17_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r16.EliminarComprobantes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " Todos los comprobantes ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarComprobanteCompraComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 27)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Comprobantes seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, SeleccionarComprobanteCompraComponent_div_17_div_3_Template, 3, 2, "div", 28)(4, SeleccionarComprobanteCompraComponent_div_17_div_4_Template, 4, 1, "div", 29);
    _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"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r2.comprobantes_seleccionados.length > 0 && ctx_r2.comprobantes_seleccionados.length < ctx_r2.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r2.comprobantes_seleccionados.length >= ctx_r2.totalItems);
  }
}
/**
 * SP SINWEB-177 componente de seleccion de comprobantes de compra
 */
class SeleccionarComprobanteCompraComponent {
  constructor(comprobanteCompraService, fb, modal) {
    this.comprobanteCompraService = comprobanteCompraService;
    this.fb = fb;
    this.modal = modal;
    this.defaultFiltros = {
      Multiple: false,
      Proveedor: {
        Id: -1,
        Ocultar: false
      },
      Articulo: {
        Id: -1,
        Ocultar: false
      },
      Anulados: {
        Id: 'N',
        Ocultar: false
      }
    };
    this.comprobantesHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.ComprobantesCompraHeader;
    this.comprobantes = [];
    this.comprobante_seleccionado = '';
    this.comprobantes_seleccionados = [];
    this.formGroup = this.fb.group({
      buscar: ['']
    });
    this.subscriptions = [];
    //paginacion comprobantes
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.CANT_SEARCH;
    this.order = 1;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarComprobantes();
  }
  inicializarFiltros() {}
  cargarComprobantes() {
    this.onSearchComprobantes(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarComprobantes() {
    this.page = 1;
    this.cargarComprobantes();
  }
  onSearchComprobantes(datos) {
    const susc = this.comprobanteCompraService.fetch(datos).subscribe(data => {
      this.comprobantes = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //predeterminado
    datos.Anulados = this.filtros.Anulados.Id;
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.orden = order;
    datos.OrdenAscDesc = sentido;
    if (this.formGroup.value.buscar != undefined && this.formGroup.value.buscar != '') {
      datos.Numero = this.formGroup.value.buscar;
    }
    return datos;
  }
  getComprobante() {
    return this.formGroup.controls.buscar.value;
  }
  borrarComprobante() {
    this.formGroup.controls.buscar.reset('');
    this.cargarComprobantes();
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * @param $event
   */
  selectComprobante($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.comprobanteCompraService.fetch(datos).subscribe(res => {
        this.comprobantes_seleccionados = res.Data;
      });
    } else {
      this.comprobantes_seleccionados = $event.rows;
      this.comprobante_seleccionado = this.comprobantes_seleccionados.length == 1 ? this.comprobantes_seleccionados[0].Numero : '';
    }
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo para quitar comprobante
   * @param comprobante
   */
  quitarComprobante(comprobante) {
    this.comprobantes_seleccionados = this.comprobantes_seleccionados.filter(compr => compr.Id !== comprobante.Id);
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo que elimina todos o  el comprobante de la selección
   */
  EliminarComprobantes() {
    this.comprobantes_seleccionados = [];
    this.comprobante_seleccionado = '';
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo emitido al aceptar el modal que emite los seleccionados al componente padre
   */
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdComprobante: this.comprobantes_seleccionados[0].Id,
        Comprobante: '(' + this.comprobantes_seleccionados[0].Numero,
        ComprobanteObj: this.comprobantes_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsComprobantes: this.comprobantes_seleccionados.map(compr => compr.Id),
        Comprobantes: this.comprobantes_seleccionados.map(compr => compr.Numero),
        ComprobantesObj: this.comprobantes_seleccionados
      });
    }
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarComprobantes();
  }
  static #_ = this.ɵfac = function SeleccionarComprobanteCompraComponent_Factory(t) {
    return new (t || SeleccionarComprobanteCompraComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_core_comprobanteCompra_service__WEBPACK_IMPORTED_MODULE_4__.ComprobanteCompraServices), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: SeleccionarComprobanteCompraComponent,
    selectors: [["app-seleccionar-comprobante-compra"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 29,
    vars: 25,
    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"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "mask", "00000-00000000", "formControlName", "buscar", "buscar", "Buscar", "placeholder", "", 1, "form-control", 3, "dropSpecialCharacters", "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["class", "col-xxl-6 col-lg-6", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-6", "col-lg-6"], ["type", "text", "name", "Comprobante", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarComprobanteCompraComponent_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, " Seleccionar Comprobante de Compra ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9, "Buscar por N\u00FAmero");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 8)(11, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("keyup.enter", function SeleccionarComprobanteCompraComponent_Template_input_keyup_enter_11_listener() {
          return ctx.buscarComprobantes();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, SeleccionarComprobanteCompraComponent_a_12_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_Template_a_click_13_listener() {
          return ctx.buscarComprobantes();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](15, SeleccionarComprobanteCompraComponent_div_15_Template, 7, 1, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](17, SeleccionarComprobanteCompraComponent_div_17_Template, 5, 3, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](18, "form", 16)(19, "div", 14)(20, "div", 17)(21, "app-table2", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("lazyLoad", function SeleccionarComprobanteCompraComponent_Template_app_table2_lazyLoad_21_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarComprobanteCompraComponent_Template_app_table2_selectRowsAction_21_listener($event) {
          return ctx.selectComprobante($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](22, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](23, "div", 19)(24, "button", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_Template_button_click_24_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](25, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](26, "button", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarComprobanteCompraComponent_Template_button_click_26_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](27, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](28, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-6 col-lg-6" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("dropSpecialCharacters", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.getComprobante());
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.comprobantes_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("columns", ctx.comprobantesHeader)("datos", ctx.comprobantes)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](22, 21, ctx.comprobanteCompraService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.comprobantes_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.comprobantes_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](27, 23, ctx.comprobanteCompraService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, ngx_mask__WEBPACK_IMPORTED_MODULE_10__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n .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}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 98163:
/*!****************************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-comprobante-venta/seleccionar-comprobante-venta.component.ts ***!
  \****************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarComprobanteVentaComponent: () => (/* binding */ SeleccionarComprobanteVentaComponent)
/* harmony export */ });
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 94664);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_comprobanteVenta_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/comprobanteVenta.service */ 32346);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_tipoComprobante_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/tipoComprobante.service */ 13507);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);













function SeleccionarComprobanteVentaComponent_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r4);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r3.borrarComprobante());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function SeleccionarComprobanteVentaComponent_div_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 25)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Comprobante seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_div_15_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r5.EliminarComprobantes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r1.comprobante_seleccionado);
  }
}
function SeleccionarComprobanteVentaComponent_div_17_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_div_17_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r13);
      const comprSelect_r11 = restoredCtx.$implicit;
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.quitarComprVenta(comprSelect_r11));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const comprSelect_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" (", comprSelect_r11.Numero, ") ");
  }
}
function SeleccionarComprobanteVentaComponent_div_17_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_div_17_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r14.EliminarComprVentas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarComprobanteVentaComponent_div_17_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SeleccionarComprobanteVentaComponent_div_17_div_3_div_1_Template, 3, 2, "div", 32)(2, SeleccionarComprobanteVentaComponent_div_17_div_3_div_2_Template, 3, 1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r7.comprobantes_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r7.comprobantes_seleccionados.length > 1);
  }
}
function SeleccionarComprobanteVentaComponent_div_17_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_div_17_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r16.EliminarComprVentas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Todos los comprobantes ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarComprobanteVentaComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 28)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Comprobantes seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, SeleccionarComprobanteVentaComponent_div_17_div_3_Template, 3, 2, "div", 29)(4, SeleccionarComprobanteVentaComponent_div_17_div_4_Template, 4, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r2.comprobantes_seleccionados.length > 0 && ctx_r2.comprobantes_seleccionados.length < ctx_r2.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r2.comprobantes_seleccionados.length >= ctx_r2.totalItems);
  }
}
/**
 * SP SINWEB-177 componente de seleccion de comprobantes de venta
 */
class SeleccionarComprobanteVentaComponent {
  constructor(comprobanteVentaService, fb, modal, tipoComprobanteService) {
    this.comprobanteVentaService = comprobanteVentaService;
    this.fb = fb;
    this.modal = modal;
    this.tipoComprobanteService = tipoComprobanteService;
    this.filtrosDefault = {
      Multiple: false,
      Cliente: {
        Id: -1,
        Ocultar: false
      },
      Articulo: {
        Id: -1,
        Ocultar: false
      }
    };
    this.comprobantesVentaHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__.ComprobantesVentaHeader;
    this.comprobantes = [];
    this.comprobante_seleccionado = '';
    //SP SINWEB-203 variables para seleccion multipl
    this.comprobantes_seleccionados = [];
    this.formGroup = this.fb.group({
      buscar: ['']
    });
    this.subscriptions = [];
    //paginacion comprobantes
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 3;
    this.sentido = 'Desc';
    this.totalItems = 0;
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.filtrosDefault));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_3__.merge({}, this.filtrosDefault, this.filtros);
    }
    this.cargarComprobantes();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarComprobantes() {
    this.onSearchComprobantes(this.cargarFiltrosComprVenta(this.page, this.order, this.sentido));
  }
  buscarComprobantes() {
    this.page = 1;
    this.cargarComprobantes();
  }
  onSearchComprobantes(datos) {
    let datosTipoComprobante = {
      IdTipoCategoriaComprobante: 3,
      CoeficienteDH: 1,
      MuestraLibroIVAVenta: 'S',
      PageNumber: 1,
      PageSize: 10000
    };
    const susc = this.tipoComprobanteService.fetch(datosTipoComprobante).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.switchMap)(respTipoComprobante => {
      let idsTiposCompr;
      if (respTipoComprobante.Data.length > 0) {
        idsTiposCompr = respTipoComprobante.Data.map(elem => elem.Id).join(',');
      } else {
        idsTiposCompr = '';
      }
      let datosComprobante = {
        IdsTiposComp: idsTiposCompr
      };
      Object.assign(datosComprobante, datos);
      return this.comprobanteVentaService.fetch(datosComprobante, undefined, {
        permisos: false
      });
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.tap)(data => {
      this.comprobantes = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    })).subscribe();
    susc.unsubscribe;
  }
  cargarFiltrosComprVenta(page, order, sentido) {
    let datos = {};
    //predeterminado
    if (this.filtros.Cliente.Id != -1) {
      datos.IdCliente = this.filtros.Cliente.Id;
    }
    if (this.filtros.Articulo.Id != -1) {
      datos.IdsArticulos = this.filtros.Articulo.Id;
    }
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.orden = order;
    datos.SentidoOrden = sentido;
    if (this.formGroup.value.buscar != undefined && this.formGroup.value.buscar != '') {
      datos.Numero = this.formGroup.value.buscar;
    }
    return datos;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarComprobantes();
  }
  selectComprVenta($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltrosComprVenta(-1, this.order, this.sentido);
      this.comprobanteVentaService.fetch(datos).subscribe(res => {
        this.comprobantes_seleccionados = res.Data;
      });
    } else {
      this.comprobantes_seleccionados = $event.rows;
      this.comprobante_seleccionado = this.comprobantes_seleccionados[0].Numero;
    }
  }
  quitarComprVenta(comprobante) {
    this.comprobantes_seleccionados = this.comprobantes_seleccionados.filter(compr => compr.Id !== comprobante.Id);
  }
  /* Metodo que elimina todos o  el articulo de la selección */
  EliminarComprVentas() {
    this.comprobantes_seleccionados = [];
    this.comprobante_seleccionado = '';
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdComprobante: this.comprobantes_seleccionados[0].Id,
        Comprobante: this.comprobantes_seleccionados[0].Numero,
        ComprobanteObj: this.comprobantes_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsComprobantes: this.comprobantes_seleccionados.map(compr => compr.Id),
        Comprobantes: this.comprobantes_seleccionados.map(compr => compr.Numero),
        ComprobantesObj: this.comprobantes_seleccionados
      });
    }
  }
  getComprobante() {
    return this.formGroup.controls.buscar.value;
  }
  borrarComprobante() {
    this.formGroup.controls.buscar.reset('');
    this.cargarComprobantes();
  }
  static #_ = this.ɵfac = function SeleccionarComprobanteVentaComponent_Factory(t) {
    return new (t || SeleccionarComprobanteVentaComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_comprobanteVenta_service__WEBPACK_IMPORTED_MODULE_4__.ComprobanteVentaService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_tipoComprobante_service__WEBPACK_IMPORTED_MODULE_5__.TipoComprobanteService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: SeleccionarComprobanteVentaComponent,
    selectors: [["app-seleccionar-comprobante-venta"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 30,
    vars: 25,
    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"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "mask", "0000-00000000", "formControlName", "buscar", "buscar", "Buscar", "placeholder", "", 1, "form-control", 3, "dropSpecialCharacters", "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["class", "col-xxl-6 col-lg-6", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-6", "col-lg-6"], ["type", "text", "name", "Comprobante", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarComprobanteVentaComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Seleccionar Comprobante de Venta ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](9, "Buscar por n\u00FAmero");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "div", 8)(11, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("keyup.enter", function SeleccionarComprobanteVentaComponent_Template_input_keyup_enter_11_listener() {
          return ctx.buscarComprobantes();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](12, SeleccionarComprobanteVentaComponent_a_12_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_Template_a_click_13_listener() {
          return ctx.buscarComprobantes();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](15, SeleccionarComprobanteVentaComponent_div_15_Template, 7, 1, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](17, SeleccionarComprobanteVentaComponent_div_17_Template, 5, 3, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "form", 16)(19, "div", 14)(20, "div", 17)(21, "div", 18)(22, "app-table2", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("lazyLoad", function SeleccionarComprobanteVentaComponent_Template_app_table2_lazyLoad_22_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarComprobanteVentaComponent_Template_app_table2_selectRowsAction_22_listener($event) {
          return ctx.selectComprVenta($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](23, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](24, "div", 20)(25, "button", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_Template_button_click_25_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](26, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](27, "button", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarComprobanteVentaComponent_Template_button_click_27_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](28, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](29, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-6 col-lg-6" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("dropSpecialCharacters", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.getComprobante());
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.comprobantes_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("columns", ctx.comprobantesVentaHeader)("datos", ctx.comprobantes)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](23, 21, ctx.comprobanteVentaService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.comprobantes_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.comprobantes_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](28, 23, ctx.comprobanteVentaService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatusGroup, ngx_mask__WEBPACK_IMPORTED_MODULE_13__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n .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}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 89730:
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-deposito/seleccionar-deposito.component.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarDepositoComponent: () => (/* binding */ SeleccionarDepositoComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* 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 src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_deposito_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/deposito.service */ 31758);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);












function SeleccionarDepositoComponent_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r4.borrarDepositoNum());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function SeleccionarDepositoComponent_a_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_a_20_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r6.borrarDepositoNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function SeleccionarDepositoComponent_div_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 26)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Dep\u00F3sito seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_div_23_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r8.EliminarDepositos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 25);
    _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__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", ctx_r2.deposito_seleccionado);
  }
}
function SeleccionarDepositoComponent_div_25_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_div_25_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r16);
      const depSelect_r14 = restoredCtx.$implicit;
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r15.quitarDeposito(depSelect_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const depSelect_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"](" (", depSelect_r14.Numero, ") ", depSelect_r14.Nombre, " ");
  }
}
function SeleccionarDepositoComponent_div_25_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_div_25_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r17.EliminarDepositos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarDepositoComponent_div_25_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, SeleccionarDepositoComponent_div_25_div_3_div_1_Template, 3, 3, "div", 33)(2, SeleccionarDepositoComponent_div_25_div_3_div_2_Template, 3, 1, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r10.depositos_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r10.depositos_seleccionados.length > 1);
  }
}
function SeleccionarDepositoComponent_div_25_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_div_25_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r20);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r19.EliminarDepositos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " Todos los dep\u00F3sitos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarDepositoComponent_div_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 29)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Dep\u00F3sitos seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, SeleccionarDepositoComponent_div_25_div_3_Template, 3, 2, "div", 30)(4, SeleccionarDepositoComponent_div_25_div_4_Template, 4, 1, "div", 31);
    _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__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r3.depositos_seleccionados.length > 0 && ctx_r3.depositos_seleccionados.length < ctx_r3.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r3.depositos_seleccionados.length >= ctx_r3.totalItems);
  }
}
class SeleccionarDepositoComponent {
  constructor(depositoService, fb, modal) {
    this.depositoService = depositoService;
    this.fb = fb;
    this.modal = modal;
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      //SECCION FILTROS
      IdSucursal: -1,
      IdEmpresa: -1,
      //SP SINWEB-570 nuevo filtro
      BajaLogica: {
        Id: 'N',
        Ocultar: true
      }
    };
    this.depositos = [];
    this.depositos_seleccionados = [];
    this.deposito_seleccionado = '';
    this.depositosHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.DepositosHeader;
    this.formGroup = this.fb.group({
      buscarNum: [''],
      buscarNom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(100)]
    });
    this.subscriptions = [];
    //paginacion comprobantes
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_2__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarDepositos();
  }
  inicializarFiltros() {
    //TODO AGREGAR FILTROS - CREAR TAREA
  }
  cargarDepositos() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarDepositos() {
    this.page = 1;
    this.cargarDepositos();
  }
  onSearch(datos) {
    const susc = this.depositoService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.depositos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //predeterminado
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.orden = order;
    datos.OrdenAscDesc = sentido;
    if (this.filtros.IdEmpresa && this.filtros.IdEmpresa != -1) {
      datos.IdEmpresa = this.filtros.IdEmpresa;
    }
    if (this.filtros.IdSucursal && this.filtros.IdSucursal != -1) {
      datos.IdSucursal = this.filtros.IdSucursal;
    }
    //SP SINWEB-570 nuevo filtro
    if (this.filtros.BajaLogica != undefined && this.filtros.BajaLogica.Id != '') {
      datos.BajaLogica = this.filtros.BajaLogica.Id;
    }
    if (this.formGroup.value.buscarNum != undefined && this.formGroup.value.buscarNum != '') {
      datos.Numero = this.formGroup.value.buscarNum;
    }
    if (this.formGroup.value.buscarNom != undefined && this.formGroup.value.buscarNom != '') {
      datos.Nombre = this.formGroup.value.buscarNom;
    }
    return datos;
  }
  getDepositoNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  getDepositoNum() {
    return this.formGroup.controls.buscarNum.value;
  }
  borrarDepositoNum() {
    this.formGroup.controls.buscarNum.reset('');
    this.cargarDepositos();
  }
  borrarDepositoNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarDepositos();
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo para seleccionar deposito
   * @param $event
   */
  selectDeposito($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.depositoService.fetch(datos).subscribe(res => {
        this.depositos_seleccionados = res.Data;
      });
    } else {
      this.depositos_seleccionados = $event.rows;
      this.deposito_seleccionado = this.depositos_seleccionados.length == 1 ? '(' + this.depositos_seleccionados[0].Numero + ') ' + this.depositos_seleccionados[0].Nombre : '';
    }
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo para quitar deposito
   * @param deposito
   */
  quitarDeposito(deposito) {
    this.depositos_seleccionados = this.depositos_seleccionados.filter(dep => dep.Id !== deposito.Id);
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo que elimina todos o  el articulo de la selección
   */
  EliminarDepositos() {
    this.depositos_seleccionados = [];
    this.deposito_seleccionado = '';
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo emitido al aceptar el modal que emite los seleccionados al componente padre
   */
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdDeposito: this.depositos_seleccionados[0].Id,
        Deposito: '(' + this.depositos_seleccionados[0].Numero + ') ' + this.depositos_seleccionados[0].Nombre,
        DepositoObj: this.depositos_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsDepositos: this.depositos_seleccionados.map(dep => dep.Id),
        Depositos: this.depositos_seleccionados.map(dep => '(' + dep.Numero + ') ' + dep.Nombre),
        DepositosObj: this.depositos_seleccionados
      });
    }
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarDepositos();
  }
  static #_ = this.ɵfac = function SeleccionarDepositoComponent_Factory(t) {
    return new (t || SeleccionarDepositoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_core_deposito_service__WEBPACK_IMPORTED_MODULE_4__.DepositoService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: SeleccionarDepositoComponent,
    selectors: [["app-seleccionar-deposito"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 38,
    vars: 26,
    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"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "mask", "0*", "maxlength", "6", "formControlName", "buscarNum", "placeholder", "", 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"], ["type", "text", "formControlName", "buscarNom", "placeholder", "", "maxlength", "100", 1, "form-control", 3, "keyup.enter"], ["class", "col-xxl-3 col-lg-3", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-3", "col-lg-3"], ["type", "text", "name", "Deposito", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarDepositoComponent_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, " Seleccionar Dep\u00F3sito ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9, "Buscar por n\u00FAmero");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 8)(11, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("keyup.enter", function SeleccionarDepositoComponent_Template_input_keyup_enter_11_listener() {
          return ctx.buscarDepositos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, SeleccionarDepositoComponent_a_12_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_Template_a_click_13_listener() {
          return ctx.buscarDepositos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "div", 6)(16, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](17, "Buscar por nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](18, "div", 8)(19, "input", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("keyup.enter", function SeleccionarDepositoComponent_Template_input_keyup_enter_19_listener() {
          return ctx.buscarDepositos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](20, SeleccionarDepositoComponent_a_20_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](21, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_Template_a_click_21_listener() {
          return ctx.buscarDepositos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](22, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](23, SeleccionarDepositoComponent_div_23_Template, 7, 1, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](24, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](25, SeleccionarDepositoComponent_div_25_Template, 5, 3, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](26, "form", 17)(27, "div", 15)(28, "div", 18)(29, "div", 19)(30, "app-table2", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("lazyLoad", function SeleccionarDepositoComponent_Template_app_table2_lazyLoad_30_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarDepositoComponent_Template_app_table2_selectRowsAction_30_listener($event) {
          return ctx.selectDeposito($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](31, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](32, "div", 21)(33, "button", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_Template_button_click_33_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](34, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](35, "button", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarDepositoComponent_Template_button_click_35_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](36, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](37, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-3 col-lg-3" : "col-xxl-6 col-lg-6");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.getDepositoNum());
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-5 col-lg-5" : "col-xxl-6 col-lg-6");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.getDepositoNom());
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.depositos_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("columns", ctx.depositosHeader)("datos", ctx.depositos)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](31, 22, ctx.depositoService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.depositos_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.depositos_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](36, 24, ctx.depositoService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.MaxLengthValidator, ngx_mask__WEBPACK_IMPORTED_MODULE_10__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 53317:
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-empleado/seleccionar-empleado.component.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarEmpleadoComponent: () => (/* binding */ SeleccionarEmpleadoComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);












function SeleccionarEmpleadoComponent_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r4.borrarEmpleadoCod());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function SeleccionarEmpleadoComponent_a_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_a_20_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r6.borrarEmpleadoNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function SeleccionarEmpleadoComponent_div_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 26)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Empleado seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_div_23_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r8.EliminarEmpleados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 25);
    _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__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", ctx_r2.empleado_seleccionado);
  }
}
function SeleccionarEmpleadoComponent_div_25_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_div_25_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r16);
      const empSelect_r14 = restoredCtx.$implicit;
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r15.quitarEmpleado(empSelect_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const empSelect_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"](" (", empSelect_r14.Codigo, ") ", empSelect_r14.Nombre, " ");
  }
}
function SeleccionarEmpleadoComponent_div_25_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_div_25_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r17.EliminarEmpleados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarEmpleadoComponent_div_25_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, SeleccionarEmpleadoComponent_div_25_div_3_div_1_Template, 3, 3, "div", 33)(2, SeleccionarEmpleadoComponent_div_25_div_3_div_2_Template, 3, 1, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r10.empleados_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r10.empleados_seleccionados.length > 1);
  }
}
function SeleccionarEmpleadoComponent_div_25_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_div_25_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r20);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r19.EliminarEmpleados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " Todos los empleados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarEmpleadoComponent_div_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 29)(1, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Empleados seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, SeleccionarEmpleadoComponent_div_25_div_3_Template, 3, 2, "div", 30)(4, SeleccionarEmpleadoComponent_div_25_div_4_Template, 4, 1, "div", 31);
    _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__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r3.empleados_seleccionados.length > 0 && ctx_r3.empleados_seleccionados.length < ctx_r3.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r3.empleados_seleccionados.length >= ctx_r3.totalItems);
  }
}
class SeleccionarEmpleadoComponent {
  constructor(empleadoService, fb, modal) {
    this.empleadoService = empleadoService;
    this.fb = fb;
    this.modal = modal;
    this.defaultFiltros = {
      Multiple: false,
      IdEmpresa: -1,
      IdSucursal: -1,
      TipoEmpleado: {
        Id: -1,
        Ocultar: false
      },
      PermiteCobrar: '',
      PermiteVender: ''
    };
    this.empleadosHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__.EmpleadosHeader;
    this.empleados = [];
    this.empleados_seleccionados = [];
    this.empleado_seleccionado = '';
    this.formGroup = this.fb.group({
      buscarCod: [''],
      buscarNom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(50)],
      tipoEmp: ['']
    });
    this.subscriptions = [];
    //paginacion comprobantes
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_3__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarEmpleados();
  }
  inicializarFiltros() {}
  cargarEmpleados() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarEmpleados() {
    this.page = 1;
    this.cargarEmpleados();
  }
  onSearch(datos) {
    const susc = this.empleadoService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.empleados = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //predeterminado
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.BajaLogica = 'N';
    if (this.formGroup.value.buscarCod != undefined && this.formGroup.value.buscarCod != '') {
      datos.Codigo = this.formGroup.value.buscarCod;
    }
    if (this.formGroup.value.buscarNom != undefined && this.formGroup.value.buscarNom != '') {
      datos.Nombre = this.formGroup.value.buscarNom;
    }
    if (this.filtros.IdEmpresa && this.filtros.IdEmpresa != -1) {
      datos.IdEmpresa = this.filtros.IdEmpresa;
    }
    if (this.filtros.IdSucursal && this.filtros.IdSucursal != -1) {
      datos.IdSucursal = this.filtros.IdSucursal;
    }
    if (this.filtros.TipoEmpleado.Id && this.filtros.TipoEmpleado.Id != -1) {
      datos.IdTipoEmpleado = this.filtros.TipoEmpleado.Id;
    }
    if (this.filtros.PermiteCobrar != undefined && this.filtros.PermiteCobrar != '') {
      datos.PermiteCobrar = this.filtros.PermiteCobrar;
    }
    if (this.filtros.PermiteVender != undefined && this.filtros.PermiteVender != '') {
      datos.PermiteVender = this.filtros.PermiteVender;
    }
    return datos;
  }
  getEmpleadoNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  getEmpleadoCod() {
    return this.formGroup.controls.buscarCod.value;
  }
  borrarEmpleadoCod() {
    this.formGroup.controls.buscarCod.reset('');
    this.cargarEmpleados();
  }
  borrarEmpleadoNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarEmpleados();
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * @param $event
   */
  selectEmpleado($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.empleadoService.fetch(datos).subscribe(res => {
        this.empleados_seleccionados = res.Data;
      });
    } else {
      this.empleados_seleccionados = $event.rows;
      this.empleado_seleccionado = this.empleados_seleccionados.length == 1 ? '(' + this.empleados_seleccionados[0].Codigo + ') ' + this.empleados_seleccionados[0].Nombre : '';
    }
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo para quitar empleado
   * @param empleado
   */
  quitarEmpleado(empleado) {
    this.empleados_seleccionados = this.empleados_seleccionados.filter(emp => emp.Id !== empleado.Id);
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo que elimina todos o  el empleado de la selección
   */
  EliminarEmpleados() {
    this.empleados_seleccionados = [];
    this.empleado_seleccionado = '';
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo emitido al aceptar el modal que emite los seleccionados al componente padre
   */
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdEmpleado: this.empleados_seleccionados[0].Id,
        Empleado: '(' + this.empleados_seleccionados[0].Codigo + ') ' + this.empleados_seleccionados[0].Nombre,
        EmpleadoObj: this.empleados_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsEmpleados: this.empleados_seleccionados.map(emp => emp.Id),
        Empleados: this.empleados_seleccionados.map(emp => '(' + emp.Codigo + ') ' + emp.Nombre),
        EmpleadosObj: this.empleados_seleccionados
      });
    }
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarEmpleados();
  }
  static #_ = this.ɵfac = function SeleccionarEmpleadoComponent_Factory(t) {
    return new (t || SeleccionarEmpleadoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_4__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: SeleccionarEmpleadoComponent,
    selectors: [["app-seleccionar-empleado"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 38,
    vars: 26,
    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"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "mask", "0*", "maxlength", "6", "formControlName", "buscarCod", "placeholder", "", 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"], ["type", "text", "formControlName", "buscarNom", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "keyup.enter"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-4", "col-lg-4"], ["type", "text", "name", "Empleado", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarEmpleadoComponent_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, " Seleccionar Empleado ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9, "Buscar por c\u00F3digo");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 8)(11, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("keyup.enter", function SeleccionarEmpleadoComponent_Template_input_keyup_enter_11_listener() {
          return ctx.buscarEmpleados();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](12, SeleccionarEmpleadoComponent_a_12_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_Template_a_click_13_listener() {
          return ctx.buscarEmpleados();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "div", 6)(16, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](17, "Buscar por nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](18, "div", 8)(19, "input", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("keyup.enter", function SeleccionarEmpleadoComponent_Template_input_keyup_enter_19_listener() {
          return ctx.buscarEmpleados();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](20, SeleccionarEmpleadoComponent_a_20_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](21, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_Template_a_click_21_listener() {
          return ctx.buscarEmpleados();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](22, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](23, SeleccionarEmpleadoComponent_div_23_Template, 7, 1, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](24, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](25, SeleccionarEmpleadoComponent_div_25_Template, 5, 3, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](26, "form", 17)(27, "div", 15)(28, "div", 18)(29, "div", 19)(30, "app-table2", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("lazyLoad", function SeleccionarEmpleadoComponent_Template_app_table2_lazyLoad_30_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarEmpleadoComponent_Template_app_table2_selectRowsAction_30_listener($event) {
          return ctx.selectEmpleado($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](31, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](32, "div", 21)(33, "button", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_Template_button_click_33_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](34, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](35, "button", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarEmpleadoComponent_Template_button_click_35_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](36, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](37, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-3 col-lg-3" : "col-xxl-6 col-lg-6");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.getEmpleadoCod());
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-5 col-lg-5" : "col-xxl-6 col-lg-6");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.getEmpleadoNom());
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.empleados_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("columns", ctx.empleadosHeader)("datos", ctx.empleados)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](31, 22, ctx.empleadoService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.empleados_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.empleados_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](36, 24, ctx.empleadoService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.MaxLengthValidator, ngx_mask__WEBPACK_IMPORTED_MODULE_10__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 44973:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-empresa/seleccionar-empresa.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarEmpresaComponent: () => (/* binding */ SeleccionarEmpresaComponent)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/empresa.service */ 10984);
/* harmony import */ var src_app_core_services_core_localidad_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/localidad.service */ 14280);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);











function SeleccionarEmpresaComponent_a_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_a_11_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r4);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r3.borrarRazonSocial());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function SeleccionarEmpresaComponent_div_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24)(1, "label", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Empresa seleccionada");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_div_14_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r5.EliminarEmpresas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r1.empresa_seleccionado);
  }
}
function SeleccionarEmpresaComponent_div_16_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_div_16_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r13);
      const empSelect_r11 = restoredCtx.$implicit;
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.quitarEmpresa(empSelect_r11));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const empSelect_r11 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", empSelect_r11.RazonSocial, " ");
  }
}
function SeleccionarEmpresaComponent_div_16_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_div_16_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r14.EliminarEmpresas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarEmpresaComponent_div_16_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SeleccionarEmpresaComponent_div_16_div_3_div_1_Template, 3, 2, "div", 31)(2, SeleccionarEmpresaComponent_div_16_div_3_div_2_Template, 3, 1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r7.empresas_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r7.empresas_seleccionados.length > 1);
  }
}
function SeleccionarEmpresaComponent_div_16_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_div_16_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r16.EliminarEmpresas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Todos los empresas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarEmpresaComponent_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 27)(1, "label", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Empresas seleccionadas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, SeleccionarEmpresaComponent_div_16_div_3_Template, 3, 2, "div", 28)(4, SeleccionarEmpresaComponent_div_16_div_4_Template, 4, 1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r2.empresas_seleccionados.length > 0 && ctx_r2.empresas_seleccionados.length < ctx_r2.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r2.empresas_seleccionados.length >= ctx_r2.totalItems);
  }
}
class SeleccionarEmpresaComponent {
  constructor(fb, modal, modalService, empresaService, localidadService) {
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.empresaService = empresaService;
    this.localidadService = localidadService;
    this.defaultFiltros = {
      Multiple: false
    };
    this.empresas = [];
    this.empresas_seleccionados = [];
    this.localidad_seleccionada = -1;
    this.filtro = false;
    this.formGroup = this.fb.group({
      razonSocial: [''],
      idLocalidad: [-1]
    });
    this.empresasHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.EmpresasHeader;
    this.subscriptions = [];
    //paginacion empresas
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.CANT_SEARCH;
    this.order = 1;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarEmpresas();
  }
  inicializarFiltros() {}
  cargarLocalidades() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.localidadService.fetch(datos).subscribe(resp => {
      this.localidades = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarEmpresas() {
    this.onSearchEmpresas(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarEmpresas() {
    this.page = 1;
    this.cargarEmpresas();
  }
  onSearchEmpresas(datos) {
    const susc = this.empresaService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.empresas = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {
    this.subscriptions.push(this.formGroup.controls.idLocalidad.valueChanges.subscribe(localidad => {
      this.localidad_seleccionada = localidad;
      this.page = 1;
      this.cargarEmpresas();
    }));
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //predeterminado
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    datos.orden = order;
    datos.OrdenAscDesc = sentido;
    //busqueda
    if (this.formGroup.get('razonSocial').value != '') {
      datos.RazonSocial = this.formGroup.get('razonSocial').value;
    }
    return datos;
  }
  getRazonSocial() {
    return this.formGroup.get('razonSocial').value;
  }
  borrarRazonSocial() {
    this.formGroup.get('razonSocial').reset('');
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  selectEmpresa($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.empresaService.fetch(datos).subscribe(res => {
        this.empresas_seleccionados = res.Data;
      });
    } else {
      this.empresas_seleccionados = $event.rows;
      this.empresa_seleccionado = this.empresas_seleccionados.length == 1 ? this.empresas_seleccionados[0].RazonSocial : '';
    }
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo para quitar empresa
   * @param empresa
   */
  quitarEmpresa(empresa) {
    this.empresas_seleccionados = this.empresas_seleccionados.filter(emp => emp.Id !== empresa.Id);
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo que elimina todos o  el empresa de la selección
   */
  EliminarEmpresas() {
    this.empresas_seleccionados = [];
    this.empresa_seleccionado = '';
  }
  /**
   * SP SINWEB-394 cambios en el metodo para funcionar con la nueva tabla
   * Metodo emitido al aceptar el modal que emite los seleccionados al componente padre
   */
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdEmpresa: this.empresas_seleccionados[0].Id,
        Empresa: this.empresas_seleccionados[0].RazonSocial,
        EmpresaObj: this.empresas_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsEmpresas: this.empresas_seleccionados.map(emp => emp.Id),
        Empresas: this.empresas_seleccionados.map(emp => emp.RazonSocial),
        EmpresasObj: this.empresas_seleccionados
      });
    }
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarEmpresas();
  }
  static #_ = this.ɵfac = function SeleccionarEmpresaComponent_Factory(t) {
    return new (t || SeleccionarEmpresaComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_4__.EmpresaService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_localidad_service__WEBPACK_IMPORTED_MODULE_5__.LocalidadService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: SeleccionarEmpresaComponent,
    selectors: [["app-seleccionar-empresa"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 29,
    vars: 24,
    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, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "razonSocial", "placeholder", "", 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"], ["class", "col-xxl-3 col-lg-3", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-3", "col-lg-3"], ["type", "text", "name", "Empresa", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarEmpresaComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Seleccionar Empresa ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, "Buscar por Raz\u00F3n Social");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "div", 7)(10, "input", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("keyup.enter", function SeleccionarEmpresaComponent_Template_input_keyup_enter_10_listener() {
          return ctx.buscarEmpresas();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](11, SeleccionarEmpresaComponent_a_11_Template, 2, 0, "a", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](12, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_Template_a_click_12_listener() {
          return ctx.buscarEmpresas();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](13, "i", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](14, SeleccionarEmpresaComponent_div_14_Template, 7, 1, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](15, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](16, SeleccionarEmpresaComponent_div_16_Template, 5, 3, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](17, "form", 15)(18, "div", 13)(19, "div", 16)(20, "div", 17)(21, "app-table2", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("lazyLoad", function SeleccionarEmpresaComponent_Template_app_table2_lazyLoad_21_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarEmpresaComponent_Template_app_table2_selectRowsAction_21_listener($event) {
          return ctx.selectEmpresa($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](22, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](23, "div", 19)(24, "button", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_Template_button_click_24_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](25, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](26, "button", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarEmpresaComponent_Template_button_click_26_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](27, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](28, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-3 col-lg-3" : "col-xxl-5 col-lg-5");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.getRazonSocial());
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.empresas_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("columns", ctx.empresasHeader)("datos", ctx.empresas)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](22, 20, ctx.empresaService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.empresas_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.empresas_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](27, 22, ctx.empresaService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_10__.AsyncPipe],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 18996:
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-formato-notif/seleccionar-formato-notif.component.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarFormatoNotifComponent: () => (/* binding */ SeleccionarFormatoNotifComponent)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* 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_seleccionar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var src_app_pages_notificaciones_configuracion_notificacion_selector_formato_notificacion_selector_formato_notificacion_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/notificaciones/configuracion-notificacion/selector-formato-notificacion/selector-formato-notificacion.component */ 94427);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_notificaciones_notifiacionFormato_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/notificaciones/notifiacionFormato.service */ 1278);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);










function SeleccionarFormatoNotifComponent_div_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 15)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Formato de notif. seleccionada");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "input", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarFormatoNotifComponent_div_6_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r2.EliminarTiposNotif());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", ctx_r0.formatoNotif_seleccionado);
  }
}
function SeleccionarFormatoNotifComponent_div_8_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarFormatoNotifComponent_div_8_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r10);
      const formatoNotifSelect_r8 = restoredCtx.$implicit;
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r9.quitarTipoNotif(formatoNotifSelect_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const formatoNotifSelect_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", formatoNotifSelect_r8.Id, " ");
  }
}
function SeleccionarFormatoNotifComponent_div_8_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarFormatoNotifComponent_div_8_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r11.EliminarTiposNotif());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarFormatoNotifComponent_div_8_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, SeleccionarFormatoNotifComponent_div_8_div_3_div_1_Template, 3, 2, "div", 25)(2, SeleccionarFormatoNotifComponent_div_8_div_3_div_2_Template, 3, 1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r4.formatosNotif_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r4.formatosNotif_seleccionados.length > 1);
  }
}
function SeleccionarFormatoNotifComponent_div_8_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div")(1, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarFormatoNotifComponent_div_8_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r13.EliminarTiposNotif());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " Todos los formatos de notificaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarFormatoNotifComponent_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 21)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, "Formatos de notif. seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, SeleccionarFormatoNotifComponent_div_8_div_3_Template, 3, 2, "div", 22)(4, SeleccionarFormatoNotifComponent_div_8_div_4_Template, 4, 1, "div", 23);
    _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__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.formatosNotif_seleccionados.length > 0 && ctx_r1.formatosNotif_seleccionados.length < ctx_r1.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r1.formatosNotif_seleccionados.length >= ctx_r1.totalItems);
  }
}
class SeleccionarFormatoNotifComponent {
  constructor(formatoNotifService, fb, modal, modalService) {
    this.formatoNotifService = formatoNotifService;
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      Editar: false,
      //SECCION FILTROS
      NotificacionConfigDescripcion: '',
      TipoNotif: -1
      //FIN SECCION FILTROS
    };
    this.formatosNotif = [];
    this.formatosNotif_seleccionados = [];
    this.formatoNotif_seleccionado = '';
    // public marcas:any[];
    // public marcas_seleccionadas:string;
    this.filtro = false;
    this.formatosNotifHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__.FormatosNotifHeader;
    this.formGroup = this.fb.group({
      buscarCod: [''],
      buscarNom: [''],
      condicional: [''],
      reqGen: [''],
      tiposDominio: [[]]
    });
    this.todosOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.subscriptions = [];
    //paginacion formatosNotif
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.CANT_SEARCH;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    //this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarFormatosNotif();
    //this.configuracionFilter();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {}
  cargarFormatosNotif() {
    this.onSearchFormatosNotif(this.cargarFiltrosFormatos(this.page, this.order, this.sentido));
  }
  buscarFormatosNotif() {
    this.page = 1;
    this.cargarFormatosNotif();
  }
  onSearchFormatosNotif(datos) {
    const susc = this.formatoNotifService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.formatosNotif = data.Data;
      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.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarFormatosNotif();
  }
  /**
   * SP SINWEB-360 metodo que inicializa variables de filtros
   */
  inicializarFiltros() {}
  cargarFiltrosFormatos(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    return datos;
  }
  selectoFormatoNotif($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltrosFormatos(-1, this.order, this.sentido);
      this.formatoNotifService.fetch(datos).subscribe(res => {
        this.formatosNotif_seleccionados = res.Data;
      });
    } else {
      this.formatosNotif_seleccionados = $event.rows;
      this.formatoNotif_seleccionado = this.formatosNotif_seleccionados.length == 1 ? this.formatosNotif_seleccionados[0].Id : '';
    }
  }
  quitarFormatoNotif(formato) {
    this.formatosNotif_seleccionados = this.formatosNotif_seleccionados.filter(f => f.Id !== formato.Id);
  }
  /* Metodo que elimina todos o  el elemento de la selección */
  EliminarFormatosNotif() {
    this.formatosNotif_seleccionados = [];
    this.formatoNotif_seleccionado = '';
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdFormatoNotif: this.formatosNotif_seleccionados[0].Id,
        FormatoNotif: this.formatosNotif_seleccionados[0].Id,
        FormatoNotifObj: this.formatosNotif_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsFormatosNotif: this.formatosNotif_seleccionados.map(f => f.Id),
        FormatosNotif: this.formatosNotif_seleccionados.map(f => f.Id),
        FormatosNotifObj: this.formatosNotif_seleccionados
      });
    }
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  editar($event) {
    const modalRef = this.modalService.open(src_app_pages_notificaciones_configuracion_notificacion_selector_formato_notificacion_selector_formato_notificacion_component__WEBPACK_IMPORTED_MODULE_3__.SelectorFormatoNotificacionComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      scrollable: true
    });
    modalRef.componentInstance.idFormato = $event.registro.Id;
    modalRef.componentInstance.descripNotifConfig = this.filtros.NotificacionConfigDescripcion;
    if (this.filtros.TipoNotif != -1) {
      modalRef.componentInstance.idTipoMail = this.filtros.TipoNotif;
    }
    modalRef.result.then(result => {});
  }
  static #_ = this.ɵfac = function SeleccionarFormatoNotifComponent_Factory(t) {
    return new (t || SeleccionarFormatoNotifComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notifiacionFormato_service__WEBPACK_IMPORTED_MODULE_4__.NotificacionFormatoServices), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: SeleccionarFormatoNotifComponent,
    selectors: [["app-seleccionar-formato-notif"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 21,
    vars: 23,
    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, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], ["class", "col-xxl-3 col-lg-3", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "edit", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "emitAction", "selectRowsAction"], [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-xxl-3", "col-lg-3"], [1, "form-label"], [1, "input-group"], ["type", "text", "name", "TipoNotif", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "bx", "bx-x"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarFormatoNotifComponent_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, " Seleccionar Formato de Notificaci\u00F3n ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "div", 3)(5, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](6, SeleccionarFormatoNotifComponent_div_6_Template, 7, 1, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](8, SeleccionarFormatoNotifComponent_div_8_Template, 5, 3, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "form", 8)(10, "div", 6)(11, "div", 9)(12, "div", 10)(13, "app-table2", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("lazyLoad", function SeleccionarFormatoNotifComponent_Template_app_table2_lazyLoad_13_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function SeleccionarFormatoNotifComponent_Template_app_table2_emitAction_13_listener($event) {
          return ctx.editar($event);
        })("selectRowsAction", function SeleccionarFormatoNotifComponent_Template_app_table2_selectRowsAction_13_listener($event) {
          return ctx.selectoFormatoNotif($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](14, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "div", 12)(16, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarFormatoNotifComponent_Template_button_click_16_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](17, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](18, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function SeleccionarFormatoNotifComponent_Template_button_click_18_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](19, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](20, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.formatosNotif_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("columns", ctx.formatosNotifHeader)("datos", ctx.formatosNotif)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](14, 19, ctx.formatoNotifService.isLoading$))("acciones", !ctx.filtros.Multiple && ctx.filtros.Editar)("edit", !ctx.filtros.Multiple && ctx.filtros.Editar)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.formatosNotif_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.formatosNotif_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](19, 21, ctx.formatoNotifService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_5__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_9__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n.fw-500[_ngcontent-%COMP%] {\n  font-weight: 500;\n}\n\n .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}"]
  });
}

/***/ }),

/***/ 20224:
/*!****************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-marca/seleccionar-marca.component.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarMarcaComponent: () => (/* binding */ SeleccionarMarcaComponent)
/* harmony export */ });
/* 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_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_marca_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/marca.service */ 73364);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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 _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);









function SeleccionarMarcaComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 16)(1, "label", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Marca seleccionada");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "input", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SeleccionarMarcaComponent_div_7_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r2.EliminarMarcas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](6, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", ctx_r0.marca_seleccionado);
  }
}
function SeleccionarMarcaComponent_div_9_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SeleccionarMarcaComponent_div_9_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r10);
      const marcaSelect_r8 = restoredCtx.$implicit;
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r9.quitarArticulo(marcaSelect_r8));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const marcaSelect_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" (", marcaSelect_r8.Codigo, ") ", marcaSelect_r8.Nombre, " ");
  }
}
function SeleccionarMarcaComponent_div_9_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SeleccionarMarcaComponent_div_9_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r11.EliminarMarcas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarMarcaComponent_div_9_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, SeleccionarMarcaComponent_div_9_div_3_div_1_Template, 3, 3, "div", 26)(2, SeleccionarMarcaComponent_div_9_div_3_div_2_Template, 3, 1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r4.marcas_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.marcas_seleccionados.length > 1);
  }
}
function SeleccionarMarcaComponent_div_9_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SeleccionarMarcaComponent_div_9_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r13.EliminarMarcas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Todos las marcas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarMarcaComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 22)(1, "label", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Marcas seleccionadas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, SeleccionarMarcaComponent_div_9_div_3_Template, 3, 2, "div", 23)(4, SeleccionarMarcaComponent_div_9_div_4_Template, 4, 1, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.marcas_seleccionados.length > 0 && ctx_r1.marcas_seleccionados.length < ctx_r1.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.marcas_seleccionados.length >= ctx_r1.totalItems);
  }
}
class SeleccionarMarcaComponent {
  constructor(marcaService, fb, modal) {
    this.marcaService = marcaService;
    this.fb = fb;
    this.modal = modal;
    this.defaultFiltros = {
      Multiple: false,
      Bajas: {
        Id: 'N',
        Ocultar: true
      }
    };
    this.marcasHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__.MarcasHeader;
    this.marcas = [];
    this.marcas_seleccionados = [];
    this.formGroup = this.fb.group({
      // buscarCod: [''],
      // buscarNom: ['']
    });
    this.subscriptions = [];
    //paginacion comprobantes
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.cargarMarcas();
  }
  cargarMarcas() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  onSearch(datos) {
    const susc = this.marcaService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.marcas = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //predeterminado
    if (this.filtros.Bajas.Id === 'S') {
      datos.IncluirBajas = this.filtros.Bajas.Id;
    }
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    return datos;
  }
  /**
   * SP SINWEB-394
   * @param $event
   */
  selectMarca($event) {
    if ($event.selectTodos) {
      //SP agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.marcaService.fetch(datos).subscribe(res => {
        this.marcas_seleccionados = res.Data;
      });
    } else {
      this.marcas_seleccionados = $event.rows;
      this.marca_seleccionado = this.marcas_seleccionados.length == 1 ? '(' + this.marcas_seleccionados[0].Codigo + ') ' + this.marcas_seleccionados[0].Nombre : '';
    }
  }
  /**
   *
   * @param marca
   */
  quitarMarca(marca) {
    this.marcas_seleccionados = this.marcas_seleccionados.filter(m => m.Id !== marca.Id);
  }
  /* Metodo que elimina todos o  la marca de la selección */
  EliminarMarcas() {
    this.marcas_seleccionados = [];
    this.marca_seleccionado = '';
  }
  /**
   * Metodo que selecciona la marca y lo devuelve al componente padre
   */
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdMarca: this.marcas_seleccionados[0].Id,
        Marca: '(' + this.marcas_seleccionados[0].Codigo + ') ' + this.marcas_seleccionados[0].Nombre,
        MarcaObj: this.marcas_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsMarcas: this.marcas_seleccionados.map(art => art.Id),
        Marcas: this.marcas_seleccionados.map(art => '(' + art.Codigo + ') ' + art.Nombre),
        MarcasObj: this.marcas_seleccionados
      });
    }
  }
  getMarcaNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  getMarcaCod() {
    return this.formGroup.controls.buscarCod.value;
  }
  borrarMarcasCod() {
    this.formGroup.controls.buscarCod.reset('');
    this.cargarMarcas();
  }
  borrarMarcasNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarMarcas();
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarMarcas();
  }
  static #_ = this.ɵfac = function SeleccionarMarcaComponent_Factory(t) {
    return new (t || SeleccionarMarcaComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_core_marca_service__WEBPACK_IMPORTED_MODULE_3__.MarcaService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
    type: SeleccionarMarcaComponent,
    selectors: [["app-seleccionar-marca"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 22,
    vars: 22,
    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"], [3, "formGroup"], [1, "row", "p-2"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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-xxl-4", "col-lg-4"], [1, "form-label"], [1, "input-group"], ["type", "text", "name", "Marca", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "bx", "bx-x"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"]],
    template: function SeleccionarMarcaComponent_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__["ɵɵtext"](3, " Seleccionar Marca ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, SeleccionarMarcaComponent_div_7_Template, 7, 1, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, SeleccionarMarcaComponent_div_9_Template, 5, 3, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "form", 9)(11, "div", 7)(12, "div", 10)(13, "div", 11)(14, "app-table2", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("lazyLoad", function SeleccionarMarcaComponent_Template_app_table2_lazyLoad_14_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarMarcaComponent_Template_app_table2_selectRowsAction_14_listener($event) {
          return ctx.selectMarca($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](15, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "div", 13)(17, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SeleccionarMarcaComponent_Template_button_click_17_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SeleccionarMarcaComponent_Template_button_click_19_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](20, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](21, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.marcas_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("columns", ctx.marcasHeader)("datos", ctx.marcas)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](15, 18, ctx.marcaService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.marcas_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.marcas_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](20, 20, ctx.marcaService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_4__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_8__.AsyncPipe],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 13697:
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-public-usr-meli/seleccionar-public-usr-meli.component.ts ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarPublicUsrMeliComponent: () => (/* binding */ SeleccionarPublicUsrMeliComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* 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_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common/locales/es */ 46828);
/* harmony import */ var src_app_core_utils_constantes_constantes_web__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-web */ 9537);
/* harmony import */ var src_app_shared_ui_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/ui/data-list/data-list.component */ 29706);
/* harmony import */ var src_app_core_services_integra_meli_publicacion_meli_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/integra/meli/publicacion-meli.service */ 8020);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/sucursal.service */ 38396);
/* harmony import */ var ngx_lightbox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-lightbox */ 74862);
/* harmony import */ var ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-bootstrap/carousel */ 87509);
/* harmony import */ var primeng_checkbox__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primeng/checkbox */ 38057);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var primeng_image__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/image */ 25274);
/* harmony import */ var primeng_paginator__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/paginator */ 42947);






















function SeleccionarPublicUsrMeliComponent_div_10_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_div_10_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r10.borrarBusqueda());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function SeleccionarPublicUsrMeliComponent_div_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 8)(1, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Buscar por Titulo de Publicaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 22)(4, "input", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("keyup.enter", function SeleccionarPublicUsrMeliComponent_div_10_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r12.buscarPublicaciones_usr_meli());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](5, SeleccionarPublicUsrMeliComponent_div_10_a_5_Template, 2, 0, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "a", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_div_10_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r13);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r14.buscarPublicaciones_usr_meli());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](7, "i", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", !ctx_r0.filtros.Multiple ? "col-xxl-4 col-lg-4" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.getBusqueda());
  }
}
function SeleccionarPublicUsrMeliComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 29)(1, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Publicacion_usr_meli seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "input", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "a", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_div_11_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r15.EliminarPublicaciones_usr_meli());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](6, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", ctx_r1.publicacion_usr_meli_seleccionado);
  }
}
function SeleccionarPublicUsrMeliComponent_div_12_ng_template_2_Template(rf, ctx) {}
function SeleccionarPublicUsrMeliComponent_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 32)(1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, SeleccionarPublicUsrMeliComponent_div_12_ng_template_2_Template, 0, 0, "ng-template", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngTemplateOutlet", _r8);
  }
}
function SeleccionarPublicUsrMeliComponent_ng_container_14_button_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_ng_container_14_button_13_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r20);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r19.visualizarSeleccionados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r18.publicaciones_usr_meli_seleccionados.length <= 0);
  }
}
function SeleccionarPublicUsrMeliComponent_ng_container_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "button", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_ng_container_14_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r21.pushRegistroPage(true));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "button", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_ng_container_14_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r23.pushRegistroPage(false));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](5, "i", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](6, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "button", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_ng_container_14_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r24.pushTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "button", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_ng_container_14_Template_button_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r25.removeTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](11, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](12, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](13, SeleccionarPublicUsrMeliComponent_ng_container_14_button_13_Template, 2, 1, "button", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r3.filtros.Multiple);
  }
}
function SeleccionarPublicUsrMeliComponent_ng_container_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " No hay datos para mostrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
}
function SeleccionarPublicUsrMeliComponent_ng_container_20_ng_container_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "slide", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "p-image", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const imagen_r28 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("src", imagen_r28.url)("preview", false);
  }
}
const _c0 = a0 => [a0, "", "", ".2-2", "es"];
function SeleccionarPublicUsrMeliComponent_ng_container_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 47)(2, "div", 48)(3, "div", 49)(4, "div", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](5, 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "p-checkbox", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("onChange", function SeleccionarPublicUsrMeliComponent_ng_container_20_Template_p_checkbox_onChange_6_listener($event) {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r30);
      const publicacion_r26 = restoredCtx.$implicit;
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r29.selectRegistro($event, publicacion_r26));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "div", 53)(8, "span", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](10, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](13, "a", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](14, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](15, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](17, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](20, "div", 58)(21, "carousel", 59)(22, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](23, SeleccionarPublicUsrMeliComponent_ng_container_20_ng_container_23_Template, 3, 2, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const publicacion_r26 = ctx.$implicit;
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngModel", ctx_r5.buscarSeleccionado(publicacion_r26.item_id))("binary", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("$ ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBindV"](10, 13, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](19, _c0, publicacion_r26.precio)), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", publicacion_r26.titulo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("href", publicacion_r26.item_url, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵstyleMap"](ctx_r5.getDiccionarioTipoPublicacion(publicacion_r26.tipo_publicacion).Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](ctx_r5.getDiccionarioTipoPublicacion(publicacion_r26.tipo_publicacion).Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵstyleMap"](ctx_r5.getDiccionarioEstado(publicacion_r26.estado).Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](ctx_r5.getDiccionarioEstado(publicacion_r26.estado).Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("showIndicators", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", publicacion_r26.imagenes);
  }
}
function SeleccionarPublicUsrMeliComponent_div_22_Template(rf, ctx) {
  if (rf & 1) {
    const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 63)(1, "button", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_div_22_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r32);
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r31.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_div_22_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r32);
      const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r33.select());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r6.formGroup.invalid || ctx_r6.publicaciones_usr_meli_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](4, 1, ctx_r6.isLoading));
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_div_2_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r38 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", option_r38.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", option_r38.Nombre, " ");
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 67)(1, "p", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "select", 69)(4, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, SeleccionarPublicUsrMeliComponent_ng_template_23_div_2_option_6_Template, 2, 2, "option", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r34.estadosOptions);
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_div_3_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r40 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", option_r40.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", option_r40.Nombre, " ");
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 67)(1, "p", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Tipo de Publicaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "select", 73)(4, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, SeleccionarPublicUsrMeliComponent_ng_template_23_div_3_option_6_Template, 2, 2, "option", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r35.tiposPublicacionOptions);
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_div_4_option_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r42 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", option_r42.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", option_r42.nombre, " ");
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 67)(1, "p", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Envi\u00F3 Gratis");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "select", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](4, SeleccionarPublicUsrMeliComponent_ng_template_23_div_4_option_4_Template, 2, 2, "option", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r36.todosOptions);
  }
}
function SeleccionarPublicUsrMeliComponent_ng_template_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, SeleccionarPublicUsrMeliComponent_ng_template_23_div_2_Template, 7, 1, "div", 66)(3, SeleccionarPublicUsrMeliComponent_ng_template_23_div_3_Template, 7, 1, "div", 66)(4, SeleccionarPublicUsrMeliComponent_ng_template_23_div_4_Template, 5, 1, "div", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx_r7.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r7.filtros.Estado.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r7.filtros.TipoPublicacion.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r7.filtros.EnvioGratis.Ocultar);
  }
}
const _c1 = () => [10, 20];
class SeleccionarPublicUsrMeliComponent {
  constructor(publicacionesMeliService, fb, modal, authService, sucursalService, lightbox, modalService) {
    this.publicacionesMeliService = publicacionesMeliService;
    this.fb = fb;
    this.modal = modal;
    this.authService = authService;
    this.sucursalService = sucursalService;
    this.lightbox = lightbox;
    this.modalService = modalService;
    //SP SINWEB debido a errores en la logica anterior se separo el manejo de la tabla por front del fecthSource que indica que se usa un endpoint pasado por paramentro
    //Se agrego el input datos para pasarle un conjunto de datos por input y asi manejar la tabla por front
    //@Input() datos:any[];
    this.seleccionados = [];
    this.emitSeleccionados = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      Modal: true,
      OcultarFiltros: false,
      //SECCION FILTROS
      Usuario: {
        Obj: undefined,
        Ocultar: false
      },
      Estado: {
        Id: '',
        Ocultar: false
      },
      TipoPublicacion: {
        Id: '',
        Ocultar: false
      },
      EnvioGratis: {
        Id: '',
        Ocultar: false
      }
    };
    this.filtro = false;
    this.publicaciones_usr_meliHeader = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.copiarObjeto)(src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_1__.Publicaciones_usr_meliHeader);
    this.publicaciones_usr_meli = [];
    this.sucursales = [];
    this.todosOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: '',
      nombre: 'No'
    }];
    this.estadosOptions = src_app_core_utils_constantes_constantes_web__WEBPACK_IMPORTED_MODULE_4__.DICCIONARIO_MELI_ESTADO_PUBLIC;
    this.tiposPublicacionOptions = src_app_core_utils_constantes_constantes_web__WEBPACK_IMPORTED_MODULE_4__.DICCIONARIO_MELI_TIPO_PUBLIC;
    this.publicaciones_usr_meli_seleccionados = [];
    this.publicacion_usr_meli_seleccionado = '';
    //FILTROS
    this.Estado = '';
    this.EnvioGratis = '';
    this.TipoPublicacion = '';
    this.formGroup = this.fb.group({
      busqueda: [''],
      Estado: [''],
      TipoPublicacion: [''],
      EnvioGratis: [''],
      Usuario: []
    });
    this.subscriptions = [];
    this.isLoading = this.publicacionesMeliService.isLoading$;
    //paginacion publicaciones_usr_meli
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.CANT_SEARCH;
    this.cantOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.PAGE_OPTIONS;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.INIT_SENTIDO;
    this.totalItems = 0;
    this.totalSelect = 0;
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_11__.registerLocaleData)(_angular_common_locales_es__WEBPACK_IMPORTED_MODULE_12__["default"]);
    if (this.seleccionados) {
      this.publicaciones_usr_meli_seleccionados = this.seleccionados;
      this.publicacion_usr_meli_seleccionado = this.publicaciones_usr_meli_seleccionados.length == 1 ? this.publicaciones_usr_meli_seleccionados[0] : undefined;
    }
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.page = 1;
    this.previousPage = 1;
    this.inicializarFiltros();
    this.cargarPublicaciones_usr_meli();
    this.configFiltros();
  }
  configFiltros() {
    this.subscriptions.push(this.formGroup.get('Estado').valueChanges.subscribe(value => {
      switch (value) {
        case 'active':
          this.Estado = 'A';
          break;
        case 'paused':
          this.Estado = 'P';
          break;
        case 'closed':
          this.Estado = 'C';
          break;
        default:
          this.Estado = '';
      }
      this.page = 1;
      this.cargarPublicaciones_usr_meli();
    }));
    this.subscriptions.push(this.formGroup.get('TipoPublicacion').valueChanges.subscribe(value => {
      this.TipoPublicacion = value;
      this.page = 1;
      this.cargarPublicaciones_usr_meli();
    }));
    this.subscriptions.push(this.formGroup.get('EnvioGratis').valueChanges.subscribe(value => {
      this.EnvioGratis = value;
      this.page = 1;
      this.cargarPublicaciones_usr_meli();
    }));
  }
  inicializarFiltros() {
    this.Usuario = this.filtros.Usuario.Obj;
    this.formGroup.get('Usuario').setValue(this.Usuario);
    this.Estado = this.filtros.Estado.Id;
    this.formGroup.get('Estado').setValue(this.Estado);
    this.TipoPublicacion = this.filtros.TipoPublicacion.Id;
    this.formGroup.get('TipoPublicacion').setValue(this.TipoPublicacion);
    this.EnvioGratis = this.filtros.EnvioGratis.Id;
    this.formGroup.get('EnvioGratis').setValue(this.EnvioGratis);
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarPublicaciones_usr_meli() {
    this.onSearchPublicaciones_usr_meli(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarPublicaciones_usr_meli() {
    this.page = 1;
    this.cargarPublicaciones_usr_meli();
  }
  onSearchPublicaciones_usr_meli(datos) {
    // MC SINWEB-197 Cambios para la generalización del componente
    let susc;
    susc = this.publicacionesMeliService.getPublicacionesByUser(datos, this.Usuario.Id, {
      loading: true
    }).subscribe(data => {
      this.publicaciones_usr_meli = data.data;
      if (data.data != undefined) {
        this.totalItems = data.total_records;
      } else {
        this.totalItems = 0;
      }
    });
    this.subscriptions.push(susc);
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //Cambios para la generalización del componente
    datos.page = page;
    datos.page_size = this.cant_search;
    //datos.Orden = order;
    //datos.SentidoOrden = sentid
    //SP se agrego la condicion de datos ya que tampoco deberia buscar por nombre y codigo si la tabla es por front
    if (!this.filtros.OcultarFiltros) {
      if (this.formGroup.value.busqueda != undefined && this.formGroup.value.busqueda != '') {
        datos.busqueda = this.formGroup.value.busqueda;
      }
      if (this.Estado != undefined && this.Estado != '') {
        datos.estado = this.Estado;
      }
      if (this.TipoPublicacion != undefined && this.TipoPublicacion != '') {
        datos.tipo_publicacion_id = this.TipoPublicacion;
      }
      if (this.EnvioGratis != undefined && this.EnvioGratis != '') {
        datos.envio_gratis = this.EnvioGratis;
      }
    } else {
      if (this.filtros.Estado != undefined && this.filtros.Estado.Id != '') {
        datos.estado = this.filtros.Estado.Id;
      }
      if (this.filtros.EnvioGratis != undefined && this.filtros.EnvioGratis.Id != '') {
        datos.envio_gratis = this.filtros.EnvioGratis.Id;
      }
      if (this.filtros.TipoPublicacion.Id != undefined && this.filtros.TipoPublicacion.Id != '') {
        datos.tipo_publicacion_id = this.filtros.TipoPublicacion.Id;
      }
    }
    return datos;
  }
  lazyLoadChange($event) {
    this.page = $event.page + 1;
    //this.order = $event.order;
    this.cant_search = $event.rows;
    //this.sentido = $event.sentido;
    this.cargarPublicaciones_usr_meli();
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        Publicacion_usr_meliObj: this.publicaciones_usr_meli_seleccionados[0]
      });
    } else {
      this.modal.close({
        Publicaciones_usr_meliObj: this.publicaciones_usr_meli_seleccionados
      });
    }
  }
  selectEmit() {
    const formData = this.formGroup.value;
    if (!this.filtros.Modal) {
      if (!this.filtros.Multiple) {
        this.emitSeleccionados.emit({
          Publicacion_usr_meliObj: this.publicaciones_usr_meli_seleccionados[0]
        });
      } else {
        this.emitSeleccionados.emit({
          Publicaciones_usr_meliObj: this.publicaciones_usr_meli_seleccionados
        });
      }
    }
  }
  //SP metodo get para obtener campo nombre
  getBusqueda() {
    return this.formGroup.controls.busqueda.value;
  }
  //SP metodo para limpiar filtro
  borrarBusqueda() {
    this.formGroup.get('busqueda').reset('');
    this.cargarPublicaciones_usr_meli();
  }
  getDiccionarioEstado(valor) {
    let elementoEncontrado = src_app_core_utils_constantes_constantes_web__WEBPACK_IMPORTED_MODULE_4__.DICCIONARIO_MELI_ESTADO_PUBLIC.find(elemDicc => elemDicc.Id == valor);
    return elementoEncontrado;
  }
  getDiccionarioTipoPublicacion(valor) {
    let elementoEncontrado = src_app_core_utils_constantes_constantes_web__WEBPACK_IMPORTED_MODULE_4__.DICCIONARIO_MELI_TIPO_PUBLIC.find(elemDicc => elemDicc.Id == valor);
    return elementoEncontrado;
  }
  selectRegistro(event, registro) {
    if (event.checked == 'S') {
      if (!this.publicaciones_usr_meli_seleccionados.includes(reg => reg.item_id == registro.item_id)) {
        this.filtros.Multiple ? this.publicaciones_usr_meli_seleccionados.push(registro) : this.publicaciones_usr_meli_seleccionados = [registro];
      }
    } else {
      this.publicaciones_usr_meli_seleccionados = this.publicaciones_usr_meli_seleccionados.filter(reg => reg.item_id != registro.item_id);
    }
  }
  buscarSeleccionado(id) {
    return this.publicaciones_usr_meli_seleccionados.find(dato => dato.item_id == id) ? 'S' : 'N';
  }
  /**
   * SP SINWEB-297 Metodo que agrega todos los datos de la pagina a los seleccionados o los quita
   * @param agregar booleano para agregar o quitar
   */
  pushRegistroPage(agregar) {
    this.publicaciones_usr_meli.forEach(dato => {
      const pos = this.publicaciones_usr_meli_seleccionados.findIndex(elemento => elemento.item_id == dato.item_id);
      if (agregar) {
        if (pos == -1) {
          this.publicaciones_usr_meli_seleccionados.push(dato);
        }
      } else {
        if (pos != -1) {
          this.publicaciones_usr_meli_seleccionados.splice(pos, 1);
        }
      }
    });
  }
  /**
   * SP SINWEB-297 Metodo que agrega todos los datos existentes a los seleccionados
   */
  pushTodos() {
    this.publicacionesMeliService.getPublicacionesByUser(this.cargarFiltros(-1, this.order, this.sentido), this.Usuario.Id, {
      loading: true
    }).subscribe(res => {
      this.publicaciones_usr_meli_seleccionados = res.data;
      if (!this.filtros.Modal) {
        this.selectEmit();
      }
    });
  }
  /**
   * SP SINWEB-297 Metodo que limpia todos los seleccionados
   */
  removeTodos() {
    this.publicaciones_usr_meli_seleccionados = [];
  }
  visualizarSeleccionados() {
    const modalRef = this.modalService.open(src_app_shared_ui_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_5__.DataListComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-last',
      windowClass: 'modal-z-index-last',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.data = this.publicaciones_usr_meli_seleccionados;
    modalRef.componentInstance.columns = this.publicaciones_usr_meliHeader;
    modalRef.componentInstance.title = 'Items seleccionados';
  }
  static #_ = this.ɵfac = function SeleccionarPublicUsrMeliComponent_Factory(t) {
    return new (t || SeleccionarPublicUsrMeliComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_integra_meli_publicacion_meli_service__WEBPACK_IMPORTED_MODULE_6__.PublicacioneMeliService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_8__.SucursalService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](ngx_lightbox__WEBPACK_IMPORTED_MODULE_9__.Lightbox), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: SeleccionarPublicUsrMeliComponent,
    selectors: [["app-seleccionar-public-usr-meli"]],
    inputs: {
      seleccionados: "seleccionados",
      filtros: "filtros"
    },
    outputs: {
      emitSeleccionados: "emitSeleccionados"
    },
    decls: 25,
    vars: 18,
    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"], [3, "formGroup"], [1, "row", "p-2"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], [3, "ngClass", 4, "ngIf"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], ["class", "card", 4, "ngIf"], [1, "d-flex", "mt-2"], [4, "ngIf"], [1, "row", "justify-content-center", 2, "max-height", "'600px'", "overflow-y", "'scroll'"], [1, "d-block"], [1, "float-end", "font-size-13"], [4, "ngFor", "ngForOf"], [3, "first", "rows", "totalRecords", "rowsPerPageOptions", "onPageChange"], ["class", "modal-footer", 4, "ngIf"], ["FILTRO_USUARIO", ""], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "busqueda", "buscar", "Buscar", "placeholder", "", 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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-4", "col-lg-4"], ["type", "text", "name", "Publicacion_usr_meli", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], ["pTooltip", "Seleccionar registros de la p\u00E1gina", "tooltipPosition", "top", 1, "btn", "btn-success", "font-size-16", 3, "click"], [1, "mdi", "mdi-check-box-outline"], ["pTooltip", "Quitar registros de la p\u00E1gina", "tooltipPosition", "top", 1, "btn", "btn-warning", "font-size-16", 3, "click"], [1, "mdi", "mdi-close-box-outline"], ["pTooltip", "Seleccionar todos los registros", "tooltipPosition", "top", 1, "btn", "btn-primary", "font-size-16", 3, "click"], [1, "mdi", "mdi-playlist-check"], ["pTooltip", "Quitar todos los registros seleccionados", "tooltipPosition", "top", 1, "btn", "btn-danger", "font-size-16", 3, "click"], [1, "mdi", "mdi-playlist-remove"], ["class", "btn btn-info font-size-16", "pTooltip", "Ver seleccionados", "tooltipPosition", "top", 3, "disabled", "click", 4, "ngIf"], ["pTooltip", "Ver seleccionados", "tooltipPosition", "top", 1, "btn", "btn-info", "font-size-16", 3, "disabled", "click"], [1, "mdi", "mdi-eye", "mdi-18px", "align-middle"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"], [1, "col-lg-6", "mt-2"], [1, "card", "p-2", "shadow-lg"], [1, "card-body"], [1, "d-flex"], [1, "col"], ["inputId", "binary", "trueValue", "S", "falseValue", "N", 1, "pe-2", 3, "ngModel", "binary", "onChange"], [1, "col", "text-center", "text-lg-start"], [1, "float-lg-end", "fw-bold", "font-size-24"], ["target", "_blank", 3, "href"], [1, "bx", "bx-link", "font-size-16"], [1, "badge", "rounded-pill"], [1, "d-flex", "justify-content-center", "mt-1"], ["id", "carouselExampleSlidesOnly", 1, "carousel", "slide", 3, "showIndicators"], ["role", "listbox", 1, "carousel-inner"], [1, "carousel-item"], ["alt", "Image", "width", "100", "height", "100", 3, "src", "preview"], [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", "col-xxl-4 col-lg-4 mt-2", 4, "ngIf"], [1, "col-xxl-4", "col-lg-4", "mt-2"], [1, "mb-1", "fw-500"], ["formControlName", "Estado", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["formControlName", "TipoPublicacion", 1, "form-select"], ["formControlName", "EnvioGratis", 1, "form-select"]],
    template: function SeleccionarPublicUsrMeliComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, " Seleccionar Publicacion ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "a", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarPublicUsrMeliComponent_Template_a_click_8_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](9, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](10, SeleccionarPublicUsrMeliComponent_div_10_Template, 8, 2, "div", 9)(11, SeleccionarPublicUsrMeliComponent_div_11_Template, 7, 1, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](12, SeleccionarPublicUsrMeliComponent_div_12_Template, 3, 1, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](13, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](14, SeleccionarPublicUsrMeliComponent_ng_container_14_Template, 14, 1, "ng-container", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](15, "div", 14)(16, "div", 15)(17, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](18);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](19, SeleccionarPublicUsrMeliComponent_ng_container_19_Template, 3, 0, "ng-container", 13)(20, SeleccionarPublicUsrMeliComponent_ng_container_20_Template, 24, 21, "ng-container", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](21, "p-paginator", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("onPageChange", function SeleccionarPublicUsrMeliComponent_Template_p_paginator_onPageChange_21_listener($event) {
          return ctx.lazyLoadChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](22, SeleccionarPublicUsrMeliComponent_div_22_Template, 6, 3, "div", 19)(23, SeleccionarPublicUsrMeliComponent_ng_template_23_Template, 5, 4, "ng-template", null, 20, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵ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_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate4"](" P\u00E1gina ", ctx.page, " con ", ctx.cant_search, " de ", ctx.totalItems, " ", ctx.publicaciones_usr_meli_seleccionados.length > 0 ? "(" + ctx.publicaciones_usr_meli_seleccionados.length + " Seleccionados)" : "", " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.publicaciones_usr_meli.length == 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx.publicaciones_usr_meli);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("first", 0)("rows", ctx.cant_search)("totalRecords", ctx.totalItems)("rowsPerPageOptions", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](17, _c1));
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtros.Modal);
      }
    },
    dependencies: [ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_15__.SlideComponent, ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_15__.CarouselComponent, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, primeng_checkbox__WEBPACK_IMPORTED_MODULE_16__.Checkbox, primeng_tooltip__WEBPACK_IMPORTED_MODULE_17__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgModel, primeng_image__WEBPACK_IMPORTED_MODULE_18__.Image, primeng_paginator__WEBPACK_IMPORTED_MODULE_19__.Paginator, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_11__.CurrencyPipe],
    styles: [".p-paginator {\n  justify-content: end;\n}\n@media (max-width: 991px) {\n    .p-paginator {\n    justify-content: center;\n    margin-bottom: 40px;\n  }\n}\n\n  .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n  justify-self: flex-end;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n  border-radius: initial !important;\n  background-color: initial !important;\n  height: 37px;\n  min-width: 35px;\n  margin: 0;\n  padding: 0;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n    font-size: 11.375px;\n    height: 29px;\n    min-width: 21px;\n  }\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:active,   .p-paginator .p-paginator-first.p-link:hover:active,  .p-paginator .p-paginator-prev.p-link:hover:active,   .p-paginator .p-paginator-next.p-link:hover:active,  .p-paginator .p-paginator-last.p-link:hover:active,  .p-paginator .p-dropdown.p-link:hover:active {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:not(:active),   .p-paginator .p-paginator-first.p-link:hover:not(:active),  .p-paginator .p-paginator-prev.p-link:hover:not(:active),   .p-paginator .p-paginator-next.p-link:hover:not(:active),  .p-paginator .p-paginator-last.p-link:hover:not(:active),  .p-paginator .p-dropdown.p-link:hover:not(:active) {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .p-link:focus,   .p-paginator .p-paginator-first .p-link:focus,  .p-paginator .p-paginator-prev .p-link:focus,   .p-paginator .p-paginator-next .p-link:focus,  .p-paginator .p-paginator-last .p-link:focus,  .p-paginator .p-dropdown .p-link:focus {\n  outline: 0 none;\n  outline-offset: 0;\n  \n\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-highlight,   .p-paginator .p-paginator-first.p-highlight,  .p-paginator .p-paginator-prev.p-highlight,   .p-paginator .p-paginator-next.p-highlight,  .p-paginator .p-paginator-last.p-highlight,  .p-paginator .p-dropdown.p-highlight {\n  background-color: #0070af !important;\n  color: #fff;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n    font-size: 11.375px;\n  }\n}\n\n .p-paginator .p-dropdown .p-dropdown-label {\n  padding: 8px;\n  align-self: center;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n   .p-paginator .p-dropdown .p-dropdown-label {\n    padding: 6px;\n    font-size: 11.375px;\n  }\n}\n\n  .p-datatable .p-paginator-bottom {\n  border: none;\n}\n\n  .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  justify-content: end;\n}\n@media (max-width: 576px) {\n    .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n    margin-top: 30px;\n    justify-content: center;\n  }\n}\n\n  .p-dropdown-items-wrapper .p-dropdown-items {\n  padding: 0.5rem;\n}\n\n .p-paginator .p-paginator-current {\n  position: absolute;\n  left: 0;\n  font-size: 13px;\n}\n@media (max-width: 991px) {\n   .p-paginator .p-paginator-current {\n    left: 50%;\n    top: 100%;\n    bottom: 4%;\n    text-align: center;\n    transform: translateX(-50%);\n  }\n}\n\n@media (max-width: 767px) {\n    .p-datatable-table > .p-datatable-tbody > tr > td {\n    flex-wrap: wrap;\n    text-wrap: wrap;\n  }\n}\n\n  .p-datatable-table > .p-datatable-tbody > tr {\n  overflow-x: scroll;\n}\n\n.btn-dark-hover[_ngcontent-%COMP%]:hover, .btn-dark-hover[_ngcontent-%COMP%]:focus, .btn-dark-hover[_ngcontent-%COMP%]:active {\n  color: #74788d;\n}\n\n  body[data-bs-theme=dark] .frozen {\n  position: sticky;\n  left: 0;\n  z-index: 2;\n  background-color: rgb(37, 48, 66);\n  box-shadow: inset 2px 0px 20px 0px rgb(46, 60, 80);\n}\n\n  body[data-bs-theme=light] .frozen {\n  position: sticky;\n  left: 0;\n  z-index: 2;\n  background-color: rgb(255, 255, 255);\n  box-shadow: inset 2px 0px 20px 0px #e5e5e5;\n}\n\nng-deep.p-datatable[_ngcontent-%COMP%]   .p-datatable-tbody[_ngcontent-%COMP%]    > th[_ngcontent-%COMP%]   .p-element[_ngcontent-%COMP%]   .p-selectable-row[_ngcontent-%COMP%]   .p-highlight[_ngcontent-%COMP%]    > td[_ngcontent-%COMP%]   .frozen[_ngcontent-%COMP%] {\n  background-color: #1a7bfa !important;\n}"]
  });
}

/***/ }),

/***/ 63378:
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-srv-contratado/seleccionar-srv-contratado.component.ts ***!
  \**********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarSrvContratadoComponent: () => (/* binding */ SeleccionarSrvContratadoComponent)
/* harmony export */ });
/* 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_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-articulo/seleccionar-articulo.component */ 62656);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* 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_8__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_servicios_srvContratado_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../core/services/servicios/srvContratado.service */ 2158);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);












function SeleccionarSrvContratadoComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 20)(1, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Servicio seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "input", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_div_9_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r5.EliminarSrvContratado());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](6, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", ctx_r0.srv_contratado_seleccionado);
  }
}
function SeleccionarSrvContratadoComponent_div_10_ng_template_2_Template(rf, ctx) {}
function SeleccionarSrvContratadoComponent_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 26)(1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](2, SeleccionarSrvContratadoComponent_div_10_ng_template_2_Template, 0, 0, "ng-template", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngTemplateOutlet", _r4);
  }
}
function SeleccionarSrvContratadoComponent_div_12_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_div_12_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r14);
      const provSelect_r12 = restoredCtx.$implicit;
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r13.quitarSrvContratado(provSelect_r12));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const provSelect_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate2"](" (", provSelect_r12.Codigo, ") ", provSelect_r12.Nombre, " ");
  }
}
function SeleccionarSrvContratadoComponent_div_12_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_div_12_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r15.EliminarSrvContratados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarSrvContratadoComponent_div_12_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, SeleccionarSrvContratadoComponent_div_12_div_3_div_1_Template, 3, 3, "div", 33)(2, SeleccionarSrvContratadoComponent_div_12_div_3_div_2_Template, 3, 1, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r8.srv_contratados_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r8.srv_contratados_seleccionados.length > 1);
  }
}
function SeleccionarSrvContratadoComponent_div_12_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_div_12_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r17.EliminarSrvContratados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Todos los servicios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarSrvContratadoComponent_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 29)(1, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Servicios seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](3, SeleccionarSrvContratadoComponent_div_12_div_3_Template, 3, 2, "div", 30)(4, SeleccionarSrvContratadoComponent_div_12_div_4_Template, 4, 1, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r2.srv_contratados_seleccionados.length > 0 && ctx_r2.srv_contratados_seleccionados.length < ctx_r2.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r2.srv_contratados_seleccionados.length >= ctx_r2.totalItems);
  }
}
function SeleccionarSrvContratadoComponent_ng_template_25_a_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_ng_template_25_a_7_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r23);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r22.borrarCliente());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarSrvContratadoComponent_ng_template_25_a_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_ng_template_25_a_15_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r24.borrarClienteFact());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarSrvContratadoComponent_ng_template_25_a_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_ng_template_25_a_23_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r27);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r26.borrarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarSrvContratadoComponent_ng_template_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerStart"](0, 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](1, "div", 39)(2, "div", 40)(3, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](4, "Buscar por Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](6, "input", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](7, SeleccionarSrvContratadoComponent_ng_template_25_a_7_Template, 2, 0, "a", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](8, "a", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_ng_template_25_Template_a_click_8_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r28.buscarCliente());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](9, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "div", 40)(11, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12, "Buscar por Cliente a Fact.");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](13, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](14, "input", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](15, SeleccionarSrvContratadoComponent_ng_template_25_a_15_Template, 2, 0, "a", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](16, "a", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_ng_template_25_Template_a_click_16_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r29);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r30.buscarClienteFact());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](17, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](18, "div", 40)(19, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](20, "Buscar por Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](21, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](22, "input", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](23, SeleccionarSrvContratadoComponent_ng_template_25_a_23_Template, 2, 0, "a", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](24, "a", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_ng_template_25_Template_a_click_24_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r29);
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r31.buscarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](25, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r3.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r3.getCliente());
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r3.getClienteFact());
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r3.getArticulo());
  }
}
class SeleccionarSrvContratadoComponent {
  constructor(srvContratadoService, fb, modal, modalService) {
    this.srvContratadoService = srvContratadoService;
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.defaultFiltros = {
      Multiple: false
    };
    this.srvContratadoHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_4__.SrvContratadosHeader;
    this.serviciosContratados = [];
    this.srv_contratado_seleccionado = '';
    this.srv_contratados_seleccionados = [];
    this.filtro = false;
    this.formGroup = this.fb.group({
      cliente: [],
      clienteId: [-1],
      clienteFact: [],
      clienteFactId: [-1],
      articulo: [],
      articuloId: [-1]
    });
    this.subscriptions = [];
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_5__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.page = 1;
    this.previousPage = 1;
    this.cargarSrvContratados();
    this.configuracionFilter();
  }
  cargarSrvContratados() {
    this.onSearchSrvContratados(this.cargarFiltrosSrvContratado(this.page, this.order, this.sentido));
  }
  onSearchSrvContratados(datos) {
    const susc = this.srvContratadoService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.serviciosContratados = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {}
  cargarFiltrosSrvContratado(page, order, sentido) {
    let datos = {};
    //predeterminado
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.orden = order;
    datos.SentidoOrden = sentido;
    //filtros
    if (this.formGroup.value.clienteId != undefined && this.formGroup.value.clienteId != -1) {
      datos.IdCliente = this.formGroup.get('clienteId').value.toString();
    }
    if (this.formGroup.value.clienteFactId != undefined && this.formGroup.value.clienteFactId != -1) {
      datos.IdClienteFact = this.formGroup.get('clienteFactId').value.toString();
    }
    if (this.formGroup.value.articuloId != undefined && this.formGroup.value.articuloId != -1) {
      datos.IdArticulo = this.formGroup.get('articuloId').value.toString();
    }
    return datos;
  }
  seleccionarSrvContratado($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltrosSrvContratado(-1, this.order, this.sentido);
      this.srvContratadoService.fetch(datos).subscribe(res => {
        this.srv_contratados_seleccionados = res.Data;
      });
    } else {
      this.srv_contratados_seleccionados = $event.rows;
      this.srv_contratado_seleccionado = this.srv_contratados_seleccionados.length == 1 ? '(' + this.srv_contratados_seleccionados[0].Articulo.Codigo + ') ' + this.srv_contratados_seleccionados[0].Articulo.Nombre : '';
    }
  }
  quitarSrvContratado(servicio) {
    this.srv_contratados_seleccionados = this.srv_contratados_seleccionados.filter(srv => srv.Id !== servicio.Id);
  }
  /* Metodo que elimina todos o  el srv de la selección */
  EliminarSrvContratados() {
    this.srv_contratados_seleccionados = [];
    this.srv_contratado_seleccionado = '';
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdSrvContratado: this.srv_contratados_seleccionados[0].Id,
        SrvContratado: '(' + this.srv_contratados_seleccionados[0].Articulo.Codigo + ') ' + this.srv_contratados_seleccionados[0].Articulo.Nombre,
        SrvContratadoObj: this.srv_contratados_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsSrvContratados: this.srv_contratados_seleccionados.map(srv => srv.Id),
        SrvContratados: this.srv_contratados_seleccionados.map(srv => '(' + srv.Articulo.Codigo + ') ' + srv.Articulo.Nombre),
        SrvContratadosObj: this.srv_contratados_seleccionados
      });
    }
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarSrvContratados();
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  getCliente() {
    return this.formGroup.get('cliente').value;
  }
  /**
   * SP SINWEB-289 - Método para limpiar el filtro
   */
  borrarCliente() {
    this.formGroup.get('cliente').reset('');
    this.formGroup.get('clienteId').reset(-1);
    this.page = 1;
    this.cargarSrvContratados();
  }
  /**
   * SP SINWEB-289 - Método para buscar
   */
  buscarCliente() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_1__.SeleccionarClienteComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-last',
      windowClass: 'modal-z-index-last',
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.clienteId.setValue(resolve.IdCliente);
        this.formGroup.controls.cliente.setValue(resolve.Cliente);
        this.page = 1;
        this.cargarSrvContratados();
      }
    });
  }
  getClienteFact() {
    return this.formGroup.get('clienteFact').value;
  }
  /**
   * SP SINWEB-289 - Método para limpiar el filtro ClienteFact
   */
  borrarClienteFact() {
    this.formGroup.get('clienteFact').reset('');
    this.formGroup.get('clienteFactId').reset(-1);
    this.page = 1;
    this.cargarSrvContratados();
  }
  /**
   * SP SINWEB-289 - Método para buscar un clienteFact
   */
  buscarClienteFact() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_1__.SeleccionarClienteComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-last',
      windowClass: 'modal-z-index-last',
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.clienteFactId.setValue(resolve.IdCliente);
        this.formGroup.controls.clienteFact.setValue(resolve.Cliente);
        this.page = 1;
        this.cargarSrvContratados();
      }
    });
  }
  getArticulo() {
    return this.formGroup.get('articulo').value;
  }
  /**
   * SP SINWEB-289 - Método para limpiar el filtro Articulo
   */
  borrarArticulo() {
    this.formGroup.get('articulo').reset('');
    this.formGroup.get('articuloId').reset(-1);
    this.page = 1;
    this.cargarSrvContratados();
  }
  /**
   * SP SINWEB-289 - Método para buscar un articulo
   */
  buscarArticulo() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_2__.SeleccionarArticuloComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-4',
      windowClass: 'modal-z-index-4',
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.articuloId.setValue(resolve.IdArticulo);
        this.formGroup.controls.articulo.setValue(resolve.Articulo);
        this.page = 1;
        this.cargarSrvContratados();
      }
    });
  }
  static #_ = this.ɵfac = function SeleccionarSrvContratadoComponent_Factory(t) {
    return new (t || SeleccionarSrvContratadoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_core_services_servicios_srvContratado_service__WEBPACK_IMPORTED_MODULE_6__.SrvContratadoService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
    type: SeleccionarSrvContratadoComponent,
    selectors: [["app-seleccionar-srv-contratado"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 27,
    vars: 24,
    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, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], ["class", "col-xxl-6 col-lg-6", 4, "ngIf"], ["class", "card", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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"], ["FILTRO_SRV", ""], [1, "col-xxl-6", "col-lg-6"], [1, "form-label"], [1, "input-group"], ["type", "text", "name", "SrvContratado", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "bx", "bx-x"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], [3, "formGroup"], [1, "row", "p-2"], [1, "col-xxl-4", "col-lg-4", "mt-1"], ["type", "search", "formControlName", "cliente", "placeholder", "", "readonly", "", 1, "form-control"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["type", "search", "formControlName", "clienteFact", "placeholder", "", "readonly", "", 1, "form-control"], ["type", "search", "formControlName", "articulo", "placeholder", "", "readonly", "", 1, "form-control"], [1, "btn", "btn-secondary", 3, "click"]],
    template: function SeleccionarSrvContratadoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Seleccionar Servicio contratado ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "a", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_Template_a_click_7_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](9, SeleccionarSrvContratadoComponent_div_9_Template, 7, 1, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](10, SeleccionarSrvContratadoComponent_div_10_Template, 3, 1, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](12, SeleccionarSrvContratadoComponent_div_12_Template, 5, 3, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](13, "form", 12)(14, "div", 10)(15, "div", 13)(16, "div", 14)(17, "app-table2", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("lazyLoad", function SeleccionarSrvContratadoComponent_Template_app_table2_lazyLoad_17_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarSrvContratadoComponent_Template_app_table2_selectRowsAction_17_listener($event) {
          return ctx.seleccionarSrvContratado($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](18, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](19, "div", 16)(20, "button", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_Template_button_click_20_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](21, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](22, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarSrvContratadoComponent_Template_button_click_22_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](23, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](24, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](25, SeleccionarSrvContratadoComponent_ng_template_25_Template, 26, 4, "ng-template", null, 19, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵ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_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.srv_contratados_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("columns", ctx.srvContratadoHeader)("datos", ctx.serviciosContratados)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](18, 20, ctx.srvContratadoService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.srv_contratados_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.srv_contratados_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](23, 22, ctx.srvContratadoService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe],
    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}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_3__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 49208:
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-sucursal/seleccionar-sucursal.component.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarSucursalComponent: () => (/* binding */ SeleccionarSucursalComponent)
/* harmony export */ });
/* 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_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* 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 src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/sucursal.service */ 38396);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/empresa.service */ 10984);
/* harmony import */ var src_app_core_services_core_localidad_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/localidad.service */ 14280);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);














function SeleccionarSucursalComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 20)(1, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Sucursal seleccionada");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "input", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_div_9_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r5.EliminarSucursales());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](6, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", ctx_r0.sucursal_seleccionado);
  }
}
function SeleccionarSucursalComponent_div_10_ng_template_2_Template(rf, ctx) {}
function SeleccionarSucursalComponent_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, SeleccionarSucursalComponent_div_10_ng_template_2_Template, 0, 0, "ng-template", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngTemplateOutlet", _r4);
  }
}
function SeleccionarSucursalComponent_div_18_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_div_18_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r14);
      const sucSelect_r12 = restoredCtx.$implicit;
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r13.quitarSucursal(sucSelect_r12));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const sucSelect_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate2"](" (", sucSelect_r12.Codigo, ") ", sucSelect_r12.Nombre, " ");
  }
}
function SeleccionarSucursalComponent_div_18_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_div_18_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r15.EliminarSucursales());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarSucursalComponent_div_18_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, SeleccionarSucursalComponent_div_18_div_3_div_1_Template, 3, 3, "div", 33)(2, SeleccionarSucursalComponent_div_18_div_3_div_2_Template, 3, 1, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r8.sucursales_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r8.sucursales_seleccionados.length > 1);
  }
}
function SeleccionarSucursalComponent_div_18_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div")(1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_div_18_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r17.EliminarSucursales());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Todos las sucursales ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarSucursalComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 29)(1, "label", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Sucursales seleccionadas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](3, SeleccionarSucursalComponent_div_18_div_3_Template, 3, 2, "div", 30)(4, SeleccionarSucursalComponent_div_18_div_4_Template, 4, 1, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r2.sucursales_seleccionados.length > 0 && ctx_r2.sucursales_seleccionados.length < ctx_r2.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r2.sucursales_seleccionados.length >= ctx_r2.totalItems);
  }
}
function SeleccionarSucursalComponent_ng_template_25_option_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "option", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", option_r20.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", option_r20.nombre, " ");
  }
}
function SeleccionarSucursalComponent_ng_template_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0, 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 39)(2, "div", 40)(3, "p", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4, "Localidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "select-loading", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valueSelect", function SeleccionarSucursalComponent_ng_template_25_Template_select_loading_valueSelect_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r21.formGroup.controls.idLocalidad.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](6, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "div", 40)(8, "p", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9, "Casa Central");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "select", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](11, SeleccionarSucursalComponent_ng_template_25_option_11_Template, 2, 2, "option", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx_r3.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Todos")("items", ctx_r3.localidades)("valueSelected", ctx_r3.formGroup.controls.idLocalidad.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](6, 7, ctx_r3.localidadService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r3.casaCentralOptions);
  }
}
class SeleccionarSucursalComponent {
  constructor(sucursalService, fb, modal, modalService, empresaService, localidadService, authService) {
    this.sucursalService = sucursalService;
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.empresaService = empresaService;
    this.localidadService = localidadService;
    this.authService = authService;
    //SP SINWEB-287 nueva config para seleccion multiple
    this.multiple = false;
    this.defaultFiltros = {
      Multiple: false
      //Empresa: {Id:-1 , Ocultar:false}
    };
    this.sucursalesHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.SucursalesHeader;
    this.sucursales = [];
    this.sucursal_seleccionado = '';
    this.sucursales_seleccionados = [];
    this.localidad_seleccionada = -1;
    this.empresa_seleccionada = -1;
    this.filtro = false;
    this.formGroup = this.fb.group({
      casaCentral: [''],
      idLocalidad: [-1]
      //idEmpresa:[-1]
    });
    this.subscriptions = [];
    //paginacion sucursales
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
    this.casaCentralOptions = [{
      id: '',
      nombre: 'Todas'
    }, {
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_2__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.page = 1;
    this.previousPage = 1;
    this.cargarLocalidades();
    // if (!this.filtros.Empresa.Ocultar && this.filtros.Empresa){
    //   this.cargarEmpresas()
    // }
    this.cargarSucursales();
    this.configuracionFilter();
  }
  cargarEmpresas() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.empresaService.fetch(datos).subscribe(resp => {
      this.empresas = resp.Data.map(emp => {
        return {
          Id: emp.Id,
          Nombre: emp.RazonSocial
        };
      });
    });
    susc.unsubscribe;
  }
  cargarLocalidades() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.localidadService.fetch(datos).subscribe(resp => {
      this.localidades = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarSucursales() {
    this.onSearchSucursales(this.cargarFiltrosArt(this.page, this.order, this.sentido));
  }
  onSearchSucursales(datos) {
    const susc = this.sucursalService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.sucursales = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {
    this.subscriptions.push(this.formGroup.controls.idLocalidad.valueChanges.subscribe(localidad => {
      this.localidad_seleccionada = localidad;
      this.page = 1;
      this.cargarSucursales();
    }));
    // this.subscriptions.push(
    //   this.formGroup.controls.idEmpresa.valueChanges.subscribe((empresa) => {
    //     this.empresa_seleccionada = empresa;
    //     this.page = 1;
    //     this.cargarSucursales()
    //   })
    // );
    this.subscriptions.push(this.formGroup.controls.casaCentral.valueChanges.subscribe(id => {
      this.casaCentral_seleccionada = id;
      this.page = 1;
      this.cargarSucursales();
    }));
  }
  cargarFiltrosArt(page, order, sentido) {
    let datos = {};
    //predeterminado
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.IdsTiposSucursales = '2,3';
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    //datos.orden = order;
    //datos.OrdenAscDesc = sentido;
    datos.IdEmpresa = this.authService.usuario.IdEmpresa;
    // if (this.filtros.Empresa.Ocultar){
    //   datos.IdEmpresa = this.idEmpresa;
    // }else{
    //   if (this.empresa_seleccionada != -1){
    //     datos.IdEmpresa = this.empresa_seleccionada;
    //   }
    // }
    if (this.localidad_seleccionada != -1) {
      datos.IdLocalidad = this.localidad_seleccionada;
    }
    if (this.casaCentral_seleccionada != undefined && this.casaCentral_seleccionada != '') {
      datos.CasaCentral = this.casaCentral_seleccionada;
    }
    return datos;
  }
  selectSucursal($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltrosArt(-1, this.order, this.sentido);
      this.sucursalService.fetch(datos).subscribe(res => {
        this.sucursales_seleccionados = res.Data;
      });
    } else {
      this.sucursales_seleccionados = $event.rows;
      this.sucursal_seleccionado = this.sucursales_seleccionados.length == 1 ? '(' + this.sucursales_seleccionados[0].Codigo + ') ' + this.sucursales_seleccionados[0].Nombre : '';
    }
  }
  quitarSucursal(sucursal) {
    this.sucursales_seleccionados = this.sucursales_seleccionados.filter(suc => suc.Id !== sucursal.Id);
  }
  /* Metodo que elimina todos o  el sucursal de la selección */
  EliminarSucursales() {
    this.sucursales_seleccionados = [];
    this.sucursal_seleccionado = '';
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdSucursal: this.sucursales_seleccionados[0].Id,
        Sucursal: '(' + this.sucursales_seleccionados[0].Codigo + ') ' + this.sucursales_seleccionados[0].Nombre,
        SucursalObj: this.sucursales_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsSucursals: this.sucursales_seleccionados.map(art => art.Id),
        Sucursals: this.sucursales_seleccionados.map(art => '(' + art.Codigo + ') ' + art.Nombre),
        SucursalsObj: this.sucursales_seleccionados
      });
    }
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarSucursales();
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  static #_ = this.ɵfac = function SeleccionarSucursalComponent_Factory(t) {
    return new (t || SeleccionarSucursalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_4__.SucursalService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_5__.EmpresaService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_core_localidad_service__WEBPACK_IMPORTED_MODULE_6__.LocalidadService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: SeleccionarSucursalComponent,
    selectors: [["app-seleccionar-sucursal"]],
    inputs: {
      idEmpresa: "idEmpresa",
      multiple: "multiple",
      filtros: "filtros"
    },
    decls: 27,
    vars: 24,
    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, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], ["class", "col-xxl-3 col-lg-3", 4, "ngIf"], ["class", "card", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "row"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], ["class", "col-12", 4, "ngIf"], [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"], ["FILTRO_SUC", ""], [1, "col-xxl-3", "col-lg-3"], [1, "form-label"], [1, "input-group"], ["type", "text", "name", "Sucursal", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "bx", "bx-x"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], [3, "formGroup"], [1, "row", "p-2"], [1, "col-xxl-4", "col-lg-4", "mt-2"], [1, "mb-1", "fw-500"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["formControlName", "casaCentral", 1, "form-select"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]],
    template: function SeleccionarSucursalComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, " Seleccionar Sucursal ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "a", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_Template_a_click_7_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](9, SeleccionarSucursalComponent_div_9_Template, 7, 1, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](10, SeleccionarSucursalComponent_div_10_Template, 3, 1, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "form", 10)(12, "div", 11)(13, "div", 12)(14, "div", 13)(15, "app-table2", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("lazyLoad", function SeleccionarSucursalComponent_Template_app_table2_lazyLoad_15_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarSucursalComponent_Template_app_table2_selectRowsAction_15_listener($event) {
          return ctx.selectSucursal($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](16, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](17, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](18, SeleccionarSucursalComponent_div_18_Template, 5, 3, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](19, "div", 16)(20, "button", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_Template_button_click_20_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](21, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](22, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarSucursalComponent_Template_button_click_22_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](23, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](24, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](25, SeleccionarSucursalComponent_ng_template_25_Template, 12, 9, "ng-template", null, 19, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵ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_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("columns", ctx.sucursalesHeader)("datos", ctx.sucursales)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](16, 20, ctx.sucursalService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.sucursales_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.sucursales_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.sucursales_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](23, 22, ctx.sucursalService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_13__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_8__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_9__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_13__.AsyncPipe],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 18979:
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-tipo-notif/seleccionar-tipo-notif.component.ts ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarTipoNotifComponent: () => (/* binding */ SeleccionarTipoNotifComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* 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 src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_notificaciones_notificacionTipo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionTipo.service */ 12189);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_notificaciones_notificacionDominio_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionDominio.service */ 20976);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);













function SeleccionarTipoNotifComponent_a_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_a_14_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r7.borrarTipoNotifCod());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarTipoNotifComponent_a_22_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_a_22_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r9.borrarTipoNotifNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarTipoNotifComponent_div_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 29)(1, "label", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Tipo de notif. seleccionada");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "input", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "a", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_div_25_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r11.EliminarTiposNotif());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](6, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", ctx_r2.tipoNotif_seleccionado);
  }
}
function SeleccionarTipoNotifComponent_div_26_ng_template_2_Template(rf, ctx) {}
function SeleccionarTipoNotifComponent_div_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 32)(1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](2, SeleccionarTipoNotifComponent_div_26_ng_template_2_Template, 0, 0, "ng-template", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function SeleccionarTipoNotifComponent_div_28_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_div_28_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r20);
      const tipoNotifSelect_r18 = restoredCtx.$implicit;
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r19.quitarTipoNotif(tipoNotifSelect_r18));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipoNotifSelect_r18 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate2"](" (", tipoNotifSelect_r18.Codigo, ") ", tipoNotifSelect_r18.Nombre, " ");
  }
}
function SeleccionarTipoNotifComponent_div_28_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_div_28_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r21.EliminarTiposNotif());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarTipoNotifComponent_div_28_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, SeleccionarTipoNotifComponent_div_28_div_3_div_1_Template, 3, 3, "div", 39)(2, SeleccionarTipoNotifComponent_div_28_div_3_div_2_Template, 3, 1, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r14.tiposNotif_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r14.tiposNotif_seleccionados.length > 1);
  }
}
function SeleccionarTipoNotifComponent_div_28_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_div_28_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r23.EliminarTiposNotif());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Todos los tipos de notificaciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarTipoNotifComponent_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 35)(1, "label", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Tipos de notif. seleccionadas:");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](3, SeleccionarTipoNotifComponent_div_28_div_3_Template, 3, 2, "div", 36)(4, SeleccionarTipoNotifComponent_div_28_div_4_Template, 4, 1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r4.tiposNotif_seleccionados.length > 0 && ctx_r4.tiposNotif_seleccionados.length < ctx_r4.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r4.tiposNotif_seleccionados.length >= ctx_r4.totalItems);
  }
}
function SeleccionarTipoNotifComponent_ng_template_41_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 47)(1, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "app-select-multiple", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("emitSelected", function SeleccionarTipoNotifComponent_ng_template_41_div_2_Template_app_select_multiple_emitSelected_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r28.formGroup.controls.tiposDominio.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("selected", ctx_r25.formGroup.controls.tiposDominio.value)("items", ctx_r25.dominiosNotif)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](4, 3, ctx_r25.notifDominioService.isLoading$));
  }
}
function SeleccionarTipoNotifComponent_ng_template_41_div_3_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "option", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r31 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", option_r31.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", option_r31.nombre, " ");
  }
}
function SeleccionarTipoNotifComponent_ng_template_41_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 47)(1, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Condicional");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "select", 50)(4, "option", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](6, SeleccionarTipoNotifComponent_ng_template_41_div_3_option_6_Template, 2, 2, "option", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r26.todosOptions);
  }
}
function SeleccionarTipoNotifComponent_ng_template_41_div_4_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "option", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r33 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", option_r33.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", option_r33.nombre, " ");
  }
}
function SeleccionarTipoNotifComponent_ng_template_41_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 47)(1, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Requiere generaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "select", 54)(4, "option", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](6, SeleccionarTipoNotifComponent_ng_template_41_div_4_option_6_Template, 2, 2, "option", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r27.todosOptions);
  }
}
function SeleccionarTipoNotifComponent_ng_template_41_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerStart"](0, 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](1, "div", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](2, SeleccionarTipoNotifComponent_ng_template_41_div_2_Template, 5, 5, "div", 46)(3, SeleccionarTipoNotifComponent_ng_template_41_div_3_Template, 7, 1, "div", 46)(4, SeleccionarTipoNotifComponent_ng_template_41_div_4_Template, 7, 1, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r5.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r5.filtros.NotifDominio.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r5.filtros.Condicional.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r5.filtros.RequiereGeneracion.Ocultar);
  }
}
/* Componente que permite visualizar un listado de tipos de notificación y seleccionar uno en particular */
class SeleccionarTipoNotifComponent {
  constructor(tipoNotifService, fb, modal, modalService, notifDominioService) {
    this.tipoNotifService = tipoNotifService;
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.notifDominioService = notifDominioService;
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      //SECCION FILTROS
      Condicional: {
        Id: '',
        Ocultar: false
      },
      NotifDominio: {
        Ids: '',
        Ocultar: false
      },
      RequiereGeneracion: {
        Id: '',
        Ocultar: false
      }
      //FIN SECCION FILTROS
    };
    //SP SINWEB-203 nueva config para seleccion multiple
    //@Input() multiple : boolean = false;
    this.tiposNotif = [];
    this.dominiosNotif = [];
    this.dominiosSelect = [];
    this.esCondicional = '';
    this.requiereGeneracion = '';
    this.tiposNotif_seleccionados = [];
    this.tipoNotif_seleccionado = '';
    // public marcas:any[];
    // public marcas_seleccionadas:string;
    this.filtro = false;
    this.tiposNotifHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.TiposNotifHeader;
    this.formGroup = this.fb.group({
      buscarCod: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.maxLength(5)],
      buscarNom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.maxLength(50)],
      condicional: [''],
      reqGen: [''],
      tiposDominio: [[]]
    });
    this.todosOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.subscriptions = [];
    //paginacion tiposNotif
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_2__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarDominios();
    this.cargarTiposNotif();
    this.configuracionFilter();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {
    this.subscriptions.push(this.formGroup.controls.tiposDominio.valueChanges.subscribe(dom => {
      this.dominiosSelect = dom;
      this.page = 1;
      this.cargarTiposNotif();
    }));
    this.subscriptions.push(this.formGroup.controls.condicional.valueChanges.subscribe(cond => {
      this.esCondicional = cond;
      this.page = 1;
      this.cargarTiposNotif();
    }));
    this.subscriptions.push(this.formGroup.controls.reqGen.valueChanges.subscribe(req => {
      this.requiereGeneracion = req;
      this.page = 1;
      this.cargarTiposNotif();
    }));
  }
  cargarDominios() {
    let datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'Asc'
    };
    const susc = this.notifDominioService.fetch(datos).subscribe(resp => {
      if (resp.Data != undefined) {
        this.dominiosNotif = resp.Data;
      }
    });
  }
  cargarTiposNotif() {
    this.onSearchTiposNotif(this.cargarFiltrosArt(this.page, this.order, this.sentido));
  }
  buscarTiposNotif() {
    this.page = 1;
    this.cargarTiposNotif();
  }
  onSearchTiposNotif(datos) {
    const susc = this.tipoNotifService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.tiposNotif = data.Data;
      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.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarTiposNotif();
  }
  /**
   * SP SINWEB-360 metodo que inicializa variables de filtros
   */
  inicializarFiltros() {
    this.esCondicional = this.filtros.Condicional.Id;
    this.formGroup.get('condicional').setValue(this.esCondicional);
    this.requiereGeneracion = this.filtros.RequiereGeneracion.Id;
    this.formGroup.get('reqGen').setValue(this.requiereGeneracion);
    this.dominiosSelect = this.filtros.NotifDominio.Ids == '' ? [] : this.filtros.NotifDominio.Ids.split(',').map(el => Number(el));
    this.formGroup.get('tiposDominio').setValue(this.dominiosSelect);
  }
  cargarFiltrosArt(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    if (this.esCondicional != undefined && this.esCondicional != '') {
      datos.EsCondicional = this.esCondicional;
    }
    if (this.requiereGeneracion != undefined && this.requiereGeneracion != '') {
      datos.RequiereGeneracion = this.requiereGeneracion;
    }
    if (this.dominiosSelect != undefined && this.dominiosSelect.length > 0) {
      datos.IdsNotifDominio = this.dominiosSelect.join(',');
    }
    if (this.formGroup.value.buscarCod != undefined && this.formGroup.value.buscarCod != '') {
      datos.Codigo = this.formGroup.value.buscarCod;
    }
    if (this.formGroup.value.buscarNom != undefined && this.formGroup.value.buscarNom != '') {
      datos.Nombre = this.formGroup.value.buscarNom;
    }
    return datos;
  }
  selectTipoNotif($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltrosArt(-1, this.order, this.sentido);
      this.tipoNotifService.fetch(datos).subscribe(res => {
        this.tiposNotif_seleccionados = res.Data;
      });
    } else {
      this.tiposNotif_seleccionados = $event.rows;
      this.tipoNotif_seleccionado = this.tiposNotif_seleccionados.length == 1 ? '(' + this.tiposNotif_seleccionados[0].Codigo + ') ' + this.tiposNotif_seleccionados[0].Nombre : '';
    }
  }
  quitarTipoNotif(articulo) {
    this.tiposNotif_seleccionados = this.tiposNotif_seleccionados.filter(art => art.Id !== articulo.Id);
  }
  /* Metodo que elimina todos o  el articulo de la selección */
  EliminarTiposNotif() {
    this.tiposNotif_seleccionados = [];
    this.tipoNotif_seleccionado = '';
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdTipoNotif: this.tiposNotif_seleccionados[0].Id,
        TipoNotif: '(' + this.tiposNotif_seleccionados[0].Codigo + ') ' + this.tiposNotif_seleccionados[0].Nombre,
        TipoNotifObj: this.tiposNotif_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsTiposNotif: this.tiposNotif_seleccionados.map(art => art.Id),
        TiposNotif: this.tiposNotif_seleccionados.map(art => '(' + art.Codigo + ') ' + art.Nombre),
        TiposNotifObj: this.tiposNotif_seleccionados
      });
    }
  }
  getTipoNotifCod() {
    return this.formGroup.controls.buscarCod.value;
  }
  getTipoNotifNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  borrarTipoNotifCod() {
    this.formGroup.controls.buscarCod.reset('');
    this.cargarTiposNotif();
  }
  borrarTipoNotifNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarTiposNotif();
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  static #_ = this.ɵfac = function SeleccionarTipoNotifComponent_Factory(t) {
    return new (t || SeleccionarTipoNotifComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionTipo_service__WEBPACK_IMPORTED_MODULE_4__.NotificacionTipoServices), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionDominio_service__WEBPACK_IMPORTED_MODULE_5__.NotificacionDominioServices));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
    type: SeleccionarTipoNotifComponent,
    selectors: [["seleccionar-tipo-notif"]],
    inputs: {
      filtros: "filtros"
    },
    decls: 43,
    vars: 28,
    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, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "buscarCod", "placeholder", "", "maxlength", "5", 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"], ["type", "text", "formControlName", "buscarNom", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "keyup.enter"], ["class", "col-xxl-3 col-lg-3", 4, "ngIf"], ["class", "card", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [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"], ["FILTRO_TIPO_NOTIF", ""], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-3", "col-lg-3"], ["type", "text", "name", "TipoNotif", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], [3, "formGroup"], [1, "row", "p-2"], ["class", "col-xxl-4 col-lg-4 mt-2", 4, "ngIf"], [1, "col-xxl-4", "col-lg-4", "mt-2"], [1, "mb-1", "fw-500"], ["labelKey", "Nombre", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "loading", "emitSelected"], ["formControlName", "condicional", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["formControlName", "reqGen", 1, "form-select"]],
    template: function SeleccionarTipoNotifComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Seleccionar Tipo de Notificaci\u00F3n ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "a", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_Template_a_click_7_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](9, "div", 7)(10, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](11, "Buscar por c\u00F3digo");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](12, "div", 9)(13, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("keyup.enter", function SeleccionarTipoNotifComponent_Template_input_keyup_enter_13_listener() {
          return ctx.buscarTiposNotif();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](14, SeleccionarTipoNotifComponent_a_14_Template, 2, 0, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](15, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_Template_a_click_15_listener() {
          return ctx.buscarTiposNotif();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](16, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](17, "div", 7)(18, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](19, "Buscar por nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](20, "div", 9)(21, "input", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("keyup.enter", function SeleccionarTipoNotifComponent_Template_input_keyup_enter_21_listener() {
          return ctx.buscarTiposNotif();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](22, SeleccionarTipoNotifComponent_a_22_Template, 2, 0, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](23, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_Template_a_click_23_listener() {
          return ctx.buscarTiposNotif();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](24, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](25, SeleccionarTipoNotifComponent_div_25_Template, 7, 1, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](26, SeleccionarTipoNotifComponent_div_26_Template, 3, 1, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](27, "div", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](28, SeleccionarTipoNotifComponent_div_28_Template, 5, 3, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](29, "form", 19)(30, "div", 17)(31, "div", 20)(32, "div", 21)(33, "app-table2", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("lazyLoad", function SeleccionarTipoNotifComponent_Template_app_table2_lazyLoad_33_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarTipoNotifComponent_Template_app_table2_selectRowsAction_33_listener($event) {
          return ctx.selectTipoNotif($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](34, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](35, "div", 23)(36, "button", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_Template_button_click_36_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](37, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](38, "button", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarTipoNotifComponent_Template_button_click_38_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](39, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](40, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](41, SeleccionarTipoNotifComponent_ng_template_41_Template, 5, 4, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵ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_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-3 col-lg-3" : "col-xxl-5 col-lg-5");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.getTipoNotifCod());
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-5 col-lg-5 col-md-4" : "col-xxl-6 col-lg-6 col-md-4");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.getTipoNotifNom());
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.tiposNotif_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("columns", ctx.tiposNotifHeader)("datos", ctx.tiposNotif)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](34, 24, ctx.tipoNotifService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.tiposNotif_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.tiposNotif_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](39, 26, ctx.tipoNotifService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_6__.SelectMultipleComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n[_nghost-%COMP%]     .p-treeselect {\n  height: 36.75px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-treeselect-label {\n  font-size: 0.8125rem;\n  padding: 8px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-tree-container {\n  font-size: 0.8125rem;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-overlay {\n  top: 37px !important;\n}\n\n.fw-500[_ngcontent-%COMP%] {\n  font-weight: 500;\n}\n\n .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}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

/***/ 33974:
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-usuario-web/seleccionar-usuario-web.component.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarUsuarioWebComponent: () => (/* binding */ SeleccionarUsuarioWebComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_services_core_usuario_web_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/usuario-web.service */ 68599);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);












function SeleccionarUsuarioWebComponent_div_7_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_7_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r6.borrarUsuario());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function SeleccionarUsuarioWebComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 15)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Buscar por usuario");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 17)(4, "input", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("keyup.enter", function SeleccionarUsuarioWebComponent_div_7_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r8.buscarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SeleccionarUsuarioWebComponent_div_7_a_5_Template, 2, 0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_7_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r9);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r10.buscarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](7, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", !ctx_r0.filtros.Multiple ? "col-xxl-4 col-lg-4" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r0.getUsuario());
  }
}
function SeleccionarUsuarioWebComponent_div_8_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_8_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.borrarEmail());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function SeleccionarUsuarioWebComponent_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 15)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Buscar por email");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 17)(4, "input", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("keyup.enter", function SeleccionarUsuarioWebComponent_div_8_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r14.buscarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SeleccionarUsuarioWebComponent_div_8_a_5_Template, 2, 0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_8_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r15);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r16.buscarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](7, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", !ctx_r1.filtros.Multiple ? "col-xxl-4 col-lg-4" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getEmail());
  }
}
function SeleccionarUsuarioWebComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 25)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Usuario Web seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_9_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r17.EliminarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r2.usuarioWeb_seleccionado);
  }
}
function SeleccionarUsuarioWebComponent_div_11_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_11_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r25);
      const provSelect_r23 = restoredCtx.$implicit;
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r24.quitarUsuarioWeb(provSelect_r23));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const provSelect_r23 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", provSelect_r23.Usuario, " ");
  }
}
function SeleccionarUsuarioWebComponent_div_11_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_11_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r27);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r26.EliminarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarUsuarioWebComponent_div_11_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SeleccionarUsuarioWebComponent_div_11_div_3_div_1_Template, 3, 2, "div", 32)(2, SeleccionarUsuarioWebComponent_div_11_div_3_div_2_Template, 3, 1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r19.usuariosWeb_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r19.usuariosWeb_seleccionados.length > 1);
  }
}
function SeleccionarUsuarioWebComponent_div_11_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_11_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r28.EliminarUsuariosWeb());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Todos los usuarios web ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarUsuarioWebComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 28)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Usuarios Web seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, SeleccionarUsuarioWebComponent_div_11_div_3_Template, 3, 2, "div", 29)(4, SeleccionarUsuarioWebComponent_div_11_div_4_Template, 4, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r3.usuariosWeb_seleccionados.length > 0 && ctx_r3.usuariosWeb_seleccionados.length < ctx_r3.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r3.usuariosWeb_seleccionados.length >= ctx_r3.totalItems);
  }
}
function SeleccionarUsuarioWebComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 37)(1, "button", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_18_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r31);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r30.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "button", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function SeleccionarUsuarioWebComponent_div_18_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r31);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r32.select());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx_r4.formGroup.invalid || ctx_r4.usuariosWeb_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 1, ctx_r4.isLoading));
  }
}
class SeleccionarUsuarioWebComponent {
  constructor(usuarioWebService, fb, modal, authService) {
    this.usuarioWebService = usuarioWebService;
    this.fb = fb;
    this.modal = modal;
    this.authService = authService;
    //SP SINWEB-8 debido a errores en la logica anterior se separo el manejo de la tabla por front del fecthSource que indica que se usa un endpoint pasado por paramentro
    //Se agrego el input datos para pasarle un conjunto de datos por input y asi manejar la tabla por front
    //@Input() datos:any[];
    this.seleccionados = [];
    this.emitSeleccionados = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      Modal: true,
      OcultarFiltros: false,
      //SECCION FILTROS
      BajaLogica: {
        Id: 'N',
        Ocultar: true
      },
      Plataforma: {
        Id: 1,
        Ocultar: true
      },
      RolUsrWeb: {
        Ids: '',
        Ocultar: false
      },
      IncluirClientes: 'N',
      IncluirClientesSucursales: 'N'
    };
    this.filtro = false;
    this.usuariosWebHeader = lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_1__.UsuariosWebHeader);
    this.usuariosWeb = [];
    this.todosOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.usuariosWeb_seleccionados = [];
    this.usuarioWeb_seleccionado = '';
    //FILTROS
    this.BajaLogica = 'N';
    //public Sucursal: number = -1;
    this.formGroup = this.fb.group({
      UsuarioWeb: [''],
      UsuariosWeb: [[]],
      buscarUsuario: [''],
      buscarEmail: [''],
      BajaLogica: ['N']
    });
    this.subscriptions = [];
    this.isLoading = this.usuarioWebService.isLoading$;
    //paginacion usuariosWeB
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.CANT_SEARCH;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.INIT_SENTIDO;
    this.totalItems = 0;
    this.totalSelect = 0;
  }
  ngOnInit() {
    if (this.seleccionados) {
      this.usuariosWeb_seleccionados = this.seleccionados;
      this.usuarioWeb_seleccionado = this.usuariosWeb_seleccionados.length == 1 ? this.usuariosWeb_seleccionados[0].Nombre : '';
    }
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.page = 1;
    this.previousPage = 1;
    this.inicializarFiltros();
    this.cargarUsuariosWeb();
    this.configFiltros();
  }
  configFiltros() {
    this.subscriptions.push(this.formGroup.get('BajaLogica').valueChanges.subscribe(value => {
      this.BajaLogica = value;
      this.page = 1;
      this.cargarUsuariosWeb();
    }));
  }
  inicializarFiltros() {
    this.BajaLogica = this.filtros.BajaLogica.Id;
    this.formGroup.get('BajaLogica').setValue(this.BajaLogica);
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarUsuariosWeb() {
    this.onSearchUsuariosWeb(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarUsuariosWeb() {
    this.page = 1;
    this.cargarUsuariosWeb();
  }
  onSearchUsuariosWeb(datos) {
    // MC SINWEB-197 Cambios para la generalización del componente
    let susc;
    susc = this.usuarioWebService.getUsuarioWebByPlataforma(datos, this.filtros.Plataforma.Id).subscribe(data => {
      this.usuariosWeb = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    this.subscriptions.push(susc);
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    // MC SINWEB-197 Cambios para la generalización del componente
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //SP se agrego la condicion de datos ya que tampoco deberia buscar por nombre y codigo si la tabla es por front
    if (!this.filtros.OcultarFiltros) {
      if (this.formGroup.value.buscarUsuario != undefined && this.formGroup.value.buscarUsuario != '') {
        datos.Usuario = this.formGroup.value.buscarUsuario;
      }
      if (this.formGroup.value.buscarEmail != undefined && this.formGroup.value.buscarEmail != '') {
        datos.Email = this.formGroup.value.buscarEmail;
      }
      if (this.BajaLogica != undefined && this.BajaLogica != '') {
        datos.BajaLogica = this.BajaLogica;
      }
    } else {
      if (this.filtros.BajaLogica != undefined && this.filtros.BajaLogica.Id != '') {
        datos.BajaLogica = this.filtros.BajaLogica.Id;
      }
    }
    return datos;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarUsuariosWeb();
  }
  selectUsuario($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      delete datos.PageSize;
      this.usuarioWebService.getUsuarioWebByPlataforma(datos, this.filtros.Plataforma.Id).subscribe(res => {
        this.usuariosWeb_seleccionados = res.Data;
        if (!this.filtros.Modal) {
          this.selectEmit();
        }
      });
    } else {
      this.usuariosWeb_seleccionados = $event.rows;
      this.usuarioWeb_seleccionado = this.usuariosWeb_seleccionados.length == 1 ? this.usuariosWeb_seleccionados[0].Usuario : '';
      if (!this.filtros.Modal) {
        this.selectEmit();
      }
    }
    // if(!this.filtros.Modal){
    //   this.selectEmit()
    // }
  }
  quitarUsuarioWeb(usuario) {
    this.usuariosWeb_seleccionados = this.usuariosWeb_seleccionados.filter(prov => prov.Id !== usuario.Id);
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  EliminarUsuariosWeb() {
    this.usuariosWeb_seleccionados = [];
    this.usuarioWeb_seleccionado = '';
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdUsuarioWeb: this.usuariosWeb_seleccionados[0].Id,
        UsuarioWeb: this.usuariosWeb_seleccionados[0].Usuario,
        UsuarioWebObj: this.usuariosWeb_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsUsuariosWeb: this.usuariosWeb_seleccionados.map(usr => usr.Id),
        UsuariosWeb: this.usuariosWeb_seleccionados.map(usr => usr.Usuario),
        UsuariosWebObj: this.usuariosWeb_seleccionados
      });
    }
  }
  selectEmit() {
    const formData = this.formGroup.value;
    if (!this.filtros.Modal) {
      if (!this.filtros.Multiple) {
        this.emitSeleccionados.emit({
          IdUsuarioWeb: this.usuariosWeb_seleccionados[0].Id,
          UsuarioWeb: this.usuariosWeb_seleccionados[0].Usuario,
          UsuarioWebObj: this.usuariosWeb_seleccionados[0]
        });
      } else {
        this.emitSeleccionados.emit({
          IdsUsuariosWeb: this.usuariosWeb_seleccionados.map(usr => usr.Id),
          UsuariosWeb: this.usuariosWeb_seleccionados.map(usr => usr.Usuario),
          UsuariosWebObj: this.usuariosWeb_seleccionados
        });
      }
    }
  }
  getUsuario() {
    return this.formGroup.controls.buscarUsuario.value;
  }
  borrarUsuario() {
    this.formGroup.get('buscarUsuario').reset('');
    this.cargarUsuariosWeb();
  }
  getEmail() {
    return this.formGroup.controls.buscarEmail.value;
  }
  borrarEmail() {
    this.formGroup.get('buscarEmail').reset('');
    this.cargarUsuariosWeb();
  }
  getPlataforma() {
    switch (this.filtros.Plataforma.Id) {
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_3__.PLATAFORMA_VENDU:
        return 'Vendú';
      case src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_3__.PLATAFORMA_MERCADO_LIBRE:
        return 'Mercado Libre';
      default:
        return '';
    }
  }
  static #_ = this.ɵfac = function SeleccionarUsuarioWebComponent_Factory(t) {
    return new (t || SeleccionarUsuarioWebComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_usuario_web_service__WEBPACK_IMPORTED_MODULE_4__.UsuarioWebService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: SeleccionarUsuarioWebComponent,
    selectors: [["app-seleccionar-usuario-web"]],
    inputs: {
      seleccionados: "seleccionados",
      filtros: "filtros"
    },
    outputs: {
      emitSeleccionados: "emitSeleccionados"
    },
    decls: 19,
    vars: 23,
    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"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass", 4, "ngIf"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], ["class", "modal-footer", 4, "ngIf"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "buscarUsuario", "buscar", "Buscar", "placeholder", "", 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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["type", "text", "formControlName", "buscarEmail", "buscar", "Buscar", "placeholder", "", 1, "form-control", 3, "keyup.enter"], [1, "col-xxl-4", "col-lg-4"], ["type", "text", "name", "UsuarioWeb", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], [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"]],
    template: function SeleccionarUsuarioWebComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](7, SeleccionarUsuarioWebComponent_div_7_Template, 8, 2, "div", 6)(8, SeleccionarUsuarioWebComponent_div_8_Template, 8, 2, "div", 6)(9, SeleccionarUsuarioWebComponent_div_9_Template, 7, 1, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](11, SeleccionarUsuarioWebComponent_div_11_Template, 5, 3, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](12, "form", 10)(13, "div", 8)(14, "div", 11)(15, "div", 12)(16, "app-table2", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("lazyLoad", function SeleccionarUsuarioWebComponent_Template_app_table2_lazyLoad_16_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarUsuarioWebComponent_Template_app_table2_selectRowsAction_16_listener($event) {
          return ctx.selectUsuario($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](17, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, SeleccionarUsuarioWebComponent_div_18_Template, 6, 3, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" Seleccionar Usuario Web - ", ctx.getPlataforma(), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.usuariosWeb_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("columns", ctx.usuariosWebHeader)("datos", ctx.usuariosWeb)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](17, 21, ctx.isLoading))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.usuariosWeb_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.filtros.Modal);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_10__.AsyncPipe],
    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}"]
  });
}

/***/ }),

/***/ 32998:
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/seleccionar-usuarios/seleccionar-usuarios.component.ts ***!
  \**********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarUsuariosComponent: () => (/* binding */ SeleccionarUsuariosComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* 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_seleccionar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* 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_core_services_core_usuario_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/usuario.service */ 6146);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/sucursal.service */ 38396);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);














function SeleccionarUsuariosComponent_div_10_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_10_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r8.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function SeleccionarUsuariosComponent_div_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 8)(1, "label", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Buscar por nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 21)(4, "input", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("keyup.enter", function SeleccionarUsuariosComponent_div_10_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r10.buscarUsuarios());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, SeleccionarUsuariosComponent_div_10_a_5_Template, 2, 0, "a", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_10_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r11);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r12.buscarUsuarios());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "i", 25);
    _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__["ɵɵproperty"]("ngClass", !ctx_r0.filtros.Multiple ? "col-xxl-4 col-lg-4" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r0.getNombre());
  }
}
function SeleccionarUsuariosComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 28)(1, "label", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Usuario seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](4, "input", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "a", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_11_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r13.EliminarUsuarios());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](6, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r1.usuario_seleccionado);
  }
}
function SeleccionarUsuariosComponent_div_12_ng_template_2_Template(rf, ctx) {}
function SeleccionarUsuariosComponent_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 31)(1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, SeleccionarUsuariosComponent_div_12_ng_template_2_Template, 0, 0, "ng-template", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function SeleccionarUsuariosComponent_div_14_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_14_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r22);
      const provSelect_r20 = restoredCtx.$implicit;
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r21.quitarArticulo(provSelect_r20));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const provSelect_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", provSelect_r20.Nombre, " ");
  }
}
function SeleccionarUsuariosComponent_div_14_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_14_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r23.EliminarUsuarios());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarUsuariosComponent_div_14_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, SeleccionarUsuariosComponent_div_14_div_3_div_1_Template, 3, 2, "div", 38)(2, SeleccionarUsuariosComponent_div_14_div_3_div_2_Template, 3, 1, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r16.usuarios_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r16.usuarios_seleccionados.length > 1);
  }
}
function SeleccionarUsuariosComponent_div_14_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_14_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r25.EliminarUsuarios());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Todos los usuarios ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarUsuariosComponent_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 34)(1, "label", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Usuarios seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, SeleccionarUsuariosComponent_div_14_div_3_Template, 3, 2, "div", 35)(4, SeleccionarUsuariosComponent_div_14_div_4_Template, 4, 1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r3.usuarios_seleccionados.length > 0 && ctx_r3.usuarios_seleccionados.length < ctx_r3.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r3.usuarios_seleccionados.length >= ctx_r3.totalItems);
  }
}
function SeleccionarUsuariosComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 43)(1, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_21_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r28);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r27.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "button", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_div_21_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r28);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r29.select());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r4.formGroup.invalid || ctx_r4.usuarios_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](4, 1, ctx_r4.isLoading));
  }
}
function SeleccionarUsuariosComponent_ng_template_22_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 47)(1, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Sucursal de Creaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "select-loading", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("valueSelect", function SeleccionarUsuariosComponent_ng_template_22_div_2_Template_select_loading_valueSelect_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r32.formGroup.controls.SucursalCreacion.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Todos")("items", ctx_r30.sucursales)("valueSelected", ctx_r30.formGroup.controls.SucursalCreacion.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](4, 5, ctx_r30.sucursalService.isLoading$));
  }
}
function SeleccionarUsuariosComponent_ng_template_22_div_3_option_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "option", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r35 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", option_r35.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", option_r35.nombre, " ");
  }
}
function SeleccionarUsuariosComponent_ng_template_22_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 47)(1, "p", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Baja L\u00F3gica");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "select", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, SeleccionarUsuariosComponent_ng_template_22_div_3_option_4_Template, 2, 2, "option", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r31.todosOptions);
  }
}
function SeleccionarUsuariosComponent_ng_template_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, SeleccionarUsuariosComponent_ng_template_22_div_2_Template, 5, 7, "div", 46)(3, SeleccionarUsuariosComponent_ng_template_22_div_3_Template, 5, 1, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r5.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx_r5.filtros.SucursalCreacion.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx_r5.filtros.BajaLogica.Ocultar);
  }
}
class SeleccionarUsuariosComponent {
  constructor(usuarioService, fb, modal, authService, sucursalService) {
    this.usuarioService = usuarioService;
    this.fb = fb;
    this.modal = modal;
    this.authService = authService;
    this.sucursalService = sucursalService;
    //SP SINWEB debido a errores en la logica anterior se separo el manejo de la tabla por front del fecthSource que indica que se usa un endpoint pasado por paramentro
    //Se agrego el input datos para pasarle un conjunto de datos por input y asi manejar la tabla por front
    //@Input() datos:any[];
    this.seleccionados = [];
    this.emitSeleccionados = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      Modal: true,
      OcultarFiltros: false,
      //SECCION FILTROS
      BajaLogica: {
        Id: 'N',
        Ocultar: true
      },
      //Sucursal: {Id:-1,Ocultar:false},
      SucursalCreacion: {
        Id: -1,
        Ocultar: false
      }
      //FIN SECCION FILTROS
    };
    this.filtro = false;
    this.usuariosHeader = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.copiarObjeto)(src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_2__.UsuariosHeader);
    this.usuarios = [];
    this.sucursales = [];
    this.todosOptions = [{
      id: '',
      nombre: 'Todos'
    }, {
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.usuarios_seleccionados = [];
    this.usuario_seleccionado = '';
    //FILTROS
    this.BajaLogica = 'N';
    //public Sucursal: number = -1;
    this.SucursalCreacion = -1;
    this.formGroup = this.fb.group({
      Usuario: [''],
      Usuarios: [[]],
      buscarNombre: [''],
      BajaLogica: ['N'],
      //Sucursal: [-1],
      SucursalCreacion: [-1]
    });
    this.subscriptions = [];
    this.isLoading = this.usuarioService.isLoading$;
    //paginacion usuarios
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.CANT_SEARCH;
    this.order = 2;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO;
    this.totalItems = 0;
    this.totalSelect = 0;
  }
  ngOnInit() {
    if (this.seleccionados) {
      this.usuarios_seleccionados = this.seleccionados;
      this.usuario_seleccionado = this.usuarios_seleccionados.length == 1 ? this.usuarios_seleccionados[0].Nombre : '';
    }
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.page = 1;
    this.previousPage = 1;
    this.inicializarFiltros();
    this.cargarSucursales();
    this.cargarUsuarios();
    this.configFiltros();
  }
  configFiltros() {
    this.subscriptions.push(this.formGroup.get('BajaLogica').valueChanges.subscribe(value => {
      this.BajaLogica = value;
      this.page = 1;
      this.cargarUsuarios();
    }));
    this.subscriptions.push(this.formGroup.get('SucursalCreacion').valueChanges.subscribe(value => {
      this.SucursalCreacion = value;
      this.page = 1;
      this.cargarUsuarios();
    }));
  }
  inicializarFiltros() {
    this.BajaLogica = this.filtros.BajaLogica.Id;
    this.formGroup.get('BajaLogica').setValue(this.BajaLogica);
    //this.Sucursal = this.filtros.Sucursal.Id;
    //this.formGroup.get("Sucursal").setValue(this.Sucursal)
    this.SucursalCreacion = this.filtros.SucursalCreacion.Id;
    this.formGroup.get('SucursalCreacion').setValue(this.SucursalCreacion);
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarUsuarios() {
    this.onSearchUsuarios(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  buscarUsuarios() {
    this.page = 1;
    this.cargarUsuarios();
  }
  cargarSucursales() {
    const datos = {
      PageNumber: -1,
      IdEmpresa: this.authService.usuario.IdEmpresa
    };
    // MC SINWEB-197 Cambios para la generalización del componente
    let susc;
    susc = this.sucursalService.fetch(datos).subscribe(data => {
      this.sucursales = data.Data;
    });
    this.subscriptions.push(susc);
  }
  onSearchUsuarios(datos) {
    // MC SINWEB-197 Cambios para la generalización del componente
    let susc;
    susc = this.usuarioService.fetch(datos, undefined).subscribe(data => {
      this.usuarios = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    this.subscriptions.push(susc);
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    // MC SINWEB-197 Cambios para la generalización del componente
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.IncluirSucursalDeCreacion = 'S';
    //SP se agrego la condicion de datos ya que tampoco deberia buscar por nombre y codigo si la tabla es por front
    if (!this.filtros.OcultarFiltros) {
      if (this.formGroup.value.buscarNombre != undefined && this.formGroup.value.buscarNombre != '') {
        datos.Nombre = this.formGroup.value.buscarNombre;
      }
      if (this.BajaLogica != undefined && this.BajaLogica != '') {
        datos.BajaLogica = this.BajaLogica;
      }
      // if (this.Sucursal != undefined && this.Sucursal != -1){
      //   datos.IdSucursal = this.Sucursal;
      // }
      if (this.SucursalCreacion != undefined && this.SucursalCreacion != -1) {
        datos.IdSucursalDeCreacion = this.SucursalCreacion;
      }
    } else {
      if (this.filtros.BajaLogica != undefined && this.filtros.BajaLogica.Id != '') {
        datos.BajaLogica = this.filtros.BajaLogica.Id;
      }
      // if (this.filtros.Sucursal != undefined && this.filtros.Sucursal.Id != -1){
      //   datos.IdSucursal = this.filtros.Sucursal.Id;
      // }
      if (this.filtros.SucursalCreacion != undefined && this.filtros.SucursalCreacion.Id != -1) {
        datos.IdSucursalDeCreacion = this.filtros.SucursalCreacion.Id;
      }
    }
    return datos;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarUsuarios();
  }
  selectUsuario($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      //SP SINWEB-435 se agrega la condicion ppara el caso de que use FetchSource
      let datos = this.cargarFiltros(-1, this.order, this.sentido);
      this.usuarioService.fetch(datos).subscribe(res => {
        this.usuarios_seleccionados = res.Data;
        if (!this.filtros.Modal) {
          this.selectEmit();
        }
      });
    } else {
      this.usuarios_seleccionados = $event.rows;
      this.usuario_seleccionado = this.usuarios_seleccionados.length == 1 ? this.usuarios_seleccionados[0].Nombre : '';
      if (!this.filtros.Modal) {
        this.selectEmit();
      }
    }
    // if(!this.filtros.Modal){
    //   this.selectEmit()
    // }
  }
  quitarUsuario(usuario) {
    this.usuarios_seleccionados = this.usuarios_seleccionados.filter(prov => prov.Id !== usuario.Id);
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  /* Metodo que elimina todos o  el usuario de la selección */
  EliminarUsuarios() {
    this.usuarios_seleccionados = [];
    this.usuario_seleccionado = '';
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdUsuario: this.usuarios_seleccionados[0].Id,
        Usuario: this.usuarios_seleccionados[0].Nombre,
        UsuarioObj: this.usuarios_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsUsuarios: this.usuarios_seleccionados.map(usr => usr.Id),
        Usuarios: this.usuarios_seleccionados.map(usr => usr.Nombre),
        UsuariosObj: this.usuarios_seleccionados
      });
    }
  }
  selectEmit() {
    const formData = this.formGroup.value;
    if (!this.filtros.Modal) {
      if (!this.filtros.Multiple) {
        this.emitSeleccionados.emit({
          IdUsuario: this.usuarios_seleccionados[0].Id,
          Usuario: this.usuarios_seleccionados[0].Nombre,
          UsuarioObj: this.usuarios_seleccionados[0]
        });
      } else {
        this.emitSeleccionados.emit({
          IdsUsuarios: this.usuarios_seleccionados.map(usr => usr.Id),
          Usuarios: this.usuarios_seleccionados.map(usr => usr.Nombre),
          UsuariosObj: this.usuarios_seleccionados
        });
      }
    }
  }
  //SP metodo get para obtener campo nombre
  getNombre() {
    return this.formGroup.controls.buscarNombre.value;
  }
  //SP metodo para limpiar filtro
  borrarNombre() {
    this.formGroup.get('buscarNombre').reset('');
    this.cargarUsuarios();
  }
  static #_ = this.ɵfac = function SeleccionarUsuariosComponent_Factory(t) {
    return new (t || SeleccionarUsuariosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_core_usuario_service__WEBPACK_IMPORTED_MODULE_4__.UsuarioService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_6__.SucursalService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: SeleccionarUsuariosComponent,
    selectors: [["app-seleccionar-usuarios"]],
    inputs: {
      seleccionados: "seleccionados",
      filtros: "filtros"
    },
    outputs: {
      emitSeleccionados: "emitSeleccionados"
    },
    decls: 24,
    vars: 23,
    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"], [3, "formGroup"], [1, "row", "p-2"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], [3, "ngClass", 4, "ngIf"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], ["class", "card", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], ["class", "modal-footer", 4, "ngIf"], ["FILTRO_USUARIO", ""], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "buscarNombre", "buscar", "Buscar", "placeholder", "", 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, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-4", "col-lg-4"], ["type", "text", "name", "Usuario", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], [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", "col-xxl-4 col-lg-4 mt-2", 4, "ngIf"], [1, "col-xxl-4", "col-lg-4", "mt-2"], [1, "mb-1", "fw-500"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["formControlName", "BajaLogica", 1, "form-select"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]],
    template: function SeleccionarUsuariosComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " Seleccionar Usuario ");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "a", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function SeleccionarUsuariosComponent_Template_a_click_8_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](9, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](10, SeleccionarUsuariosComponent_div_10_Template, 8, 2, "div", 9)(11, SeleccionarUsuariosComponent_div_11_Template, 7, 1, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](12, SeleccionarUsuariosComponent_div_12_Template, 3, 1, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](13, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](14, SeleccionarUsuariosComponent_div_14_Template, 5, 3, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "form", 14)(16, "div", 12)(17, "div", 15)(18, "div", 16)(19, "app-table2", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("lazyLoad", function SeleccionarUsuariosComponent_Template_app_table2_lazyLoad_19_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarUsuariosComponent_Template_app_table2_selectRowsAction_19_listener($event) {
          return ctx.selectUsuario($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](20, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](21, SeleccionarUsuariosComponent_div_21_Template, 6, 3, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](22, SeleccionarUsuariosComponent_ng_template_22_Template, 4, 3, "ng-template", null, 19, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵ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_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.usuarios_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("columns", ctx.usuariosHeader)("datos", ctx.usuarios)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](20, 21, ctx.isLoading))("acciones", false)("selectRows", true)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx.usuarios_seleccionados);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.filtros.Modal);
      }
    },
    dependencies: [_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_10__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_7__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_8__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe],
    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}"]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DashboardsRoutingModule: () => (/* binding */ DashboardsRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _default_default_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default/default.component */ 56671);
/* harmony import */ var _atributos_atributos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./atributos/atributos.component */ 33471);
/* harmony import */ var src_app_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/guards/auth.guard */ 8036);
/* harmony import */ var _articulos_articulos_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./articulos/articulos.component */ 63762);
/* harmony import */ var src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-general */ 15372);
/* harmony import */ var _atributos_rubros_atributos_rubros_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./atributos-rubros/atributos-rubros.component */ 43385);
/* harmony import */ var src_app_pages_dashboards_modulos_adicionales_modulos_adicionales_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/dashboards/modulos-adicionales/modulos-adicionales.component */ 19622);
/* harmony import */ var _notas_de_pedido_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./notas-de-pedido/notas-de-pedido.component */ 48547);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);












const routes = [{
  path: 'inicio',
  component: _default_default_component__WEBPACK_IMPORTED_MODULE_0__.DefaultComponent
}, {
  path: 'articulos',
  component: _articulos_articulos_component__WEBPACK_IMPORTED_MODULE_3__.ArticulosComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [src_app_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
  data: {
    permiso: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ARTICULOS
  }
}, {
  path: 'atributos',
  component: _atributos_atributos_component__WEBPACK_IMPORTED_MODULE_1__.AtributosComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [src_app_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
  data: {
    permiso: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ATRIBUTOS_ART
  }
}, {
  path: 'atributos-rubros',
  component: _atributos_rubros_atributos_rubros_component__WEBPACK_IMPORTED_MODULE_5__.AtributosRubrosComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [src_app_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
  data: {
    permiso: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ATRIBUTOS_RUBROS
  }
}, {
  //Notas de pedido
  path: 'notas-de-pedido',
  component: _notas_de_pedido_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_7__.NotasDePedidoComponent,
  canActivate: [src_app_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
  data: {
    permiso: src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__.PERMISO_LIS_COMPROBANTE
  }
}, {
  path: 'modulo-adicional',
  component: src_app_pages_dashboards_modulos_adicionales_modulos_adicionales_component__WEBPACK_IMPORTED_MODULE_6__.ModulosAdicionalesComponent
}];
class DashboardsRoutingModule {
  static #_ = this.ɵfac = function DashboardsRoutingModule_Factory(t) {
    return new (t || DashboardsRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineNgModule"]({
    type: DashboardsRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_10__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_10__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsetNgModuleScope"](DashboardsRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_10__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_10__.RouterModule]
  });
})();

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DashboardsModule: () => (/* binding */ DashboardsModule)
/* harmony export */ });
/* harmony import */ var _dashboards_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dashboards-routing.module */ 53789);
/* harmony import */ var _default_default_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default/default.component */ 56671);
/* harmony import */ var _configuracion_configuracion_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configuracion/configuracion.component */ 37763);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-articulo/seleccionar-articulo.component */ 62656);
/* harmony import */ var _core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var _core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./core/seleccionar-comprobante-venta/seleccionar-comprobante-venta.component */ 98163);
/* harmony import */ var _core_seleccionar_comprobante_compra_seleccionar_comprobante_compra_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./core/seleccionar-comprobante-compra/seleccionar-comprobante-compra.component */ 13484);
/* harmony import */ var _atributos_atributos_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./atributos/atributos.component */ 33471);
/* harmony import */ var _atributos_atributo_edit_atributo_edit_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./atributos/atributo-edit/atributo-edit.component */ 58694);
/* harmony import */ var _articulos_articulos_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./articulos/articulos.component */ 63762);
/* harmony import */ var _atributos_rubros_atributos_rubros_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./atributos-rubros/atributos-rubros.component */ 43385);
/* harmony import */ var _atributos_rubros_atributo_rubro_edit_atributo_rubro_edit_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./atributos-rubros/atributo-rubro-edit/atributo-rubro-edit.component */ 75363);
/* harmony import */ var _modulos_adicionales_modulos_adicionales_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./modulos-adicionales/modulos-adicionales.component */ 19622);
/* harmony import */ var _core_seleccionar_marca_seleccionar_marca_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./core/seleccionar-marca/seleccionar-marca.component */ 20224);
/* harmony import */ var _core_seleccionar_deposito_seleccionar_deposito_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./core/seleccionar-deposito/seleccionar-deposito.component */ 89730);
/* harmony import */ var _articulos_articulo_atributo_edit_articulo_atributo_edit_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./articulos/articulo-atributo-edit/articulo-atributo-edit.component */ 61089);
/* harmony import */ var _articulos_articulo_atributo_edit_articulo_atrib_edit_form_articulo_atrib_edit_form_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./articulos/articulo-atributo-edit/articulo-atrib-edit-form/articulo-atrib-edit-form.component */ 51175);
/* harmony import */ var _articulos_articulo_atributo_edit_articulo_atributo_envio_masivo_articulo_atributo_envio_masivo_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./articulos/articulo-atributo-edit/articulo-atributo-envio-masivo/articulo-atributo-envio-masivo.component */ 31631);
/* harmony import */ var _core_seleccionar_srv_contratado_seleccionar_srv_contratado_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./core/seleccionar-srv-contratado/seleccionar-srv-contratado.component */ 63378);
/* harmony import */ var _core_seleccionar_empleado_seleccionar_empleado_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./core/seleccionar-empleado/seleccionar-empleado.component */ 53317);
/* harmony import */ var _core_seleccionar_sucursal_seleccionar_sucursal_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./core/seleccionar-sucursal/seleccionar-sucursal.component */ 49208);
/* harmony import */ var _core_seleccionar_empresa_seleccionar_empresa_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./core/seleccionar-empresa/seleccionar-empresa.component */ 44973);
/* harmony import */ var _documentacion_documentacion_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./documentacion/documentacion.component */ 52949);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _exportaciones_exportaciones_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./exportaciones/exportaciones.component */ 9579);
/* harmony import */ var _core_seleccionar_tipo_notif_seleccionar_tipo_notif_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./core/seleccionar-tipo-notif/seleccionar-tipo-notif.component */ 18979);
/* harmony import */ var _core_seleccionar_formato_notif_seleccionar_formato_notif_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./core/seleccionar-formato-notif/seleccionar-formato-notif.component */ 18996);
/* harmony import */ var src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! src/app/shared/shared.module */ 56208);
/* harmony import */ var _core_seleccionar_usuarios_seleccionar_usuarios_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./core/seleccionar-usuarios/seleccionar-usuarios.component */ 32998);
/* harmony import */ var _core_seleccionar_public_usr_meli_seleccionar_public_usr_meli_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./core/seleccionar-public-usr-meli/seleccionar-public-usr-meli.component */ 13697);
/* harmony import */ var _panel_soporte_panel_soporte_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./panel-soporte/panel-soporte.component */ 73556);
/* harmony import */ var _panel_soporte_verificar_api_verificar_api_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./panel-soporte/verificar-api/verificar-api.component */ 71917);
/* harmony import */ var _perfil_perfil_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./perfil/perfil.component */ 27292);
/* harmony import */ var _core_seleccionar_tipo_articulo_seleccionar_tipo_articulo_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./core/seleccionar-tipo-articulo/seleccionar-tipo-articulo.component */ 20271);
/* harmony import */ var _core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./core/seleccionar-usuario-web/seleccionar-usuario-web.component */ 33974);
/* harmony import */ var _notas_de_pedido_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./notas-de-pedido/notas-de-pedido.component */ 48547);
/* harmony import */ var _notas_de_pedido_listado_cards_notas_de_pedido_listado_cards_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./notas-de-pedido/listado-cards-notas-de-pedido/listado-cards-notas-de-pedido.component */ 85850);
/* harmony import */ var _core_cargar_cliente_ocasional_cargar_cliente_ocasional_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./core/cargar-cliente-ocasional/cargar-cliente-ocasional.component */ 45804);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../../shared/ui/table2/table2.component */ 63033);











































//import { BusquedaIntegralComponent } from './core/busqueda-integral/busqueda-integral.component';
//import { SeleccionarComponent } from './core/busqueda-integral/seleccionar/seleccionar.component';
class DashboardsModule {
  static #_ = this.ɵfac = function DashboardsModule_Factory(t) {
    return new (t || DashboardsModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_39__["ɵɵdefineNgModule"]({
    type: DashboardsModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_39__["ɵɵdefineInjector"]({
    providers: [(0,ngx_mask__WEBPACK_IMPORTED_MODULE_40__.provideNgxMask)()],
    imports: [_dashboards_routing_module__WEBPACK_IMPORTED_MODULE_0__.DashboardsRoutingModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_27__.SharedModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_39__["ɵɵsetNgModuleScope"](DashboardsModule, {
    declarations: [_default_default_component__WEBPACK_IMPORTED_MODULE_1__.DefaultComponent, _configuracion_configuracion_component__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionComponent, src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_3__.SeleccionarProveedorComponent, src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_4__.SeleccionarArticuloComponent, _core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_5__.SeleccionarClienteComponent, _core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_6__.SeleccionarComprobanteVentaComponent, _core_seleccionar_comprobante_compra_seleccionar_comprobante_compra_component__WEBPACK_IMPORTED_MODULE_7__.SeleccionarComprobanteCompraComponent, _atributos_atributos_component__WEBPACK_IMPORTED_MODULE_8__.AtributosComponent, _atributos_atributo_edit_atributo_edit_component__WEBPACK_IMPORTED_MODULE_9__.AtributoEditComponent, _articulos_articulos_component__WEBPACK_IMPORTED_MODULE_10__.ArticulosComponent, _atributos_rubros_atributos_rubros_component__WEBPACK_IMPORTED_MODULE_11__.AtributosRubrosComponent, _atributos_rubros_atributo_rubro_edit_atributo_rubro_edit_component__WEBPACK_IMPORTED_MODULE_12__.AtributoRubroEditComponent, _modulos_adicionales_modulos_adicionales_component__WEBPACK_IMPORTED_MODULE_13__.ModulosAdicionalesComponent, _atributos_rubros_atributo_rubro_edit_atributo_rubro_edit_component__WEBPACK_IMPORTED_MODULE_12__.AtributoRubroEditComponent, _core_seleccionar_marca_seleccionar_marca_component__WEBPACK_IMPORTED_MODULE_14__.SeleccionarMarcaComponent, _core_seleccionar_deposito_seleccionar_deposito_component__WEBPACK_IMPORTED_MODULE_15__.SeleccionarDepositoComponent, _articulos_articulo_atributo_edit_articulo_atributo_edit_component__WEBPACK_IMPORTED_MODULE_16__.ArticuloAtributoEditComponent, _articulos_articulo_atributo_edit_articulo_atrib_edit_form_articulo_atrib_edit_form_component__WEBPACK_IMPORTED_MODULE_17__.ArticuloAtribEditFormComponent, _articulos_articulo_atributo_edit_articulo_atributo_envio_masivo_articulo_atributo_envio_masivo_component__WEBPACK_IMPORTED_MODULE_18__.ArticuloAtributoEnvioMasivoComponent, _core_seleccionar_srv_contratado_seleccionar_srv_contratado_component__WEBPACK_IMPORTED_MODULE_19__.SeleccionarSrvContratadoComponent, _core_seleccionar_empleado_seleccionar_empleado_component__WEBPACK_IMPORTED_MODULE_20__.SeleccionarEmpleadoComponent, _core_seleccionar_sucursal_seleccionar_sucursal_component__WEBPACK_IMPORTED_MODULE_21__.SeleccionarSucursalComponent, _core_seleccionar_empresa_seleccionar_empresa_component__WEBPACK_IMPORTED_MODULE_22__.SeleccionarEmpresaComponent, _documentacion_documentacion_component__WEBPACK_IMPORTED_MODULE_23__.DocumentacionComponent, _exportaciones_exportaciones_component__WEBPACK_IMPORTED_MODULE_24__.ExportacionesComponent, _core_seleccionar_tipo_notif_seleccionar_tipo_notif_component__WEBPACK_IMPORTED_MODULE_25__.SeleccionarTipoNotifComponent, _core_seleccionar_formato_notif_seleccionar_formato_notif_component__WEBPACK_IMPORTED_MODULE_26__.SeleccionarFormatoNotifComponent, _core_seleccionar_usuarios_seleccionar_usuarios_component__WEBPACK_IMPORTED_MODULE_28__.SeleccionarUsuariosComponent, _core_seleccionar_public_usr_meli_seleccionar_public_usr_meli_component__WEBPACK_IMPORTED_MODULE_29__.SeleccionarPublicUsrMeliComponent, _panel_soporte_panel_soporte_component__WEBPACK_IMPORTED_MODULE_30__.PanelSoporteComponent, _panel_soporte_verificar_api_verificar_api_component__WEBPACK_IMPORTED_MODULE_31__.VerificarApiComponent, _perfil_perfil_component__WEBPACK_IMPORTED_MODULE_32__.PerfilComponent, _core_seleccionar_tipo_articulo_seleccionar_tipo_articulo_component__WEBPACK_IMPORTED_MODULE_33__.SeleccionarTipoArticuloComponent, _core_seleccionar_usuario_web_seleccionar_usuario_web_component__WEBPACK_IMPORTED_MODULE_34__.SeleccionarUsuarioWebComponent, _notas_de_pedido_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_35__.NotasDePedidoComponent, _notas_de_pedido_listado_cards_notas_de_pedido_listado_cards_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_36__.ListadoCardsNotasDePedidoComponent, _core_cargar_cliente_ocasional_cargar_cliente_ocasional_component__WEBPACK_IMPORTED_MODULE_37__.CargarClienteOcasionalComponent
    //BusquedaIntegralComponent,
    //SeleccionarComponent,
    ],
    imports: [_dashboards_routing_module__WEBPACK_IMPORTED_MODULE_0__.DashboardsRoutingModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_27__.SharedModule],
    exports: [src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_3__.SeleccionarProveedorComponent, src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_4__.SeleccionarArticuloComponent, _core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_5__.SeleccionarClienteComponent, _core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_6__.SeleccionarComprobanteVentaComponent, _core_seleccionar_comprobante_compra_seleccionar_comprobante_compra_component__WEBPACK_IMPORTED_MODULE_7__.SeleccionarComprobanteCompraComponent, _panel_soporte_panel_soporte_component__WEBPACK_IMPORTED_MODULE_30__.PanelSoporteComponent
    //BusquedaIntegralComponent
    ]
  });
})();
_angular_core__WEBPACK_IMPORTED_MODULE_39__["ɵɵsetComponentScope"](_core_seleccionar_tipo_articulo_seleccionar_tipo_articulo_component__WEBPACK_IMPORTED_MODULE_33__.SeleccionarTipoArticuloComponent, [_angular_common__WEBPACK_IMPORTED_MODULE_41__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_42__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_42__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_42__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_42__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_42__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_42__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_42__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_38__.Table2Component], []);

/***/ }),

/***/ 27416:
/*!**************************************************!*\
  !*** ./src/app/pages/dashboards/default/data.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   emailSentBarChart: () => (/* binding */ emailSentBarChart),
/* harmony export */   monthlyEarningChart: () => (/* binding */ monthlyEarningChart),
/* harmony export */   statData: () => (/* binding */ statData),
/* harmony export */   transactions: () => (/* binding */ transactions)
/* harmony export */ });
const emailSentBarChart = {
  chart: {
    height: 340,
    type: 'bar',
    stacked: true,
    toolbar: {
      show: false
    },
    zoom: {
      enabled: true
    }
  },
  plotOptions: {
    bar: {
      horizontal: false,
      columnWidth: '15%',
      endingShape: 'rounded'
    }
  },
  dataLabels: {
    enabled: false
  },
  series: [{
    name: 'Series A',
    data: [44, 55, 41, 67, 22, 43, 36, 52, 24, 18, 36, 48]
  }, {
    name: 'Series B',
    data: [13, 23, 20, 8, 13, 27, 18, 22, 10, 16, 24, 22]
  }, {
    name: 'Series C',
    data: [11, 17, 15, 15, 21, 14, 11, 18, 17, 12, 20, 18]
  }],
  xaxis: {
    categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
  },
  colors: ['#556ee6', '#f1b44c', '#34c38f'],
  legend: {
    position: 'bottom'
  },
  fill: {
    opacity: 1
  }
};
const monthlyEarningChart = {
  chart: {
    height: 200,
    type: 'radialBar',
    offsetY: -10
  },
  plotOptions: {
    radialBar: {
      startAngle: -135,
      endAngle: 135,
      dataLabels: {
        name: {
          fontSize: '13px',
          color: undefined,
          offsetY: 60
        },
        value: {
          offsetY: 22,
          fontSize: '16px',
          color: undefined,
          formatter: val => {
            return val + '%';
          }
        }
      }
    }
  },
  colors: ['#556ee6'],
  fill: {
    type: 'gradient',
    gradient: {
      shade: 'dark',
      shadeIntensity: 0.15,
      inverseColors: false,
      opacityFrom: 1,
      opacityTo: 1,
      stops: [0, 50, 65, 91]
    }
  },
  stroke: {
    dashArray: 4
  },
  series: [67],
  labels: ['Series A']
};
const transactions = [{
  id: '#SK2540',
  name: 'Neal Matthews',
  date: '07 Oct, 2019',
  total: '$400',
  status: 'Paid',
  payment: ['fa-cc-mastercard', 'Mastercard'],
  index: 1
}, {
  id: '#SK2541',
  name: 'Jamal Burnett',
  date: '07 Oct, 2019',
  total: '$380',
  status: 'Chargeback',
  payment: ['fa-cc-visa', 'Visa'],
  index: 2
}, {
  id: '#SK2542',
  name: 'Juan Mitchell',
  date: '06 Oct, 2019',
  total: '$384',
  status: 'Paid',
  payment: ['fab fa-cc-paypal', 'Paypal'],
  index: 3
}, {
  id: '#SK2543',
  name: 'Barry Dick',
  date: '05 Oct, 2019',
  total: '$412',
  status: 'Paid',
  payment: ['fa-cc-mastercard', 'Mastercard'],
  index: 4
}, {
  id: '#SK2544',
  name: 'Ronald Taylor',
  date: '04 Oct, 2019',
  total: '$404',
  status: 'Refund',
  payment: ['fa-cc-visa', 'Visa'],
  index: 5
}, {
  id: '#SK2545',
  name: 'Jacob Hunter',
  date: '04 Oct, 2019',
  total: '$392',
  status: 'Paid',
  payment: ['fab fa-cc-paypal', 'Paypal'],
  index: 6
}];
const statData = [{
  icon: 'bx bx-copy-alt',
  title: 'Orders',
  value: '1,235'
}, {
  icon: 'bx bx-archive-in',
  title: 'Revenue',
  value: '$35, 723'
}, {
  icon: 'bx bx-purchase-tag-alt',
  title: 'Average Price',
  value: '$16.2'
}];


/***/ }),

/***/ 56671:
/*!***************************************************************!*\
  !*** ./src/app/pages/dashboards/default/default.component.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DefaultComponent: () => (/* binding */ DefaultComponent)
/* harmony export */ });
/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data */ 27416);
/* harmony import */ var _angular_common_locales_es__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/common/locales/es */ 46828);
/* 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_produccion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-produccion */ 69259);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! rxjs */ 9315);
/* 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 _angular_common__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-autorizacion */ 92558);
/* harmony import */ var src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-produccion */ 59896);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-servicios */ 52788);
/* harmony import */ var src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-web */ 73487);
/* harmony import */ var src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-estadistica */ 48214);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../core/services/event.service */ 42608);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_autorizacion_autorizacionComprobante_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/autorizacion/autorizacionComprobante.service */ 76190);
/* harmony import */ var src_app_core_services_produccion_ordenProduccion_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/produccion/ordenProduccion.service */ 76939);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var src_app_core_services_servicios_srvContratado_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/servicios/srvContratado.service */ 2158);
/* harmony import */ var src_app_core_services_estadisticas_estadistica_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/core/services/estadisticas/estadistica.service */ 57298);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var primeng_calendar__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! primeng/calendar */ 78743);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ng-apexcharts */ 86903);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! simplebar-angular */ 63744);
/* harmony import */ var _shared_ui_loader_loader_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../shared/ui/loader/loader.component */ 28336);
































const _c0 = ["content"];
function DefaultComponent_Conditional_26_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainer"](0);
  }
}
function DefaultComponent_Conditional_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](0, DefaultComponent_Conditional_26_ng_container_0_Template, 1, 0, "ng-container", 24);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](35);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function DefaultComponent_Conditional_27_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainer"](0);
  }
}
function DefaultComponent_Conditional_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](1, DefaultComponent_Conditional_27_ng_container_1_Template, 1, 0, "ng-container", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](35);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function DefaultComponent_div_31_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](1, "apx-chart", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("series", ctx_r13.chartPieReclamos.series)("chart", ctx_r13.chartPieReclamos.chart)("labels", ctx_r13.chartPieReclamos.labels)("colors", ctx_r13.chartPieReclamos.colors)("responsive", ctx_r13.chartPieReclamos.responsive)("legend", ctx_r13.chartPieReclamos.legend);
  }
}
function DefaultComponent_div_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 25)(1, "div", 9)(2, "div", 26)(3, "div")(4, "h4", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](5, "Reclamos");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](7, "1 a\u00F1o");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](8, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](9, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](10, DefaultComponent_div_31_div_10_Template, 2, 6, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](11, "div", 31)(12, "div", 1)(13, "div", 32)(14, "div", 33)(15, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](16, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](17, "div")(18, "p", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](19, "Abiertos");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](20, "h5", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](22, "div", 32)(23, "div", 33)(24, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](25, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](26, "div")(27, "p", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](28, "Cerrados");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](29, "h5", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r2.chartPieReclamos !== undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r2.reclamosAbiertos);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r2.reclamosCerrados);
  }
}
function DefaultComponent_Conditional_32_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 25)(1, "div", 9)(2, "div", 43)(3, "h4", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](4, "Comprobantes de autorizaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](5, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](6, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](7, "div", 45)(8, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](9, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](10, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](12, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](13, "Comprobantes totales");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](14, "div", 48)(15, "div", 49)(16, "div", 50)(17, "div", 51)(18, "p", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](19, "Pendientes");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](20, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](22, "div", 54)(23, "div", 55)(24, "div", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](25, "i", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](26, "div", 48)(27, "div", 49)(28, "div", 50)(29, "div", 51)(30, "p", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](31, "Autorizados");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](32, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](34, "div", 54)(35, "div", 55)(36, "div", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](37, "i", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](38, "div", 60)(39, "div", 49)(40, "div", 50)(41, "div", 51)(42, "p", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](43, "Rechazados");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](44, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](46, "div", 54)(47, "div", 55)(48, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](49, "i", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()()()();
  }
  if (rf & 2) {
    const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r14.ind_CompTotales);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r14.ind_CompPendientes);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r14.ind_CompAutorizados);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r14.ind_CompRechazados);
  }
}
function DefaultComponent_Conditional_32_div_2_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](0, " Servicios m\u00E1s contratados ");
  }
}
function DefaultComponent_Conditional_32_div_2_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](0, " Clientes con m\u00E1s servicios ");
  }
}
function DefaultComponent_Conditional_32_div_2_ng_template_16_ng_template_0_Template(rf, ctx) {}
function DefaultComponent_Conditional_32_div_2_ng_template_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](0, DefaultComponent_Conditional_32_div_2_ng_template_16_ng_template_0_Template, 0, 0, "ng-template", 70);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](3);
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](37);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngTemplateOutlet", _r8);
  }
}
function DefaultComponent_Conditional_32_div_2_ng_template_20_ng_template_0_Template(rf, ctx) {}
function DefaultComponent_Conditional_32_div_2_ng_template_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](0, DefaultComponent_Conditional_32_div_2_ng_template_20_ng_template_0_Template, 0, 0, "ng-template", 70);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](3);
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](39);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngTemplateOutlet", _r10);
  }
}
function DefaultComponent_Conditional_32_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 25)(1, "div", 9)(2, "div", 43)(3, "div")(4, "h4", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](5, DefaultComponent_Conditional_32_div_2_Conditional_5_Template, 1, 0)(6, DefaultComponent_Conditional_32_div_2_Conditional_6_Template, 1, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](7, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Top 5");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](9, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](10, "i", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](11, "ul", 64, 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵlistener"]("navChange", function DefaultComponent_Conditional_32_div_2_Template_ul_navChange_11_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵresetView"](ctx_r23.changeTabSrv($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](13, "li", 66)(14, "a", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](15, "Servicios");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](16, DefaultComponent_Conditional_32_div_2_ng_template_16_Template, 1, 1, "ng-template", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](17, "li", 66)(18, "a", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](19, "Clientes");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](20, DefaultComponent_Conditional_32_div_2_ng_template_20_Template, 1, 1, "ng-template", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](21, "div", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵreference"](12);
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](5, ctx_r15.activeNavSrv == 1 ? 5 : 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("activeId", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavItem", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngbNavOutlet", _r18);
  }
}
function DefaultComponent_Conditional_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](1, DefaultComponent_Conditional_32_div_1_Template, 50, 4, "div", 19)(2, DefaultComponent_Conditional_32_div_2_Template, 22, 5, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r3.widgetsAUT);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r3.widgetsSRV);
  }
}
function DefaultComponent_Conditional_33_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 25)(1, "div", 9)(2, "div", 43)(3, "h4", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](4, "\u00D3rdenes de producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](5, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](6, "i", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](7, "div", 45)(8, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](9, "i", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](10, "h3");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](12, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](13, "Total de \u00D3rdenes de producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](14, "div", 74)(15, "table", 75)(16, "tbody")(17, "tr")(18, "td", 76)(19, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](20, "Abiertas");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](21, "td", 77)(22, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](23);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](24, "td")(25, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](26, "div", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](27, "tr")(28, "td")(29, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](30, "Anuladas");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](31, "td")(32, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](34, "td")(35, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](36, "div", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](37, "tr")(38, "td")(39, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](40, "Confirmadas");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](41, "td")(42, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](43);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](44, "td")(45, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](46, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](47, "tr")(48, "td")(49, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](50, "En proceso");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](51, "td")(52, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](54, "td")(55, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](56, "div", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](57, "tr")(58, "td")(59, "p", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](60, "Cerradas");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](61, "td")(62, "h5", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](63);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](64, "td")(65, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](66, "div", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()()()();
  }
  if (rf & 2) {
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", ctx_r25.ind_OrdenesProceso + ctx_r25.ind_OrdenesCerradas + ctx_r25.ind_OrdenesAnuladas + ctx_r25.ind_OrdenesAbierta + ctx_r25.ind_OrdenesConfirmada, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r25.ind_OrdenesAbierta);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵstyleMap"](ctx_r25.calcularProgreso(ctx_r25.ind_OrdenesAbierta, ctx_r25.ind_OrdenesProceso + ctx_r25.ind_OrdenesCerradas + ctx_r25.ind_OrdenesAnuladas + ctx_r25.ind_OrdenesAbierta + ctx_r25.ind_OrdenesConfirmada, "porcentaje"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r25.ind_OrdenesAnuladas);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵstyleMap"](ctx_r25.calcularProgreso(ctx_r25.ind_OrdenesAnuladas, ctx_r25.ind_OrdenesProceso + ctx_r25.ind_OrdenesCerradas + ctx_r25.ind_OrdenesAnuladas + ctx_r25.ind_OrdenesAbierta + ctx_r25.ind_OrdenesConfirmada, "porcentaje"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r25.ind_OrdenesConfirmada);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵstyleMap"](ctx_r25.calcularProgreso(ctx_r25.ind_OrdenesConfirmada, ctx_r25.ind_OrdenesProceso + ctx_r25.ind_OrdenesCerradas + ctx_r25.ind_OrdenesAnuladas + ctx_r25.ind_OrdenesAbierta + ctx_r25.ind_OrdenesConfirmada, "porcentaje"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r25.ind_OrdenesProceso);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵstyleMap"](ctx_r25.calcularProgreso(ctx_r25.ind_OrdenesProceso, ctx_r25.ind_OrdenesProceso + ctx_r25.ind_OrdenesCerradas + ctx_r25.ind_OrdenesAnuladas + ctx_r25.ind_OrdenesAbierta + ctx_r25.ind_OrdenesConfirmada, "porcentaje"));
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx_r25.ind_OrdenesCerradas);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵstyleMap"](ctx_r25.calcularProgreso(ctx_r25.ind_OrdenesCerradas, ctx_r25.ind_OrdenesProceso + ctx_r25.ind_OrdenesCerradas + ctx_r25.ind_OrdenesAnuladas + ctx_r25.ind_OrdenesAbierta + ctx_r25.ind_OrdenesConfirmada, "porcentaje"));
  }
}
function DefaultComponent_Conditional_33_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 25)(1, "div", 9)(2, "div", 43)(3, "div", 84)(4, "div")(5, "h4", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](6, "Utilidad bruta");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](7, "p", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "\u00DAltimo mes");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](9, "i", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](10, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](11, "i", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](12, "div", 89)(13, "h4", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipe"](15, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](16, "div", 25)(17, "div", 9)(18, "div", 43)(19, "div", 84)(20, "div")(21, "h4", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](22, "Margen bruto");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](23, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](24, "\u00DAltimo mes");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](25, "i", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](26, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](27, "i", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](28, "div", 92)(29, "div")(30, "h4", 45)(31, "span", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](32);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipe"](33, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](34, "div", 93)(35, "span", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](36, " Ventas netas: ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](37, "b");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipe"](39, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngClass", ctx_r26.utilidadBruta < 0 ? "text-danger" : "text-primary");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" $", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipeBind3"](15, 5, ctx_r26.utilidadBruta, "1.0-2", "es"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngClass", ctx_r26.margenBrutoPorcentaje < 0 ? "text-danger" : "text-warning");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipeBind3"](33, 9, ctx_r26.margenBrutoPorcentaje, "1.0-2", "es"), "%");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"]("$", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpipeBind3"](39, 13, ctx_r26.margenBrutoTotal, "1.0-2", "es"), "");
  }
}
function DefaultComponent_Conditional_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](1, DefaultComponent_Conditional_33_div_1_Template, 67, 16, "div", 19)(2, DefaultComponent_Conditional_33_Conditional_2_Template, 40, 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r4.widgetsPRD);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](2, ctx_r4.widgetsEST ? 2 : -1);
  }
}
const _c1 = () => ["/autorizacion/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Autorizaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c1));
  }
}
const _c2 = () => ["/estadistica/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Estad\u00EDstica");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c2));
  }
}
const _c3 = () => ["/notificaciones/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c3));
  }
}
const _c4 = () => ["/plataformas/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, " Plataformas de pago ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c4));
  }
}
const _c5 = () => ["/produccion/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c5));
  }
}
const _c6 = () => ["/rma/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 106);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "RMA");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c6));
  }
}
const _c7 = () => ["/servicios/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Servicios");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c7));
  }
}
const _c8 = () => ["/web/inicio"];
function DefaultComponent_ng_template_34_Conditional_4_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 98)(1, "div", 99)(2, "div", 49)(3, "div", 45)(4, "div", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](5, "i", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "div")(7, "h5", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, "Servicios");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](1, _c8));
  }
}
const _c9 = () => ["/dashboards/modulo-adicional"];
function DefaultComponent_ng_template_34_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](1, DefaultComponent_ng_template_34_Conditional_4_div_1_Template, 9, 2, "div", 96)(2, DefaultComponent_ng_template_34_Conditional_4_div_2_Template, 9, 2, "div", 96)(3, DefaultComponent_ng_template_34_Conditional_4_div_3_Template, 9, 2, "div", 96)(4, DefaultComponent_ng_template_34_Conditional_4_div_4_Template, 9, 2, "div", 96)(5, DefaultComponent_ng_template_34_Conditional_4_div_5_Template, 9, 2, "div", 96)(6, DefaultComponent_ng_template_34_Conditional_4_div_6_Template, 9, 2, "div", 96)(7, DefaultComponent_ng_template_34_Conditional_4_div_7_Template, 9, 2, "div", 96)(8, DefaultComponent_ng_template_34_Conditional_4_div_8_Template, 9, 2, "div", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](9, "div", 45)(10, "a", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](11, " Quiero m\u00E1s m\u00F3dulos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.autorizacionActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.estadisticaActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.notificacionesActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.plataformasActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.produccionActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.rmaActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.serviciosActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r27.webActivo);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵpureFunction0"](9, _c9));
  }
}
function DefaultComponent_ng_template_34_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 1)(1, "div", 109)(2, "div", 110)(3, "div", 49)(4, "div", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](5, " Si no visualiza m\u00F3dulos activos, puede cerrar sesi\u00F3n y volver a ingresar a la web. Si el problema persiste, puede contactarse con ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "a", 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](7, "i", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](8, " HelpDesk");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](9, ". ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()();
  }
}
function DefaultComponent_ng_template_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](0, "div", 25)(1, "div", 9)(2, "h4", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](3, "M\u00F3dulos activos");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](4, DefaultComponent_ng_template_34_Conditional_4_Template, 12, 10)(5, DefaultComponent_ng_template_34_Conditional_5_Template, 10, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](4, ctx_r5.modulosActivo ? 4 : 5);
  }
}
function DefaultComponent_ng_template_36_ng_container_0_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](1, "tr")(2, "td", 119)(3, "h5", 120)(4, "a", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "td", 122)(7, "div")(8, "ul", 123)(9, "li", 124)(10, "span", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const srv_r39 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate2"]("(", srv_r39.CodigoArticulo, ") ", srv_r39.NombreArticulo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", srv_r39.Cantidad, " ");
  }
}
function DefaultComponent_ng_template_36_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](1, "ngx-simplebar", 115)(2, "div", 116)(3, "table", 117)(4, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](5, DefaultComponent_ng_template_36_ng_container_0_ng_container_5_Template, 12, 3, "ng-container", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngForOf", ctx_r37.rankServicios);
  }
}
function DefaultComponent_ng_template_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](0, DefaultComponent_ng_template_36_ng_container_0_Template, 6, 1, "ng-container", 114);
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r7.rankServicios.length > 0);
  }
}
function DefaultComponent_ng_template_38_ng_container_0_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](1, "tr")(2, "td", 119)(3, "h5", 120)(4, "a", 121);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](6, "td", 122)(7, "div")(8, "ul", 123)(9, "li", 124)(10, "span", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const cli_r43 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate2"]("(", cli_r43.CodigoCliente, ") ", cli_r43.NombreCliente, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate1"](" ", cli_r43.Cantidad, " ");
  }
}
function DefaultComponent_ng_template_38_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](1, "ngx-simplebar", 115)(2, "div", 116)(3, "table", 117)(4, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](5, DefaultComponent_ng_template_38_ng_container_0_ng_container_5_Template, 12, 3, "ng-container", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngForOf", ctx_r41.rankClientes);
  }
}
function DefaultComponent_ng_template_38_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](0, DefaultComponent_ng_template_38_ng_container_0_Template, 6, 1, "ng-container", 114);
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx_r9.rankClientes.length > 0);
  }
}
class DefaultComponent {
  constructor(eventService, authenticationService, autCompService, ordenProduccionService, reclamoService, srvContratadoService, estadisticaService, primengConfig, configGralService) {
    this.eventService = eventService;
    this.authenticationService = authenticationService;
    this.autCompService = autCompService;
    this.ordenProduccionService = ordenProduccionService;
    this.reclamoService = reclamoService;
    this.srvContratadoService = srvContratadoService;
    this.estadisticaService = estadisticaService;
    this.primengConfig = primengConfig;
    this.configGralService = configGralService;
    // MC SINWEB-577 Indicadores en el restyling
    this.subscriptions = [];
    this.permisos = {
      autListComprobantes: false,
      prdVerOrdenProd: false,
      srvVerIndicadores: false,
      rmaVerIndicadores: false
    };
    this.widgetsAUT = false;
    this.widgetsPRD = false;
    this.widgetsRMA = false;
    this.widgetsSRV = false;
    this.widgetsEST = false;
    this.ind_CompTotales = 0;
    this.ind_CompPendientes = 0;
    this.ind_CompAutorizados = 0;
    this.ind_CompRechazados = 0;
    this.ind_OrdenesProceso = 0;
    this.ind_OrdenesCerradas = 0;
    this.ind_OrdenesAnuladas = 0;
    this.ind_OrdenesAbierta = 0;
    this.ind_OrdenesConfirmada = 0;
    this.reclamosAbiertos = 0;
    this.reclamosCerrados = 0;
    this.activeNavSrv = 1;
    this.rankServicios = [];
    this.rankClientes = [];
    this.utilidadBruta = 0;
    this.margenBrutoPorcentaje = 0;
    this.margenBrutoTotal = 0;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_20__.registerLocaleData)(_angular_common_locales_es__WEBPACK_IMPORTED_MODULE_21__["default"]);
    this.primengConfig.setTranslation({
      dayNames: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
      dayNamesShort: ['Dom', 'Lun', 'Mar', 'Mié', 'Jue', 'Vie', 'Sáb'],
      dayNamesMin: ['D', 'L', 'M', 'X', 'J', 'V', 'S'],
      monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
      monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic']
    });
    //SP SINWEB-123 saco lso valores de la configuracion del page.json
    this.produccionActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION);
    this.autorizacionActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION);
    this.rmaActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA);
    this.webActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB);
    this.serviciosActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS);
    this.notificacionesActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES);
    this.estadisticaActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA);
    this.plataformasActivo = this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS) && this.getPermisoModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS);
    this.modulosActivo = this.produccionActivo || this.autorizacionActivo || this.rmaActivo || this.webActivo || this.serviciosActivo || this.estadisticaActivo || this.notificacionesActivo || this.plataformasActivo;
    this.adicionalesActivo = this.authenticationService.usuario.Licencia !== undefined;
    this.cargarPermisos();
    /**
     * horizontal-vertical layput set
     */
    const attribute = document.body.getAttribute('data-layout');
    this.isVisible = attribute;
    const vertical = document.getElementById('layout-vertical');
    if (vertical != null) {
      vertical.setAttribute('checked', 'true');
    }
    if (attribute == 'horizontal') {
      const horizontal = document.getElementById('layout-horizontal');
      if (horizontal != null) {
        horizontal.setAttribute('checked', 'true');
      }
    }
    /**
     * Fetches the data
     */
    this.fetchData();
    // MC SINWEB-577 Carga de indicadores
    // MC SINWEB-639 Se agrega comprobación de config. de widgets
    this.widgetsAUT = this.autorizacionActivo && this.permisos.autListComprobantes && this.configGralService._config.WidgetsAUT === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO;
    this.widgetsPRD = this.produccionActivo && this.permisos.prdVerOrdenProd && this.configGralService._config.WidgetsPRD === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO;
    this.widgetsRMA = this.rmaActivo && this.permisos.rmaVerIndicadores && this.configGralService._config.WidgetsRMA === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO;
    this.widgetsSRV = this.serviciosActivo && this.permisos.srvVerIndicadores && this.configGralService._config.WidgetsSRV === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO;
    this.widgetsEST = this.estadisticaActivo && this.configGralService._config.WidgetsEST === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO;
    if (this.widgetsAUT) this.cargarIndComp();
    if (this.widgetsPRD) this.cargarIndOrdenes();
    if (this.widgetsRMA) this.cargarIndReclamos();
    if (this.widgetsSRV) this.cargarIndSrv();
    if (this.widgetsEST) this.cargarIndEstadisticas();
  }
  getPermisoModulo(modulo) {
    switch (modulo) {
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION:
        return this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_ART) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_TERC) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_MAQ) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_TIPO_MAQ) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_OPER) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_OPN_OPER) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_TIMES);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION:
        return this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_AUT_COMP) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_CONFIG_AUT) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_RESP_AUT);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA:
        return this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_ATRIBUTO) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_DEFECTOS) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_RESOLUCION) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_TIPO_DEFECTOS);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB:
        return this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_8__.PERMISO_LIS_PUBLIC_ART_PLAT) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_8__.PERMISO_LIS_FAMILIA_WEB) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_8__.PERMISO_LIS_PLATAFORMA_WEB) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_8__.PERMISO_LIS_USUARIO_WEB);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS:
        return this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_7__.PERMISO_LIS_FACT_MASIVA) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_7__.PERMISO_LIS_LOTE_FACTURACION) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_7__.PERMISO_LIS_SRV_CONTRATADOS);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA:
        return this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_9__.PERMISO_LIS_COLECCION) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_9__.PERMISO_LIS_INDICADORES);
        break;
      case src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS:
        // Modificar cuando se agreguen permisos a Plataformas de pago
        return true;
        break;
      default:
        break;
    }
  }
  ngAfterViewInit() {
    setTimeout(() => {
      this.openModal();
    }, 2000);
  }
  /**
   * Fetches the data
   */
  fetchData() {
    this.emailSentBarChart = _data__WEBPACK_IMPORTED_MODULE_0__.emailSentBarChart;
    this.monthlyEarningChart = _data__WEBPACK_IMPORTED_MODULE_0__.monthlyEarningChart;
    this.currentUser = this.authenticationService.usuario;
  }
  openModal() {
    //this.modalService.open(this.content, { centered: true });
  }
  /**
   * Change the layout onclick
   * @param layout Change the layout
   */
  changeLayout(layout) {
    this.eventService.broadcast('changeLayout', layout);
  }
  getUserFirstLetter(username) {
    return username.charAt(0);
  }
  cargarPermisos() {
    this.permisos = {
      autListComprobantes: this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_AUT_COMP),
      prdVerOrdenProd: this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_OPN_DET) || this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_OPN_OPER),
      srvVerIndicadores: this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_7__.PERMISO_LIS_SRV_CONTRATADOS),
      rmaVerIndicadores: this.authenticationService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_6__.PERMISO_INDICADORES_RECLAMO)
    };
  }
  cargarIndComp() {
    let datos = {
      PageNumber: 1,
      PageSize: 1
    };
    const suscTotales = this.autCompService.fetch(datos);
    const suscPend = this.autCompService.fetch({
      ...datos,
      IdAutEstado: 1
    });
    const suscAut = this.autCompService.fetch({
      ...datos,
      IdAutEstado: 2
    });
    const suscRech = this.autCompService.fetch({
      ...datos,
      IdAutEstado: 3
    });
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.forkJoin)([suscTotales, suscPend, suscAut, suscRech]).subscribe(results => {
      if (results[0].Succeeded) this.ind_CompTotales = results[0].TotalRecords;
      if (results[1].Succeeded) this.ind_CompPendientes = results[1].TotalRecords;
      if (results[2].Succeeded) this.ind_CompAutorizados = results[2].TotalRecords;
      if (results[3].Succeeded) this.ind_CompRechazados = results[3].TotalRecords;
    });
    this.subscriptions.push(susc);
  }
  cargarIndOrdenes() {
    let datos = {
      PageNumber: 1,
      PageSize: 1
    };
    const suscProceso = this.ordenProduccionService.fetch({
      ...datos,
      IdsEstadosOPN: src_app_core_utils_constantes_constantes_produccion__WEBPACK_IMPORTED_MODULE_2__.ESTADO_ORDEN_PROCESO
    });
    const suscCerrada = this.ordenProduccionService.fetch({
      ...datos,
      IdsEstadosOPN: src_app_core_utils_constantes_constantes_produccion__WEBPACK_IMPORTED_MODULE_2__.ESTADO_ORDEN_CERRADA
    });
    const suscAnulada = this.ordenProduccionService.fetch({
      ...datos,
      IdsEstadosOPN: src_app_core_utils_constantes_constantes_produccion__WEBPACK_IMPORTED_MODULE_2__.ESTADO_ORDEN_ANULADA
    });
    const suscAbierta = this.ordenProduccionService.fetch({
      ...datos,
      IdsEstadosOPN: src_app_core_utils_constantes_constantes_produccion__WEBPACK_IMPORTED_MODULE_2__.ESTADO_ORDEN_ABIERTA
    });
    const suscConfirmada = this.ordenProduccionService.fetch({
      ...datos,
      IdsEstadosOPN: src_app_core_utils_constantes_constantes_produccion__WEBPACK_IMPORTED_MODULE_2__.ESTADO_ORDEN_CONFIRMADA
    });
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.forkJoin)([suscProceso, suscCerrada, suscAnulada, suscAbierta, suscConfirmada]).subscribe(results => {
      if (results[0].Succeeded) this.ind_OrdenesProceso = results[0].TotalRecords;
      if (results[1].Succeeded) this.ind_OrdenesCerradas = results[1].TotalRecords;
      if (results[2].Succeeded) this.ind_OrdenesAnuladas = results[2].TotalRecords;
      if (results[3].Succeeded) this.ind_OrdenesAbierta = results[3].TotalRecords;
      if (results[4].Succeeded) this.ind_OrdenesConfirmada = results[4].TotalRecords;
    });
    this.subscriptions.push(susc);
  }
  cargarIndReclamos() {
    let datos = {
      FechaHoraRecepcionDesde: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.formatFechaHora)((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__["fechaHoraActualmenosAños"])(1)),
      FechaHoraRecepcionHasta: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.formatFechaHora)((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.fechaHoraActual)())
    };
    const susc1 = this.reclamoService.getIndicadores(datos).subscribe(res => {
      if (res.Succeeded) {
        this.reclamosAbiertos = res.Data.CantidadTotalReclamos - res.Data.CantCerrados;
        this.reclamosCerrados = res.Data.CantCerrados;
        this.chartPieReclamos = {
          chart: {
            height: 220,
            type: 'donut'
          },
          series: [this.reclamosAbiertos, this.reclamosCerrados],
          labels: ['Abiertas', 'Cerradas'],
          colors: ['#1abc9c', '#f1556c'],
          legend: {
            show: false
          },
          responsive: [{
            breakpoint: 600,
            options: {
              chart: {
                height: 260
              }
            }
          }]
        };
      }
    });
    this.subscriptions.push(susc1);
  }
  cargarIndSrv() {
    let datosRank = {
      PageNumber: -1,
      SentidoOrden: 'desc',
      Cantidad: 5
    };
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.forkJoin)({
      rankSrv: this.srvContratadoService.getRankingServicios(datosRank),
      rankCli: this.srvContratadoService.getRankingClientesMasServicios(datosRank)
    }).subscribe(res => {
      if (res.rankSrv.Succeeded) this.rankServicios = res.rankSrv.Data;
      if (res.rankCli.Succeeded) this.rankClientes = res.rankCli.Data;
    });
    this.subscriptions.push(susc);
  }
  cargarIndEstadisticas() {
    let datos = {
      FechaDesde: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.formatFecha)((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.fechaActualMenosXMeses)(1)).concat(' 00:00'),
      FechaHasta: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.formatFecha)((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.fechaActual)()).concat(' 23:59')
    };
    const susc = (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.forkJoin)({
      utilidadBruta: this.estadisticaService.fetchUtilidadBruta(datos),
      margenBruto: this.estadisticaService.fetchMargenBruto(datos)
    }).subscribe(res => {
      if (res.utilidadBruta.Succeeded) this.utilidadBruta = res.utilidadBruta.Data.Valor;
      if (res.margenBruto.Succeeded) {
        this.margenBrutoPorcentaje = res.margenBruto.Data.Porcentaje;
        this.margenBrutoTotal = res.margenBruto.Data.ValorTotal;
      }
    });
    this.subscriptions.push(susc);
  }
  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%'
      };
    }
  }
  changeTabSrv($event) {
    this.activeNavSrv = $event.nextId;
  }
  static #_ = this.ɵfac = function DefaultComponent_Factory(t) {
    return new (t || DefaultComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_10__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_11__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_autorizacion_autorizacionComprobante_service__WEBPACK_IMPORTED_MODULE_12__.AutorizacionComprobanteService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_produccion_ordenProduccion_service__WEBPACK_IMPORTED_MODULE_13__.OrdenProduccionService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_14__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_servicios_srvContratado_service__WEBPACK_IMPORTED_MODULE_15__.SrvContratadoService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_estadisticas_estadistica_service__WEBPACK_IMPORTED_MODULE_16__.EstadisticaService), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](primeng_api__WEBPACK_IMPORTED_MODULE_23__.PrimeNGConfig), _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_17__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵdefineComponent"]({
    type: DefaultComponent,
    selectors: [["app-default"]],
    viewQuery: function DefaultComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵloadQuery"]()) && (ctx.content = _t.first);
      }
    },
    decls: 40,
    vars: 9,
    consts: [[1, "container-fluid"], [1, "row"], [1, "col-12"], [1, "page-title-box", "d-flex", "align-items-center", "justify-content-between"], [1, "mb-0", "font-size-18"], [1, "col-xl-3", "col-lg-4"], [1, "card", "overflow-hidden"], [1, "bg-primary", "bg-soft", "p-3"], [1, "text-primary"], [1, "card-body"], [1, "row", "align-items-center"], [1, "col-sm-4", "px-0"], [1, "d-flex", "justify-content-center", "align-items-center"], [1, "avatar-md", "user-avatar-custom-default", "d-inline-block", "border", "border-white", "border-3", "rounded-circle", "text-uppercase", "fw-semibold", "text-white"], [1, "col-sm-8", "ps-0"], [1, "text-muted", "mb-0"], ["class", "col-xl-3 col-lg-4"], [1, "mb-4", "d-none", "d-lg-block", "text-center"], [3, "inline"], ["class", "card", 4, "ngIf"], ["class", "col-xl-3 col-lg-4 col-md-6"], ["MODULOS_ACTIVOS", ""], ["SRV_RANK_TAB", ""], ["CLI_RANK_TAB", ""], [4, "ngTemplateOutlet"], [1, "card"], [1, "d-flex", "justify-content-between", "mb-2"], [1, "card-title"], [1, "text-muted"], [1, "mdi", "mdi-certificate-outline", "font-size-24", "text-secondary"], ["class", "mt-2 mb-4", 4, "ngIf"], [1, "text-center", "text-muted"], [1, "col-md-6"], [1, "mt-4", "d-flex", "align-items-center", "justify-content-center", "gap-2"], [1, "bg-success", "bg-soft", "px-2", "rounded-3", "shadow-sm"], [1, "mdi", "mdi-package-variant", "mdi-24px", 2, "color", "#1abc9c"], [1, "mb-1"], [1, "m-0", "p-0"], [1, "bg-danger", "bg-soft", "px-2", "rounded-3", "shadow-sm"], [1, "mdi", "mdi-package-variant-closed", "mdi-24px", 2, "color", "#f1556c"], [1, "mt-2", "mb-4"], ["dir", "ltr", 1, "apex-charts", 3, "series", "chart", "labels", "colors", "responsive", "legend"], [1, "col-xl-3", "col-lg-4", "col-md-6"], [1, "d-flex", "justify-content-between", "mb-3"], [1, "bx", "bx-lock-open", "font-size-24", "text-secondary"], [1, "text-center"], [1, "mb-3"], [1, "bx", "bx-receipt", "text-primary", "display-6"], [1, "card", "mini-stats-wid", "shadow-sm"], [1, "card-body", "p-3"], [1, "d-flex"], [1, "flex-grow-1"], [1, "text-muted", "mb-2"], [1, "mb-0"], [1, "flex-shrink-0", "align-self-center"], [1, "mini-stat-icon", "avatar-sm", "rounded-circle"], [1, "avatar-title", "bg-pendiente"], [1, "bx", "bx-hourglass", "font-size-20"], [1, "avatar-title", "bg-info"], [1, "bx", "bx-check-circle", "font-size-24"], [1, "card", "mini-stats-wid", "shadow-sm", "mb-0"], [1, "avatar-title", "bg-danger"], [1, "bx", "bx-x", "font-size-24"], [1, "bx", "bx-briefcase-alt-2", "font-size-24", "text-secondary"], ["ngbNav", "", 1, "nav-pills", "bg-light", "rounded", 3, "activeId", "navChange"], ["nav1", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "mt-4", 3, "ngbNavOutlet"], [3, "ngTemplateOutlet"], [1, "bx", "bx-wrench", "font-size-24", "text-secondary"], [1, "mb-4"], [1, "bx", "bx-map-pin", "text-primary", "display-4"], [1, "table-responsive", "mt-4"], [1, "table", "table-centered", "table-nowrap"], [2, "width", "30%"], [2, "width", "25%"], [1, "progress", "bg-transparent", "progress-sm"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(ind_OrdenesAbierta, ind_OrdenesProceso + ind_OrdenesCerradas + ind_OrdenesAnuladas + ind_OrdenesAbierta + ind_OrdenesConfirmada,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(ind_OrdenesAnuladas, ind_OrdenesProceso + ind_OrdenesCerradas + ind_OrdenesAnuladas + ind_OrdenesAbierta + ind_OrdenesConfirmada,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(ind_OrdenesConfirmada, ind_OrdenesProceso + ind_OrdenesCerradas + ind_OrdenesAnuladas + ind_OrdenesAbierta + ind_OrdenesConfirmada,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(ind_OrdenesProceso, ind_OrdenesProceso + ind_OrdenesCerradas + ind_OrdenesAnuladas + ind_OrdenesAbierta + ind_OrdenesConfirmada,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(ind_OrdenesCerradas, ind_OrdenesProceso + ind_OrdenesCerradas + ind_OrdenesAnuladas + ind_OrdenesAbierta + ind_OrdenesConfirmada,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], [1, "d-flex", "gap-3"], [1, "card-title", "mb-0"], [1, "text-mutd"], ["pTooltip", "Ventas netas - Costo neto", "tooltipPosition", "top", 1, "text-primary", "bx", "bx-info-circle", "font-size-24"], [1, "bx", "bx-line-chart", "font-size-24", "text-secondary"], [1, "d-flex", "justify-content-center", "align-items-center", "mt-4"], [3, "ngClass"], ["pTooltip", "(Ventas netas - Costo neto ) / Ventas netas", "tooltipPosition", "top", 1, "text-primary", "bx", "bx-info-circle", "font-size-24"], [1, "d-flex", "flex-column", "gap-2", "justify-content-center", "my-3"], [1, "d-flex", "justify-content-end"], [1, "text-muted", 2, "font-size", "16px"], [1, "card-title", "mb-4"], ["class", "col-sm-6", 4, "ngIf"], ["href", "javascript: void(0);", 1, "btn", "btn-link", "fw-bold", "text-primary", 3, "routerLink"], [1, "col-sm-6"], [1, "card", "custom-card-hover", "border", "pointer", 3, "routerLink"], [1, "bx", "bx-md", "bx-lock-open", "text-primary"], [1, "font-size-14", "text-truncate"], [1, "bx", "bx-md", "bx-line-chart", "text-primary"], [1, "bx", "bx-md", "bx-bell", "text-primary"], [1, "bx", "bx-md", "bx-dollar-circle", "text-primary"], [1, "bx", "bx-md", "bx-wrench", "text-primary"], [1, "mdi", "mdi-certificate-outline", "mdi-36px", "text-primary"], [1, "bx", "bx-md", "bx-briefcase-alt-2", "text-primary"], [1, "bx", "bx-md", "bx-cloud", "text-primary"], [1, "col-xl-12", "col-sm-12"], [1, "card", "shadow-none", "border", 2, "background-color", "#fcdada"], [1, ""], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-primary"], [4, "ngIf"], [2, "height", "280px"], [1, "table-responsive", "mb-0"], [1, "table", "table-nowrap", "table-centered", "table-hover"], [4, "ngFor", "ngForOf"], [2, "max-width", "110px"], [1, "text-truncate", "font-size-14", "mb-1"], [1, "text-dark"], [1, "text-end", 2, "width", "75px"], [1, "list-inline", "mb-0", "font-size-16"], [1, "list-inline-item"], [1, "badge", "badge-soft-success", "font-size-16"]],
    template: function DefaultComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](0, "app-loader");
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](1, "div", 0)(2, "div", 1)(3, "div", 2)(4, "div", 3)(5, "h4", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](6, "Inicio");
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](7, "div", 1)(8, "div", 5)(9, "div", 6)(10, "div", 7)(11, "h5", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](12, "\u00A1Bienvenido a Sinergial Advance!");
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](13, "div", 9)(14, "div", 10)(15, "div", 11)(16, "div", 12)(17, "div", 13)(18, "div", 12)(19, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](20);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](21, "div", 14)(22, "h5");
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](23);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](24, "p", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtext"](25);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](26, DefaultComponent_Conditional_26_Template, 1, 1, "ng-container");
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](27, DefaultComponent_Conditional_27_Template, 2, 1, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementStart"](28, "div", 5)(29, "div", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelement"](30, "p-calendar", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](31, DefaultComponent_div_31_Template, 31, 3, "div", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](32, DefaultComponent_Conditional_32_Template, 3, 2, "div", 20)(33, DefaultComponent_Conditional_33_Template, 3, 2, "div", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplate"](34, DefaultComponent_ng_template_34_Template, 6, 1, "ng-template", null, 21, _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplateRefExtractor"])(36, DefaultComponent_ng_template_36_Template, 1, 1, "ng-template", null, 22, _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplateRefExtractor"])(38, DefaultComponent_ng_template_38_Template, 1, 1, "ng-template", null, 23, _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](20);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx.getUserFirstLetter(ctx.currentUser.User.Nombre || "?"));
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx.currentUser.User.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵtextInterpolate"](ctx.currentUser.Empresa);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](26, ctx.widgetsAUT || ctx.widgetsPRD || ctx.widgetsRMA || ctx.widgetsSRV || ctx.widgetsEST ? 26 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](27, !ctx.widgetsAUT && !ctx.widgetsPRD && !ctx.widgetsRMA && !ctx.widgetsSRV && !ctx.widgetsEST ? 27 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("inline", true);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵproperty"]("ngIf", ctx.widgetsRMA);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](32, ctx.widgetsAUT || ctx.widgetsSRV ? 32 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_19__["ɵɵconditional"](33, ctx.widgetsPRD || ctx.widgetsEST ? 33 : -1);
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_24__.RouterLink, primeng_calendar__WEBPACK_IMPORTED_MODULE_25__.Calendar, _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, primeng_tooltip__WEBPACK_IMPORTED_MODULE_26__.Tooltip, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbNavOutlet, ng_apexcharts__WEBPACK_IMPORTED_MODULE_28__.ChartComponent, simplebar_angular__WEBPACK_IMPORTED_MODULE_29__.SimplebarAngularComponent, _shared_ui_loader_loader_component__WEBPACK_IMPORTED_MODULE_18__.LoaderComponent, _angular_common__WEBPACK_IMPORTED_MODULE_20__.DecimalPipe],
    styles: ["body[data-bs-theme=dark] .text-primary {\n  color: #00a1fc !important;\n}\n  body[data-bs-theme=dark] .user-avatar-custom-default {\n  background-color: #2e688a !important;\n}\n\n.user-avatar-custom-default[_ngcontent-%COMP%] {\n  background-color: #81badb;\n  line-height: 1.3;\n  font-size: 3rem;\n  width: 70px;\n  height: 70px;\n}\n\n[_nghost-%COMP%]     .p-calendar .p-datepicker-inline, [_nghost-%COMP%]     .p-calendar .p-datepicker-calendar {\n  font-size: 12px;\n}\n\n[_nghost-%COMP%]     .p-calendar .p-datepicker-inline {\n  width: 400px;\n}\n\n[_nghost-%COMP%]     .p-calendar .p-datepicker table td > span {\n  width: 1.5rem;\n  height: 1.5rem;\n}\n\n[_nghost-%COMP%]     .p-calendar .p-datepicker table {\n  max-width: 400px;\n}\n\n[_nghost-%COMP%]     .p-calendar .p-datepicker .p-datepicker-header {\n  padding: 0;\n}\n\n.bg-pendiente[_ngcontent-%COMP%] {\n  background-color: #ff8000;\n}\n\n.avatar-sm[_ngcontent-%COMP%] {\n  height: 2.5rem;\n  width: 2.5rem;\n}\n\n.pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n.custom-card-hover[_ngcontent-%COMP%] {\n  box-shadow: none;\n}\n\n.custom-card-hover[_ngcontent-%COMP%]:hover {\n  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.16);\n  transition: box-shadow 0.3s ease-in-out;\n}"]
  });
}

/***/ }),

/***/ 52949:
/*!***************************************************************************!*\
  !*** ./src/app/pages/dashboards/documentacion/documentacion.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DocumentacionComponent: () => (/* binding */ DocumentacionComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);

class DocumentacionComponent {
  constructor() {}
  ngOnInit() {}
  static #_ = this.ɵfac = function DocumentacionComponent_Factory(t) {
    return new (t || DocumentacionComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: DocumentacionComponent,
    selectors: [["app-documentacion"]],
    decls: 3,
    vars: 0,
    consts: [[1, "row"], [1, "col-lg-12"], ["src", "assets/docs/web/index.html", "width", "100%", "height", "1000px"]],
    template: function DocumentacionComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "iframe", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
      }
    }
  });
}

/***/ }),

/***/ 9579:
/*!***************************************************************************!*\
  !*** ./src/app/pages/dashboards/exportaciones/exportaciones.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ExportacionesComponent: () => (/* binding */ ExportacionesComponent)
/* harmony export */ });
/* 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_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_core_logExportacion_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/logExportacion.service */ 81321);
/* harmony import */ var src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);















function ExportacionesComponent_ng_template_4_Template(rf, ctx) {}
function ExportacionesComponent_div_5_ng_template_3_Template(rf, ctx) {}
function ExportacionesComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 32)(1, "div", 33)(2, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](3, ExportacionesComponent_div_5_ng_template_3_Template, 0, 0, "ng-template", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](45);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngTemplateOutlet", _r3);
  }
}
function ExportacionesComponent_ng_template_44_option_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "option", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipo_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", tipo_r6.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" ", tipo_r6.Nombre, " ");
  }
}
function ExportacionesComponent_ng_template_44_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 23)(1, "div")(2, "p", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, "Fecha Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "input", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](5, "hr", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div")(7, "p", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](8, "Fecha Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](9, "input", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](10, "hr", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](11, "div")(12, "p", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](13, "Tipo de Exportaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](14, "select", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](15, ExportacionesComponent_ng_template_44_option_15_Template, 2, 2, "option", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx_r2.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r2.tipoExportOptions);
  }
}
const _c0 = () => ["Origen", "Usuario", "TipoExportacion"];
const MSJ_EXITO_ELIMINACION = 'Se eliminaron correctamente todos los registros de exportaciones.';
class ExportacionesComponent {
  constructor(fb, logExportacionService, exportacion, sf, tourService, alert) {
    this.fb = fb;
    this.logExportacionService = logExportacionService;
    this.exportacion = exportacion;
    this.sf = sf;
    this.tourService = tourService;
    this.alert = alert;
    this.exportaciones = [];
    this.filtro = false;
    this.filtroMobile = false;
    this._unsubscribe = [];
    //filtros
    //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 = 'FormattedFecha';
    this.sentido = 'Desc';
    //permisos
    this.logExportacionHeader = [{
      Nombre: 'Fecha y Hora',
      Order: 'FormattedFecha',
      Key: 'FormattedFecha',
      Type: 'date',
      Pipe: 'date:short',
      WCol: '20%'
    }, {
      Nombre: 'Origen',
      Order: 'Origen',
      Key: 'Origen',
      WCol: '30%'
    }, {
      Nombre: 'Usuario',
      Order: 'Usuario',
      Key: 'Usuario',
      WCol: '20%'
    }, {
      Nombre: 'Tipo de Exportación',
      Order: 'TipoExportacion',
      Key: 'TipoExportacion',
      WCol: '20%',
      Type: 'badge',
      Color: '#217346'
    }];
    this.searchForm = this.fb.group({});
    this.filterForm = this.fb.group({
      FechaDesde: [''],
      FechaHasta: [''],
      TipoExportacion: ['']
    });
    this.tipoExportOptions = [{
      Id: '',
      Nombre: 'Todos'
    }, {
      Id: 'Excel',
      Nombre: 'Excel'
    }, {
      Id: 'Pdf',
      Nombre: 'Pdf'
    }];
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  inicializarEstado() {}
  configuracionFilter() {
    // MC SINWEB-163 Filtros
    this._unsubscribe.push(this.filterForm.controls.FechaDesde.valueChanges.subscribe(desde => {
      if (this.filtro || this.filtroMobile) {
        this.filterFechaDesde = desde;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.FechaHasta.valueChanges.subscribe(hasta => {
      if (this.filtro || this.filtroMobile) {
        this.filterFechaHasta = hasta;
        this.page = 1;
        this.loadPage();
      }
    }));
    this._unsubscribe.push(this.filterForm.controls.TipoExportacion.valueChanges.subscribe(tipo => {
      if (this.filtro || this.filtroMobile) {
        this.filterTipoExportacion = tipo;
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Método para limpiar los filtros
   */
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  resetComp() {
    this._unsubscribe.forEach(sub => {
      sub.unsubscribe();
    });
    this.page = 1;
    this.previousPage = 1;
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
  }
  /**
   * Método para cargar los datos de la página
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  setPage(event) {
    this.page = 1;
    this.cantSearch = event.cant;
    // this.loadPage();
  }
  setOrder(event) {
    this.page = 1;
    this.order = event.order;
    this.sentido = event.sentido;
    // this.loadPage();
  }
  onSearch(datos) {
    const data = this.logExportacionService.getExportaciones(datos);
    this.exportaciones = data.map(e => ({
      ...e,
      FormattedFecha: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.ddMMyyyToObject)(e.FechayHora)
    }));
    if (data != undefined) {
      this.totalItems = data.length;
    } else {
      this.totalItems = 0;
    }
  }
  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;
    // MC SINWEB-163 Filtros
    if (this.filterFechaDesde != undefined && this.filterFechaDesde != '') {
      datos.FechaDesde = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(this.filterFechaDesde);
    }
    if (this.filterFechaHasta != undefined && this.filterFechaHasta != '') {
      datos.FechaHasta = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(this.filterFechaHasta);
    }
    if (this.filterTipoExportacion != undefined && this.filterTipoExportacion != '') {
      datos.TipoExportacion = this.filterTipoExportacion;
    }
    return datos;
  }
  changeStates(datos) {}
  pageChange(event) {
    this.page = event.page;
    // this.loadPage();
  }
  /**
   * Método para exportar a Excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    //SP SINWEB-91 se arman las columnas y keys para buscar datos y armar el excel
    const columns = ['Fecha y Hora', 'Origen', 'Usuario', 'Tipo de Exportación'];
    const keys = ['FechayHora', 'Origen', 'Usuario', 'TipoExportacion'];
    this.alert.showLoadingAlert('Exportando registro de exportaciones', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //SP SINWEB-91 llamada al recurso correspondiente de la api
    let data = this.logExportacionService.getExportaciones(datos);
    this.alert.closeLoadingAlert();
    this.alert.showBasicAlert('Registro de Exportaciones Exportadas', 'Archivo ' + extension + ' generado', 'success');
    // MC SINWEB-378 Exportación a Pdf
    if (extension === 'Excel') {
      this.exportacion.exportToExcel(data, columns, keys, 'Listado de Exportaciones');
    } else {
      this.exportacion.exportToPdf(data, columns, keys, 'Listado de Exportaciones');
    }
  }
  iniciarTour() {
    this.tourService.start();
  }
  inicializarSteps() {
    //Traigo el json con los pasos del tour de exportaciones
    fetch('./assets/tours/general/exportaciones.json').then(response => response.json()).then(tourExportaciones => {
      this.tourSteps = tourExportaciones;
      this.tourService.initialize(this.tourSteps);
    });
  }
  controlarTour() {
    this._unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'exportaciones.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  confirmarEliminarTodo() {
    this.alert.showReturnAlert('Eliminar registros', '¿Está seguro que desea eliminar todas las exportaciones?', 'warning', 'Eliminar todo', 'Cancelar', true, 'danger').then(result => {
      if (result.value) {
        this.eliminarTodo();
      }
    });
  }
  eliminarTodo() {
    const resp = this.logExportacionService.borrarTodasExportaciones();
    if (resp === 'exito') {
      this.alert.showBasicAlert(MSJ_EXITO_ELIMINACION, '', 'success');
      this.loadPage();
    }
  }
  static #_ = this.ɵfac = function ExportacionesComponent_Factory(t) {
    return new (t || ExportacionesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_core_logExportacion_service__WEBPACK_IMPORTED_MODULE_3__.LogExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_4__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_5__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
    type: ExportacionesComponent,
    selectors: [["app-exportaciones"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService])],
    decls: 47,
    vars: 25,
    consts: [[1, "container-fluid"], [1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "col-xl-2 col-lg-3", 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", "exportaciones.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"], [1, "btn", "btn-danger", 3, "disabled", "click"], [1, "bx", "bx-trash", "font-size-16", "align-middle"], ["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, "card-body"], ["title", "Registro de exportaciones", "styleTableClass", "p-datatable-gridlines", "searchMessage", "Buscar por Origen, Usuario, Tipo Exportaci\u00F3n", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "searchFields", "rowsEdit", "changePage", "orderPage"], ["FILTRO", ""], [1, "col-xl-2", "col-lg-3"], [1, "card", 3, "formGroup"], [1, "card-body", "p-4"], [1, "text-muted"], ["type", "date", "formControlName", "FechaDesde", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits"], [1, "my-2"], ["type", "date", "formControlName", "FechaHasta", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits"], ["formControlName", "TipoExportacion", 1, "form-select"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]],
    template: function ExportacionesComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "p-sidebar", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("visibleChange", function ExportacionesComponent_Template_p_sidebar_visibleChange_2_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](4, ExportacionesComponent_ng_template_4_Template, 0, 0, "ng-template", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](5, ExportacionesComponent_div_5_Template, 4, 2, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "span", 10)(11, "h5", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](12, " Registro de exportaciones ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](13, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](14, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_a_click_14_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](15, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](16, "div", 14)(17, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_a_click_17_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](18, "i", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](19, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](20, "button", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_button_click_20_listener() {
          return ctx.confirmarEliminarTodo();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](21, "i", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](22, "div", 18)(23, "button", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](24, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](25, "ul", 21)(26, "li")(27, "a", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_a_click_27_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](28, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](29, "li")(30, "a", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_a_click_30_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](31, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](32, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerStart"](33, 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](34, "div", 24)(35, "div", 25)(36, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_a_click_36_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](37, "i", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](38, "div", 27)(39, "a", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function ExportacionesComponent_Template_a_click_39_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](40, "i", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](41, "div", 29)(42, "app-table2", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("changePage", function ExportacionesComponent_Template_app_table2_changePage_42_listener($event) {
          return ctx.pageChange($event);
        })("orderPage", function ExportacionesComponent_Template_app_table2_orderPage_42_listener($event) {
          return ctx.setOrder($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](43, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](44, ExportacionesComponent_ng_template_44_Template, 16, 2, "ng-template", null, 31, _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](46, "app-tour");
      }
      if (rf & 2) {
        const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵreference"](45);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngTemplateOutlet", _r3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xl-10 col-lg-9" : "col-lg-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](19, 20, ctx.logExportacionService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx.exportaciones.length === 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](13);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵ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_8__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵ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_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("columns", ctx.logExportacionHeader)("datos", ctx.exportaciones)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cantSearch)("totalItems", ctx.totalItems)("apiTable", false)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](43, 22, ctx.logExportacionService.isLoading$))("searchFields", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction0"](24, _c0))("rowsEdit", false);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_13__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_6__.TourComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe]
  });
}

/***/ }),

/***/ 19622:
/*!***************************************************************************************!*\
  !*** ./src/app/pages/dashboards/modulos-adicionales/modulos-adicionales.component.ts ***!
  \***************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModulosAdicionalesComponent: () => (/* binding */ ModulosAdicionalesComponent)
/* harmony export */ });
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_carousel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/carousel */ 43658);






function ModulosAdicionalesComponent_div_21_ng_template_10_ng_container_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const caract_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", caract_r4, " ");
  }
}
function ModulosAdicionalesComponent_div_21_ng_template_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20)(1, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "img", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "h3");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "h3");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Caracter\u00EDsticas");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, ModulosAdicionalesComponent_div_21_ng_template_10_ng_container_11_Template, 4, 1, "ng-container", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 25)(13, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Lo quiero");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const mods_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("src", mods_r2.img, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("alt", mods_r2.alt);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](mods_r2.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](mods_r2.descripcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", mods_r2.caracteristicas);
  }
}
function ModulosAdicionalesComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "section", 15)(2, "div", 16)(3, "div", 17)(4, "h2");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "M\u00F3dulos Adicionales");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, " M\u00F3dulos disponibles para adicionar a Sinergial Advance seg\u00FAn las necesidades de su empresa. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 1)(9, "p-carousel", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, ModulosAdicionalesComponent_div_21_ng_template_10_Template, 15, 5, "ng-template", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r0.modulosInactivos)("numVisible", 3)("numScroll", 1)("circular", true)("responsiveOptions", ctx_r0.responsiveOptions);
  }
}
class ModulosAdicionalesComponent {
  constructor(authenticationService) {
    this.authenticationService = authenticationService;
    this.modulosInactivos = [{
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_AUTORIZACION,
      img: 'assets/images/module/autorizacion.png',
      alt: 'Autorización',
      nombre: 'Módulo Autorización',
      descripcion: 'Permite realizar autorizaciones de comprobantes realizados en Sinergial Desktop.',
      caracteristicas: ['Indicadores', 'Configuración', 'Responsables', 'Autorizaciones']
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_ESTADISTICA,
      img: 'assets/images/module/estadisticas.png',
      alt: 'Estadísticas',
      nombre: 'Módulo Estadísticas',
      descripcion: 'Módulo para visualizar tableros(dashboards) que incluyen indicadores estadisticos.',
      caracteristicas: ['Selector de colecciones', 'Visualización de tableros', 'Listado de indicadores']
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_NOTIFICACIONES,
      img: 'assets/images/module/notificaciones.png',
      alt: 'Notificaciones',
      nombre: 'Módulo Notificaciones',
      descripcion: 'Módulo para administrar notificaciones y asociar receptores.',
      caracteristicas: ['Configuración por Notificaciones', 'Configuración por Receptor', 'Listado de notificaciones']
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PRODUCCION,
      img: 'assets/images/module/produccion.png',
      alt: 'Producción',
      nombre: 'Módulo Producción',
      descripcion: 'Un módulo centrado en la administración de procesos de producción.',
      caracteristicas: ['Artículos de Producción', 'Operaciones', 'Órdenes de Producción', 'Tiempos de Producción']
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_RMA,
      img: 'assets/images/module/rma.png',
      alt: 'RMA',
      nombre: 'Módulo RMA',
      descripcion: 'Manejo de los distintos estados en el ciclo de vida de reclamos.',
      caracteristicas: ['Indicadores', 'Atributos', 'Defectos', 'Seguimiento de Reclamos']
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_SERVICIOS,
      img: 'assets/images/module/servicios.png',
      alt: 'Servicios',
      nombre: 'Módulo Servicios',
      descripcion: 'Módulo para realizar facturación masiva de servicios.',
      caracteristicas: ['Facturación Masiva', 'Lotes de Facturación', 'Servicios Contratados']
    }, {
      id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_WEB,
      img: 'assets/images/module/web.png',
      alt: 'Web',
      nombre: 'Módulo Web',
      descripcion: 'Módulo para administrar características Web relacionadas en Sinergial Desktop.',
      caracteristicas: ['Plataformas', 'Familias Web', 'Artículos publicados', 'Mercado Libre']
    }];
  }
  ngOnInit() {
    let i = 0;
    if (this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PRODUCCION)) {
      i = this.modulosInactivos.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PRODUCCION);
      this.modulosInactivos.splice(i, 1);
    }
    //Modulo Autorizacion
    if (this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_AUTORIZACION)) {
      i = this.modulosInactivos.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_AUTORIZACION);
      this.modulosInactivos.splice(i, 1);
    }
    //Modulo RMA
    if (this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_RMA)) {
      i = this.modulosInactivos.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_RMA);
      this.modulosInactivos.splice(i, 1);
    }
    //Modulo Web
    if (this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_WEB)) {
      i = this.modulosInactivos.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_WEB);
      this.modulosInactivos.splice(i, 1);
    }
    //Modulo Servicios
    if (this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_SERVICIOS)) {
      i = this.modulosInactivos.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_SERVICIOS);
      this.modulosInactivos.splice(i, 1);
    }
    //Modulo Notificaciones
    if (this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_NOTIFICACIONES)) {
      i = this.modulosInactivos.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_NOTIFICACIONES);
      this.modulosInactivos.splice(i, 1);
    }
    this.responsiveOptions = [{
      breakpoint: '1400px',
      numVisible: 2,
      numScroll: 1
    }, {
      breakpoint: '940px',
      numVisible: 1,
      numScroll: 1
    }];
  }
  static #_ = this.ɵfac = function ModulosAdicionalesComponent_Factory(t) {
    return new (t || ModulosAdicionalesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
    type: ModulosAdicionalesComponent,
    selectors: [["app-modulos-adicionales"]],
    decls: 22,
    vars: 1,
    consts: [[1, "container-fluid"], [1, "row"], [1, "card"], [1, "card-body", "border-bottom"], ["id", "hero", 1, "d-flex", "align-items-center"], [1, "col-lg-6", "pt-5", "pt-lg-0", "order-2", "order-lg-1", "d-flex", "flex-column", "justify-content-center"], ["data-aos", "fade-up", 1, "text-dark"], [1, "sinergial"], [1, "advance"], ["data-aos", "fade-up", "data-aos-delay", "400", 1, "text-dark"], ["data-aos", "fade-up", "data-aos-delay", "800"], ["href", "https://wa.me/5493585175140", 1, "btn-get-started", "scrollto"], ["data-aos", "fade-left", "data-aos-delay", "200", 1, "col-lg-6", "order-1", "order-lg-2", "hero-img"], ["src", "assets/images/hero-img.png", "alt", "", 1, "img-fluid", "animated"], [4, "ngIf"], ["id", "pricing", 1, "pricing"], [1, "container"], [1, "section-title"], [3, "value", "numVisible", "numScroll", "circular", "responsiveOptions"], ["pTemplate", "item"], [1, "mx-2"], ["data-aos", "zoom-in-right", "data-aos-delay", "200", 1, "box"], [3, "src", "alt"], [1, "plan-features", "mt-2"], [4, "ngFor", "ngForOf"], [1, "btn-wrap"], ["href", "https://wa.me/5493585175140", 1, "btn-buy"], [1, "bx", "bx-checkbox-square", "text-primary", "mr-2"]],
    template: function ModulosAdicionalesComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div")(5, "div")(6, "section", 4)(7, "div", 5)(8, "h1", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, " Haga crecer su empresa con M\u00F3dulos de ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "span", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "SINERGIAL");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, " ADVANCE");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "h2", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, " Los m\u00F3dulos agregan a la plataforma funcionalidades que se adaptan a sus necesidades. ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 10)(17, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Agendar Una Demo");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](20, "img", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, ModulosAdicionalesComponent_div_21_Template, 11, 5, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](21);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.modulosInactivos.length > 0);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_3__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, primeng_carousel__WEBPACK_IMPORTED_MODULE_5__.Carousel],
    styles: ["#hero[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 70vh;\n  margin-top: 20px;\n}\n\n#hero[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%] {\n  margin: 0 0 10px 0;\n  font-size: 48px;\n  font-weight: 700;\n  line-height: 56px;\n  color: black;\n}\n\n#hero[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%] {\n  color: #484848;\n  margin-bottom: 50px;\n  font-size: 24px;\n}\n\n#hero[_ngcontent-%COMP%]   .btn-get-started[_ngcontent-%COMP%] {\n  font-family: \"Raleway\", sans-serif;\n  font-weight: 500;\n  font-size: 16px;\n  letter-spacing: 1px;\n  display: inline-block;\n  padding: 10px 30px;\n  border-radius: 50px;\n  transition: 0.5s;\n  background: #0070af;\n  color: #fff;\n  border: 2px solid #0070af;\n}\n\n#hero[_ngcontent-%COMP%]   .btn-get-started[_ngcontent-%COMP%]:hover {\n  background: #fff;\n  color: #0070af;\n}\n\n#hero[_ngcontent-%COMP%]   .animated[_ngcontent-%COMP%] {\n  animation: _ngcontent-%COMP%_up-down 2s ease-in-out infinite alternate-reverse both;\n}\n\n.sinergial[_ngcontent-%COMP%] {\n  color: #0070af;\n}\n\n.advance[_ngcontent-%COMP%] {\n  color: #0a4261;\n}\n\n@media (min-width: 1024px) {\n  #hero[_ngcontent-%COMP%] {\n    background-attachment: fixed;\n  }\n}\n@media (max-width: 991px) {\n  #hero[_ngcontent-%COMP%] {\n    height: 100vh;\n  }\n  #hero[_ngcontent-%COMP%]   .animated[_ngcontent-%COMP%] {\n    animation: none;\n  }\n  #hero[_ngcontent-%COMP%]   .hero-img[_ngcontent-%COMP%] {\n    text-align: center;\n  }\n  #hero[_ngcontent-%COMP%]   .hero-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n    width: 50%;\n  }\n}\n@media (max-width: 768px) {\n  #hero[_ngcontent-%COMP%] {\n    margin-top: 20px;\n  }\n  #hero[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%] {\n    font-size: 28px;\n    line-height: 36px;\n  }\n  #hero[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%] {\n    font-size: 18px;\n    line-height: 24px;\n    margin-bottom: 30px;\n  }\n  #hero[_ngcontent-%COMP%]   .hero-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n    width: 70%;\n  }\n}\n@media (max-width: 575px) {\n  #hero[_ngcontent-%COMP%]   .hero-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n    width: 80%;\n  }\n}\n@keyframes _ngcontent-%COMP%_up-down {\n  0% {\n    transform: translateY(10px);\n  }\n  100% {\n    transform: translateY(-10px);\n  }\n}\n.pricing[_ngcontent-%COMP%] {\n  background: #eff7fd;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%] {\n  padding: 20px;\n  background: #f9f9f9;\n  text-align: center;\n  border-radius: 8px;\n  position: relative;\n  overflow: hidden;\n  border: 2px solid #f9f9f9;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%] {\n  font-weight: 400;\n  padding: 15px;\n  margin-top: 15px;\n  font-size: 18px;\n  font-weight: 600;\n  color: #222222;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%] {\n  font-size: 42px;\n  color: #0070af;\n  font-weight: 500;\n  font-family: \"Open Sans\", sans-serif;\n  margin-bottom: 20px;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   sup[_ngcontent-%COMP%] {\n  font-size: 20px;\n  top: -15px;\n  left: -3px;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  color: #bababa;\n  font-size: 16px;\n  font-weight: 300;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] {\n  padding: 0;\n  list-style: none;\n  color: #222222;\n  text-align: center;\n  line-height: 20px;\n  font-size: 14px;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  padding-bottom: 16px;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  color: #0070af;\n  font-size: 18px;\n  padding-right: 4px;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .na[_ngcontent-%COMP%] {\n  color: #ccc;\n  text-decoration: line-through;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .btn-wrap[_ngcontent-%COMP%] {\n  padding: 15px;\n  text-align: center;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .btn-buy[_ngcontent-%COMP%] {\n  display: inline-block;\n  padding: 10px 40px 12px 40px;\n  border-radius: 50px;\n  border: 2px solid #0070af;\n  color: #0070af;\n  font-size: 14px;\n  font-weight: 400;\n  font-family: \"Raleway\", sans-serif;\n  font-weight: 600;\n  transition: 0.3s;\n}\n\n.pricing[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .btn-buy[_ngcontent-%COMP%]:hover {\n  background: #0070af;\n  color: #fff;\n}\n\n.pricing[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%] {\n  border-color: #0070af;\n}\n\n.pricing[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%]   .btn-buy[_ngcontent-%COMP%] {\n  background: #0070af;\n  color: #fff;\n}\n\n.pricing[_ngcontent-%COMP%]   .recommended[_ngcontent-%COMP%]   .btn-buy[_ngcontent-%COMP%]:hover {\n  background: #0070af;\n  border-color: #0070af;\n}\n\n.pricing[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n  max-width: 130px;\n}\n\nsection[_ngcontent-%COMP%] {\n  padding: 60px 0;\n  overflow: hidden;\n}\n\n.section-bg[_ngcontent-%COMP%] {\n  background-color: #f7fbfe;\n}\n\n.section-title[_ngcontent-%COMP%] {\n  text-align: center;\n  padding-bottom: 30px;\n}\n\n.section-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%] {\n  font-size: 32px;\n  font-weight: bold;\n  text-transform: uppercase;\n  position: relative;\n  color: #222222;\n}\n\n.section-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]::before, .section-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]::after {\n  content: \"\";\n  width: 50px;\n  height: 2px;\n  background: #0070af;\n  display: inline-block;\n}\n\n.section-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]::before {\n  margin: 0 15px 10px 0;\n}\n\n.section-title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]::after {\n  margin: 0 0 10px 15px;\n}\n\n.section-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n  margin: 15px 0 0 0;\n}"]
  });
}

/***/ }),

/***/ 85850:
/*!***************************************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/notas-de-pedido/listado-cards-notas-de-pedido/listado-cards-notas-de-pedido.component.ts ***!
  \***************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ListadoCardsNotasDePedidoComponent: () => (/* binding */ ListadoCardsNotasDePedidoComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* 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_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var primeng_paginator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/paginator */ 42947);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);












function ListadoCardsNotasDePedidoComponent_For_5_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "i", 26);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassMap"]("text-danger mdi mdi-cancel font-size-18 align-middle ms-1");
  }
}
function ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div")(1, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r15);
      const dropButton_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
      const nota_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2).$implicit;
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r13.emitirAccion(dropButton_r10.Accion, nota_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
    const nota_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2).$implicit;
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", !dropButton_r10.disabled ? dropButton_r10.activate ? dropButton_r10.activate(ctx_r12.buscarValoresAcciones(nota_r2, dropButton_r10.fieldsActivate), dropButton_r10.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", dropButton_r10.Title, " ");
  }
}
function ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_div_1_Template, 2, 0, "div", 32)(2, ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_div_2_Template, 3, 2, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r10 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", dropButton_r10.Type == "divider" && dropButton_r10.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !dropButton_r10.Type && dropButton_r10.Show !== false);
  }
}
function ListadoCardsNotasDePedidoComponent_For_5_div_33_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 27)(1, "button", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ListadoCardsNotasDePedidoComponent_For_5_div_33_div_4_Template, 3, 2, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r8.dropdownButtons);
  }
}
const _c0 = a0 => [a0, "", "", ".2-2", "es-AR"];
function ListadoCardsNotasDePedidoComponent_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 8)(1, "div", 9)(2, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ListadoCardsNotasDePedidoComponent_For_5_i_4_Template, 1, 2, "i", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](6, "i", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 13)(8, "p", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "p", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](11, "i", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "h3", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](15, "br", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "div", 19)(18, "span", 20)(19, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](25, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "div", 21)(28, "div", 22)(29, "p", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](31, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](32, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](33, ListadoCardsNotasDePedidoComponent_For_5_div_33_Template, 5, 1, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const nota_r2 = ctx.$implicit;
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("shadow-lg", ctx_r0.darkMode);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassMap"]("pedido-card-ribbon d-inline-block fw-medium text-center rounded-end-3 pt-2 " + ctx_r0.getEstadoClasses(nota_r2.EstadoPedido));
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", nota_r2.EstadoPedido, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", nota_r2.Anulada === "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", nota_r2.Numero, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate2"](" ", nota_r2.Fecha, " - ", nota_r2.Hora, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" (", nota_r2.ClienteVenta.Codigo, ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", nota_r2.ClienteVenta.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](nota_r2.Canal.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](nota_r2.FormaPago.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate2"]("(", nota_r2.Vendedor.Codigo, ") ", nota_r2.Vendedor.Nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate2"]("(", nota_r2.Sucursal.Codigo, ") ", nota_r2.Sucursal.Nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" $ ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBindV"](31, 19, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](25, _c0, nota_r2.Importe)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r0.showDropdownButtons());
  }
}
function ListadoCardsNotasDePedidoComponent_ForEmpty_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 35)(1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " No hay datos para mostrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
}
class ListadoCardsNotasDePedidoComponent {
  constructor() {
    this.notasDePedido = [];
    this.page = 1;
    this.cantSearch = 10;
    this.totalItems = 0;
    this.loading = false;
    this.order = 1;
    this.sentido = 'Asc';
    this.dropdownButtons = [];
    this.emitLazyLoad = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.emitAction = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.emitOrderChange = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_DARK;
    this.ordenamientos = [{
      Id: 1,
      Nombre: '\u25BC Número',
      params: {
        ord: 1,
        sentido: 'Desc'
      }
    }, {
      Id: 2,
      Nombre: '\u25B2 Número',
      params: {
        ord: 1,
        sentido: 'Asc'
      }
    }, {
      Id: 3,
      Nombre: '\u25BC Nombre Cliente',
      params: {
        ord: 2,
        sentido: 'Desc'
      }
    }, {
      Id: 4,
      Nombre: '\u25B2 Nombre Cliente',
      params: {
        ord: 2,
        sentido: 'Asc'
      }
    }, {
      Id: 5,
      Nombre: '\u25BC Fecha',
      params: {
        ord: 3,
        sentido: 'Desc'
      }
    }, {
      Id: 6,
      Nombre: '\u25B2 Fecha',
      params: {
        ord: 3,
        sentido: 'Asc'
      }
    }];
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_5__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_6__["default"], 'es-AR');
  }
  lazyLoadChange($event) {
    if ($event.page != this.page - 1 || $event.rows != this.cantSearch) {
      this.emitLazyLoad.emit({
        page: $event.rows != this.cantSearch ? 1 : $event.page + 1,
        cant: $event.rows,
        order: this.order,
        sentido: this.sentido
      });
    }
  }
  orderChange($event) {
    const ordenItem = this.ordenamientos.find(item => item.Id == $event);
    if (ordenItem) {
      this.emitOrderChange.emit({
        page: 1,
        cant: this.cantSearch,
        order: ordenItem.params.ord,
        sentido: ordenItem.params.sentido
      });
    }
  }
  emitirAccion(accion, registro) {
    this.emitAction.emit({
      accion: accion,
      registro: registro
    });
  }
  getOrder() {
    return this.ordenamientos.find(item => item.params.ord == this.order && item.params.sentido === this.sentido).Id;
  }
  buscarValoresAcciones(datos, valores) {
    let resultado = [];
    valores.forEach(valor => resultado.push((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.buscarValor)(datos, valor)));
    return resultado;
  }
  showDropdownButtons() {
    return this.dropdownButtons.some(button => button.Show);
  }
  getEstadoClasses(estado) {
    switch (estado) {
      case 'Facturado':
        return 'estado-facturado';
      case 'Parcialmente Facturado':
        return 'estado-parcialmente-facturado';
      case 'No Facturado':
        return 'estado-no-facturado';
      default:
        return 'bg-light text-black';
    }
  }
  static #_ = this.ɵfac = function ListadoCardsNotasDePedidoComponent_Factory(t) {
    return new (t || ListadoCardsNotasDePedidoComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
    type: ListadoCardsNotasDePedidoComponent,
    selectors: [["app-listado-cards-notas-de-pedido"]],
    inputs: {
      notasDePedido: "notasDePedido",
      page: "page",
      cantSearch: "cantSearch",
      totalItems: "totalItems",
      loading: "loading",
      order: "order",
      sentido: "sentido",
      dropdownButtons: "dropdownButtons"
    },
    outputs: {
      emitLazyLoad: "emitLazyLoad",
      emitAction: "emitAction",
      emitOrderChange: "emitOrderChange"
    },
    decls: 13,
    vars: 13,
    consts: [[1, "row", "mb-2", "justify-content-center", "justify-content-lg-end"], [1, "col-auto"], [3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "valueSelect"], [1, "pedido-card-container"], [1, "row", "mt-2"], [1, "paginator-container"], [1, "text-muted", "align-self-center"], [3, "first", "rows", "totalRecords", "rowsPerPageOptions", "onPageChange"], [1, "pedido-card", "shadow", "border", "border-secondary", "border-opacity-25", "rounded-5", "overflow-hidden", "animate__animated", "animate__fadeIn"], [1, "position-absolute", "start-0", 2, "top", "1.5rem"], ["pTooltip", "Nota de pedido anulada", 3, "class", 4, "ngIf"], [1, "position-absolute", 2, "top", "-22px", "right", "0", "opacity", "0.1", "z-index", "-1"], [1, "mdi", "mdi-note-text-outline", 2, "font-size", "92px"], [1, "pedido-card-info", "pt-5", "pt-md-4", "mt-5"], [1, "fs-3", "text-md-start", "text-center"], [1, "text-md-start", "text-center"], [1, "mdi", "mdi-calendar-month"], [1, "pt-4", "text-center", "fw-bold", "mb-0"], [1, "d-md-none"], [1, "pedido-card-info", "text-start", "pt-2"], [1, "badge", "badge-soft-primary"], [1, "pedido-card-footer"], [1, "pedido-card-precio"], [1, "fw-bold", "mx-1", "font-size-20"], [1, "pedido-card-actions"], ["class", "btn-group", "ngbDropdown", "", "container", "body", 4, "ngIf"], ["pTooltip", "Nota de pedido anulada"], ["ngbDropdown", "", "container", "body", 1, "btn-group"], ["type", "button", "ngbDropdownToggle", "", 1, "btn", "dropdown-toggle", "text-dark"], [1, "mdi", "mdi-dots-vertical", "font-size-20"], ["ngbDropdownMenu", "", 1, "dropdown-menu"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [1, "dropdown-divider"], [2, "cursor", "pointer", 3, "ngClass", "click"], [1, "pedido-card-empty"], ["role", "alert", 1, "alert", "alert-info", "py-3", "text-center"], ["class", "pedido-card shadow border border-secondary border-opacity-25 rounded-5 overflow-hidden animate__animated animate__fadeIn", 3, "shadow-lg"], ["class", "pedido-card-empty"]],
    template: function ListadoCardsNotasDePedidoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "select-loading", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("valueSelect", function ListadoCardsNotasDePedidoComponent_Template_select_loading_valueSelect_2_listener($event) {
          return ctx.orderChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterCreate"](4, ListadoCardsNotasDePedidoComponent_For_5_Template, 34, 27, "div", 37, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeaterTrackByIndex"], false, ListadoCardsNotasDePedidoComponent_ForEmpty_6_Template, 3, 0, "div", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 4)(8, "div", 5)(9, "div", 6)(10, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "p-paginator", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("onPageChange", function ListadoCardsNotasDePedidoComponent_Template_p_paginator_onPageChange_12_listener($event) {
          return ctx.lazyLoadChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Ordenar por:")("defaultValueDis", true)("items", ctx.ordenamientos)("valueSelected", ctx.getOrder());
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrepeater"](ctx.notasDePedido);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate3"]("P\u00E1gina ", ctx.page, " con ", ctx.cantSearch, " de ", ctx.totalItems, "");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("first", (ctx.page - 1) * ctx.cantSearch)("rows", ctx.cantSearch)("totalRecords", ctx.totalItems)("rowsPerPageOptions", ctx.pageOptions);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbDropdownMenu, primeng_paginator__WEBPACK_IMPORTED_MODULE_9__.Paginator, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_3__.SelectLoadingComponent, _angular_common__WEBPACK_IMPORTED_MODULE_5__.CurrencyPipe],
    styles: [".p-paginator {\n  justify-content: end;\n}\n@media (max-width: 991px) {\n    .p-paginator {\n    justify-content: center;\n    margin-bottom: 20px;\n  }\n}\n\n  .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n  justify-self: flex-end;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n  border-radius: initial !important;\n  background-color: initial !important;\n  height: 37px;\n  min-width: 35px;\n  margin: 0;\n  padding: 0;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n    font-size: 11.375px;\n    height: 29px;\n    min-width: 21px;\n  }\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:active,   .p-paginator .p-paginator-first.p-link:hover:active,  .p-paginator .p-paginator-prev.p-link:hover:active,   .p-paginator .p-paginator-next.p-link:hover:active,  .p-paginator .p-paginator-last.p-link:hover:active,  .p-paginator .p-dropdown.p-link:hover:active {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:not(:active),   .p-paginator .p-paginator-first.p-link:hover:not(:active),  .p-paginator .p-paginator-prev.p-link:hover:not(:active),   .p-paginator .p-paginator-next.p-link:hover:not(:active),  .p-paginator .p-paginator-last.p-link:hover:not(:active),  .p-paginator .p-dropdown.p-link:hover:not(:active) {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .p-link:focus,   .p-paginator .p-paginator-first .p-link:focus,  .p-paginator .p-paginator-prev .p-link:focus,   .p-paginator .p-paginator-next .p-link:focus,  .p-paginator .p-paginator-last .p-link:focus,  .p-paginator .p-dropdown .p-link:focus {\n  outline: 0 none;\n  outline-offset: 0;\n  \n\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-highlight,   .p-paginator .p-paginator-first.p-highlight,  .p-paginator .p-paginator-prev.p-highlight,   .p-paginator .p-paginator-next.p-highlight,  .p-paginator .p-paginator-last.p-highlight,  .p-paginator .p-dropdown.p-highlight {\n  background-color: #0070af !important;\n  color: #fff;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n    font-size: 11.375px;\n  }\n}\n\n .p-paginator .p-dropdown .p-dropdown-label {\n  padding: 8px;\n  align-self: center;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n   .p-paginator .p-dropdown .p-dropdown-label {\n    padding: 6px;\n    font-size: 11.375px;\n  }\n}\n\n  .p-datatable .p-paginator-bottom {\n  border: none;\n}\n\n  .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  justify-content: end;\n}\n@media (max-width: 576px) {\n    .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n    margin-top: 30px;\n    justify-content: center;\n  }\n}\n\n  .p-dropdown-items-wrapper .p-dropdown-items {\n  padding: 0.5rem;\n}\n\n .p-paginator .p-paginator-current {\n  position: absolute;\n  left: 0;\n  font-size: 13px;\n}\n@media (max-width: 991px) {\n   .p-paginator .p-paginator-current {\n    left: 50%;\n    top: 100%;\n    bottom: 4%;\n    text-align: center;\n    transform: translateX(-50%);\n  }\n}\n\n.pedido-card-container[_ngcontent-%COMP%] {\n  display: grid;\n  gap: 20px 20px;\n  grid-template-columns: 1fr 1fr 1fr;\n}\n@media screen and (max-width: 1400px) {\n  .pedido-card-container[_ngcontent-%COMP%] {\n    grid-column: 4;\n    grid-template-columns: 1fr 1fr;\n  }\n}\n@media screen and (max-width: 991px) {\n  .pedido-card-container[_ngcontent-%COMP%] {\n    grid-template-columns: 1fr;\n  }\n}\n\n.paginator-container[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n}\n@media screen and (max-width: 991px) {\n  .paginator-container[_ngcontent-%COMP%] {\n    flex-direction: column-reverse;\n    justify-content: center;\n  }\n}\n\n.pedido-card-empty[_ngcontent-%COMP%] {\n  grid-column: 1/-1;\n}\n\n.pedido-card[_ngcontent-%COMP%] {\n  position: relative;\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  align-items: center;\n  padding: 8px 16px 0px 32px;\n  overflow: hidden;\n}\n@media screen and (max-width: 400px) {\n  .pedido-card[_ngcontent-%COMP%] {\n    text-align: center;\n    flex-direction: column;\n    padding: 0px 16px 0px 16px;\n  }\n}\n.pedido-card[_ngcontent-%COMP%]   .pedido-card-info[_ngcontent-%COMP%] {\n  padding: 16px 0px 16px 0px;\n  width: 100%;\n}\n.pedido-card[_ngcontent-%COMP%]   .pedido-card-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {\n  margin-bottom: 0px;\n}\n.pedido-card[_ngcontent-%COMP%]   .pedido-card-footer[_ngcontent-%COMP%] {\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n}\n.pedido-card[_ngcontent-%COMP%]   .pedido-card-footer[_ngcontent-%COMP%]   .pedido-card-actions[_ngcontent-%COMP%] {\n  padding-right: 16px;\n  text-align: end;\n  margin-bottom: 16px;\n}\n@media screen and (max-width: 400px) {\n  .pedido-card[_ngcontent-%COMP%]   .pedido-card-footer[_ngcontent-%COMP%]   .pedido-card-actions[_ngcontent-%COMP%] {\n    text-align: center;\n    padding-right: 0px;\n  }\n}\n.pedido-card[_ngcontent-%COMP%]   .badge-estado[_ngcontent-%COMP%] {\n  width: 100%;\n  text-align: end;\n  padding-right: 16px;\n  font-size: 16px;\n  padding-top: 10px;\n}\n@media screen and (max-width: 400px) {\n  .pedido-card[_ngcontent-%COMP%]   .badge-estado[_ngcontent-%COMP%] {\n    text-align: center;\n    padding-right: 0px;\n  }\n}\n.pedido-card[_ngcontent-%COMP%]   .pedido-card-ribbon[_ngcontent-%COMP%] {\n  height: 2.4rem;\n  width: 14rem;\n  box-shadow: 3px 3px 7px rgba(26, 35, 126, 0.1);\n}\n\n.estado-facturado[_ngcontent-%COMP%] {\n  position: relative;\n  background-color: #c3d9c3;\n  color: var(--bs-body-color);\n}\n\n.estado-parcialmente-facturado[_ngcontent-%COMP%] {\n  position: relative;\n  background-color: #fbd356;\n  color: var(--bs-body-color);\n}\n\n.estado-no-facturado[_ngcontent-%COMP%] {\n  position: relative;\n  background-color: #f7f7f7;\n  color: var(--bs-body-color);\n}"]
  });
}

/***/ }),

/***/ 48547:
/*!*******************************************************************************!*\
  !*** ./src/app/pages/dashboards/notas-de-pedido/notas-de-pedido.component.ts ***!
  \*******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotasDePedidoComponent: () => (/* binding */ NotasDePedidoComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* 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 _core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var _core_seleccionar_empleado_seleccionar_empleado_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/seleccionar-empleado/seleccionar-empleado.component */ 53317);
/* 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 src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_shared_comprobantes_trazabilidad_comprobante_trazabilidad_comprobante_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/comprobantes/trazabilidad-comprobante/trazabilidad-comprobante.component */ 26944);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! rxjs */ 24036);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var src_app_shared_reportes_core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/shared/reportes/core/impresion-cmprb/impresion-cmprb.component */ 80162);
/* harmony import */ var src_app_shared_reportes_comprobantes_nota_de_pedido_cmprb_nota_de_pedido_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/shared/reportes/comprobantes/nota-de-pedido/cmprb-nota-de-pedido.component */ 20287);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/general/pedido-venta.service */ 83456);
/* harmony import */ var src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/core/canal.service */ 84003);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* 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 _angular_router__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);
/* harmony import */ var _listado_cards_notas_de_pedido_listado_cards_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./listado-cards-notas-de-pedido/listado-cards-notas-de-pedido.component */ 85850);
































function NotasDePedidoComponent_ng_template_3_Template(rf, ctx) {}
function NotasDePedidoComponent_div_4_ng_template_3_Template(rf, ctx) {}
function NotasDePedidoComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "div", 40)(1, "div", 41)(2, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](3, NotasDePedidoComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵreference"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngTemplateOutlet", _r8);
  }
}
function NotasDePedidoComponent_Conditional_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Conditional_13_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r10.acciones({
        accion: "nuevo"
      }));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](1, "span", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](2, "Nueva Nota de Pedido");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](3, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
  }
}
function NotasDePedidoComponent_a_47_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "a", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_a_47_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r12.borrarBusqueda("Clientes"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](1, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
  }
}
function NotasDePedidoComponent_Conditional_50_a_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "a", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Conditional_50_a_3_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r15.borrarBusqueda("Vendedores"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](1, "i", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
  }
}
function NotasDePedidoComponent_Conditional_50_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "div", 30)(1, "div", 31)(2, "input", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("keyup.enter", function NotasDePedidoComponent_Conditional_50_Template_input_keyup_enter_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r17.buscar("Vendedores"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](3, NotasDePedidoComponent_Conditional_50_a_3_Template, 2, 0, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](4, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Conditional_50_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r18);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r19.buscar("Vendedores"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](5, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngIf", ctx_r4.getBusqueda("Vendedores"));
  }
}
function NotasDePedidoComponent_Conditional_52_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "app-listado-cards-notas-de-pedido", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("emitAction", function NotasDePedidoComponent_Conditional_52_Template_app_listado_cards_notas_de_pedido_emitAction_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r21);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r20.acciones($event));
    })("emitLazyLoad", function NotasDePedidoComponent_Conditional_52_Template_app_listado_cards_notas_de_pedido_emitLazyLoad_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r21);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r22.lazyLoadChange($event));
    })("emitOrderChange", function NotasDePedidoComponent_Conditional_52_Template_app_listado_cards_notas_de_pedido_emitOrderChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r21);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r23.lazyLoadChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("notasDePedido", ctx_r5.notasDePedido)("page", ctx_r5.page)("order", ctx_r5.order)("sentido", ctx_r5.sentido)("cantSearch", ctx_r5.cantSearch)("totalItems", ctx_r5.totalItems)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipeBind1"](1, 8, ctx_r5.pedidoVentaService.isLoading$))("dropdownButtons", ctx_r5.dropdownButtons);
  }
}
function NotasDePedidoComponent_Conditional_53_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "div", 49)(1, "app-table2", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("lazyLoad", function NotasDePedidoComponent_Conditional_53_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r24.lazyLoadChange($event));
    })("emitAction", function NotasDePedidoComponent_Conditional_53_Template_app_table2_emitAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r25);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r26.acciones($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("columns", ctx_r6.notasDePedidoHeader)("datos", ctx_r6.notasDePedido)("page", ctx_r6.page)("order", ctx_r6.order)("sentido", ctx_r6.sentido)("cant_search", ctx_r6.cantSearch)("totalItems", ctx_r6.totalItems)("apiTable", true)("configColumns", true)("state", ctx_r6.stateConfig)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipeBind1"](2, 14, ctx_r6.pedidoVentaService.isLoading$))("rowsEdit", false)("acciones", true)("dropdownButtons", ctx_r6.dropdownButtons);
  }
}
const _c0 = () => [0];
function NotasDePedidoComponent_ng_template_54_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "form", 20)(1, "p-accordion", 51)(2, "p-accordionTab", 52)(3, "div", 53)(4, "p", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](5, "Canal");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](6, "select-loading", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("valueSelect", function NotasDePedidoComponent_ng_template_54_Template_select_loading_valueSelect_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵrestoreView"](_r28);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵresetView"](ctx_r27.filterForm.get("IdsCanales").setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipe"](7, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](8, "div", 53)(9, "p", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](10, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](11, "select", 56)(12, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](13, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](14, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](15, "Facturado");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](16, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](17, "Parcialmente Facturado");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](18, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](19, "No Facturado");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](20, "div", 53)(21, "p", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](22, "Anulados");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](23, "select", 58)(24, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](25, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](26, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](27, "Si");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](28, "option", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](29, "No");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](30, "p-accordionTab", 59)(31, "div", 60)(32, "p", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](33, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](34, "label", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](35, "Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](36, "input", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](37, "label", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](38, "Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](39, "input", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("formGroup", ctx_r7.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpureFunction0"](17, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("defaultValue", "")("defaultString", "Todos")("items", ctx_r7.canales)("valueSelected", ctx_r7.filterForm.get("IdsCanales").value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipeBind1"](7, 15, ctx_r7.canalService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "F");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "P");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "N");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("value", "N");
  }
}
class NotasDePedidoComponent {
  constructor(fb, pedidoVentaService, canalService, sf, modalService, cdr, authService, alert, exportacion, router, configGral, currencyPipe) {
    this.fb = fb;
    this.pedidoVentaService = pedidoVentaService;
    this.canalService = canalService;
    this.sf = sf;
    this.modalService = modalService;
    this.cdr = cdr;
    this.authService = authService;
    this.alert = alert;
    this.exportacion = exportacion;
    this.router = router;
    this.configGral = configGral;
    this.currencyPipe = currencyPipe;
    this.MSJ_EXITO_ELIMINACION = 'Se anuló correctamente la nota de pedido nº: ';
    this.notasDePedido = [];
    this.canales = [];
    this.unsubscribe = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.viewmode = 'card';
    this.permisosComprobantes = {
      InsComprobante: false,
      VisComprobante: true,
      ModifComprobante: false,
      VerTrazComprobante: false,
      AnularComprobante: false,
      VerComprobantesVendedor: false
    };
    //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 = 1;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO_DESC;
    this.totalItems = 0;
    this.searchForm = this.fb.group({
      IdsVendedores: [''],
      Vendedores: [''],
      IdsClientes: [''],
      Clientes: ['']
    });
    this.filterForm = this.fb.group({
      FechaDesde: [(0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_8__.format)(new Date(), 'YYYY-MM-DD')],
      FechaHasta: [(0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_8__.format)(new Date(), 'YYYY-MM-DD')],
      IdsCanales: [''],
      Estado: [''],
      Anulados: ['N']
    });
    this.notasDePedidoHeader = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_5__.notasDePedidoHeader;
    this.dropdownButtons = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_5__.notasDePedidoAcciones;
  }
  ngOnInit() {
    this.cargarPermisos();
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_22__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_23__["default"], 'es-AR');
    this.page = 1;
    this.previousPage = 1;
    this.stateConfig = this.sf.pagenamesGEN.NOTAS_PEDIDO_STATES;
    this.cargarPermisos();
    this.inicializarEstado();
    this.configuracionFilter();
    this.cargarCanales();
    this.loadPage();
  }
  ngOnDestroy() {}
  cargarPermisos() {
    this.permisosComprobantes.InsComprobante = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_9__.PERMISO_INS_COMPROBANTE);
    // this.permisosComprobantes.VisComprobante = this.authService.hasPermiso(
    //   PERMISOS.PERMISO_VER_COMPROBANTE
    // );
    this.permisosComprobantes.ModifComprobante = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_9__.PERMISO_MODIF_COMPROBANTE);
    this.permisosComprobantes.VerTrazComprobante = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_9__.PERMISO_VER_TRAZ_COMPROBANTE);
    this.permisosComprobantes.AnularComprobante = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_9__.PERMISO_ANUL_COMPROBANTE);
    this.permisosComprobantes.VerComprobantesVendedor = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_9__.PERMISO_VER_COMPROBANTES_VENDEDOR);
    this.dropdownButtons[0]['Show'] = this.permisosComprobantes.VisComprobante;
    this.dropdownButtons[1]['Show'] = this.permisosComprobantes.ModifComprobante;
    this.dropdownButtons[2]['Show'] = this.permisosComprobantes.AnularComprobante;
    this.dropdownButtons[3]['Show'] = this.permisosComprobantes.VerTrazComprobante && (this.permisosComprobantes.AnularComprobante || this.permisosComprobantes.ModifComprobante || this.permisosComprobantes.VisComprobante);
    this.dropdownButtons[4]['Show'] = this.permisosComprobantes.VerTrazComprobante;
  }
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  resetComp() {
    this.unsubscribe.forEach(sub => {
      sub.unsubscribe();
    });
    this.page = 1;
    this.previousPage = 1;
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
  }
  inicializarEstado() {
    this.sf.states = this.applyDefaultsFromAuth(this.sf.pagenamesGEN.NOTAS_PEDIDO_STATES);
    //SP SAD-329 se aplican los defaults en tiempo de ejecución
    this.changeViewmode(this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_VIEWMODE));
    //filtros
    // //Si ambas fechas guardadas son vacias, cargo las fechas por defecto (DIA HOY)
    // //Si no, cargo las fechas guardadas
    // if (
    //   this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_FECHADESDE) == '' &&
    //   this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_FECHAHASTA) == ''
    // ) {
    //   this.filterForm
    //     .get('FechaDesde')
    //     .setValue(format(new Date(), 'YYYY-MM-DD'));
    //   this.filterForm
    //     .get('FechaHasta')
    //     .setValue(format(new Date(), 'YYYY-MM-DD'));
    // } else {
    this.filterForm.get('FechaDesde').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_FECHADESDE));
    this.filterForm.get('FechaHasta').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_FECHAHASTA));
    //}
    this.filterForm.get('IdsCanales').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_IDS_CANALES));
    this.filterForm.get('Estado').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_ESTADO));
    this.filterForm.get('Anulados').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_F_ANULADOS));
    //busqueda
    /**
     * SP SAD-329
     * En caso de tener el permiso inactivo o no haber vendedor asociado se cargan los vendedores guardados en el state
     */
    if (!this.permisosComprobantes.VerComprobantesVendedor || this.noHayEmpleadoAsociado()) {
      this.searchForm.get('IdsVendedores').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_S_IDS_VENDEDORES));
      this.searchForm.get('Vendedores').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_S_VENDEDORES));
    }
    this.searchForm.get('Clientes').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_S_CLIENTES));
    this.searchForm.get('IdsClientes').setValue(this.sf.getState(this.sf.states.NOTAS_PEDIDO_S_IDS_CLIENTES));
    //listado
    this.page = Number(this.sf.getState(this.sf.states.NOTAS_PEDIDO_L_PAGE));
    this.cantSearch = Number(this.sf.getState(this.sf.states.NOTAS_PEDIDO_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.NOTAS_PEDIDO_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.NOTAS_PEDIDO_L_SENTIDO);
  }
  noHayEmpleadoAsociado() {
    return this.authService.usuario == null || this.authService.usuario.Empleado == null || this.authService.usuario.Empleado.Id == null;
  }
  applyDefaultsFromAuth(state) {
    const user = this.authService?.usuario;
    const states = this.sf.pagenamesGEN.NOTAS_PEDIDO_STATES;
    // Si el usuario tiene permiso para ver solo sus comprobantes, usar empleado como default
    if (!this.noHayEmpleadoAsociado()) {
      const idStr = user.Empleado.Id.toString();
      const nombre = user.Empleado.Nombre;
      const codigo = user.Empleado.Codigo;
      const display = codigo ? `(${codigo}) ${nombre}` : nombre;
      // Sobreescribo los defaults en tiempo de ejecución
      if (states.NOTAS_PEDIDO_S_IDS_VENDEDORES) {
        states.NOTAS_PEDIDO_S_IDS_VENDEDORES.default = idStr;
      }
      if (states.NOTAS_PEDIDO_S_VENDEDORES) {
        states.NOTAS_PEDIDO_S_VENDEDORES.default = display;
      }
    }
    if (states.NOTAS_PEDIDO_F_FECHADESDE) {
      states.NOTAS_PEDIDO_F_FECHADESDE.default = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_8__.format)(new Date(), 'YYYY-MM-DD');
    }
    if (states.NOTAS_PEDIDO_F_FECHAHASTA) {
      states.NOTAS_PEDIDO_F_FECHAHASTA.default = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_8__.format)(new Date(), 'YYYY-MM-DD');
    }
    return states;
  }
  configuracionFilter() {
    this.unsubscribe.push(this.filterForm.get('FechaDesde').valueChanges.subscribe(value => {
      //this.FechaHoraDesdeFilter = value;
      this.page = 1;
      this.loadPage();
    }));
    this.unsubscribe.push(this.filterForm.get('FechaHasta').valueChanges.subscribe(value => {
      //this.FechaHoraHastaFilter = value;
      this.page = 1;
      this.loadPage();
    }));
    this.unsubscribe.push(this.filterForm.get('IdsCanales').valueChanges.subscribe(value => {
      //this.IdsCanalesFilter = value;
      this.page = 1;
      this.loadPage();
    }));
    this.unsubscribe.push(this.filterForm.get('Estado').valueChanges.subscribe(value => {
      //this.EstadoFilter = value;
      this.page = 1;
      this.loadPage();
    }));
    this.unsubscribe.push(this.filterForm.get('Anulados').valueChanges.subscribe(value => {
      this.page = 1;
      this.loadPage();
    }));
  }
  cargarCanales() {
    const datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: 'asc'
    };
    const susc = this.canalService.fetch(datos).subscribe(data => {
      this.canales = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  onSearch(datos) {
    const susc = this.pedidoVentaService.fetch(datos).subscribe(data => {
      this.notasDePedido = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
  }
  cargarFiltros(page, order, sentido) {
    let datos = {
      IncluirItems: 'S'
    };
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //filtros
    if (this.filterForm.get('FechaDesde').value != '' && this.filterForm.get('FechaDesde').value != null) {
      datos.FechaDesde = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.formatFecha)(this.filterForm.get('FechaDesde').value);
    }
    if (this.filterForm.get('FechaHasta').value != '' && this.filterForm.get('FechaHasta').value != null) {
      datos.FechaHasta = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.formatFecha)(this.filterForm.get('FechaHasta').value);
    }
    if (this.filterForm.get('IdsCanales').value != '' && this.filterForm.get('IdsCanales').value != null) {
      datos.IdsCanales = this.filterForm.get('IdsCanales').value;
    }
    if (this.filterForm.get('Estado').value != '' && this.filterForm.get('Estado').value != null) {
      datos.Estado = this.filterForm.get('Estado').value;
    }
    if (this.filterForm.get('Anulados').value != '' && this.filterForm.get('Anulados').value != null) {
      datos.Anulados = this.filterForm.get('Anulados').value;
    }
    //busqueda
    if (this.searchForm.get('IdsClientes').value != '' && this.searchForm.get('IdsClientes').value != null) {
      datos.IdsClientes = this.searchForm.get('IdsClientes').value;
    }
    /**
     * SP SAD-329 se setea como vendedor el usuario logueado si tiene el permiso
     * "Ver solamente comprobantes del vendedor"
     * de lo contrario, se cargan los vendedores guardados en el state
     */
    if (!this.permisosComprobantes.VerComprobantesVendedor || this.noHayEmpleadoAsociado()) {
      if (this.searchForm.get('IdsVendedores').value != '' && this.searchForm.get('IdsVendedores').value != null) {
        datos.IdsVendedores = this.searchForm.get('IdsVendedores').value;
      }
    } else {
      datos.IdsVendedores = this.authService.usuario.Empleado.Id.toString() ?? '';
    }
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  changeStates(datos) {
    //filtros
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_F_FECHADESDE, !datos.FechaDesde ? '' : this.filterForm.get('FechaDesde').value);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_F_FECHAHASTA, !datos.FechaHasta ? '' : this.filterForm.get('FechaHasta').value);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_F_IDS_CANALES, !datos.IdsCanales ? this.sf.states.NOTAS_PEDIDO_F_IDS_CANALES.default : datos.IdsCanales);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_F_ESTADO, !datos.Estado ? this.sf.states.NOTAS_PEDIDO_F_ESTADO.default : datos.Estado);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_F_ANULADOS, !datos.Anulados ? '' : datos.Anulados);
    //busqueda
    /**
     * SP SAD-329
     * En caso de tener el permiso inactivo o no haber vendedor asociado se cargan los vendedores guardados en el state
     * Si tiene el permiso, se setea el vendedor del usuario logueado
     */
    if (!this.permisosComprobantes.VerComprobantesVendedor || this.noHayEmpleadoAsociado()) {
      this.sf.changeState(this.sf.states.NOTAS_PEDIDO_S_IDS_VENDEDORES, !datos.IdsVendedores ? '' : datos.IdsVendedores);
      this.sf.changeState(this.sf.states.NOTAS_PEDIDO_S_VENDEDORES, this.searchForm.get('Vendedores').value);
    }
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_S_IDS_CLIENTES, !datos.IdsClientes ? this.sf.states.NOTAS_PEDIDO_S_IDS_CLIENTES.default : datos.IdsClientes);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_S_CLIENTES, !datos.IdsClientes ? this.sf.states.NOTAS_PEDIDO_S_CLIENTES.default : this.searchForm.get('Clientes').value);
    //listado
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_L_SENTIDO, datos.SentidoOrden);
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  acciones(accion) {
    switch (accion.accion) {
      case 'editar':
        this.editar(accion.registro);
        break;
      case 'trazabilidad':
        this.trazabilidad(accion.registro);
        break;
      case 'ver':
        this.visualizar(accion.registro);
        break;
      case 'nuevo':
        this.nuevo();
        break;
      case 'anular':
        this.anular(accion.registro);
        break;
      case 'imprimir':
        this.imprimirComprobante(accion.registro);
        break;
      case 'exportar-pdf':
        this.exportTo('pdf');
        break;
      case 'exportar-excel':
        this.exportTo('excel');
      default:
        console.log('Accion no definida');
        break;
    }
  }
  imprimirComprobante(comprobante) {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let comprobanteRes = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_24__.firstValueFrom)(_this.pedidoVentaService.SerchById(comprobante.Id));
      const modalRef = _this.modalService.open(src_app_shared_reportes_core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_10__.ImpresionCmprbComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.getOptionsModal)('xl'));
      if (comprobante.ClienteVenta) {
        comprobante.ClienteVenta.RazonSocial = comprobante.ClienteVenta.Nombre;
      }
      modalRef.componentInstance.tipocomprobante = src_app_shared_reportes_comprobantes_nota_de_pedido_cmprb_nota_de_pedido_component__WEBPACK_IMPORTED_MODULE_11__.CmprbNotaDePedidoComponent;
      modalRef.componentInstance.datosComprobante = comprobanteRes;
      modalRef.componentInstance.tipoNombreComprobante = 'Nota de Pedido';
      modalRef.componentInstance.nroComprobante = comprobanteRes.Numero;
      modalRef.result.then(cierre => {});
    })();
  }
  visualizar(comprobante) {
    if (this.configGral._config.ComprobanteNuevaPagina === 'S') {
      window.open(`#/views/cargarComprobante/19/visualizar/${comprobante.Id}`, '_blank');
    } else {
      this.router.navigate([`/views/cargarComprobante/19/visualizar/${comprobante.Id}`]);
    }
  }
  trazabilidad(comprobante) {
    const modalRef = this.modalService.open(src_app_shared_comprobantes_trazabilidad_comprobante_trazabilidad_comprobante_component__WEBPACK_IMPORTED_MODULE_7__.TrazabilidadComprobanteComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.getOptionsModal)('xl'));
    modalRef.componentInstance.idComprobante = comprobante.Id;
    modalRef.componentInstance.tipoComprobante = 'venta';
    modalRef.componentInstance.idTipoComprobante = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_5__.NOTA_PEDIDO_ID;
    modalRef.componentInstance.modal = true;
  }
  editar(comprobante) {
    if (this.configGral._config.ComprobanteNuevaPagina === 'S') {
      window.open(`#/views/cargarComprobante/19/${comprobante.Id}`, '_blank');
    } else {
      this.router.navigate([`/views/cargarComprobante/19/${comprobante.Id}`]);
    }
  }
  anular(registro) {
    this.alert.showReturnAlert('Anulación de nota de pedido.', "¿Está seguro de anular la nota de pedido nº: '" + registro.Numero + "' ?", 'warning', 'Anular', 'Cancelar', true).then(result => {
      if (result.value) {
        this.onAnular(registro);
      }
    });
  }
  onAnular(registro) {
    this.alert.showLoadingAlert('Anulando Nota de Pedido', 'Por favor espere...');
    this.pedidoVentaService.anularPedidoVenta(registro.Id).subscribe({
      next: data => {
        this.alert.closeLoadingAlert();
        this.alert.showBasicAlert(this.MSJ_EXITO_ELIMINACION + registro.Numero, '', 'success');
        this.loadPage();
      },
      error: error => {
        this.alert.closeLoadingAlert();
      }
    });
  }
  nuevo() {
    if (this.configGral._config.ComprobanteNuevaPagina === 'S') {
      window.open('#/views/cargarComprobante/19', '_blank');
    } else {
      this.router.navigate(['/views/cargarComprobante/19']);
    }
  }
  getBusqueda(tipo) {
    if (tipo == 'Clientes') {
      return this.searchForm.get('Clientes').value;
    }
    if (tipo == 'Vendedores') {
      return this.searchForm.get('Vendedores').value;
    }
  }
  borrarBusqueda(tipo) {
    if (tipo == 'Clientes') {
      this.searchForm.get('IdsClientes').reset('');
      this.searchForm.get('Clientes').reset('');
    }
    if (tipo == 'Vendedores') {
      this.searchForm.get('IdsVendedores').reset('');
      this.searchForm.get('Vendedores').reset('');
    }
    this.page = 1;
    this.loadPage();
  }
  getInfoModal(tipo) {
    let datosModal = {
      configs: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.getOptionsModal)('xl')
    };
    if (tipo == 'Clientes') {
      datosModal.componente = _core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_2__.SeleccionarClienteComponent;
      datosModal.filtros = {
        Multiple: true
      };
    }
    if (tipo == 'Vendedores') {
      datosModal.componente = _core_seleccionar_empleado_seleccionar_empleado_component__WEBPACK_IMPORTED_MODULE_3__.SeleccionarEmpleadoComponent;
      datosModal.filtros = {
        Multiple: true,
        PermiteVender: 'S'
      };
    }
    return datosModal;
  }
  buscar(tipo) {
    const infoModal = this.getInfoModal(tipo);
    if (infoModal.componente != undefined) {
      const modalRef = this.modalService.open(infoModal.componente, infoModal.configs);
      modalRef.componentInstance.filtros = infoModal.filtros;
      modalRef.result.then(resolve => {
        if (resolve !== undefined) {
          if (tipo == 'Clientes') {
            this.searchForm.controls.IdsClientes.setValue(resolve.IdsClientes.join(','));
            this.searchForm.controls.Clientes.setValue(resolve.Clientes);
          }
          if (tipo == 'Vendedores') {
            this.searchForm.controls.IdsVendedores.setValue(resolve.IdsEmpleados.join(','));
            this.searchForm.controls.Vendedores.setValue(resolve.Empleados);
          }
          this.page = 1;
          this.loadPage();
        }
      });
    }
  }
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    delete datos.PageSize;
    const columns = this.notasDePedidoHeader.map(header => header.Nombre);
    const keys = this.notasDePedidoHeader.map(header => header.Key);
    this.alert.showLoadingAlert('Exportando Notas de Pedido', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    this.pedidoVentaService.fetch(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_25__.map)(data => {
      if (data?.Data && data.Data.length > 0) {
        return data.Data.map(item => {
          return {
            ...item,
            Importe: this.currencyPipe.transform(item.Importe, 'ARS', '$', '1.2-2', 'es-AR')
          };
        });
      } else {
        return [];
      }
    })).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Notas de pedido Exportadas', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      if (extension == 'excel') {
        this.exportacion.exportToExcel(data, columns, keys, 'Listado de Notas de Pedido');
      } else {
        this.exportacion.exportToPdf(data, columns, keys, 'Listado de Notas de Pedido');
      }
    });
  }
  changeViewmode(mode) {
    this.viewmode = mode;
    this.sf.changeState(this.sf.states.NOTAS_PEDIDO_F_VIEWMODE, mode);
    this.cdr.detectChanges();
  }
  static #_ = this.ɵfac = function NotasDePedidoComponent_Factory(t) {
    return new (t || NotasDePedidoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_26__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_12__.PedidoVentaService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_13__.CanalService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_14__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_21__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_15__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_6__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_16__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_28__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_17__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_22__.CurrencyPipe));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵdefineComponent"]({
    type: NotasDePedidoComponent,
    selectors: [["app-notas-de-pedido"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_6__.AlertCustomService, _angular_common__WEBPACK_IMPORTED_MODULE_22__.CurrencyPipe])],
    decls: 56,
    vars: 18,
    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-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"], [1, "mb-1", "align-self-center"], [1, "flex-shrink-0", "d-flex", "gap-1"], ["class", "btn btn-primary"], [1, "btn", "btn-light", 3, "click"], [3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["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"], [1, "col-auto"], ["data-cy", "boton-vista-card", 1, "btn", "p-0", "pt-1", 3, "click"], ["data-cy", "boton-vista-tabla", 1, "btn", "p-0", "pt-1", 3, "click"], [2, "font-size", "26px", 3, "ngClass"], [1, "col-lg-4"], [1, "input-group"], ["type", "text", "formControlName", "Clientes", "placeholder", "Buscar Cliente", "readonly", "true", 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"], ["class", "col-lg-4"], [1, "card-body"], [3, "notasDePedido", "page", "order", "sentido", "cantSearch", "totalItems", "loading", "dropdownButtons"], ["FILTRO", ""], [1, "col-xxl-3", "col-lg-3", "d-none", "d-lg-block"], [1, "card", 3, "formGroup"], [1, "card-body", "p-2"], [1, "d-none", "d-md-block"], [1, "d-block", "d-md-none", "mdi", "mdi-plus", "mdi-16"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["type", "text", "formControlName", "Vendedores", "placeholder", "Buscar Vendedor", "readonly", "true", 1, "form-control", 3, "keyup.enter"], [3, "notasDePedido", "page", "order", "sentido", "cantSearch", "totalItems", "loading", "dropdownButtons", "emitAction", "emitLazyLoad", "emitOrderChange"], [1, "animate__animated", "animate__fadeIn"], ["stateConfig", "NOTAS_PEDIDO_F_CONFIG", "title", "Notas de Pedido", "styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "configColumns", "state", "isLoading", "rowsEdit", "acciones", "dropdownButtons", "lazyLoad", "emitAction"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "mb-2"], [1, "text-muted"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["formControlName", "Estado", 1, "form-select"], [3, "value"], ["formControlName", "Anulados", 1, "form-select"], ["header", "Avanzados"], [1, "border", "border-1", "rounded", "border-opacity-10", "p-2", "mb-2"], [1, "fw-bold"], [1, "text-muted", "font-size-12"], ["type", "date", "formControlName", "FechaDesde", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits"], ["type", "date", "formControlName", "FechaHasta", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits"]],
    template: function NotasDePedidoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("visibleChange", function NotasDePedidoComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](3, NotasDePedidoComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](4, NotasDePedidoComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](11, "Notas de Pedido");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](12, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](13, NotasDePedidoComponent_Conditional_13_Template, 4, 0, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](14, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_14_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](15, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipe"](16, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](17, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_17_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](18, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](19, "div", 15)(20, "button", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](21, "i", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](22, "ul", 18)(23, "li")(24, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_24_listener() {
          return ctx.acciones({
            accion: "exportar-excel"
          });
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](25, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](26, "li")(27, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_27_listener() {
          return ctx.acciones({
            accion: "exportar-pdf"
          });
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtext"](28, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](29, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementContainerStart"](30, 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](31, "div", 21)(32, "div", 22)(33, "a", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_33_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](34, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](35, "div", 24)(36, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_36_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](37, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](38, "div", 26)(39, "a", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_39_listener() {
          return ctx.changeViewmode("card");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](40, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](41, "div", 26)(42, "a", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_42_listener() {
          return ctx.changeViewmode("table");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](43, "i", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](44, "div", 30)(45, "div", 31)(46, "input", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("keyup.enter", function NotasDePedidoComponent_Template_input_keyup_enter_46_listener() {
          return ctx.buscar("Clientes");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](47, NotasDePedidoComponent_a_47_Template, 2, 0, "a", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](48, "a", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵlistener"]("click", function NotasDePedidoComponent_Template_a_click_48_listener() {
          return ctx.buscar("Clientes");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelement"](49, "i", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](50, NotasDePedidoComponent_Conditional_50_Template, 6, 1, "div", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementStart"](51, "div", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](52, NotasDePedidoComponent_Conditional_52_Template, 2, 10, "app-listado-cards-notas-de-pedido", 38)(53, NotasDePedidoComponent_Conditional_53_Template, 3, 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplate"](54, NotasDePedidoComponent_ng_template_54_Template, 40, 18, "ng-template", null, 39, _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵreference"](55);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngTemplateOutlet", _r8);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-9 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵconditional"](13, ctx.permisosComprobantes.InsComprobante ? 13 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵpipeBind1"](16, 16, ctx.pedidoVentaService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵ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_21__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵ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_21__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngClass", ctx.viewmode === "card" ? "mdi mdi-view-grid mdi-24px align-middle text-primary" : "mdi mdi-view-grid mdi-24px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngClass", ctx.viewmode === "table" ? "mdi mdi-table align-middle text-primary" : "mdi mdi-table align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵproperty"]("ngIf", ctx.getBusqueda("Clientes"));
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵconditional"](50, !ctx.permisosComprobantes.VerComprobantesVendedor || ctx.noHayEmpleadoAsociado() ? 50 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_21__["ɵɵconditional"](52, ctx.viewmode === "card" ? 52 : ctx.viewmode === "table" ? 53 : -1);
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_29__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_29__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_22__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_26__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_26__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_26__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_26__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_26__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_26__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_26__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_27__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_26__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_26__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_30__.Sidebar, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_18__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_19__.Table2Component, _listado_cards_notas_de_pedido_listado_cards_notas_de_pedido_component__WEBPACK_IMPORTED_MODULE_20__.ListadoCardsNotasDePedidoComponent, _angular_common__WEBPACK_IMPORTED_MODULE_22__.AsyncPipe]
  });
}

/***/ }),

/***/ 73556:
/*!***************************************************************************!*\
  !*** ./src/app/pages/dashboards/panel-soporte/panel-soporte.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PanelSoporteComponent: () => (/* binding */ PanelSoporteComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/dialog */ 93530);
/* harmony import */ var _verificar_api_verificar_api_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./verificar-api/verificar-api.component */ 71917);




const _c0 = (a0, a1) => ({
  "button-soporte": a0,
  "button-soporte-sm": a1
});
const _c1 = () => ({
  width: "25rem"
});
class PanelSoporteComponent {
  constructor() {
    this.sub = [];
    this.position = 'center';
    this.visible = false;
    // MC SINWEB-575 Detectar tamaño de pantalla
    this.smallScreen = false;
    this.smallScreen = window.innerWidth < 768;
  }
  ngOnInit() {}
  showDialog(position) {
    this.position = position;
    this.visible = true;
  }
  static #_ = this.ɵfac = function PanelSoporteComponent_Factory(t) {
    return new (t || PanelSoporteComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: PanelSoporteComponent,
    selectors: [["app-panel-soporte"]],
    decls: 5,
    vars: 10,
    consts: [[3, "ngClass"], [1, "btn", "btn-secondary", 3, "click"], [1, "mdi", "mdi-connection", "font-size-16"], ["header", "Verificar API's", 3, "modal", "visible", "position", "visibleChange"]],
    template: function PanelSoporteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "button", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PanelSoporteComponent_Template_button_click_1_listener() {
          return ctx.showDialog(ctx.smallScreen ? "top" : "left");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "i", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "p-dialog", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("visibleChange", function PanelSoporteComponent_Template_p_dialog_visibleChange_3_listener($event) {
          return ctx.visible = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "app-verificar-api");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](6, _c0, !ctx.smallScreen, ctx.smallScreen));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](9, _c1));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("modal", true)("visible", ctx.visible)("position", ctx.position);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, primeng_dialog__WEBPACK_IMPORTED_MODULE_3__.Dialog, _verificar_api_verificar_api_component__WEBPACK_IMPORTED_MODULE_0__.VerificarApiComponent],
    styles: [".button-soporte[_ngcontent-%COMP%] {\n  display: block;\n  position: fixed;\n  top: 40%;\n  z-index: 1100;\n}\n.button-soporte[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  min-width: 10px !important;\n  padding: 0;\n  min-height: 42px;\n  border-radius: 0 10px 10px 0 !important;\n}\n.button-soporte[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  display: none;\n}\n.button-soporte[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover {\n  padding: 8px 12px;\n}\n.button-soporte[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%] {\n  display: block;\n}\n\n.button-soporte-sm[_ngcontent-%COMP%] {\n  display: block;\n  position: fixed;\n  top: -1%;\n  left: 45%;\n  z-index: 1100;\n}\n.button-soporte-sm[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  min-width: 42px !important;\n  padding: 0;\n  min-height: 15px;\n  border-radius: 0 0 10px 10px !important;\n}\n.button-soporte-sm[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  display: none;\n}\n.button-soporte-sm[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover {\n  padding: 12px 8px;\n}\n.button-soporte-sm[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%] {\n  display: block;\n}"]
  });
}

/***/ }),

/***/ 71917:
/*!*****************************************************************************************!*\
  !*** ./src/app/pages/dashboards/panel-soporte/verificar-api/verificar-api.component.ts ***!
  \*****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   VerificarApiComponent: () => (/* binding */ VerificarApiComponent)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 37547);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 26306);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/core/empresa.service */ 10984);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 96814);






function VerificarApiComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 10);
  }
}
function VerificarApiComponent_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 11);
  }
}
function VerificarApiComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 12);
  }
}
function VerificarApiComponent_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 13);
  }
}
function VerificarApiComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 10);
  }
}
function VerificarApiComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 11);
  }
}
function VerificarApiComponent_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 12);
  }
}
function VerificarApiComponent_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 13);
  }
}
function VerificarApiComponent_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 10);
  }
}
function VerificarApiComponent_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 11);
  }
}
function VerificarApiComponent_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 12);
  }
}
function VerificarApiComponent_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "div", 13);
  }
}
class VerificarApiComponent {
  constructor(config, authService, empresaService) {
    this.config = config;
    this.authService = authService;
    this.empresaService = empresaService;
    this.sub = [];
    this.stateAPISIN = '';
    this.stateAPIINT = '';
    this.stateAPIGPO = '';
    this.apiSinMsj = '';
    this.apiIntMsj = '';
    this.apiGpoMsj = '';
  }
  ngOnInit() {
    this.apiSinMsj = this.config.config.servidor?.api_server;
    this.apiIntMsj = this.config.config.servidor?.api_integra;
    this.apiGpoMsj = this.config.config.servidor?.api_gpo;
  }
  ngOnDestroy() {
    this.sub.forEach(sub => sub.unsubscribe());
  }
  validarApis() {
    this.validarSIN();
    this.validarINT();
    this.validarGPO();
  }
  validarGPO() {
    this.stateAPIGPO = 'LOAD';
    this.sub.push(this.authService.infoGPO(null, {
      header: true,
      error: true
    }).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.delay)(2000), (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.map)(resp => {
      return resp;
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.catchError)(err => {
      throw err;
    })).subscribe({
      next: x => {
        x.app ? this.stateAPIGPO = 'OK' : this.stateAPIGPO = 'ERROR';
      },
      error: err => {
        this.stateAPIGPO = 'ERROR';
      }
    }));
  }
  validarINT() {
    this.stateAPIINT = 'LOAD';
    this.sub.push(this.authService.infoIntegra(null, {
      header: true,
      error: true
    }).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.delay)(2000), (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.map)(resp => {
      return resp;
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.catchError)(err => {
      throw err;
    })).subscribe({
      next: x => {
        x.app ? this.stateAPIINT = 'OK' : this.stateAPIINT = 'ERROR';
      },
      error: err => {
        this.stateAPIINT = 'ERROR';
      }
    }));
  }
  validarSIN() {
    let data = {};
    this.stateAPISIN = 'LOAD';
    this.sub.push(this.empresaService.fetch(data, null, {
      error: true,
      header: true
    }).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.delay)(2000), (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.map)(resp => resp.Succeeded), (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.catchError)(err => {
      throw err.status;
    })).subscribe({
      next: x => {
        x ? this.stateAPISIN = 'OK' : this.stateAPISIN = 'ERROR';
      },
      error: err => {
        this.stateAPISIN = 'ERROR';
      }
    }));
  }
  static #_ = this.ɵfac = function VerificarApiComponent_Factory(t) {
    return new (t || VerificarApiComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_2__.EmpresaService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: VerificarApiComponent,
    selectors: [["app-verificar-api"]],
    decls: 34,
    vars: 15,
    consts: [[1, "d-flex", "flex-column", "gap-2", "mb-2"], [1, "d-flex", "justify-content-between", "box-data"], [1, "col-8"], ["class", "normal", 4, "ngIf"], ["class", "loader", 4, "ngIf"], ["class", "ok", 4, "ngIf"], ["class", "error", 4, "ngIf"], [1, "text-center"], [1, "btn", "btn-primary", 3, "click"], [1, "mdi", "mdi-access-point-network", "font-size-16"], [1, "normal"], [1, "loader"], [1, "ok"], [1, "error"]],
    template: function VerificarApiComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Sinergial");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, VerificarApiComponent_div_7_Template, 1, 0, "div", 3)(8, VerificarApiComponent_div_8_Template, 1, 0, "div", 4)(9, VerificarApiComponent_div_9_Template, 1, 0, "div", 5)(10, VerificarApiComponent_div_10_Template, 1, 0, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div", 1)(12, "div", 2)(13, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14, "GPO");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](16);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](17, VerificarApiComponent_div_17_Template, 1, 0, "div", 3)(18, VerificarApiComponent_div_18_Template, 1, 0, "div", 4)(19, VerificarApiComponent_div_19_Template, 1, 0, "div", 5)(20, VerificarApiComponent_div_20_Template, 1, 0, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 1)(22, "div", 2)(23, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Integra");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](27, VerificarApiComponent_div_27_Template, 1, 0, "div", 3)(28, VerificarApiComponent_div_28_Template, 1, 0, "div", 4)(29, VerificarApiComponent_div_29_Template, 1, 0, "div", 5)(30, VerificarApiComponent_div_30_Template, 1, 0, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "div", 7)(32, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function VerificarApiComponent_Template_button_click_32_listener() {
          return ctx.validarApis();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](33, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.apiSinMsj);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPISIN == "");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPISIN == "LOAD");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPISIN == "OK");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPISIN == "ERROR");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.apiGpoMsj);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIGPO == "");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIGPO == "LOAD");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIGPO == "OK");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIGPO == "ERROR");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.apiIntMsj);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIINT == "");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIINT == "LOAD");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIINT == "OK");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.stateAPIINT == "ERROR");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf],
    styles: [".loader[_ngcontent-%COMP%] {\n  width: 18px;\n  height: 18px;\n  border: 3px solid #fff;\n  border-radius: 50%;\n  display: inline-block;\n  position: relative;\n  box-sizing: border-box;\n  animation: _ngcontent-%COMP%_rotation 1s linear infinite;\n  align-self: center;\n}\n\n.loader[_ngcontent-%COMP%]::after {\n  content: \"\";\n  box-sizing: border-box;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  width: 20px;\n  height: 20px;\n  border-radius: 50%;\n  border: 3px solid;\n  border-color: var(--bs-blue) transparent;\n}\n\n@keyframes _ngcontent-%COMP%_rotation {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.normal[_ngcontent-%COMP%] {\n  width: 20px;\n  height: 20px;\n  background-color: var(--bs-light);\n  border: 1px solid var(--bs-light);\n  border-radius: 50%;\n  align-self: center;\n}\n\n.ok[_ngcontent-%COMP%] {\n  width: 20px;\n  height: 20px;\n  background-color: var(--bs-success);\n  border: 1px solid var(--bs-success);\n  border-radius: 50%;\n  align-self: center;\n}\n\n.error[_ngcontent-%COMP%] {\n  width: 20px;\n  height: 20px;\n  background-color: var(--bs-danger);\n  border: 1px solid var(--bs-danger);\n  border-radius: 50%;\n  align-self: center;\n}\n\np[_ngcontent-%COMP%] {\n  margin-bottom: 0px;\n}\n\nspan[_ngcontent-%COMP%] {\n  font-size: 10px;\n  overflow-wrap: anywhere;\n}\n\n.box-data[_ngcontent-%COMP%] {\n  border: 1px solid var(--bs-light);\n  border-radius: 10px;\n  padding: 8px;\n}"]
  });
}

/***/ }),

/***/ 27292:
/*!*************************************************************!*\
  !*** ./src/app/pages/dashboards/perfil/perfil.component.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PerfilComponent: () => (/* binding */ PerfilComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! simplebar-angular */ 63744);





function PerfilComponent_Conditional_53_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PerfilComponent_Conditional_53_Conditional_3_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r5.borrarBusqueda());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
const _forTrack0 = ($index, $item) => $item.Id;
function PerfilComponent_Conditional_53_Conditional_6_For_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const func_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](func_r8.UsrFuncionalidad.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](func_r8.UsrFuncionalidad.Descripcion);
  }
}
function PerfilComponent_Conditional_53_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ngx-simplebar", 33)(1, "div", 16)(2, "table", 34)(3, "thead")(4, "tr")(5, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeaterCreate"](10, PerfilComponent_Conditional_53_Conditional_6_For_11_Template, 5, 2, "tr", null, _forTrack0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrepeater"](ctx_r3.funcionalidadesTemp);
  }
}
function PerfilComponent_Conditional_53_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "No hay funcionalidades");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function PerfilComponent_Conditional_53_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 24)(1, "div", 25)(2, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keydown.enter", function PerfilComponent_Conditional_53_Template_input_keydown_enter_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r13.buscar());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, PerfilComponent_Conditional_53_Conditional_3_Template, 2, 0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PerfilComponent_Conditional_53_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r15.buscar());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PerfilComponent_Conditional_53_Conditional_6_Template, 12, 0, "ngx-simplebar", 30)(7, PerfilComponent_Conditional_53_Conditional_7_Template, 2, 0);
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](3, ctx_r0.getTermino() !== "" ? 3 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](6, ctx_r0.funcionalidadesTemp.length > 0 ? 6 : 7);
  }
}
function PerfilComponent_Conditional_54_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 9)(1, "div", 35)(2, "span", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
}
// MC SINWEB-582 Perfil de usuario
class PerfilComponent {
  constructor(authService, fb) {
    this.authService = authService;
    this.fb = fb;
    this.isLoadingFunc = true;
    this.funcionalidades = [];
    this.funcionalidadesTemp = [];
    this.searchForm = this.fb.group({
      termino: ['']
    });
    this.subscriptions = [];
    this.currentUser = this.authService.usuario;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(s => s.unsubscribe());
  }
  ngOnInit() {
    const susc = this.authService.getPermisos(this.currentUser.IdUsrUsuario, this.currentUser.IdSucursal).subscribe({
      next: permisos => {
        this.isLoadingFunc = false;
        if (permisos.Succeeded) {
          this.funcionalidades = permisos.Data[0].UsuarioGrupoUsuario.GrupoUsuario.AccesoAFuncionalidades;
          this.funcionalidades.sort((a, b) => a.UsrFuncionalidad.Nombre.localeCompare(b.UsrFuncionalidad.Nombre));
          this.funcionalidadesTemp = [...this.funcionalidades];
        }
      },
      error: err => this.isLoadingFunc = false
    });
    this.subscriptions.push(susc);
  }
  getTermino() {
    return this.searchForm.controls['termino'].value;
  }
  buscar() {
    const termino = this.searchForm.controls['termino'].value.toLowerCase().trim();
    this.funcionalidadesTemp = this.funcionalidades.filter(func => {
      return func.UsrFuncionalidad.Nombre.toLowerCase().includes(termino);
    });
  }
  borrarBusqueda() {
    this.searchForm.controls['termino'].setValue('');
    this.funcionalidadesTemp = [...this.funcionalidades];
  }
  getUserFirstLetter(username) {
    return username.charAt(0);
  }
  static #_ = this.ɵfac = function PerfilComponent_Factory(t) {
    return new (t || PerfilComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: PerfilComponent,
    selectors: [["app-perfil"]],
    decls: 55,
    vars: 8,
    consts: [[1, "container-fluid"], [1, "page-title-box"], [1, "row"], [1, "col-12"], [1, "card"], [1, "card-body", "p-0"], [1, "col-8", "col-lg-10"], [1, "d-flex", "align-items-center", "h-100", "py-3", "ps-3", "ps-xl-4"], [1, "user-avatar-custom-perfil", "d-inline-block", "border", "border-white", "border-5", "rounded-circle", "text-uppercase", "fw-semibold", "text-white", "shadow-sm"], [1, "d-flex", "justify-content-center", "align-items-center"], [1, "fw-bold", "display-6", "ms-3"], [1, "d-none", "d-sm-block", "col-auto", "col-sm-4", "col-lg-2"], [1, "d-flex", "align-items-end", "h-100"], ["src", "assets/images/profile-img-original.png", "alt", "Profile illustration", 1, "img-fluid"], [1, "col-12", "col-md-6", "col-lg-4"], [1, "card-body"], [1, "table-responsive"], [1, "table", "table-borderless", "mb-0"], ["scope", "row", 2, "width", "30%"], [1, "d-flex", "align-items-center"], [1, "badge", "badge-soft-info", "fs-6", "me-2"], [1, "bx", "bx-info-circle", "font-size-16", 3, "pTooltip"], [1, "col-12", "col-md-6", "col-lg-8"], [1, "card-title"], [3, "formGroup"], [1, "input-group", "my-3"], ["type", "search", "placeholder", "Buscar...", "formControlName", "termino", 1, "form-control", 3, "keydown.enter"], ["class", "btn btn-secondary"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["style", "max-height: 300px"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [2, "max-height", "300px"], [1, "table", "mb-0"], ["role", "status", 1, "spinner-border"], [1, "visually-hidden"]],
    template: function PerfilComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h4");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Perfil");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2)(5, "div", 3)(6, "div", 4)(7, "div", 5)(8, "div", 2)(9, "div", 6)(10, "div", 7)(11, "div", 8)(12, "div", 9)(13, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "span", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 11)(18, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "img", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 14)(21, "div", 4)(22, "div", 15)(23, "div", 16)(24, "table", 17)(25, "tbody")(26, "tr")(27, "th", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, "Grupo");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "td", 19)(30, "span", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](32, "i", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "tr")(34, "th", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "Empleado");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "tr")(39, "th", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "Empresa");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "tr")(44, "th", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "Sucursal");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 22)(49, "div", 4)(50, "div", 15)(51, "h4", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, "Funcionalidades activas");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](53, PerfilComponent_Conditional_53_Template, 8, 3)(54, PerfilComponent_Conditional_54_Template, 4, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()();
      }
      if (rf & 2) {
        let tmp_4_0;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.getUserFirstLetter(ctx.currentUser.User.Nombre));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.currentUser.User.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.currentUser.User.GruposUsuarios[0].GrupoUsuario.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", ctx.currentUser.User.GruposUsuarios[0].GrupoUsuario.Observacion);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]((tmp_4_0 = ctx.currentUser.Empleado == null ? null : ctx.currentUser.Empleado.Nombre) !== null && tmp_4_0 !== undefined ? tmp_4_0 : "-");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.currentUser.Empresa);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.currentUser.Sucursal);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](53, !ctx.isLoadingFunc ? 53 : 54);
      }
    },
    dependencies: [primeng_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControlName, simplebar_angular__WEBPACK_IMPORTED_MODULE_4__.SimplebarAngularComponent],
    styles: [".user-avatar-custom-perfil[_ngcontent-%COMP%] {\n  background-color: #81badb;\n  line-height: 1.3;\n  font-size: 4.2rem;\n  width: 6rem;\n  height: 6rem;\n}\n\n@media (max-width: 768px) {\n  .user-avatar-custom-perfil[_ngcontent-%COMP%] {\n    line-height: 1.2;\n    font-size: 3rem;\n    width: 4rem;\n    height: 4rem;\n  }\n}"]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SelectorFormatoNotificacionComponent: () => (/* binding */ SelectorFormatoNotificacionComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* 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_core_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/core/viewHelper.service */ 4506);
/* 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 src_app_core_services_notificaciones_notifiacionFormato_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/notificaciones/notifiacionFormato.service */ 1278);
/* harmony import */ var src_app_core_services_integra_notificaciones_previewEmail_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/integra/notificaciones/previewEmail.service */ 14798);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_checkbox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/checkbox */ 38057);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-mask */ 43735);














function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "input", 14);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 4, item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-valid", ctx_r3.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "input", 15);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 2, item_r2.split("_").slice(1).join(" ")));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_1_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor debe ser menor a 5000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "textarea", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_1_div_4_Template, 2, 0, "div", 17)(5, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_1_div_5_Template, 2, 0, "div", 18);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 8, item_r2.split("_").slice(1).join(" ")));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx_r7.vh.isControlInvalid(item_r2))("is-valid", ctx_r7.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r7.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r7.vh.controlHasError("maxlength", item_r2));
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "p-checkbox", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "label", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](4, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2)("binary", true)("value", item_r2.split("_").slice(1).join(" "));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("for", item_r2.split("_").slice(1).join(" "));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](4, 5, item_r2.split("_").slice(1).join(" ")), " ");
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_3_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_3_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor debe ser menor a 5000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "input", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_3_div_4_Template, 2, 0, "div", 17)(5, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_3_div_5_Template, 2, 0, "div", 18);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 8, item_r2.split("_").slice(1).join(" ")));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx_r9.vh.isControlInvalid(item_r2))("is-valid", ctx_r9.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r9.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r9.vh.controlHasError("maxlength", item_r2));
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_4_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_4_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " El valor ingresado debe ser un email ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "input", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_4_div_4_Template, 2, 0, "div", 17)(5, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_4_div_5_Template, 2, 0, "div", 18);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 8, item_r2.split("_").slice(1).join(" ")));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx_r10.vh.isControlInvalid(item_r2))("is-valid", ctx_r10.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r10.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r10.vh.controlHasError("email", item_r2));
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_5_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_5_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " El valor ingresado debe tener un formato numerico ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_5_div_4_Template, 2, 0, "div", 17)(5, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_5_div_5_Template, 2, 0, "div", 18);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 8, item_r2.split("_").slice(1).join(" ")));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx_r11.vh.isControlInvalid(item_r2))("is-valid", ctx_r11.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r11.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r11.vh.controlHasError("email", item_r2));
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_6_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Valor correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_6_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " El valor no tiene el formato requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "titlecase");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "input", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_6_div_4_Template, 2, 0, "div", 17)(5, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_6_div_5_Template, 2, 0, "div", 18);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 8, item_r2.split("_").slice(1).join(" ")));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassProp"]("is-invalid", ctx_r12.vh.isControlInvalid(item_r2))("is-valid", ctx_r12.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("formControlName", item_r2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r12.vh.isControlValid(item_r2));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r12.vh.controlHasError("pattern", item_r2));
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_0_Template, 4, 4)(1, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_1_Template, 6, 10)(2, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_2_Template, 5, 7)(3, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_3_Template, 6, 10)(4, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_4_Template, 6, 10)(5, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_5_Template, 6, 10)(6, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Case_6_Template, 6, 10);
  }
  if (rf & 2) {
    const item_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    let SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, (SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp = item_r2.split("_")[0]) === "color" ? 0 : SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp === "txt" ? 1 : SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp === "strbool" ? 2 : SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp === "str" ? 3 : SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp === "email" ? 4 : SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp === "cel" ? 5 : SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_contFlowTmp === "url" ? 6 : -1);
  }
}
function SelectorFormatoNotificacionComponent_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_2_Template, 4, 6)(3, SelectorFormatoNotificacionComponent_ng_container_7_Conditional_3_Template, 7, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](2, item_r2.split("_").length == 1 ? 2 : 3);
  }
}
function SelectorFormatoNotificacionComponent_i_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "i", 26);
  }
}
class SelectorFormatoNotificacionComponent {
  constructor(modal, modalService, alert, notificacionFormatoService, previewEmailService, vh, fb) {
    this.modal = modal;
    this.modalService = modalService;
    this.alert = alert;
    this.notificacionFormatoService = notificacionFormatoService;
    this.previewEmailService = previewEmailService;
    this.vh = vh;
    this.fb = fb;
    this.MSJ_EXITO_EDICION = 'Se ha editado el formato de notificación correctamente';
    /**
     * @description SP SINWEB-390 indica si se va a editar el formato desde el mismo componente o por fuera
     */
    this.editApi = false;
    this.estructura = [];
    this._unsubscribe = [];
    this.formGroup = this.fb.group({});
  }
  ngOnInit() {
    if (!this.editApi) {
      this.formato = this.formatoInput;
      if (this.formato && this.formato.Estructura != null) {
        this.estructura = lodash__WEBPACK_IMPORTED_MODULE_0__.toPairs(this.formato.Estructura);
      } else {
        this.estructura = [];
      }
    } else {
      this.cargarFormato();
    }
    this.armarFormulario();
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  armarFormulario() {
    this.estructura.forEach(element => {
      if (element[0].split('_').length == 1) {
        this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : ''));
      } else {
        switch (element[0].split('_')[0]) {
          case 'color':
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : '#fff'));
            break;
          case 'txt':
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.maxLength(2000)));
            break;
          case 'strbool':
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : 'N', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.required));
            break;
          case 'str':
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.maxLength(500)));
            break;
          case 'email':
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.email])));
            break;
          case 'cel':
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.pattern('^[0-9]*$')])));
            break;
          case 'url':
            const regex = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/;
            this.formGroup.addControl(element[0], this.fb.control(element[1] ? element[1] : '', _angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_6__.Validators.pattern(regex)])));
            break;
          default:
            break;
        }
      }
    });
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  cargarFormato() {
    const sb = this.notificacionFormatoService.SerchById(this.idFormato).subscribe(res => {
      this.formato = res;
      if (this.formato && this.formato.Estructura != null) {
        this.estructura = lodash__WEBPACK_IMPORTED_MODULE_0__.toPairs(this.formato.Estructura);
      } else {
        this.estructura = [];
      }
    });
    sb.unsubscribe;
  }
  esColor(key) {
    return lodash__WEBPACK_IMPORTED_MODULE_0__.includes(key, 'color');
  }
  getControlKeys() {
    return Object.keys(this.formGroup.controls);
  }
  guardarFormatoNotif() {
    let estrucToSend = this.prepararEstructura();
    if (!this.editApi) {
      this.modal.close(estrucToSend);
    } else {
      const sb = this.notificacionFormatoService.editar(estrucToSend, this.idFormato).subscribe(res => {
        if (res.Succeeded) {
          this.alert.showBasicAlert(this.MSJ_EXITO_EDICION, '', 'success');
          this.modal.close();
        }
      });
      this._unsubscribe.push(sb);
    }
  }
  prepararEstructura() {
    let result = {
      Estructura: this.copiarFormToObj(),
      Template: this.formato.Template
    };
    result.Id = !this.editApi ? this.formato.Id : this.idFormato;
    return result;
  }
  copiarFormToObj() {
    let copyEstructura = lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(this.estructura);
    this.getControlKeys().forEach(keyForm => {
      lodash__WEBPACK_IMPORTED_MODULE_0__.set(copyEstructura, lodash__WEBPACK_IMPORTED_MODULE_0__.findIndex(copyEstructura, ([key, value]) => key === keyForm), [keyForm, this.formGroup.get(keyForm).value]);
    });
    let obj = {};
    for (const [key, value] of copyEstructura) {
      obj[key] = value;
    }
    return obj;
  }
  previsualizar() {
    let send = this.prepararToVisualizar();
    let sb = this.previewEmailService.getPreviewEmail(send).subscribe(res => {
      let newWin = open('', 'Vista previa de formato', 'height=' + screen.height + ',width=' + screen.width);
      if (newWin.document.body.innerHTML) {
        newWin.document.body.innerHTML = '';
      }
      newWin.document.documentElement.innerHTML = res;
    });
    this._unsubscribe.push(sb);
  }
  prepararToVisualizar() {
    let result = {
      id_notif_tipo: this.idTipoMail,
      estructura: this.copiarFormToObj()
    };
    return result;
  }
  static #_ = this.ɵfac = function SelectorFormatoNotificacionComponent_Factory(t) {
    return new (t || SelectorFormatoNotificacionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notifiacionFormato_service__WEBPACK_IMPORTED_MODULE_3__.NotificacionFormatoServices), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_integra_notificaciones_previewEmail_service__WEBPACK_IMPORTED_MODULE_4__.PreviewEmailService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_core_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormBuilder));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
    type: SelectorFormatoNotificacionComponent,
    selectors: [["app-selector-formato-notificacion"]],
    inputs: {
      descripNotifConfig: "descripNotifConfig",
      idFormato: "idFormato",
      idTipoMail: "idTipoMail",
      formatoInput: "formatoInput",
      editApi: "editApi"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService, src_app_core_services_core_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService])],
    decls: 17,
    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"], [1, "row", "justify-content-center", "mb-2"], [3, "formGroup"], [4, "ngFor", "ngForOf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-warning", "font-weight-bold", 3, "click"], ["class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["type", "button", 1, "btn", "btn-light", "font-weight-bold", 3, "click"], ["type", "button", 1, "btn", "btn-primary", "font-weight-bold", 3, "click"], [1, "col-8", "mt-3"], [1, "align-self-center"], ["type", "text", 1, "form-control", 3, "formControlName"], ["type", "color", 1, "form-control", "form-control-color", "mw-100", 3, "formControlName"], ["rows", "3", 1, "form-control", "form-control-solid", 3, "formControlName"], ["class", "valid-feedback", 4, "ngIf"], ["class", "invalid-feedback", 4, "ngIf"], [1, "valid-feedback"], [1, "invalid-feedback"], [1, "d-flex", "align-items-center", "gap-1"], ["trueValue", "S", "falseValue", "N", 3, "formControlName", "binary", "value"], [1, "align-self-center", 3, "for"], ["type", "email", 1, "form-control", 3, "formControlName"], ["type", "text", "mask", "0*", 1, "form-control", 3, "formControlName"], [1, "bx", "bx-sync", "bx-spin", "font-size-16", "align-middle"]],
    template: function SelectorFormatoNotificacionComponent_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__["ɵɵtext"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 3)(5, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](6, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, SelectorFormatoNotificacionComponent_ng_container_7_Template, 4, 1, "ng-container", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div", 7)(9, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SelectorFormatoNotificacionComponent_Template_button_click_9_listener() {
          return ctx.previsualizar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10, " Vista previa ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](11, SelectorFormatoNotificacionComponent_i_11_Template, 1, 0, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](12, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](13, "button", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SelectorFormatoNotificacionComponent_Template_button_click_13_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](14, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SelectorFormatoNotificacionComponent_Template_button_click_15_listener() {
          return ctx.guardarFormatoNotif();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](16, " 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__["ɵɵtextInterpolate1"](" Editar formato de notificaci\u00F3n - ", ctx.descripNotifConfig, " ");
        _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"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx.getControlKeys());
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](12, 4, ctx.previewEmailService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, primeng_checkbox__WEBPACK_IMPORTED_MODULE_9__.Checkbox, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, ngx_mask__WEBPACK_IMPORTED_MODULE_10__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_8__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_8__.TitleCasePipe],
    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}"]
  });
}

/***/ }),

/***/ 33403:
/*!*********************************************************************!*\
  !*** ./node_modules/jspdf-autotable/dist/jspdf.plugin.autotable.js ***!
  \*********************************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

/*!
 * 
 *               jsPDF AutoTable plugin v3.8.2
 *
 *               Copyright (c) 2024 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
 *               Licensed under the MIT License.
 *               http://opensource.org/licenses/mit-license
 *
 */
(function webpackUniversalModuleDefinition(root, factory) {
  if (true) module.exports = factory(function webpackLoadOptionalExternalModule() {
    try {
      return __webpack_require__(/*! jspdf */ 38919);
    } catch (e) {}
  }());else { var i, a; }
})(typeof globalThis !== 'undefined' ? globalThis : typeof this !== 'undefined' ? this : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : global, function (__WEBPACK_EXTERNAL_MODULE__964__) {
  return /******/function () {
    // webpackBootstrap
    /******/
    "use strict";

    /******/
    var __webpack_modules__ = {
      /***/172: ( /***/function (__unused_webpack_module, exports) {
        var __extends = this && this.__extends || function () {
          var extendStatics = function (d, b) {
            extendStatics = Object.setPrototypeOf || {
              __proto__: []
            } instanceof Array && function (d, b) {
              d.__proto__ = b;
            } || function (d, b) {
              for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
            };
            return extendStatics(d, b);
          };
          return function (d, b) {
            if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
            extendStatics(d, b);
            function __() {
              this.constructor = d;
            }
            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
          };
        }();
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.CellHookData = exports.HookData = void 0;
        var HookData = /** @class */function () {
          function HookData(doc, table, cursor) {
            this.table = table;
            this.pageNumber = table.pageNumber;
            this.pageCount = this.pageNumber;
            this.settings = table.settings;
            this.cursor = cursor;
            this.doc = doc.getDocument();
          }
          return HookData;
        }();
        exports.HookData = HookData;
        var CellHookData = /** @class */function (_super) {
          __extends(CellHookData, _super);
          function CellHookData(doc, table, cell, row, column, cursor) {
            var _this = _super.call(this, doc, table, cursor) || this;
            _this.cell = cell;
            _this.row = row;
            _this.column = column;
            _this.section = row.section;
            return _this;
          }
          return CellHookData;
        }(HookData);
        exports.CellHookData = CellHookData;

        /***/
      }),
      /***/340: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_3412__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        var htmlParser_1 = __nested_webpack_require_3412__(4);
        var autoTableText_1 = __nested_webpack_require_3412__(136);
        var documentHandler_1 = __nested_webpack_require_3412__(744);
        var inputParser_1 = __nested_webpack_require_3412__(776);
        var tableDrawer_1 = __nested_webpack_require_3412__(664);
        var tableCalculator_1 = __nested_webpack_require_3412__(972);
        function default_1(jsPDF) {
          // eslint-disable-next-line @typescript-eslint/no-explicit-any
          jsPDF.API.autoTable = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
              args[_i] = arguments[_i];
            }
            var options;
            if (args.length === 1) {
              options = args[0];
            } else {
              console.error('Use of deprecated autoTable initiation');
              options = args[2] || {};
              options.columns = args[0];
              options.body = args[1];
            }
            var input = (0, inputParser_1.parseInput)(this, options);
            var table = (0, tableCalculator_1.createTable)(this, input);
            (0, tableDrawer_1.drawTable)(this, table);
            return this;
          };
          // Assign false to enable `doc.lastAutoTable.finalY || 40` sugar
          jsPDF.API.lastAutoTable = false;
          jsPDF.API.previousAutoTable = false; // deprecated in v3
          jsPDF.API.autoTable.previous = false; // deprecated in v3
          jsPDF.API.autoTableText = function (text, x, y, styles) {
            (0, autoTableText_1.default)(text, x, y, styles, this);
          };
          jsPDF.API.autoTableSetDefaults = function (defaults) {
            documentHandler_1.DocHandler.setDefaults(defaults, this);
            return this;
          };
          jsPDF.autoTableSetDefaults = function (defaults, doc) {
            documentHandler_1.DocHandler.setDefaults(defaults, doc);
          };
          jsPDF.API.autoTableHtmlToJson = function (tableElem, includeHiddenElements) {
            var _a;
            if (includeHiddenElements === void 0) {
              includeHiddenElements = false;
            }
            if (typeof window === 'undefined') {
              console.error('Cannot run autoTableHtmlToJson in non browser environment');
              return null;
            }
            var doc = new documentHandler_1.DocHandler(this);
            var _b = (0, htmlParser_1.parseHtml)(doc, tableElem, window, includeHiddenElements, false),
              head = _b.head,
              body = _b.body;
            var columns = ((_a = head[0]) === null || _a === void 0 ? void 0 : _a.map(function (c) {
              return c.content;
            })) || [];
            return {
              columns: columns,
              rows: body,
              data: body
            };
          };
          /**
           * @deprecated
           */
          jsPDF.API.autoTableEndPosY = function () {
            console.error('Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.');
            var prev = this.lastAutoTable;
            if (prev && prev.finalY) {
              return prev.finalY;
            } else {
              return 0;
            }
          };
          /**
           * @deprecated
           */
          jsPDF.API.autoTableAddPageContent = function (hook) {
            console.error('Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead.');
            if (!jsPDF.API.autoTable.globalDefaults) {
              jsPDF.API.autoTable.globalDefaults = {};
            }
            jsPDF.API.autoTable.globalDefaults.addPageContent = hook;
            return this;
          };
          /**
           * @deprecated
           */
          jsPDF.API.autoTableAddPage = function () {
            console.error('Use of deprecated function: autoTableAddPage. Use doc.addPage()');
            this.addPage();
            return this;
          };
        }
        exports["default"] = default_1;

        /***/
      }),
      /***/136: ( /***/function (__unused_webpack_module, exports) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        /**
         * Improved text function with halign and valign support
         * Inspiration from: http://stackoverflow.com/questions/28327510/align-text-right-using-jspdf/28433113#28433113
         */
        function default_1(text, x, y, styles, doc) {
          styles = styles || {};
          var PHYSICAL_LINE_HEIGHT = 1.15;
          var k = doc.internal.scaleFactor;
          var fontSize = doc.internal.getFontSize() / k;
          var lineHeightFactor = doc.getLineHeightFactor ? doc.getLineHeightFactor() : PHYSICAL_LINE_HEIGHT;
          var lineHeight = fontSize * lineHeightFactor;
          var splitRegex = /\r\n|\r|\n/g;
          var splitText = '';
          var lineCount = 1;
          if (styles.valign === 'middle' || styles.valign === 'bottom' || styles.halign === 'center' || styles.halign === 'right') {
            splitText = typeof text === 'string' ? text.split(splitRegex) : text;
            lineCount = splitText.length || 1;
          }
          // Align the top
          y += fontSize * (2 - PHYSICAL_LINE_HEIGHT);
          if (styles.valign === 'middle') y -= lineCount / 2 * lineHeight;else if (styles.valign === 'bottom') y -= lineCount * lineHeight;
          if (styles.halign === 'center' || styles.halign === 'right') {
            var alignSize = fontSize;
            if (styles.halign === 'center') alignSize *= 0.5;
            if (splitText && lineCount >= 1) {
              for (var iLine = 0; iLine < splitText.length; iLine++) {
                doc.text(splitText[iLine], x - doc.getStringUnitWidth(splitText[iLine]) * alignSize, y);
                y += lineHeight;
              }
              return doc;
            }
            x -= doc.getStringUnitWidth(text) * alignSize;
          }
          if (styles.halign === 'justify') {
            doc.text(text, x, y, {
              maxWidth: styles.maxWidth || 100,
              align: 'justify'
            });
          } else {
            doc.text(text, x, y);
          }
          return doc;
        }
        exports["default"] = default_1;

        /***/
      }),
      /***/420: ( /***/function (__unused_webpack_module, exports) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.getPageAvailableWidth = exports.parseSpacing = exports.getFillStyle = exports.addTableBorder = exports.getStringWidth = void 0;
        function getStringWidth(text, styles, doc) {
          doc.applyStyles(styles, true);
          var textArr = Array.isArray(text) ? text : [text];
          var widestLineWidth = textArr.map(function (text) {
            return doc.getTextWidth(text);
          }).reduce(function (a, b) {
            return Math.max(a, b);
          }, 0);
          return widestLineWidth;
        }
        exports.getStringWidth = getStringWidth;
        function addTableBorder(doc, table, startPos, cursor) {
          var lineWidth = table.settings.tableLineWidth;
          var lineColor = table.settings.tableLineColor;
          doc.applyStyles({
            lineWidth: lineWidth,
            lineColor: lineColor
          });
          var fillStyle = getFillStyle(lineWidth, false);
          if (fillStyle) {
            doc.rect(startPos.x, startPos.y, table.getWidth(doc.pageSize().width), cursor.y - startPos.y, fillStyle);
          }
        }
        exports.addTableBorder = addTableBorder;
        function getFillStyle(lineWidth, fillColor) {
          var drawLine = lineWidth > 0;
          var drawBackground = fillColor || fillColor === 0;
          if (drawLine && drawBackground) {
            return 'DF'; // Fill then stroke
          } else if (drawLine) {
            return 'S'; // Only stroke (transparent background)
          } else if (drawBackground) {
            return 'F'; // Only fill, no stroke
          } else {
            return null;
          }
        }
        exports.getFillStyle = getFillStyle;
        function parseSpacing(value, defaultValue) {
          var _a, _b, _c, _d;
          value = value || defaultValue;
          if (Array.isArray(value)) {
            if (value.length >= 4) {
              return {
                top: value[0],
                right: value[1],
                bottom: value[2],
                left: value[3]
              };
            } else if (value.length === 3) {
              return {
                top: value[0],
                right: value[1],
                bottom: value[2],
                left: value[1]
              };
            } else if (value.length === 2) {
              return {
                top: value[0],
                right: value[1],
                bottom: value[0],
                left: value[1]
              };
            } else if (value.length === 1) {
              value = value[0];
            } else {
              value = defaultValue;
            }
          }
          if (typeof value === 'object') {
            if (typeof value.vertical === 'number') {
              value.top = value.vertical;
              value.bottom = value.vertical;
            }
            if (typeof value.horizontal === 'number') {
              value.right = value.horizontal;
              value.left = value.horizontal;
            }
            return {
              left: (_a = value.left) !== null && _a !== void 0 ? _a : defaultValue,
              top: (_b = value.top) !== null && _b !== void 0 ? _b : defaultValue,
              right: (_c = value.right) !== null && _c !== void 0 ? _c : defaultValue,
              bottom: (_d = value.bottom) !== null && _d !== void 0 ? _d : defaultValue
            };
          }
          if (typeof value !== 'number') {
            value = defaultValue;
          }
          return {
            top: value,
            right: value,
            bottom: value,
            left: value
          };
        }
        exports.parseSpacing = parseSpacing;
        function getPageAvailableWidth(doc, table) {
          var margins = parseSpacing(table.settings.margin, 0);
          return doc.pageSize().width - (margins.left + margins.right);
        }
        exports.getPageAvailableWidth = getPageAvailableWidth;

        /***/
      }),
      /***/796: ( /***/function (__unused_webpack_module, exports) {
        var __extends = this && this.__extends || function () {
          var extendStatics = function (d, b) {
            extendStatics = Object.setPrototypeOf || {
              __proto__: []
            } instanceof Array && function (d, b) {
              d.__proto__ = b;
            } || function (d, b) {
              for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
            };
            return extendStatics(d, b);
          };
          return function (d, b) {
            if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
            extendStatics(d, b);
            function __() {
              this.constructor = d;
            }
            d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
          };
        }();
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.getTheme = exports.defaultStyles = exports.HtmlRowInput = void 0;
        var HtmlRowInput = /** @class */function (_super) {
          __extends(HtmlRowInput, _super);
          function HtmlRowInput(element) {
            var _this = _super.call(this) || this;
            _this._element = element;
            return _this;
          }
          return HtmlRowInput;
        }(Array);
        exports.HtmlRowInput = HtmlRowInput;
        // Base style for all themes
        function defaultStyles(scaleFactor) {
          return {
            font: 'helvetica',
            // helvetica, times, courier
            fontStyle: 'normal',
            // normal, bold, italic, bolditalic
            overflow: 'linebreak',
            // linebreak, ellipsize, visible or hidden
            fillColor: false,
            // Either false for transparent, rbg array e.g. [255, 255, 255] or gray level e.g 200
            textColor: 20,
            halign: 'left',
            // left, center, right, justify
            valign: 'top',
            // top, middle, bottom
            fontSize: 10,
            cellPadding: 5 / scaleFactor,
            // number or {top,left,right,left,vertical,horizontal}
            lineColor: 200,
            lineWidth: 0,
            cellWidth: 'auto',
            // 'auto'|'wrap'|number
            minCellHeight: 0,
            minCellWidth: 0
          };
        }
        exports.defaultStyles = defaultStyles;
        function getTheme(name) {
          var themes = {
            striped: {
              table: {
                fillColor: 255,
                textColor: 80,
                fontStyle: 'normal'
              },
              head: {
                textColor: 255,
                fillColor: [41, 128, 185],
                fontStyle: 'bold'
              },
              body: {},
              foot: {
                textColor: 255,
                fillColor: [41, 128, 185],
                fontStyle: 'bold'
              },
              alternateRow: {
                fillColor: 245
              }
            },
            grid: {
              table: {
                fillColor: 255,
                textColor: 80,
                fontStyle: 'normal',
                lineWidth: 0.1
              },
              head: {
                textColor: 255,
                fillColor: [26, 188, 156],
                fontStyle: 'bold',
                lineWidth: 0
              },
              body: {},
              foot: {
                textColor: 255,
                fillColor: [26, 188, 156],
                fontStyle: 'bold',
                lineWidth: 0
              },
              alternateRow: {}
            },
            plain: {
              head: {
                fontStyle: 'bold'
              },
              foot: {
                fontStyle: 'bold'
              }
            }
          };
          return themes[name];
        }
        exports.getTheme = getTheme;

        /***/
      }),
      /***/903: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_18082__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.parseCss = void 0;
        // Limitations
        // - No support for border spacing
        // - No support for transparency
        var common_1 = __nested_webpack_require_18082__(420);
        function parseCss(supportedFonts, element, scaleFactor, style, window) {
          var result = {};
          var pxScaleFactor = 96 / 72;
          var backgroundColor = parseColor(element, function (elem) {
            return window.getComputedStyle(elem)['backgroundColor'];
          });
          if (backgroundColor != null) result.fillColor = backgroundColor;
          var textColor = parseColor(element, function (elem) {
            return window.getComputedStyle(elem)['color'];
          });
          if (textColor != null) result.textColor = textColor;
          var padding = parsePadding(style, scaleFactor);
          if (padding) result.cellPadding = padding;
          var borderColorSide = 'borderTopColor';
          var finalScaleFactor = pxScaleFactor * scaleFactor;
          var btw = style.borderTopWidth;
          if (style.borderBottomWidth === btw && style.borderRightWidth === btw && style.borderLeftWidth === btw) {
            var borderWidth = (parseFloat(btw) || 0) / finalScaleFactor;
            if (borderWidth) result.lineWidth = borderWidth;
          } else {
            result.lineWidth = {
              top: (parseFloat(style.borderTopWidth) || 0) / finalScaleFactor,
              right: (parseFloat(style.borderRightWidth) || 0) / finalScaleFactor,
              bottom: (parseFloat(style.borderBottomWidth) || 0) / finalScaleFactor,
              left: (parseFloat(style.borderLeftWidth) || 0) / finalScaleFactor
            };
            // Choose border color of first available side
            // could be improved by supporting object as lineColor
            if (!result.lineWidth.top) {
              if (result.lineWidth.right) {
                borderColorSide = 'borderRightColor';
              } else if (result.lineWidth.bottom) {
                borderColorSide = 'borderBottomColor';
              } else if (result.lineWidth.left) {
                borderColorSide = 'borderLeftColor';
              }
            }
          }
          console.log(result.lineWidth);
          var borderColor = parseColor(element, function (elem) {
            return window.getComputedStyle(elem)[borderColorSide];
          });
          if (borderColor != null) result.lineColor = borderColor;
          var accepted = ['left', 'right', 'center', 'justify'];
          if (accepted.indexOf(style.textAlign) !== -1) {
            result.halign = style.textAlign;
          }
          accepted = ['middle', 'bottom', 'top'];
          if (accepted.indexOf(style.verticalAlign) !== -1) {
            result.valign = style.verticalAlign;
          }
          var res = parseInt(style.fontSize || '');
          if (!isNaN(res)) result.fontSize = res / pxScaleFactor;
          var fontStyle = parseFontStyle(style);
          if (fontStyle) result.fontStyle = fontStyle;
          var font = (style.fontFamily || '').toLowerCase();
          if (supportedFonts.indexOf(font) !== -1) {
            result.font = font;
          }
          return result;
        }
        exports.parseCss = parseCss;
        function parseFontStyle(style) {
          var res = '';
          if (style.fontWeight === 'bold' || style.fontWeight === 'bolder' || parseInt(style.fontWeight) >= 700) {
            res = 'bold';
          }
          if (style.fontStyle === 'italic' || style.fontStyle === 'oblique') {
            res += 'italic';
          }
          return res;
        }
        function parseColor(element, styleGetter) {
          var cssColor = realColor(element, styleGetter);
          if (!cssColor) return null;
          var rgba = cssColor.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);
          if (!rgba || !Array.isArray(rgba)) {
            return null;
          }
          var color = [parseInt(rgba[1]), parseInt(rgba[2]), parseInt(rgba[3])];
          var alpha = parseInt(rgba[4]);
          if (alpha === 0 || isNaN(color[0]) || isNaN(color[1]) || isNaN(color[2])) {
            return null;
          }
          return color;
        }
        function realColor(elem, styleGetter) {
          var bg = styleGetter(elem);
          if (bg === 'rgba(0, 0, 0, 0)' || bg === 'transparent' || bg === 'initial' || bg === 'inherit') {
            if (elem.parentElement == null) {
              return null;
            }
            return realColor(elem.parentElement, styleGetter);
          } else {
            return bg;
          }
        }
        function parsePadding(style, scaleFactor) {
          var val = [style.paddingTop, style.paddingRight, style.paddingBottom, style.paddingLeft];
          var pxScaleFactor = 96 / (72 / scaleFactor);
          var linePadding = (parseInt(style.lineHeight) - parseInt(style.fontSize)) / scaleFactor / 2;
          var inputPadding = val.map(function (n) {
            return parseInt(n || '0') / pxScaleFactor;
          });
          var padding = (0, common_1.parseSpacing)(inputPadding, 0);
          if (linePadding > padding.top) {
            padding.top = linePadding;
          }
          if (linePadding > padding.bottom) {
            padding.bottom = linePadding;
          }
          return padding;
        }

        /***/
      }),
      /***/744: ( /***/function (__unused_webpack_module, exports) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.DocHandler = void 0;
        var globalDefaults = {};
        var DocHandler = /** @class */function () {
          function DocHandler(jsPDFDocument) {
            this.jsPDFDocument = jsPDFDocument;
            this.userStyles = {
              // Black for versions of jspdf without getTextColor
              textColor: jsPDFDocument.getTextColor ? this.jsPDFDocument.getTextColor() : 0,
              fontSize: jsPDFDocument.internal.getFontSize(),
              fontStyle: jsPDFDocument.internal.getFont().fontStyle,
              font: jsPDFDocument.internal.getFont().fontName,
              // 0 for versions of jspdf without getLineWidth
              lineWidth: jsPDFDocument.getLineWidth ? this.jsPDFDocument.getLineWidth() : 0,
              // Black for versions of jspdf without getDrawColor
              lineColor: jsPDFDocument.getDrawColor ? this.jsPDFDocument.getDrawColor() : 0
            };
          }
          DocHandler.setDefaults = function (defaults, doc) {
            if (doc === void 0) {
              doc = null;
            }
            if (doc) {
              doc.__autoTableDocumentDefaults = defaults;
            } else {
              globalDefaults = defaults;
            }
          };
          DocHandler.unifyColor = function (c) {
            if (Array.isArray(c)) {
              return c;
            } else if (typeof c === 'number') {
              return [c, c, c];
            } else if (typeof c === 'string') {
              return [c];
            } else {
              return null;
            }
          };
          DocHandler.prototype.applyStyles = function (styles, fontOnly) {
            // Font style needs to be applied before font
            // https://github.com/simonbengtsson/jsPDF-AutoTable/issues/632
            var _a, _b, _c;
            if (fontOnly === void 0) {
              fontOnly = false;
            }
            if (styles.fontStyle) this.jsPDFDocument.setFontStyle && this.jsPDFDocument.setFontStyle(styles.fontStyle);
            var _d = this.jsPDFDocument.internal.getFont(),
              fontStyle = _d.fontStyle,
              fontName = _d.fontName;
            if (styles.font) fontName = styles.font;
            if (styles.fontStyle) {
              fontStyle = styles.fontStyle;
              var availableFontStyles = this.getFontList()[fontName];
              if (availableFontStyles && availableFontStyles.indexOf(fontStyle) === -1) {
                // Common issue was that the default bold in headers
                // made custom fonts not work. For example:
                // https://github.com/simonbengtsson/jsPDF-AutoTable/issues/653
                this.jsPDFDocument.setFontStyle && this.jsPDFDocument.setFontStyle(availableFontStyles[0]);
                fontStyle = availableFontStyles[0];
              }
            }
            this.jsPDFDocument.setFont(fontName, fontStyle);
            if (styles.fontSize) this.jsPDFDocument.setFontSize(styles.fontSize);
            if (fontOnly) {
              return; // Performance improvement
            }
            var color = DocHandler.unifyColor(styles.fillColor);
            if (color) (_a = this.jsPDFDocument).setFillColor.apply(_a, color);
            color = DocHandler.unifyColor(styles.textColor);
            if (color) (_b = this.jsPDFDocument).setTextColor.apply(_b, color);
            color = DocHandler.unifyColor(styles.lineColor);
            if (color) (_c = this.jsPDFDocument).setDrawColor.apply(_c, color);
            if (typeof styles.lineWidth === 'number') {
              this.jsPDFDocument.setLineWidth(styles.lineWidth);
            }
          };
          DocHandler.prototype.splitTextToSize = function (text, size, opts) {
            return this.jsPDFDocument.splitTextToSize(text, size, opts);
          };
          /**
           * Adds a rectangle to the PDF
           * @param x Coordinate (in units declared at inception of PDF document) against left edge of the page
           * @param y Coordinate (in units declared at inception of PDF document) against upper edge of the page
           * @param width Width (in units declared at inception of PDF document)
           * @param height Height (in units declared at inception of PDF document)
           * @param fillStyle A string specifying the painting style or null. Valid styles include: 'S' [default] - stroke, 'F' - fill, and 'DF' (or 'FD') - fill then stroke.
           */
          DocHandler.prototype.rect = function (x, y, width, height, fillStyle) {
            // null is excluded from fillStyle possible values because it isn't needed
            // and is prone to bugs as it's used to postpone setting the style
            // https://rawgit.com/MrRio/jsPDF/master/docs/jsPDF.html#rect
            return this.jsPDFDocument.rect(x, y, width, height, fillStyle);
          };
          DocHandler.prototype.getLastAutoTable = function () {
            return this.jsPDFDocument.lastAutoTable || null;
          };
          DocHandler.prototype.getTextWidth = function (text) {
            return this.jsPDFDocument.getTextWidth(text);
          };
          DocHandler.prototype.getDocument = function () {
            return this.jsPDFDocument;
          };
          DocHandler.prototype.setPage = function (page) {
            this.jsPDFDocument.setPage(page);
          };
          DocHandler.prototype.addPage = function () {
            return this.jsPDFDocument.addPage();
          };
          DocHandler.prototype.getFontList = function () {
            return this.jsPDFDocument.getFontList();
          };
          DocHandler.prototype.getGlobalOptions = function () {
            return globalDefaults || {};
          };
          DocHandler.prototype.getDocumentOptions = function () {
            return this.jsPDFDocument.__autoTableDocumentDefaults || {};
          };
          DocHandler.prototype.pageSize = function () {
            var pageSize = this.jsPDFDocument.internal.pageSize;
            // JSPDF 1.4 uses get functions instead of properties on pageSize
            if (pageSize.width == null) {
              pageSize = {
                width: pageSize.getWidth(),
                height: pageSize.getHeight()
              };
            }
            return pageSize;
          };
          DocHandler.prototype.scaleFactor = function () {
            return this.jsPDFDocument.internal.scaleFactor;
          };
          DocHandler.prototype.getLineHeightFactor = function () {
            var doc = this.jsPDFDocument;
            return doc.getLineHeightFactor ? doc.getLineHeightFactor() : 1.15;
          };
          DocHandler.prototype.getLineHeight = function (fontSize) {
            return fontSize / this.scaleFactor() * this.getLineHeightFactor();
          };
          DocHandler.prototype.pageNumber = function () {
            var pageInfo = this.jsPDFDocument.internal.getCurrentPageInfo();
            if (!pageInfo) {
              // Only recent versions of jspdf has pageInfo
              return this.jsPDFDocument.internal.getNumberOfPages();
            }
            return pageInfo.pageNumber;
          };
          return DocHandler;
        }();
        exports.DocHandler = DocHandler;

        /***/
      }),
      /***/4: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_31089__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.parseHtml = void 0;
        var cssParser_1 = __nested_webpack_require_31089__(903);
        var config_1 = __nested_webpack_require_31089__(796);
        function parseHtml(doc, input, window, includeHiddenHtml, useCss) {
          var _a, _b;
          if (includeHiddenHtml === void 0) {
            includeHiddenHtml = false;
          }
          if (useCss === void 0) {
            useCss = false;
          }
          var tableElement;
          if (typeof input === 'string') {
            tableElement = window.document.querySelector(input);
          } else {
            tableElement = input;
          }
          var supportedFonts = Object.keys(doc.getFontList());
          var scaleFactor = doc.scaleFactor();
          var head = [],
            body = [],
            foot = [];
          if (!tableElement) {
            console.error('Html table could not be found with input: ', input);
            return {
              head: head,
              body: body,
              foot: foot
            };
          }
          for (var i = 0; i < tableElement.rows.length; i++) {
            var element = tableElement.rows[i];
            var tagName = (_b = (_a = element === null || element === void 0 ? void 0 : element.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === null || _b === void 0 ? void 0 : _b.toLowerCase();
            var row = parseRowContent(supportedFonts, scaleFactor, window, element, includeHiddenHtml, useCss);
            if (!row) continue;
            if (tagName === 'thead') {
              head.push(row);
            } else if (tagName === 'tfoot') {
              foot.push(row);
            } else {
              // Add to body both if parent is tbody or table
              body.push(row);
            }
          }
          return {
            head: head,
            body: body,
            foot: foot
          };
        }
        exports.parseHtml = parseHtml;
        function parseRowContent(supportedFonts, scaleFactor, window, row, includeHidden, useCss) {
          var resultRow = new config_1.HtmlRowInput(row);
          for (var i = 0; i < row.cells.length; i++) {
            var cell = row.cells[i];
            var style_1 = window.getComputedStyle(cell);
            if (includeHidden || style_1.display !== 'none') {
              var cellStyles = void 0;
              if (useCss) {
                cellStyles = (0, cssParser_1.parseCss)(supportedFonts, cell, scaleFactor, style_1, window);
              }
              resultRow.push({
                rowSpan: cell.rowSpan,
                colSpan: cell.colSpan,
                styles: cellStyles,
                _element: cell,
                content: parseCellContent(cell)
              });
            }
          }
          var style = window.getComputedStyle(row);
          if (resultRow.length > 0 && (includeHidden || style.display !== 'none')) {
            return resultRow;
          }
        }
        function parseCellContent(orgCell) {
          // Work on cloned node to make sure no changes are applied to html table
          var cell = orgCell.cloneNode(true);
          // Remove extra space and line breaks in markup to make it more similar to
          // what would be shown in html
          cell.innerHTML = cell.innerHTML.replace(/\n/g, '').replace(/ +/g, ' ');
          // Preserve <br> tags as line breaks in the pdf
          cell.innerHTML = cell.innerHTML.split(/<br.*?>/) //start with '<br' and ends with '>'.
          .map(function (part) {
            return part.trim();
          }).join('\n');
          // innerText for ie
          return cell.innerText || cell.textContent || '';
        }

        /***/
      }),
      /***/776: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_34969__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.parseInput = void 0;
        var htmlParser_1 = __nested_webpack_require_34969__(4);
        var polyfills_1 = __nested_webpack_require_34969__(356);
        var common_1 = __nested_webpack_require_34969__(420);
        var documentHandler_1 = __nested_webpack_require_34969__(744);
        var inputValidator_1 = __nested_webpack_require_34969__(792);
        function parseInput(d, current) {
          var doc = new documentHandler_1.DocHandler(d);
          var document = doc.getDocumentOptions();
          var global = doc.getGlobalOptions();
          (0, inputValidator_1.default)(doc, global, document, current);
          var options = (0, polyfills_1.assign)({}, global, document, current);
          var win;
          if (typeof window !== 'undefined') {
            win = window;
          }
          var styles = parseStyles(global, document, current);
          var hooks = parseHooks(global, document, current);
          var settings = parseSettings(doc, options);
          var content = parseContent(doc, options, win);
          return {
            id: current.tableId,
            content: content,
            hooks: hooks,
            styles: styles,
            settings: settings
          };
        }
        exports.parseInput = parseInput;
        function parseStyles(gInput, dInput, cInput) {
          var styleOptions = {
            styles: {},
            headStyles: {},
            bodyStyles: {},
            footStyles: {},
            alternateRowStyles: {},
            columnStyles: {}
          };
          var _loop_1 = function (prop) {
            if (prop === 'columnStyles') {
              var global_1 = gInput[prop];
              var document_1 = dInput[prop];
              var current = cInput[prop];
              styleOptions.columnStyles = (0, polyfills_1.assign)({}, global_1, document_1, current);
            } else {
              var allOptions = [gInput, dInput, cInput];
              var styles = allOptions.map(function (opts) {
                return opts[prop] || {};
              });
              styleOptions[prop] = (0, polyfills_1.assign)({}, styles[0], styles[1], styles[2]);
            }
          };
          for (var _i = 0, _a = Object.keys(styleOptions); _i < _a.length; _i++) {
            var prop = _a[_i];
            _loop_1(prop);
          }
          return styleOptions;
        }
        function parseHooks(global, document, current) {
          var allOptions = [global, document, current];
          var result = {
            didParseCell: [],
            willDrawCell: [],
            didDrawCell: [],
            willDrawPage: [],
            didDrawPage: []
          };
          for (var _i = 0, allOptions_1 = allOptions; _i < allOptions_1.length; _i++) {
            var options = allOptions_1[_i];
            if (options.didParseCell) result.didParseCell.push(options.didParseCell);
            if (options.willDrawCell) result.willDrawCell.push(options.willDrawCell);
            if (options.didDrawCell) result.didDrawCell.push(options.didDrawCell);
            if (options.willDrawPage) result.willDrawPage.push(options.willDrawPage);
            if (options.didDrawPage) result.didDrawPage.push(options.didDrawPage);
          }
          return result;
        }
        function parseSettings(doc, options) {
          var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
          var margin = (0, common_1.parseSpacing)(options.margin, 40 / doc.scaleFactor());
          var startY = (_a = getStartY(doc, options.startY)) !== null && _a !== void 0 ? _a : margin.top;
          var showFoot;
          if (options.showFoot === true) {
            showFoot = 'everyPage';
          } else if (options.showFoot === false) {
            showFoot = 'never';
          } else {
            showFoot = (_b = options.showFoot) !== null && _b !== void 0 ? _b : 'everyPage';
          }
          var showHead;
          if (options.showHead === true) {
            showHead = 'everyPage';
          } else if (options.showHead === false) {
            showHead = 'never';
          } else {
            showHead = (_c = options.showHead) !== null && _c !== void 0 ? _c : 'everyPage';
          }
          var useCss = (_d = options.useCss) !== null && _d !== void 0 ? _d : false;
          var theme = options.theme || (useCss ? 'plain' : 'striped');
          var horizontalPageBreak = !!options.horizontalPageBreak;
          var horizontalPageBreakRepeat = (_e = options.horizontalPageBreakRepeat) !== null && _e !== void 0 ? _e : null;
          return {
            includeHiddenHtml: (_f = options.includeHiddenHtml) !== null && _f !== void 0 ? _f : false,
            useCss: useCss,
            theme: theme,
            startY: startY,
            margin: margin,
            pageBreak: (_g = options.pageBreak) !== null && _g !== void 0 ? _g : 'auto',
            rowPageBreak: (_h = options.rowPageBreak) !== null && _h !== void 0 ? _h : 'auto',
            tableWidth: (_j = options.tableWidth) !== null && _j !== void 0 ? _j : 'auto',
            showHead: showHead,
            showFoot: showFoot,
            tableLineWidth: (_k = options.tableLineWidth) !== null && _k !== void 0 ? _k : 0,
            tableLineColor: (_l = options.tableLineColor) !== null && _l !== void 0 ? _l : 200,
            horizontalPageBreak: horizontalPageBreak,
            horizontalPageBreakRepeat: horizontalPageBreakRepeat,
            horizontalPageBreakBehaviour: (_m = options.horizontalPageBreakBehaviour) !== null && _m !== void 0 ? _m : 'afterAllRows'
          };
        }
        function getStartY(doc, userStartY) {
          var previous = doc.getLastAutoTable();
          var sf = doc.scaleFactor();
          var currentPage = doc.pageNumber();
          var isSamePageAsPreviousTable = false;
          if (previous && previous.startPageNumber) {
            var endingPage = previous.startPageNumber + previous.pageNumber - 1;
            isSamePageAsPreviousTable = endingPage === currentPage;
          }
          if (typeof userStartY === 'number') {
            return userStartY;
          } else if (userStartY == null || userStartY === false) {
            if (isSamePageAsPreviousTable && (previous === null || previous === void 0 ? void 0 : previous.finalY) != null) {
              // Some users had issues with overlapping tables when they used multiple
              // tables without setting startY so setting it here to a sensible default.
              return previous.finalY + 20 / sf;
            }
          }
          return null;
        }
        function parseContent(doc, options, window) {
          var head = options.head || [];
          var body = options.body || [];
          var foot = options.foot || [];
          if (options.html) {
            var hidden = options.includeHiddenHtml;
            if (window) {
              var htmlContent = (0, htmlParser_1.parseHtml)(doc, options.html, window, hidden, options.useCss) || {};
              head = htmlContent.head || head;
              body = htmlContent.body || head;
              foot = htmlContent.foot || head;
            } else {
              console.error('Cannot parse html in non browser environment');
            }
          }
          var columns = options.columns || parseColumns(head, body, foot);
          return {
            columns: columns,
            head: head,
            body: body,
            foot: foot
          };
        }
        function parseColumns(head, body, foot) {
          var firstRow = head[0] || body[0] || foot[0] || [];
          var result = [];
          Object.keys(firstRow).filter(function (key) {
            return key !== '_element';
          }).forEach(function (key) {
            var colSpan = 1;
            var input;
            if (Array.isArray(firstRow)) {
              input = firstRow[parseInt(key)];
            } else {
              input = firstRow[key];
            }
            if (typeof input === 'object' && !Array.isArray(input)) {
              colSpan = (input === null || input === void 0 ? void 0 : input.colSpan) || 1;
            }
            for (var i = 0; i < colSpan; i++) {
              var id = void 0;
              if (Array.isArray(firstRow)) {
                id = result.length;
              } else {
                id = key + (i > 0 ? "_".concat(i) : '');
              }
              var rowResult = {
                dataKey: id
              };
              result.push(rowResult);
            }
          });
          return result;
        }

        /***/
      }),
      /***/792: ( /***/function (__unused_webpack_module, exports) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        function default_1(doc, global, document, current) {
          var _loop_1 = function (options) {
            if (options && typeof options !== 'object') {
              console.error('The options parameter should be of type object, is: ' + typeof options);
            }
            if (typeof options.extendWidth !== 'undefined') {
              options.tableWidth = options.extendWidth ? 'auto' : 'wrap';
              console.error('Use of deprecated option: extendWidth, use tableWidth instead.');
            }
            if (typeof options.margins !== 'undefined') {
              if (typeof options.margin === 'undefined') options.margin = options.margins;
              console.error('Use of deprecated option: margins, use margin instead.');
            }
            if (options.startY && typeof options.startY !== 'number') {
              console.error('Invalid value for startY option', options.startY);
              delete options.startY;
            }
            if (!options.didDrawPage && (options.afterPageContent || options.beforePageContent || options.afterPageAdd)) {
              console.error('The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead');
              options.didDrawPage = function (data) {
                doc.applyStyles(doc.userStyles);
                if (options.beforePageContent) options.beforePageContent(data);
                doc.applyStyles(doc.userStyles);
                if (options.afterPageContent) options.afterPageContent(data);
                doc.applyStyles(doc.userStyles);
                if (options.afterPageAdd && data.pageNumber > 1) {
                  ;
                  data.afterPageAdd(data);
                }
                doc.applyStyles(doc.userStyles);
              };
            }
            ;
            ['createdHeaderCell', 'drawHeaderRow', 'drawRow', 'drawHeaderCell'].forEach(function (name) {
              if (options[name]) {
                console.error("The \"".concat(name, "\" hook has changed in version 3.0, check the changelog for how to migrate."));
              }
            });
            [['showFoot', 'showFooter'], ['showHead', 'showHeader'], ['didDrawPage', 'addPageContent'], ['didParseCell', 'createdCell'], ['headStyles', 'headerStyles']].forEach(function (_a) {
              var current = _a[0],
                deprecated = _a[1];
              if (options[deprecated]) {
                console.error("Use of deprecated option ".concat(deprecated, ". Use ").concat(current, " instead"));
                options[current] = options[deprecated];
              }
            });
            [['padding', 'cellPadding'], ['lineHeight', 'rowHeight'], 'fontSize', 'overflow'].forEach(function (o) {
              var deprecatedOption = typeof o === 'string' ? o : o[0];
              var style = typeof o === 'string' ? o : o[1];
              if (typeof options[deprecatedOption] !== 'undefined') {
                if (typeof options.styles[style] === 'undefined') {
                  options.styles[style] = options[deprecatedOption];
                }
                console.error('Use of deprecated option: ' + deprecatedOption + ', use the style ' + style + ' instead.');
              }
            });
            for (var _b = 0, _c = ['styles', 'bodyStyles', 'headStyles', 'footStyles']; _b < _c.length; _b++) {
              var styleProp = _c[_b];
              checkStyles(options[styleProp] || {});
            }
            var columnStyles = options['columnStyles'] || {};
            for (var _d = 0, _e = Object.keys(columnStyles); _d < _e.length; _d++) {
              var key = _e[_d];
              checkStyles(columnStyles[key] || {});
            }
          };
          for (var _i = 0, _a = [global, document, current]; _i < _a.length; _i++) {
            var options = _a[_i];
            _loop_1(options);
          }
        }
        exports["default"] = default_1;
        function checkStyles(styles) {
          if (styles.rowHeight) {
            console.error('Use of deprecated style rowHeight. It is renamed to minCellHeight.');
            if (!styles.minCellHeight) {
              styles.minCellHeight = styles.rowHeight;
            }
          } else if (styles.columnWidth) {
            console.error('Use of deprecated style columnWidth. It is renamed to cellWidth.');
            if (!styles.cellWidth) {
              styles.cellWidth = styles.columnWidth;
            }
          }
        }

        /***/
      }),
      /***/260: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_48386__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.Column = exports.Cell = exports.Row = exports.Table = void 0;
        var config_1 = __nested_webpack_require_48386__(796);
        var HookData_1 = __nested_webpack_require_48386__(172);
        var common_1 = __nested_webpack_require_48386__(420);
        var Table = /** @class */function () {
          function Table(input, content) {
            this.pageNumber = 1;
            // Deprecated, use pageNumber instead
            // Not using getter since:
            // https://github.com/simonbengtsson/jsPDF-AutoTable/issues/596
            this.pageCount = 1;
            this.id = input.id;
            this.settings = input.settings;
            this.styles = input.styles;
            this.hooks = input.hooks;
            this.columns = content.columns;
            this.head = content.head;
            this.body = content.body;
            this.foot = content.foot;
          }
          Table.prototype.getHeadHeight = function (columns) {
            return this.head.reduce(function (acc, row) {
              return acc + row.getMaxCellHeight(columns);
            }, 0);
          };
          Table.prototype.getFootHeight = function (columns) {
            return this.foot.reduce(function (acc, row) {
              return acc + row.getMaxCellHeight(columns);
            }, 0);
          };
          Table.prototype.allRows = function () {
            return this.head.concat(this.body).concat(this.foot);
          };
          Table.prototype.callCellHooks = function (doc, handlers, cell, row, column, cursor) {
            for (var _i = 0, handlers_1 = handlers; _i < handlers_1.length; _i++) {
              var handler = handlers_1[_i];
              var data = new HookData_1.CellHookData(doc, this, cell, row, column, cursor);
              var result = handler(data) === false;
              // Make sure text is always string[] since user can assign string
              cell.text = Array.isArray(cell.text) ? cell.text : [cell.text];
              if (result) {
                return false;
              }
            }
            return true;
          };
          Table.prototype.callEndPageHooks = function (doc, cursor) {
            doc.applyStyles(doc.userStyles);
            for (var _i = 0, _a = this.hooks.didDrawPage; _i < _a.length; _i++) {
              var handler = _a[_i];
              handler(new HookData_1.HookData(doc, this, cursor));
            }
          };
          Table.prototype.callWillDrawPageHooks = function (doc, cursor) {
            for (var _i = 0, _a = this.hooks.willDrawPage; _i < _a.length; _i++) {
              var handler = _a[_i];
              handler(new HookData_1.HookData(doc, this, cursor));
            }
          };
          Table.prototype.getWidth = function (pageWidth) {
            if (typeof this.settings.tableWidth === 'number') {
              return this.settings.tableWidth;
            } else if (this.settings.tableWidth === 'wrap') {
              var wrappedWidth = this.columns.reduce(function (total, col) {
                return total + col.wrappedWidth;
              }, 0);
              return wrappedWidth;
            } else {
              var margin = this.settings.margin;
              return pageWidth - margin.left - margin.right;
            }
          };
          return Table;
        }();
        exports.Table = Table;
        var Row = /** @class */function () {
          function Row(raw, index, section, cells, spansMultiplePages) {
            if (spansMultiplePages === void 0) {
              spansMultiplePages = false;
            }
            this.height = 0;
            this.raw = raw;
            if (raw instanceof config_1.HtmlRowInput) {
              this.raw = raw._element;
              this.element = raw._element;
            }
            this.index = index;
            this.section = section;
            this.cells = cells;
            this.spansMultiplePages = spansMultiplePages;
          }
          Row.prototype.getMaxCellHeight = function (columns) {
            var _this = this;
            return columns.reduce(function (acc, column) {
              var _a;
              return Math.max(acc, ((_a = _this.cells[column.index]) === null || _a === void 0 ? void 0 : _a.height) || 0);
            }, 0);
          };
          Row.prototype.hasRowSpan = function (columns) {
            var _this = this;
            return columns.filter(function (column) {
              var cell = _this.cells[column.index];
              if (!cell) return false;
              return cell.rowSpan > 1;
            }).length > 0;
          };
          Row.prototype.canEntireRowFit = function (height, columns) {
            return this.getMaxCellHeight(columns) <= height;
          };
          Row.prototype.getMinimumRowHeight = function (columns, doc) {
            var _this = this;
            return columns.reduce(function (acc, column) {
              var cell = _this.cells[column.index];
              if (!cell) return 0;
              var lineHeight = doc.getLineHeight(cell.styles.fontSize);
              var vPadding = cell.padding('vertical');
              var oneRowHeight = vPadding + lineHeight;
              return oneRowHeight > acc ? oneRowHeight : acc;
            }, 0);
          };
          return Row;
        }();
        exports.Row = Row;
        var Cell = /** @class */function () {
          function Cell(raw, styles, section) {
            var _a, _b;
            this.contentHeight = 0;
            this.contentWidth = 0;
            this.wrappedWidth = 0;
            this.minReadableWidth = 0;
            this.minWidth = 0;
            this.width = 0;
            this.height = 0;
            this.x = 0;
            this.y = 0;
            this.styles = styles;
            this.section = section;
            this.raw = raw;
            var content = raw;
            if (raw != null && typeof raw === 'object' && !Array.isArray(raw)) {
              this.rowSpan = raw.rowSpan || 1;
              this.colSpan = raw.colSpan || 1;
              content = (_b = (_a = raw.content) !== null && _a !== void 0 ? _a : raw.title) !== null && _b !== void 0 ? _b : raw;
              if (raw._element) {
                this.raw = raw._element;
              }
            } else {
              this.rowSpan = 1;
              this.colSpan = 1;
            }
            // Stringify 0 and false, but not undefined or null
            var text = content != null ? '' + content : '';
            var splitRegex = /\r\n|\r|\n/g;
            this.text = text.split(splitRegex);
          }
          Cell.prototype.getTextPos = function () {
            var y;
            if (this.styles.valign === 'top') {
              y = this.y + this.padding('top');
            } else if (this.styles.valign === 'bottom') {
              y = this.y + this.height - this.padding('bottom');
            } else {
              var netHeight = this.height - this.padding('vertical');
              y = this.y + netHeight / 2 + this.padding('top');
            }
            var x;
            if (this.styles.halign === 'right') {
              x = this.x + this.width - this.padding('right');
            } else if (this.styles.halign === 'center') {
              var netWidth = this.width - this.padding('horizontal');
              x = this.x + netWidth / 2 + this.padding('left');
            } else {
              x = this.x + this.padding('left');
            }
            return {
              x: x,
              y: y
            };
          };
          // TODO (v4): replace parameters with only (lineHeight)
          Cell.prototype.getContentHeight = function (scaleFactor, lineHeightFactor) {
            if (lineHeightFactor === void 0) {
              lineHeightFactor = 1.15;
            }
            var lineCount = Array.isArray(this.text) ? this.text.length : 1;
            var lineHeight = this.styles.fontSize / scaleFactor * lineHeightFactor;
            var height = lineCount * lineHeight + this.padding('vertical');
            return Math.max(height, this.styles.minCellHeight);
          };
          Cell.prototype.padding = function (name) {
            var padding = (0, common_1.parseSpacing)(this.styles.cellPadding, 0);
            if (name === 'vertical') {
              return padding.top + padding.bottom;
            } else if (name === 'horizontal') {
              return padding.left + padding.right;
            } else {
              return padding[name];
            }
          };
          return Cell;
        }();
        exports.Cell = Cell;
        var Column = /** @class */function () {
          function Column(dataKey, raw, index) {
            this.wrappedWidth = 0;
            this.minReadableWidth = 0;
            this.minWidth = 0;
            this.width = 0;
            this.dataKey = dataKey;
            this.raw = raw;
            this.index = index;
          }
          Column.prototype.getMaxCustomCellWidth = function (table) {
            var max = 0;
            for (var _i = 0, _a = table.allRows(); _i < _a.length; _i++) {
              var row = _a[_i];
              var cell = row.cells[this.index];
              if (cell && typeof cell.styles.cellWidth === 'number') {
                max = Math.max(max, cell.styles.cellWidth);
              }
            }
            return max;
          };
          return Column;
        }();
        exports.Column = Column;

        /***/
      }),
      /***/356: ( /***/function (__unused_webpack_module, exports) {
        /* eslint-disable @typescript-eslint/no-unused-vars */
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.assign = void 0;
        // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
        function assign(target, s, s1, s2, s3) {
          if (target == null) {
            throw new TypeError('Cannot convert undefined or null to object');
          }
          var to = Object(target);
          for (var index = 1; index < arguments.length; index++) {
            // eslint-disable-next-line prefer-rest-params
            var nextSource = arguments[index];
            if (nextSource != null) {
              // Skip over if undefined or null
              for (var nextKey in nextSource) {
                // Avoid bugs when hasOwnProperty is shadowed
                if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
                  to[nextKey] = nextSource[nextKey];
                }
              }
            }
          }
          return to;
        }
        exports.assign = assign;

        /***/
      }),
      /***/972: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_59220__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.createTable = void 0;
        var documentHandler_1 = __nested_webpack_require_59220__(744);
        var models_1 = __nested_webpack_require_59220__(260);
        var widthCalculator_1 = __nested_webpack_require_59220__(324);
        var config_1 = __nested_webpack_require_59220__(796);
        var polyfills_1 = __nested_webpack_require_59220__(356);
        function createTable(jsPDFDoc, input) {
          var doc = new documentHandler_1.DocHandler(jsPDFDoc);
          var content = parseContent(input, doc.scaleFactor());
          var table = new models_1.Table(input, content);
          (0, widthCalculator_1.calculateWidths)(doc, table);
          doc.applyStyles(doc.userStyles);
          return table;
        }
        exports.createTable = createTable;
        function parseContent(input, sf) {
          var content = input.content;
          var columns = createColumns(content.columns);
          // If no head or foot is set, try generating it with content from columns
          if (content.head.length === 0) {
            var sectionRow = generateSectionRow(columns, 'head');
            if (sectionRow) content.head.push(sectionRow);
          }
          if (content.foot.length === 0) {
            var sectionRow = generateSectionRow(columns, 'foot');
            if (sectionRow) content.foot.push(sectionRow);
          }
          var theme = input.settings.theme;
          var styles = input.styles;
          return {
            columns: columns,
            head: parseSection('head', content.head, columns, styles, theme, sf),
            body: parseSection('body', content.body, columns, styles, theme, sf),
            foot: parseSection('foot', content.foot, columns, styles, theme, sf)
          };
        }
        function parseSection(sectionName, sectionRows, columns, styleProps, theme, scaleFactor) {
          var rowSpansLeftForColumn = {};
          var result = sectionRows.map(function (rawRow, rowIndex) {
            var skippedRowForRowSpans = 0;
            var cells = {};
            var colSpansAdded = 0;
            var columnSpansLeft = 0;
            for (var _i = 0, columns_1 = columns; _i < columns_1.length; _i++) {
              var column = columns_1[_i];
              if (rowSpansLeftForColumn[column.index] == null || rowSpansLeftForColumn[column.index].left === 0) {
                if (columnSpansLeft === 0) {
                  var rawCell = void 0;
                  if (Array.isArray(rawRow)) {
                    rawCell = rawRow[column.index - colSpansAdded - skippedRowForRowSpans];
                  } else {
                    rawCell = rawRow[column.dataKey];
                  }
                  var cellInputStyles = {};
                  if (typeof rawCell === 'object' && !Array.isArray(rawCell)) {
                    cellInputStyles = (rawCell === null || rawCell === void 0 ? void 0 : rawCell.styles) || {};
                  }
                  var styles = cellStyles(sectionName, column, rowIndex, theme, styleProps, scaleFactor, cellInputStyles);
                  var cell = new models_1.Cell(rawCell, styles, sectionName);
                  // dataKey is not used internally no more but keep for
                  // backwards compat in hooks
                  cells[column.dataKey] = cell;
                  cells[column.index] = cell;
                  columnSpansLeft = cell.colSpan - 1;
                  rowSpansLeftForColumn[column.index] = {
                    left: cell.rowSpan - 1,
                    times: columnSpansLeft
                  };
                } else {
                  columnSpansLeft--;
                  colSpansAdded++;
                }
              } else {
                rowSpansLeftForColumn[column.index].left--;
                columnSpansLeft = rowSpansLeftForColumn[column.index].times;
                skippedRowForRowSpans++;
              }
            }
            return new models_1.Row(rawRow, rowIndex, sectionName, cells);
          });
          return result;
        }
        function generateSectionRow(columns, section) {
          var sectionRow = {};
          columns.forEach(function (col) {
            if (col.raw != null) {
              var title = getSectionTitle(section, col.raw);
              if (title != null) sectionRow[col.dataKey] = title;
            }
          });
          return Object.keys(sectionRow).length > 0 ? sectionRow : null;
        }
        function getSectionTitle(section, column) {
          if (section === 'head') {
            if (typeof column === 'object') {
              return column.header || column.title || null;
            } else if (typeof column === 'string' || typeof column === 'number') {
              return column;
            }
          } else if (section === 'foot' && typeof column === 'object') {
            return column.footer;
          }
          return null;
        }
        function createColumns(columns) {
          return columns.map(function (input, index) {
            var _a, _b;
            var key;
            if (typeof input === 'object') {
              key = (_b = (_a = input.dataKey) !== null && _a !== void 0 ? _a : input.key) !== null && _b !== void 0 ? _b : index;
            } else {
              key = index;
            }
            return new models_1.Column(key, input, index);
          });
        }
        function cellStyles(sectionName, column, rowIndex, themeName, styles, scaleFactor, cellInputStyles) {
          var theme = (0, config_1.getTheme)(themeName);
          var sectionStyles;
          if (sectionName === 'head') {
            sectionStyles = styles.headStyles;
          } else if (sectionName === 'body') {
            sectionStyles = styles.bodyStyles;
          } else if (sectionName === 'foot') {
            sectionStyles = styles.footStyles;
          }
          var otherStyles = (0, polyfills_1.assign)({}, theme.table, theme[sectionName], styles.styles, sectionStyles);
          var columnStyles = styles.columnStyles[column.dataKey] || styles.columnStyles[column.index] || {};
          var colStyles = sectionName === 'body' ? columnStyles : {};
          var rowStyles = sectionName === 'body' && rowIndex % 2 === 0 ? (0, polyfills_1.assign)({}, theme.alternateRow, styles.alternateRowStyles) : {};
          var defaultStyle = (0, config_1.defaultStyles)(scaleFactor);
          var themeStyles = (0, polyfills_1.assign)({}, defaultStyle, otherStyles, rowStyles, colStyles);
          return (0, polyfills_1.assign)(themeStyles, cellInputStyles);
        }

        /***/
      }),
      /***/664: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_65934__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.addPage = exports.drawTable = void 0;
        var common_1 = __nested_webpack_require_65934__(420);
        var models_1 = __nested_webpack_require_65934__(260);
        var documentHandler_1 = __nested_webpack_require_65934__(744);
        var polyfills_1 = __nested_webpack_require_65934__(356);
        var autoTableText_1 = __nested_webpack_require_65934__(136);
        var tablePrinter_1 = __nested_webpack_require_65934__(224);
        function drawTable(jsPDFDoc, table) {
          var settings = table.settings;
          var startY = settings.startY;
          var margin = settings.margin;
          var cursor = {
            x: margin.left,
            y: startY
          };
          var sectionsHeight = table.getHeadHeight(table.columns) + table.getFootHeight(table.columns);
          var minTableBottomPos = startY + margin.bottom + sectionsHeight;
          if (settings.pageBreak === 'avoid') {
            var rows = table.body;
            var tableHeight = rows.reduce(function (acc, row) {
              return acc + row.height;
            }, 0);
            minTableBottomPos += tableHeight;
          }
          var doc = new documentHandler_1.DocHandler(jsPDFDoc);
          if (settings.pageBreak === 'always' || settings.startY != null && minTableBottomPos > doc.pageSize().height) {
            nextPage(doc);
            cursor.y = margin.top;
          }
          table.callWillDrawPageHooks(doc, cursor);
          var startPos = (0, polyfills_1.assign)({}, cursor);
          table.startPageNumber = doc.pageNumber();
          if (settings.horizontalPageBreak) {
            // managed flow for split columns
            printTableWithHorizontalPageBreak(doc, table, startPos, cursor);
          } else {
            // normal flow
            doc.applyStyles(doc.userStyles);
            if (settings.showHead === 'firstPage' || settings.showHead === 'everyPage') {
              table.head.forEach(function (row) {
                return printRow(doc, table, row, cursor, table.columns);
              });
            }
            doc.applyStyles(doc.userStyles);
            table.body.forEach(function (row, index) {
              var isLastRow = index === table.body.length - 1;
              printFullRow(doc, table, row, isLastRow, startPos, cursor, table.columns);
            });
            doc.applyStyles(doc.userStyles);
            if (settings.showFoot === 'lastPage' || settings.showFoot === 'everyPage') {
              table.foot.forEach(function (row) {
                return printRow(doc, table, row, cursor, table.columns);
              });
            }
          }
          (0, common_1.addTableBorder)(doc, table, startPos, cursor);
          table.callEndPageHooks(doc, cursor);
          table.finalY = cursor.y;
          jsPDFDoc.lastAutoTable = table;
          jsPDFDoc.previousAutoTable = table; // Deprecated
          if (jsPDFDoc.autoTable) jsPDFDoc.autoTable.previous = table; // Deprecated
          doc.applyStyles(doc.userStyles);
        }
        exports.drawTable = drawTable;
        function printTableWithHorizontalPageBreak(doc, table, startPos, cursor) {
          // calculate width of columns and render only those which can fit into page
          var allColumnsCanFitResult = (0, tablePrinter_1.calculateAllColumnsCanFitInPage)(doc, table);
          var settings = table.settings;
          if (settings.horizontalPageBreakBehaviour === 'afterAllRows') {
            allColumnsCanFitResult.forEach(function (colsAndIndexes, index) {
              doc.applyStyles(doc.userStyles);
              // add page to print next columns in new page
              if (index > 0) {
                // When adding a page here, make sure not to print the footers
                // because they were already printed before on this same loop
                addPage(doc, table, startPos, cursor, colsAndIndexes.columns, true);
              } else {
                // print head for selected columns
                printHead(doc, table, cursor, colsAndIndexes.columns);
              }
              // print body & footer for selected columns
              printBody(doc, table, startPos, cursor, colsAndIndexes.columns);
              printFoot(doc, table, cursor, colsAndIndexes.columns);
            });
          } else {
            var lastRowIndexOfLastPage_1 = -1;
            var firstColumnsToFitResult = allColumnsCanFitResult[0];
            var _loop_1 = function () {
              // Print the first columns, taking note of the last row printed
              var lastPrintedRowIndex = lastRowIndexOfLastPage_1;
              if (firstColumnsToFitResult) {
                doc.applyStyles(doc.userStyles);
                var firstColumnsToFit = firstColumnsToFitResult.columns;
                if (lastRowIndexOfLastPage_1 >= 0) {
                  // When adding a page here, make sure not to print the footers
                  // because they were already printed before on this same loop
                  addPage(doc, table, startPos, cursor, firstColumnsToFit, true);
                } else {
                  printHead(doc, table, cursor, firstColumnsToFit);
                }
                lastPrintedRowIndex = printBodyWithoutPageBreaks(doc, table, lastRowIndexOfLastPage_1 + 1, cursor, firstColumnsToFit);
                printFoot(doc, table, cursor, firstColumnsToFit);
              }
              // Check how many rows were printed, so that the next columns would not print more rows than that
              var maxNumberOfRows = lastPrintedRowIndex - lastRowIndexOfLastPage_1;
              // Print the next columns, never exceding maxNumberOfRows
              allColumnsCanFitResult.slice(1).forEach(function (colsAndIndexes) {
                doc.applyStyles(doc.userStyles);
                // When adding a page here, make sure not to print the footers
                // because they were already printed before on this same loop
                addPage(doc, table, startPos, cursor, colsAndIndexes.columns, true);
                printBodyWithoutPageBreaks(doc, table, lastRowIndexOfLastPage_1 + 1, cursor, colsAndIndexes.columns, maxNumberOfRows);
                printFoot(doc, table, cursor, colsAndIndexes.columns);
              });
              lastRowIndexOfLastPage_1 = lastPrintedRowIndex;
            };
            while (lastRowIndexOfLastPage_1 < table.body.length - 1) {
              _loop_1();
            }
          }
        }
        function printHead(doc, table, cursor, columns) {
          var settings = table.settings;
          doc.applyStyles(doc.userStyles);
          if (settings.showHead === 'firstPage' || settings.showHead === 'everyPage') {
            table.head.forEach(function (row) {
              return printRow(doc, table, row, cursor, columns);
            });
          }
        }
        function printBody(doc, table, startPos, cursor, columns) {
          doc.applyStyles(doc.userStyles);
          table.body.forEach(function (row, index) {
            var isLastRow = index === table.body.length - 1;
            printFullRow(doc, table, row, isLastRow, startPos, cursor, columns);
          });
        }
        function printBodyWithoutPageBreaks(doc, table, startRowIndex, cursor, columns, maxNumberOfRows) {
          doc.applyStyles(doc.userStyles);
          maxNumberOfRows = maxNumberOfRows !== null && maxNumberOfRows !== void 0 ? maxNumberOfRows : table.body.length;
          var endRowIndex = Math.min(startRowIndex + maxNumberOfRows, table.body.length);
          var lastPrintedRowIndex = -1;
          table.body.slice(startRowIndex, endRowIndex).forEach(function (row, index) {
            var isLastRow = startRowIndex + index === table.body.length - 1;
            var remainingSpace = getRemainingPageSpace(doc, table, isLastRow, cursor);
            if (row.canEntireRowFit(remainingSpace, columns)) {
              printRow(doc, table, row, cursor, columns);
              lastPrintedRowIndex = startRowIndex + index;
            }
          });
          return lastPrintedRowIndex;
        }
        function printFoot(doc, table, cursor, columns) {
          var settings = table.settings;
          doc.applyStyles(doc.userStyles);
          if (settings.showFoot === 'lastPage' || settings.showFoot === 'everyPage') {
            table.foot.forEach(function (row) {
              return printRow(doc, table, row, cursor, columns);
            });
          }
        }
        function getRemainingLineCount(cell, remainingPageSpace, doc) {
          var lineHeight = doc.getLineHeight(cell.styles.fontSize);
          var vPadding = cell.padding('vertical');
          var remainingLines = Math.floor((remainingPageSpace - vPadding) / lineHeight);
          return Math.max(0, remainingLines);
        }
        function modifyRowToFit(row, remainingPageSpace, table, doc) {
          var cells = {};
          row.spansMultiplePages = true;
          row.height = 0;
          var rowHeight = 0;
          for (var _i = 0, _a = table.columns; _i < _a.length; _i++) {
            var column = _a[_i];
            var cell = row.cells[column.index];
            if (!cell) continue;
            if (!Array.isArray(cell.text)) {
              cell.text = [cell.text];
            }
            var remainderCell = new models_1.Cell(cell.raw, cell.styles, cell.section);
            remainderCell = (0, polyfills_1.assign)(remainderCell, cell);
            remainderCell.text = [];
            var remainingLineCount = getRemainingLineCount(cell, remainingPageSpace, doc);
            if (cell.text.length > remainingLineCount) {
              remainderCell.text = cell.text.splice(remainingLineCount, cell.text.length);
            }
            var scaleFactor = doc.scaleFactor();
            var lineHeightFactor = doc.getLineHeightFactor();
            cell.contentHeight = cell.getContentHeight(scaleFactor, lineHeightFactor);
            if (cell.contentHeight >= remainingPageSpace) {
              cell.contentHeight = remainingPageSpace;
              remainderCell.styles.minCellHeight -= remainingPageSpace;
            }
            if (cell.contentHeight > row.height) {
              row.height = cell.contentHeight;
            }
            remainderCell.contentHeight = remainderCell.getContentHeight(scaleFactor, lineHeightFactor);
            if (remainderCell.contentHeight > rowHeight) {
              rowHeight = remainderCell.contentHeight;
            }
            cells[column.index] = remainderCell;
          }
          var remainderRow = new models_1.Row(row.raw, -1, row.section, cells, true);
          remainderRow.height = rowHeight;
          for (var _b = 0, _c = table.columns; _b < _c.length; _b++) {
            var column = _c[_b];
            var remainderCell = remainderRow.cells[column.index];
            if (remainderCell) {
              remainderCell.height = remainderRow.height;
            }
            var cell = row.cells[column.index];
            if (cell) {
              cell.height = row.height;
            }
          }
          return remainderRow;
        }
        function shouldPrintOnCurrentPage(doc, row, remainingPageSpace, table) {
          var pageHeight = doc.pageSize().height;
          var margin = table.settings.margin;
          var marginHeight = margin.top + margin.bottom;
          var maxRowHeight = pageHeight - marginHeight;
          if (row.section === 'body') {
            // Should also take into account that head and foot is not
            // on every page with some settings
            maxRowHeight -= table.getHeadHeight(table.columns) + table.getFootHeight(table.columns);
          }
          var minRowHeight = row.getMinimumRowHeight(table.columns, doc);
          var minRowFits = minRowHeight < remainingPageSpace;
          if (minRowHeight > maxRowHeight) {
            console.error("Will not be able to print row ".concat(row.index, " correctly since it's minimum height is larger than page height"));
            return true;
          }
          if (!minRowFits) {
            return false;
          }
          var rowHasRowSpanCell = row.hasRowSpan(table.columns);
          var rowHigherThanPage = row.getMaxCellHeight(table.columns) > maxRowHeight;
          if (rowHigherThanPage) {
            if (rowHasRowSpanCell) {
              console.error("The content of row ".concat(row.index, " will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported."));
            }
            return true;
          }
          if (rowHasRowSpanCell) {
            // Currently a new page is required whenever a rowspan row don't fit a page.
            return false;
          }
          if (table.settings.rowPageBreak === 'avoid') {
            return false;
          }
          // In all other cases print the row on current page
          return true;
        }
        function printFullRow(doc, table, row, isLastRow, startPos, cursor, columns) {
          var remainingSpace = getRemainingPageSpace(doc, table, isLastRow, cursor);
          if (row.canEntireRowFit(remainingSpace, columns)) {
            // The row fits in the current page
            printRow(doc, table, row, cursor, columns);
          } else if (shouldPrintOnCurrentPage(doc, row, remainingSpace, table)) {
            // The row gets split in two here, each piece in one page
            var remainderRow = modifyRowToFit(row, remainingSpace, table, doc);
            printRow(doc, table, row, cursor, columns);
            addPage(doc, table, startPos, cursor, columns);
            printFullRow(doc, table, remainderRow, isLastRow, startPos, cursor, columns);
          } else {
            // The row get printed entirelly on the next page
            addPage(doc, table, startPos, cursor, columns);
            printFullRow(doc, table, row, isLastRow, startPos, cursor, columns);
          }
        }
        function printRow(doc, table, row, cursor, columns) {
          cursor.x = table.settings.margin.left;
          for (var _i = 0, columns_1 = columns; _i < columns_1.length; _i++) {
            var column = columns_1[_i];
            var cell = row.cells[column.index];
            if (!cell) {
              cursor.x += column.width;
              continue;
            }
            doc.applyStyles(cell.styles);
            cell.x = cursor.x;
            cell.y = cursor.y;
            var result = table.callCellHooks(doc, table.hooks.willDrawCell, cell, row, column, cursor);
            if (result === false) {
              cursor.x += column.width;
              continue;
            }
            drawCellRect(doc, cell, cursor);
            var textPos = cell.getTextPos();
            (0, autoTableText_1.default)(cell.text, textPos.x, textPos.y, {
              halign: cell.styles.halign,
              valign: cell.styles.valign,
              maxWidth: Math.ceil(cell.width - cell.padding('left') - cell.padding('right'))
            }, doc.getDocument());
            table.callCellHooks(doc, table.hooks.didDrawCell, cell, row, column, cursor);
            cursor.x += column.width;
          }
          cursor.y += row.height;
        }
        function drawCellRect(doc, cell, cursor) {
          var cellStyles = cell.styles;
          // https://github.com/simonbengtsson/jsPDF-AutoTable/issues/774
          // TODO (v4): better solution?
          doc.getDocument().setFillColor(doc.getDocument().getFillColor());
          if (typeof cellStyles.lineWidth === 'number') {
            // Draw cell background with normal borders
            var fillStyle = (0, common_1.getFillStyle)(cellStyles.lineWidth, cellStyles.fillColor);
            if (fillStyle) {
              doc.rect(cell.x, cursor.y, cell.width, cell.height, fillStyle);
            }
          } else if (typeof cellStyles.lineWidth === 'object') {
            // Draw cell background
            if (cellStyles.fillColor) {
              doc.rect(cell.x, cursor.y, cell.width, cell.height, 'F');
            }
            // Draw cell individual borders
            drawCellBorders(doc, cell, cursor, cellStyles.lineWidth);
          }
        }
        /**
         * Draw all specified borders. Borders are centered on cell's edge and lengthened
         * to overlap with neighbours to create sharp corners.
         * @param doc
         * @param cell
         * @param cursor
         * @param fillColor
         * @param lineWidth
         */
        function drawCellBorders(doc, cell, cursor, lineWidth) {
          var x1, y1, x2, y2;
          if (lineWidth.top) {
            x1 = cursor.x;
            y1 = cursor.y;
            x2 = cursor.x + cell.width;
            y2 = cursor.y;
            if (lineWidth.right) {
              x2 += 0.5 * lineWidth.right;
            }
            if (lineWidth.left) {
              x1 -= 0.5 * lineWidth.left;
            }
            drawLine(lineWidth.top, x1, y1, x2, y2);
          }
          if (lineWidth.bottom) {
            x1 = cursor.x;
            y1 = cursor.y + cell.height;
            x2 = cursor.x + cell.width;
            y2 = cursor.y + cell.height;
            if (lineWidth.right) {
              x2 += 0.5 * lineWidth.right;
            }
            if (lineWidth.left) {
              x1 -= 0.5 * lineWidth.left;
            }
            drawLine(lineWidth.bottom, x1, y1, x2, y2);
          }
          if (lineWidth.left) {
            x1 = cursor.x;
            y1 = cursor.y;
            x2 = cursor.x;
            y2 = cursor.y + cell.height;
            if (lineWidth.top) {
              y1 -= 0.5 * lineWidth.top;
            }
            if (lineWidth.bottom) {
              y2 += 0.5 * lineWidth.bottom;
            }
            drawLine(lineWidth.left, x1, y1, x2, y2);
          }
          if (lineWidth.right) {
            x1 = cursor.x + cell.width;
            y1 = cursor.y;
            x2 = cursor.x + cell.width;
            y2 = cursor.y + cell.height;
            if (lineWidth.top) {
              y1 -= 0.5 * lineWidth.top;
            }
            if (lineWidth.bottom) {
              y2 += 0.5 * lineWidth.bottom;
            }
            drawLine(lineWidth.right, x1, y1, x2, y2);
          }
          function drawLine(width, x1, y1, x2, y2) {
            doc.getDocument().setLineWidth(width);
            doc.getDocument().line(x1, y1, x2, y2, 'S');
          }
        }
        function getRemainingPageSpace(doc, table, isLastRow, cursor) {
          var bottomContentHeight = table.settings.margin.bottom;
          var showFoot = table.settings.showFoot;
          if (showFoot === 'everyPage' || showFoot === 'lastPage' && isLastRow) {
            bottomContentHeight += table.getFootHeight(table.columns);
          }
          return doc.pageSize().height - cursor.y - bottomContentHeight;
        }
        function addPage(doc, table, startPos, cursor, columns, suppressFooter) {
          if (columns === void 0) {
            columns = [];
          }
          if (suppressFooter === void 0) {
            suppressFooter = false;
          }
          doc.applyStyles(doc.userStyles);
          if (table.settings.showFoot === 'everyPage' && !suppressFooter) {
            table.foot.forEach(function (row) {
              return printRow(doc, table, row, cursor, columns);
            });
          }
          // Add user content just before adding new page ensure it will
          // be drawn above other things on the page
          table.callEndPageHooks(doc, cursor);
          var margin = table.settings.margin;
          (0, common_1.addTableBorder)(doc, table, startPos, cursor);
          nextPage(doc);
          table.pageNumber++;
          table.pageCount++;
          cursor.x = margin.left;
          cursor.y = margin.top;
          startPos.y = margin.top;
          // call didAddPage hooks before any content is added to the page
          table.callWillDrawPageHooks(doc, cursor);
          if (table.settings.showHead === 'everyPage') {
            table.head.forEach(function (row) {
              return printRow(doc, table, row, cursor, columns);
            });
            doc.applyStyles(doc.userStyles);
          }
        }
        exports.addPage = addPage;
        function nextPage(doc) {
          var current = doc.pageNumber();
          doc.setPage(current + 1);
          var newCurrent = doc.pageNumber();
          if (newCurrent === current) {
            doc.addPage();
            return true;
          }
          return false;
        }

        /***/
      }),
      /***/224: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_86669__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.calculateAllColumnsCanFitInPage = void 0;
        var common_1 = __nested_webpack_require_86669__(420);
        // get columns can be fit into page
        function getColumnsCanFitInPage(doc, table, config) {
          var _a;
          if (config === void 0) {
            config = {};
          }
          // Get page width
          var remainingWidth = (0, common_1.getPageAvailableWidth)(doc, table);
          // Get column data key to repeat
          var repeatColumnsMap = new Map();
          var colIndexes = [];
          var columns = [];
          var horizontalPageBreakRepeat = [];
          table.settings.horizontalPageBreakRepeat;
          if (Array.isArray(table.settings.horizontalPageBreakRepeat)) {
            horizontalPageBreakRepeat = table.settings.horizontalPageBreakRepeat;
            // It can be a single value of type string or number (even number: 0)
          } else if (typeof table.settings.horizontalPageBreakRepeat === 'string' || typeof table.settings.horizontalPageBreakRepeat === 'number') {
            horizontalPageBreakRepeat = [table.settings.horizontalPageBreakRepeat];
          }
          // Code to repeat the given column in split pages
          horizontalPageBreakRepeat.forEach(function (field) {
            var col = table.columns.find(function (item) {
              return item.dataKey === field || item.index === field;
            });
            if (col && !repeatColumnsMap.has(col.index)) {
              repeatColumnsMap.set(col.index, true);
              colIndexes.push(col.index);
              columns.push(table.columns[col.index]);
              remainingWidth -= col.wrappedWidth;
            }
          });
          var first = true;
          var i = (_a = config === null || config === void 0 ? void 0 : config.start) !== null && _a !== void 0 ? _a : 0; // make sure couter is initiated outside the loop
          while (i < table.columns.length) {
            // Prevent duplicates
            if (repeatColumnsMap.has(i)) {
              i++;
              continue;
            }
            var colWidth = table.columns[i].wrappedWidth;
            // Take at least one column even if it doesn't fit
            if (first || remainingWidth >= colWidth) {
              first = false;
              colIndexes.push(i);
              columns.push(table.columns[i]);
              remainingWidth -= colWidth;
            } else {
              break;
            }
            i++;
          }
          return {
            colIndexes: colIndexes,
            columns: columns,
            lastIndex: i - 1
          };
        }
        function calculateAllColumnsCanFitInPage(doc, table) {
          var allResults = [];
          for (var i = 0; i < table.columns.length; i++) {
            var result = getColumnsCanFitInPage(doc, table, {
              start: i
            });
            if (result.columns.length) {
              allResults.push(result);
              i = result.lastIndex;
            }
          }
          return allResults;
        }
        exports.calculateAllColumnsCanFitInPage = calculateAllColumnsCanFitInPage;

        /***/
      }),
      /***/324: ( /***/function (__unused_webpack_module, exports, __nested_webpack_require_90009__) {
        Object.defineProperty(exports, "__esModule", {
          value: true
        });
        exports.ellipsize = exports.resizeColumns = exports.calculateWidths = void 0;
        var common_1 = __nested_webpack_require_90009__(420);
        /**
         * Calculate the column widths
         */
        function calculateWidths(doc, table) {
          calculate(doc, table);
          var resizableColumns = [];
          var initialTableWidth = 0;
          table.columns.forEach(function (column) {
            var customWidth = column.getMaxCustomCellWidth(table);
            if (customWidth) {
              // final column width
              column.width = customWidth;
            } else {
              // initial column width (will be resized)
              column.width = column.wrappedWidth;
              resizableColumns.push(column);
            }
            initialTableWidth += column.width;
          });
          // width difference that needs to be distributed
          var resizeWidth = table.getWidth(doc.pageSize().width) - initialTableWidth;
          // first resize attempt: with respect to minReadableWidth and minWidth
          if (resizeWidth) {
            resizeWidth = resizeColumns(resizableColumns, resizeWidth, function (column) {
              return Math.max(column.minReadableWidth, column.minWidth);
            });
          }
          // second resize attempt: ignore minReadableWidth but respect minWidth
          if (resizeWidth) {
            resizeWidth = resizeColumns(resizableColumns, resizeWidth, function (column) {
              return column.minWidth;
            });
          }
          resizeWidth = Math.abs(resizeWidth);
          if (!table.settings.horizontalPageBreak && resizeWidth > 0.1 / doc.scaleFactor()) {
            // Table can't get smaller due to custom-width or minWidth restrictions
            // We can't really do much here. Up to user to for example
            // reduce font size, increase page size or remove custom cell widths
            // to allow more columns to be reduced in size
            resizeWidth = resizeWidth < 1 ? resizeWidth : Math.round(resizeWidth);
            console.warn("Of the table content, ".concat(resizeWidth, " units width could not fit page"));
          }
          applyColSpans(table);
          fitContent(table, doc);
          applyRowSpans(table);
        }
        exports.calculateWidths = calculateWidths;
        function calculate(doc, table) {
          var sf = doc.scaleFactor();
          var horizontalPageBreak = table.settings.horizontalPageBreak;
          var availablePageWidth = (0, common_1.getPageAvailableWidth)(doc, table);
          table.allRows().forEach(function (row) {
            for (var _i = 0, _a = table.columns; _i < _a.length; _i++) {
              var column = _a[_i];
              var cell = row.cells[column.index];
              if (!cell) continue;
              var hooks = table.hooks.didParseCell;
              table.callCellHooks(doc, hooks, cell, row, column, null);
              var padding = cell.padding('horizontal');
              cell.contentWidth = (0, common_1.getStringWidth)(cell.text, cell.styles, doc) + padding;
              var longestWordWidth = (0, common_1.getStringWidth)(cell.text.join(' ').split(/\s+/), cell.styles, doc);
              cell.minReadableWidth = longestWordWidth + cell.padding('horizontal');
              if (typeof cell.styles.cellWidth === 'number') {
                cell.minWidth = cell.styles.cellWidth;
                cell.wrappedWidth = cell.styles.cellWidth;
              } else if (cell.styles.cellWidth === 'wrap' || horizontalPageBreak === true) {
                // cell width should not be more than available page width
                if (cell.contentWidth > availablePageWidth) {
                  cell.minWidth = availablePageWidth;
                  cell.wrappedWidth = availablePageWidth;
                } else {
                  cell.minWidth = cell.contentWidth;
                  cell.wrappedWidth = cell.contentWidth;
                }
              } else {
                // auto
                var defaultMinWidth = 10 / sf;
                cell.minWidth = cell.styles.minCellWidth || defaultMinWidth;
                cell.wrappedWidth = cell.contentWidth;
                if (cell.minWidth > cell.wrappedWidth) {
                  cell.wrappedWidth = cell.minWidth;
                }
              }
            }
          });
          table.allRows().forEach(function (row) {
            for (var _i = 0, _a = table.columns; _i < _a.length; _i++) {
              var column = _a[_i];
              var cell = row.cells[column.index];
              // For now we ignore the minWidth and wrappedWidth of colspan cells when calculating colspan widths.
              // Could probably be improved upon however.
              if (cell && cell.colSpan === 1) {
                column.wrappedWidth = Math.max(column.wrappedWidth, cell.wrappedWidth);
                column.minWidth = Math.max(column.minWidth, cell.minWidth);
                column.minReadableWidth = Math.max(column.minReadableWidth, cell.minReadableWidth);
              } else {
                // Respect cellWidth set in columnStyles even if there is no cells for this column
                // or if the column only have colspan cells. Since the width of colspan cells
                // does not affect the width of columns, setting columnStyles cellWidth enables the
                // user to at least do it manually.
                // Note that this is not perfect for now since for example row and table styles are
                // not accounted for
                var columnStyles = table.styles.columnStyles[column.dataKey] || table.styles.columnStyles[column.index] || {};
                var cellWidth = columnStyles.cellWidth || columnStyles.minCellWidth;
                if (cellWidth && typeof cellWidth === 'number') {
                  column.minWidth = cellWidth;
                  column.wrappedWidth = cellWidth;
                }
              }
              if (cell) {
                // Make sure all columns get at least min width even though width calculations are not based on them
                if (cell.colSpan > 1 && !column.minWidth) {
                  column.minWidth = cell.minWidth;
                }
                if (cell.colSpan > 1 && !column.wrappedWidth) {
                  column.wrappedWidth = cell.minWidth;
                }
              }
            }
          });
        }
        /**
         * Distribute resizeWidth on passed resizable columns
         */
        function resizeColumns(columns, resizeWidth, getMinWidth) {
          var initialResizeWidth = resizeWidth;
          var sumWrappedWidth = columns.reduce(function (acc, column) {
            return acc + column.wrappedWidth;
          }, 0);
          for (var i = 0; i < columns.length; i++) {
            var column = columns[i];
            var ratio = column.wrappedWidth / sumWrappedWidth;
            var suggestedChange = initialResizeWidth * ratio;
            var suggestedWidth = column.width + suggestedChange;
            var minWidth = getMinWidth(column);
            var newWidth = suggestedWidth < minWidth ? minWidth : suggestedWidth;
            resizeWidth -= newWidth - column.width;
            column.width = newWidth;
          }
          resizeWidth = Math.round(resizeWidth * 1e10) / 1e10;
          // Run the resizer again if there's remaining width needs
          // to be distributed and there're columns that can be resized
          if (resizeWidth) {
            var resizableColumns = columns.filter(function (column) {
              return resizeWidth < 0 ? column.width > getMinWidth(column) // check if column can shrink
              : true; // check if column can grow
            });
            if (resizableColumns.length) {
              resizeWidth = resizeColumns(resizableColumns, resizeWidth, getMinWidth);
            }
          }
          return resizeWidth;
        }
        exports.resizeColumns = resizeColumns;
        function applyRowSpans(table) {
          var rowSpanCells = {};
          var colRowSpansLeft = 1;
          var all = table.allRows();
          for (var rowIndex = 0; rowIndex < all.length; rowIndex++) {
            var row = all[rowIndex];
            for (var _i = 0, _a = table.columns; _i < _a.length; _i++) {
              var column = _a[_i];
              var data = rowSpanCells[column.index];
              if (colRowSpansLeft > 1) {
                colRowSpansLeft--;
                delete row.cells[column.index];
              } else if (data) {
                data.cell.height += row.height;
                colRowSpansLeft = data.cell.colSpan;
                delete row.cells[column.index];
                data.left--;
                if (data.left <= 1) {
                  delete rowSpanCells[column.index];
                }
              } else {
                var cell = row.cells[column.index];
                if (!cell) {
                  continue;
                }
                cell.height = row.height;
                if (cell.rowSpan > 1) {
                  var remaining = all.length - rowIndex;
                  var left = cell.rowSpan > remaining ? remaining : cell.rowSpan;
                  rowSpanCells[column.index] = {
                    cell: cell,
                    left: left,
                    row: row
                  };
                }
              }
            }
          }
        }
        function applyColSpans(table) {
          var all = table.allRows();
          for (var rowIndex = 0; rowIndex < all.length; rowIndex++) {
            var row = all[rowIndex];
            var colSpanCell = null;
            var combinedColSpanWidth = 0;
            var colSpansLeft = 0;
            for (var columnIndex = 0; columnIndex < table.columns.length; columnIndex++) {
              var column = table.columns[columnIndex];
              // Width and colspan
              colSpansLeft -= 1;
              if (colSpansLeft > 1 && table.columns[columnIndex + 1]) {
                combinedColSpanWidth += column.width;
                delete row.cells[column.index];
              } else if (colSpanCell) {
                var cell = colSpanCell;
                delete row.cells[column.index];
                colSpanCell = null;
                cell.width = column.width + combinedColSpanWidth;
              } else {
                var cell = row.cells[column.index];
                if (!cell) continue;
                colSpansLeft = cell.colSpan;
                combinedColSpanWidth = 0;
                if (cell.colSpan > 1) {
                  colSpanCell = cell;
                  combinedColSpanWidth += column.width;
                  continue;
                }
                cell.width = column.width + combinedColSpanWidth;
              }
            }
          }
        }
        function fitContent(table, doc) {
          var rowSpanHeight = {
            count: 0,
            height: 0
          };
          for (var _i = 0, _a = table.allRows(); _i < _a.length; _i++) {
            var row = _a[_i];
            for (var _b = 0, _c = table.columns; _b < _c.length; _b++) {
              var column = _c[_b];
              var cell = row.cells[column.index];
              if (!cell) continue;
              doc.applyStyles(cell.styles, true);
              var textSpace = cell.width - cell.padding('horizontal');
              if (cell.styles.overflow === 'linebreak') {
                // Add one pt to textSpace to fix rounding error
                cell.text = doc.splitTextToSize(cell.text, textSpace + 1 / doc.scaleFactor(), {
                  fontSize: cell.styles.fontSize
                });
              } else if (cell.styles.overflow === 'ellipsize') {
                cell.text = ellipsize(cell.text, textSpace, cell.styles, doc, '...');
              } else if (cell.styles.overflow === 'hidden') {
                cell.text = ellipsize(cell.text, textSpace, cell.styles, doc, '');
              } else if (typeof cell.styles.overflow === 'function') {
                var result = cell.styles.overflow(cell.text, textSpace);
                if (typeof result === 'string') {
                  cell.text = [result];
                } else {
                  cell.text = result;
                }
              }
              cell.contentHeight = cell.getContentHeight(doc.scaleFactor(), doc.getLineHeightFactor());
              var realContentHeight = cell.contentHeight / cell.rowSpan;
              if (cell.rowSpan > 1 && rowSpanHeight.count * rowSpanHeight.height < realContentHeight * cell.rowSpan) {
                rowSpanHeight = {
                  height: realContentHeight,
                  count: cell.rowSpan
                };
              } else if (rowSpanHeight && rowSpanHeight.count > 0) {
                if (rowSpanHeight.height > realContentHeight) {
                  realContentHeight = rowSpanHeight.height;
                }
              }
              if (realContentHeight > row.height) {
                row.height = realContentHeight;
              }
            }
            rowSpanHeight.count--;
          }
        }
        function ellipsize(text, width, styles, doc, overflow) {
          return text.map(function (str) {
            return ellipsizeStr(str, width, styles, doc, overflow);
          });
        }
        exports.ellipsize = ellipsize;
        function ellipsizeStr(text, width, styles, doc, overflow) {
          var precision = 10000 * doc.scaleFactor();
          width = Math.ceil(width * precision) / precision;
          if (width >= (0, common_1.getStringWidth)(text, styles, doc)) {
            return text;
          }
          while (width < (0, common_1.getStringWidth)(text + overflow, styles, doc)) {
            if (text.length <= 1) {
              break;
            }
            text = text.substring(0, text.length - 1);
          }
          return text.trim() + overflow;
        }

        /***/
      }),
      /***/964: ( /***/function (module) {
        if (typeof __WEBPACK_EXTERNAL_MODULE__964__ === 'undefined') {
          var e = new Error("Cannot find module 'undefined'");
          e.code = 'MODULE_NOT_FOUND';
          throw e;
        }
        module.exports = __WEBPACK_EXTERNAL_MODULE__964__;

        /***/
      })

      /******/
    };
    /************************************************************************/
    /******/ // The module cache
    /******/
    var __webpack_module_cache__ = {};
    /******/
    /******/ // The require function
    /******/
    function __nested_webpack_require_104725__(moduleId) {
      /******/ // Check if module is in cache
      /******/var cachedModule = __webpack_module_cache__[moduleId];
      /******/
      if (cachedModule !== undefined) {
        /******/return cachedModule.exports;
        /******/
      }
      /******/ // Create a new module (and put it into the cache)
      /******/
      var module = __webpack_module_cache__[moduleId] = {
        /******/ // no module.id needed
        /******/ // no module.loaded needed
        /******/exports: {}
        /******/
      };
      /******/
      /******/ // Execute the module function
      /******/
      __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_104725__);
      /******/
      /******/ // Return the exports of the module
      /******/
      return module.exports;
      /******/
    }
    /******/
    /************************************************************************/
    var __nested_webpack_exports__ = {};
    // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
    !function () {
      var exports = __nested_webpack_exports__;
      Object.defineProperty(exports, "__esModule", {
        value: true
      });
      exports.Cell = exports.Column = exports.Row = exports.Table = exports.CellHookData = exports.__drawTable = exports.__createTable = exports.applyPlugin = void 0;
      var applyPlugin_1 = __nested_webpack_require_104725__(340);
      var inputParser_1 = __nested_webpack_require_104725__(776);
      var tableDrawer_1 = __nested_webpack_require_104725__(664);
      var tableCalculator_1 = __nested_webpack_require_104725__(972);
      var models_1 = __nested_webpack_require_104725__(260);
      Object.defineProperty(exports, "Table", {
        enumerable: true,
        get: function () {
          return models_1.Table;
        }
      });
      var HookData_1 = __nested_webpack_require_104725__(172);
      Object.defineProperty(exports, "CellHookData", {
        enumerable: true,
        get: function () {
          return HookData_1.CellHookData;
        }
      });
      var models_2 = __nested_webpack_require_104725__(260);
      Object.defineProperty(exports, "Cell", {
        enumerable: true,
        get: function () {
          return models_2.Cell;
        }
      });
      Object.defineProperty(exports, "Column", {
        enumerable: true,
        get: function () {
          return models_2.Column;
        }
      });
      Object.defineProperty(exports, "Row", {
        enumerable: true,
        get: function () {
          return models_2.Row;
        }
      });
      // export { applyPlugin } didn't export applyPlugin
      // to index.d.ts for some reason
      function applyPlugin(jsPDF) {
        (0, applyPlugin_1.default)(jsPDF);
      }
      exports.applyPlugin = applyPlugin;
      function autoTable(d, options) {
        var input = (0, inputParser_1.parseInput)(d, options);
        var table = (0, tableCalculator_1.createTable)(d, input);
        (0, tableDrawer_1.drawTable)(d, table);
      }
      // Experimental export
      function __createTable(d, options) {
        var input = (0, inputParser_1.parseInput)(d, options);
        return (0, tableCalculator_1.createTable)(d, input);
      }
      exports.__createTable = __createTable;
      function __drawTable(d, table) {
        (0, tableDrawer_1.drawTable)(d, table);
      }
      exports.__drawTable = __drawTable;
      try {
        // eslint-disable-next-line @typescript-eslint/no-var-requires
        var jsPDF = __nested_webpack_require_104725__(964);
        // Webpack imported jspdf instead of jsPDF for some reason
        // while it seemed to work everywhere else.
        if (jsPDF.jsPDF) jsPDF = jsPDF.jsPDF;
        applyPlugin(jsPDF);
      } catch (error) {
        // Importing jspdf in nodejs environments does not work as of jspdf
        // 1.5.3 so we need to silence potential errors to support using for example
        // the nodejs jspdf dist files with the exported applyPlugin
      }
      exports["default"] = autoTable;
    }();
    /******/
    return __nested_webpack_exports__;
    /******/
  }();
});

/***/ })

}]);