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

/***/ 48860:
/*!**************************************************************!*\
  !*** ./src/app/core/directives/less-than-today.directive.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   lessThanTodayValidator: () => (/* binding */ lessThanTodayValidator)
/* harmony export */ });
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var _utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/metodos/metodos */ 38002);


// MC SINWEB-432 Validador para que una fecha dada sea menor a la fecha actual
function lessThanTodayValidator() {
  return control => {
    const regexDDMMYYYY = /^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}$/;
    let today = new Date().toISOString().substring(0, 10);
    let date = control.value;
    if ((0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaIncompleta)(date) || date === '') {
      return null;
    }
    if (regexDDMMYYYY.test(date)) {
      date = date.substring(6, 10) + '-' + date.substring(3, 5) + '-' + date.substring(0, 2);
    }
    return (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.isBefore)(date, today) || (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.isEqual)(date, today) ? null : {
      LessThanToday: true
    };
    //return new Date(date) <= new Date(today) ? null : { LessThanToday: true };
  };
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RMAAtributoService: () => (/* binding */ RMAAtributoService)
/* 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 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 RMAAtributoService extends src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.rma.ATRIBUTO.VERSION + this.rma.ATRIBUTO.PATH_BASE;
  }
  static #_ = this.ɵfac = function RMAAtributoService_Factory(t) {
    return new (t || RMAAtributoService)(_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: RMAAtributoService,
    factory: RMAAtributoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RMAEstadoService: () => (/* binding */ RMAEstadoService)
/* 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 RMAEstadoService extends src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.rma.RMA_ESTADO.VERSION + this.rma.RMA_ESTADO.PATH_BASE;
  }
  static #_ = this.ɵfac = function RMAEstadoService_Factory(t) {
    return new (t || RMAEstadoService)(_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: RMAEstadoService,
    factory: RMAEstadoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RMAReclamoTrazabilidad: () => (/* binding */ RMAReclamoTrazabilidad)
/* 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 RMAReclamoTrazabilidad extends src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.rma.RMA_RECLAMO_TRAZABILIDAD.VERSION + this.rma.RMA_RECLAMO_TRAZABILIDAD.PATH_BASE;
  }
  getTrazabilidades(params, id, context) {
    let path = this.url + this.rma.RMA_RECLAMO_TRAZABILIDAD.GET_TRAZABILIDADES.VERSION + this.rma.RMA_RECLAMO_TRAZABILIDAD.GET_TRAZABILIDADES.PATH_REL.replace('{id}', id);
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function RMAReclamoTrazabilidad_Factory(t) {
    return new (t || RMAReclamoTrazabilidad)(_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: RMAReclamoTrazabilidad,
    factory: RMAReclamoTrazabilidad.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DefectoService: () => (/* binding */ DefectoService)
/* 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 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 DefectoService extends src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.rma.DEFECTO.VERSION + this.rma.DEFECTO.PATH_BASE;
  }
  static #_ = this.ɵfac = function DefectoService_Factory(t) {
    return new (t || DefectoService)(_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: DefectoService,
    factory: DefectoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ResolucionService: () => (/* binding */ ResolucionService)
/* 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 ResolucionService 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.rma.RESOLUCION.VERSION + this.rma.RESOLUCION.PATH_BASE;
  }
  static #_ = this.ɵfac = function ResolucionService_Factory(t) {
    return new (t || ResolucionService)(_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: ResolucionService,
    factory: ResolucionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 27233:
/*!***********************************************************!*\
  !*** ./src/app/core/services/rma/tipo-defecto.service.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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






/**
 * SP SINWEB-138 service que obtiene de la api c# los tipos de defectos.
 */
class TipoDefectoService extends src_app_core_services_core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.rma.TIPO_DEFECTO.VERSION + this.rma.TIPO_DEFECTO.PATH_BASE;
  }
  static #_ = this.ɵfac = function TipoDefectoService_Factory(t) {
    return new (t || TipoDefectoService)(_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: TipoDefectoService,
    factory: TipoDefectoService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AtributosEditComponent: () => (/* binding */ AtributosEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* 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_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/rma/RMAAtributo.service */ 34852);
/* harmony import */ var src_app_core_services_rma_RMAEstado_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/rma/RMAEstado.service */ 82367);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/input-number/input-number.component */ 62271);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/ui/select-multiple/select-multiple.component */ 54245);















function AtributosEditComponent_ng_container_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
}
function AtributosEditComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "Nuevo");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
}
function AtributosEditComponent_ng_container_3_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"]("'", ctx_r5.atributo.Nombre, "'");
  }
}
function AtributosEditComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, AtributosEditComponent_ng_container_3_ng_container_1_Template, 2, 0, "ng-container", 3)(2, AtributosEditComponent_ng_container_3_ng_container_2_Template, 2, 0, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " Atributo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, AtributosEditComponent_ng_container_3_ng_container_4_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r0.atributo.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx_r0.atributo.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r0.atributo.Id);
  }
}
function AtributosEditComponent_ng_container_5_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Nombre correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function AtributosEditComponent_ng_container_5_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Nombre del atributo requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function AtributosEditComponent_ng_container_5_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Nombre del atributo no debe tener m\u00E1s de 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function AtributosEditComponent_ng_container_5_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Observaci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function AtributosEditComponent_ng_container_5_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function AtributosEditComponent_ng_container_5_ng_container_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "option", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpropertyInterpolate"]("value", item_r13.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](item_r13.nombre);
  }
}
function AtributosEditComponent_ng_container_5_div_29_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "app-input-number", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitValue", function AtributosEditComponent_ng_container_5_div_29_ng_container_3_Template_app_input_number_emitValue_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r21);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r20.setValor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r14.getValor())("decimals", 0)("isInvalid", ctx_r14.getValor() === null)("isValid", ctx_r14.getValor() === null);
  }
}
function AtributosEditComponent_ng_container_5_div_29_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "app-input-number", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitValue", function AtributosEditComponent_ng_container_5_div_29_ng_container_4_Template_app_input_number_emitValue_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r23);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r22.setValor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r15.getValor())("isInvalid", ctx_r15.getValor() === null)("isValid", ctx_r15.getValor() === null);
  }
}
function AtributosEditComponent_ng_container_5_div_29_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "input", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("is-invalid", ctx_r16.vh.controlHasError("required", "Valor"))("is-valid", ctx_r16.vh.isControlValid("Valor"));
  }
}
function AtributosEditComponent_ng_container_5_div_29_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "textarea", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "              ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("is-invalid", ctx_r17.vh.controlHasError("required", "Valor"))("is-valid", ctx_r17.vh.isControlValid("Valor"));
  }
}
function AtributosEditComponent_ng_container_5_div_29_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "input", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("is-invalid", ctx_r18.vh.controlHasError("required", "Valor"))("is-valid", ctx_r18.vh.isControlValid("Valor"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formControlName", "Valor");
  }
}
function AtributosEditComponent_ng_container_5_div_29_ng_container_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "app-checkbox", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitAction", function AtributosEditComponent_ng_container_5_div_29_ng_container_8_Template_app_checkbox_emitAction_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r24.setValor(ctx_r24.getValor() === "S" ? "N" : "S"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r19.getValor() === "S")("title", ctx_r19.getValor() === "S" ? "Verdadero" : "Falso");
  }
}
function AtributosEditComponent_ng_container_5_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 17)(1, "label", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Valor por defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, AtributosEditComponent_ng_container_5_div_29_ng_container_3_Template, 2, 4, "ng-container", 3)(4, AtributosEditComponent_ng_container_5_div_29_ng_container_4_Template, 2, 3, "ng-container", 3)(5, AtributosEditComponent_ng_container_5_div_29_ng_container_5_Template, 2, 4, "ng-container", 3)(6, AtributosEditComponent_ng_container_5_div_29_ng_container_6_Template, 3, 4, "ng-container", 3)(7, AtributosEditComponent_ng_container_5_div_29_ng_container_7_Template, 2, 5, "ng-container", 3)(8, AtributosEditComponent_ng_container_5_div_29_ng_container_8_Template, 3, 2, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r12.getDominio() == "I");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r12.getDominio() == "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r12.getDominio() == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r12.getDominio() == "B");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r12.getDominio() == "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r12.getDominio() == "L");
  }
}
function AtributosEditComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "form", 7)(2, "div", 8)(3, "div", 9)(4, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](6, "input", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](7, AtributosEditComponent_ng_container_5_div_7_Template, 2, 0, "div", 12)(8, AtributosEditComponent_ng_container_5_div_8_Template, 2, 0, "div", 13)(9, AtributosEditComponent_ng_container_5_div_9_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "div", 14)(11, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12, "Observaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](13, "textarea", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](14, AtributosEditComponent_ng_container_5_div_14_Template, 2, 0, "div", 12)(15, AtributosEditComponent_ng_container_5_div_15_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "div", 17)(17, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](18, "Estados permitidos");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](19, "app-select-multiple", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitSelected", function AtributosEditComponent_ng_container_5_Template_app_select_multiple_emitSelected_19_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r27);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r26.formGroup.controls.Estados.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "div", 17)(21, "label", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](22, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](23, "select", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function AtributosEditComponent_ng_container_5_Template_select_change_23_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r27);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r28.cambioDominio($event.target.value));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "option", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](25, "Seleccione el dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](26, AtributosEditComponent_ng_container_5_ng_container_26_Template, 3, 2, "ng-container", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](27, "div", 23)(28, "app-checkbox", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitAction", function AtributosEditComponent_ng_container_5_Template_app_checkbox_emitAction_28_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r27);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r29.setRequerido());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](29, AtributosEditComponent_ng_container_5_div_29_Template, 9, 6, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Nombre"))("is-valid", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Observacion"))("is-valid", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("selected", ctx_r1.formGroup.controls.Estados.value)("items", ctx_r1.estados);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r1.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r1.getRequerido())("disabled", ctx_r1.getDominio() == "L");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r1.getRequerido() && ctx_r1.getDominio() !== "");
  }
}
function AtributosEditComponent_ng_container_9_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 37);
  }
}
function AtributosEditComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "button", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function AtributosEditComponent_ng_container_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r32);
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r31.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, AtributosEditComponent_ng_container_9_i_4_Template, 1, 0, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r2.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](2, 2, ctx_r2.atributoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](5, 4, ctx_r2.atributoService.isLoading$));
  }
}
/**
 * SP SINWEB-139 componente de insercion/edicion de atributos modulo RMA
 */
class AtributosEditComponent {
  constructor(atributoService, fb, rMAEstadoService, modal, vh) {
    this.atributoService = atributoService;
    this.fb = fb;
    this.rMAEstadoService = rMAEstadoService;
    this.modal = modal;
    this.vh = vh;
    this.subscriptions = [];
    this.btnActivo = true;
    this.estados = [];
  }
  ngOnInit() {
    this.cargarEstados();
    if (!this.atributo) {
      this.atributo = {
        Id: undefined,
        Nombre: '',
        Dominio: '',
        Requerido: '',
        Observacion: '',
        Valor: '',
        Estados: []
      };
    }
    this.loadForm();
  }
  /**
   * SP SINWEB-139 carga el formulario
   */
  loadForm() {
    this.formGroup = this.fb.group({
      Nombre: [this.atributo.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.maxLength(100)])],
      Dominio: [this.atributo.Dominio, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required])],
      Requerido: [this.atributo.Requerido == 'S' ? true : false, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required])],
      Observacion: [this.atributo.Observacion, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.maxLength(200)])],
      Valor: [this.atributo.Valor],
      Estados: [this.atributo.Estados.map(x => {
        return x.RMAEstado.Id;
      })]
    });
    if (this.formGroup.get('Requerido')?.value) {
      this.formGroup.get('Valor').setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required);
    }
    if (this.atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ATRIBUTO_DATE) {
      this.formGroup.get('Valor')?.setValue((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.formatFechaComp)(this.atributo.Valor));
    }
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarEstados() {
    this.estados = [];
    let datos = {
      PageNumber: -1,
      Orden: 1
    };
    const susc = this.rMAEstadoService.fetch(datos).subscribe(resp => {
      //filtrar en resp.Data los que estan en estadosPermitidos
      this.estados = resp.Data.map(x => {
        return {
          IdRMAEstado: x.Id,
          Id: null,
          Nombre: x.Nombre
        };
      });
    });
    susc.unsubscribe;
  }
  /**
   * SP SINWEB-139 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-139 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-139 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-139 prepara el objeto a insertar modificar
   */
  prepararAtributo() {
    const formData = this.formGroup.value;
    this.atributo.Nombre = formData.Nombre;
    this.atributo.Dominio = formData.Dominio;
    this.atributo.Requerido = formData.Requerido ? 'S' : 'N';
    this.atributo.Observacion = formData.Observacion;
    let estados = [];
    formData.Estados.forEach(estado => {
      let existe = this.atributo.Estados.find(x => x.RMAEstado.Id == estado);
      if (!existe) {
        estados.push({
          Id: null,
          IdRMAEstado: estado
        });
      } else {
        estados.push({
          Id: existe.Id,
          IdRMAEstado: estado
        });
      }
    });
    this.atributo.Estados = estados;
    let valor = formData.Valor;
    if (formData.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ATRIBUTO_DATE) {
      valor = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.formatFecha)(valor);
    }
    this.atributo.Valor = valor;
  }
  setRequerido() {
    this.formGroup.get('Requerido')?.setValue(!this.getRequerido());
    if (this.getRequerido()) {
      this.formGroup.get('Valor').setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required);
    } else {
      this.formGroup.get('Valor').clearValidators();
    }
    this.cambioDominio(this.getDominio());
  }
  getRequerido() {
    const formData = this.formGroup.value;
    return formData.Requerido;
  }
  // PM SINWEB-200
  cambioDominio(dominio) {
    if (dominio == 'S' || dominio == 'D' || dominio == 'B') {
      this.formGroup.controls['Valor'].setValue('');
    }
    if (dominio == 'I' || dominio == 'R') {
      this.formGroup.controls['Valor'].setValue(0);
    }
    if (dominio == 'L') {
      this.formGroup.controls['Requerido'].setValue(true);
      this.formGroup.get('Valor').setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required);
      this.formGroup.controls['Valor'].setValue('N');
    }
    if (dominio == 'D') {
      this.formGroup.controls['Valor'].setValue((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.fechaActual)());
    }
  }
  getDominio() {
    const formData = this.formGroup.value;
    return formData.Dominio;
  }
  getValor() {
    const formData = this.formGroup.value;
    return formData.Valor;
  }
  setValor(valor) {
    this.formGroup.get('Valor')?.setValue(valor);
  }
  static #_ = this.ɵfac = function AtributosEditComponent_Factory(t) {
    return new (t || AtributosEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_3__.RMAAtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAEstado_service__WEBPACK_IMPORTED_MODULE_4__.RMAEstadoService), _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_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: AtributosEditComponent,
    selectors: [["app-atributos-edit"]],
    inputs: {
      atributo: "atributo",
      dominioOptions: "dominioOptions"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService])],
    decls: 10,
    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"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], ["data-cy", "nombre-atributo", 1, "col-lg-12", "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-12", "p-2"], [1, "form-label"], ["name", "Observacion", "formControlName", "Observacion", 1, "form-control", "form-control-solid"], [1, "col-lg-6", "p-2"], ["labelKey", "Nombre", "valueKey", "IdRMAEstado", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], ["campoObligatorio", ""], ["placeholder", "buscar dominio", "name", "Dominio", "formControlName", "Dominio", 1, "form-control", "form-control-lg", "form-control-solid", "form-select", 3, "change"], ["value", "", "disabled", ""], [4, "ngFor", "ngForOf"], [1, "col-lg-6", "p-2", "align-self-end"], ["title", "Requerido", "colorChecked", "success", "colorUncheked", "primary", "colorDisabled", "secondary", 3, "value", "disabled", "emitAction"], ["class", "col-lg-6 p-2", 4, "ngIf"], [1, "valid-feedback"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [3, "value"], [3, "title", "value", "decimals", "isInvalid", "isValid", "emitValue"], [3, "title", "value", "isInvalid", "isValid", "emitValue"], ["type", "text", "name", "Valor", "autocomplete", "off", "formControlName", "Valor", 1, "form-control", "form-control-solid"], ["rows", "2", "name", "Valor", "formControlName", "Valor", 1, "form-control", "form-control-solid"], ["type", "date", 1, "form-control", "digits", 3, "formControlName"], ["colorDisabled", "secondary", "colorUncheked", "primary", "colorChecked", "success", 1, "my-2", 3, "value", "title", "emitAction"], ["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"]],
    template: function AtributosEditComponent_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__["ɵɵtemplate"](3, AtributosEditComponent_ng_container_3_Template, 5, 3, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, AtributosEditComponent_ng_container_5_Template, 30, 20, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function AtributosEditComponent_Template_button_click_7_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](9, AtributosEditComponent_ng_container_9_Template, 6, 6, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.atributo);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.atributo);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.atributo);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_5__.CampoObligatorioDirective, _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_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_6__.CheckboxComponent, _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_7__.InputNumberComponent, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_8__.SelectMultipleComponent, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe]
  });
}

/***/ }),

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

__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_12__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_pages_rma_atributos_atributos_edit_atributos_edit_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/pages/rma/atributos/atributos-edit/atributos-edit.component */ 98762);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* 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_exportacion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/rma/RMAAtributo.service */ 34852);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_10__ = __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_11__["ɵɵelementStart"](0, "div", 37)(1, "div", 38)(2, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, AtributosComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](51);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r5);
  }
}
function AtributosComponent_a_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "a", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_a_16_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r7.nuevo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](1, "span", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](2, "Nuevo Atributo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](3, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function AtributosComponent_a_44_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "a", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_a_44_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r9.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function AtributosComponent_ng_template_50_option_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "option", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", option_r13.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", option_r13.nombre, " ");
  }
}
function AtributosComponent_ng_template_50_option_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "option", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", option_r14.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", option_r14.nombre, " ");
  }
}
const _c0 = () => [0];
function AtributosComponent_ng_template_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 22)(1, "p-accordion", 45)(2, "p-accordionTab", 46)(3, "div")(4, "p", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, "Dominio");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "select", 48)(7, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](8, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](9, AtributosComponent_ng_template_50_option_9_Template, 2, 2, "option", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](10, "hr", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](11, "div")(12, "p", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](13, "Requerido");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](14, "select", 52)(15, "option", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](16, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](17, AtributosComponent_ng_template_50_option_17_Template, 2, 2, "option", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r4.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpureFunction0"](5, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r4.dominioOptions);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r4.requeridoOptions);
  }
}
const MSJ_EXITO_INSERCION = 'Se insertó correctamente un atributo.';
const MSJ_EXITO_EDICION = 'Se modificó correctamente el atributo seleccionado.';
const MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente el atributo seleccionado.';
/**
 * SP SINWEB-139 Componente de listado/vista Atributos
 */
class AtributosComponent {
  constructor(fb, toast, modalService, alert, exportacion, sf, authService, tourService, 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.atributoService = atributoService;
    this.atributos = [];
    this.total = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.unsubscribe = [];
    //filtros
    this.dominioAtributo = '';
    this.requeridoAtributo = '';
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    //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;
    //permisos
    this.permisoInsAtributos = false;
    this.permisoModifAtributos = false;
    this.permisoElimAtributos = false;
    this.atributoHeader = [{
      Nombre: 'Nombre',
      Order: 2,
      Key: 'Nombre',
      WCol: '20%'
    }, {
      Nombre: 'Dominio',
      Order: 4,
      Type: 'dictionary',
      Key: 'Dominio',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO,
      WCol: '20%'
    }, {
      Nombre: 'Requerido',
      Order: 3,
      Type: 'dictionary',
      Key: 'Requerido',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_ATRIBUTO_REQUERIDO,
      WCol: '20%'
    }, {
      Nombre: 'Estados permitidos',
      Key: 'Estados',
      WCol: '25%',
      Type: 'list',
      Class: 'd-flex gap-1',
      ArrayList: [{
        Key: 'RMAEstado.Id',
        Type: 'badge',
        Class: 'col-sm-2'
      }, {
        Key: 'RMAEstado.Nombre',
        Class: 'col-sm-10'
      }]
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '20%'
    }];
    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.requeridoOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(100)]
    });
    this.filterForm = this.fb.group({
      dominio: [''],
      requerido: ['']
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    this.permisoInsAtributos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_ATRIBUTO);
    this.permisoModifAtributos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_ATRIBUTO);
    this.permisoElimAtributos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ELIM_ATRIBUTO);
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesRMA.ATRIBUTO_STATES;
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.ATRIBUTO_S_NOMBRE));
    //SP SINWEB-239
    this.buscarNombre = this.sf.getState(this.sf.states.ATRIBUTO_S_NOMBRE);
    //filtros
    this.dominioAtributo = this.sf.getState(this.sf.states.ATRIBUTO_F_DOMINIO);
    this.filterForm.controls.dominio.setValue(this.dominioAtributo, {
      emitEvent: false
    });
    this.requeridoAtributo = this.sf.getState(this.sf.states.ATRIBUTO_F_REQUERIDO);
    this.filterForm.controls.requerido.setValue(this.requeridoAtributo, {
      emitEvent: false
    });
    //listado
    this.page = Number(this.sf.getState(this.sf.states.ATRIBUTO_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.ATRIBUTO_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.ATRIBUTO_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.ATRIBUTO_L_SENTIDO);
  }
  /**
   * Metodo observable de cambio de filtro (OPCIONAL)
   */
  configuracionFilter() {
    this.unsubscribe.push(this.filterForm.controls.dominio.valueChanges.subscribe(IdDominio => {
      if (this.filtro || this.filtroMobile) {
        this.dominioAtributo = IdDominio;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.requerido.valueChanges.subscribe(IdRequerido => {
      if (this.filtro || this.filtroMobile) {
        this.requeridoAtributo = IdRequerido;
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Limpieza de filtros , busquedas , estados
   */
  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();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  /**
   * Metodo de recarga de pagina
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * Metodo que cambia el tamaño de pagina y actualiza la busqueda
   * @param {any} event Tamaño de pagina seleccionado
   */
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  /**
   * Metodo de busqueda del crud
   * @param {any} datos Parametros de busqueda
   */
  onSearch(datos) {
    const susc = this.atributoService.fetch(datos).subscribe(data => {
      this.atributos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Metodo de carga de filtros
   * @param {number} page Numero de paginas
   * @param {number} order Numero que indica ordenamiento
   * @param {string} sentido Sentido de ordenamiento
   */
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //busqueda
    //SP SINWEB-239
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.Nombre = this.buscarNombre;
    }
    //filtros
    datos.Dominio = this.dominioAtributo;
    datos.Requerido = this.requeridoAtributo;
    datos.IncluirEstados = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO;
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * Metodo que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos a guardar en cookies
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.ATRIBUTO_S_NOMBRE, !datos.Nombre ? this.sf.states.ATRIBUTO_S_NOMBRE.default : datos.Nombre);
    //filtros
    this.sf.changeState(this.sf.states.ATRIBUTO_F_DOMINIO, !datos.Dominio ? this.sf.states.ATRIBUTO_F_DOMINIO.default : datos.Dominio);
    this.sf.changeState(this.sf.states.ATRIBUTO_F_REQUERIDO, !datos.Requerido ? this.sf.states.ATRIBUTO_F_REQUERIDO.default : datos.Requerido);
    //listado
    this.sf.changeState(this.sf.states.ATRIBUTO_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.ATRIBUTO_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.ATRIBUTO_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.ATRIBUTO_L_SENTIDO, datos.SentidoOrden);
  }
  nuevo() {
    this.editar(undefined, false);
  }
  /**
   * Llama al modal de confirmacion para eliminar un atributo
   * @param {any} atributo Elemento a insertar/editar
   * @param {boolean} esEditar Indica si estamos editando o insertando
   */
  editar(atributo, esEditar) {
    const modalRef = this.modalService.open(src_app_pages_rma_atributos_atributos_edit_atributos_edit_component__WEBPACK_IMPORTED_MODULE_4__.AtributosEditComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.atributo = atributo;
    modalRef.componentInstance.dominioOptions = this.dominioOptions;
    modalRef.result.then(() => {
      this.loadPage();
      if (esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_EDICION, '', 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_INSERCION, '', 'success');
      }
    }, () => {});
  }
  /**
   * Llama al modal de confirmacion para eliminar un atributo
   * @param {number} idAtributo Id del elemento a eliminar
   * @param {string} nombre Nombre del elemento
   */
  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.eliminarAtributo(idAtributo);
      }
    });
  }
  /**
   * Llama a la api para eliminar un atributo
   * @param {number} idAtributo Id del elemento a eliminar
   */
  eliminarAtributo(idAtributo) {
    const sb = this.atributoService.eliminar(idAtributo).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * Metodo para activar acción
   * @param {any} event  Objeto con acción y registro de la tabla
   */
  acciones(event) {
    switch (event.accion) {
      case 'edit':
        this.editar(event.registro, true);
        break;
      case 'delete':
        this.eliminar(event.registro.Id, event.registro.Nombre);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * Metodo para cambio de pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  /**
   * Realiza llamada a la api y exporta a excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    //se arman las columnas y keys para buscar datos y armar el excel
    const columns = ['Nombre', 'Dominio', 'Requerido', 'Observación'];
    const keys = ['Nombre', 'Dominio', 'Requerido', 'Observacion'];
    this.alert.showLoadingAlert('Exportando Atributos', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //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
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(data.Data, columns, keys, 'Listado de Atributos');
      } else {
        this.exportacion.exportToPdf(data.Data, columns, keys, 'Listado de Atributos');
      }
    });
  }
  /**
   * Get de nombre
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * Limpieza de input de nombre
   */
  borrarNombre() {
    this.searchForm.get('nombre').reset('');
    this.page = 1;
    this.buscarNombre = '';
    this.loadPage();
  }
  buscarPorNombre() {
    this.page = 1;
    this.buscarNombre = this.getNombre();
    this.loadPage();
  }
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * Get de componente Requerido
   */
  getRequerido() {
    return this.filterForm.get('requerido').value;
  }
  /**
   * Metodo para  iniciar tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * Metodo para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de atributos
    fetch('./assets/tours/rma/atributos.json').then(response => response.json()).then(tourAtributo => {
      this.tourSteps = tourAtributo;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this.unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'atributo.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  static #_ = this.ɵfac = function AtributosComponent_Factory(t) {
    return new (t || AtributosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_14__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_5__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_8__.RMAAtributoService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({
    type: AtributosComponent,
    selectors: [["app-atributos"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.TourService])],
    decls: 53,
    vars: 28,
    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", "atributo.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"], ["data-cy", "new-atributo", "tourAnchor", "newAtributo.anchor.id", "class", "btn btn-primary", 3, "click", 4, "ngIf"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-block", "d-lg-none"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-xxl-4", "col-lg-6"], ["tourAnchor", "searchNombre.anchor.id", 1, "input-group"], ["data-cy", "nombre-atributo-search", "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"], ["title", "Atributos", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "edit", "delete", "acciones", "apiTable", "isLoading", "lazyLoad", "emitAction"], ["FILTRO", ""], [1, "d-none", "d-lg-block", "col-xxl-2", "col-lg-3"], ["tourAnchor", "filtroAtributo.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], ["data-cy", "new-atributo", "tourAnchor", "newAtributo.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"], ["data-cy", "dominio-atributo", "formControlName", "dominio", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "my-2"], ["data-cy", "requerido-atributo", "formControlName", "requerido", 1, "form-select"], [3, "value"]],
    template: function AtributosComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("visibleChange", function AtributosComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, AtributosComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, AtributosComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, " Atributos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_13_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](15, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](16, AtributosComponent_a_16_Template, 4, 0, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](17, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_17_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](18, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](19, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](20, "a", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_20_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](21, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](22, "div", 17)(23, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](24, "i", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](25, "ul", 20)(26, "li")(27, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_27_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](28, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](29, "li")(30, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_30_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](31, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](32, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](33, 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](34, "div", 23)(35, "div", 24)(36, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_36_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](37, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](38, "div", 26)(39, "a", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_39_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](40, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](41, "div", 28)(42, "div", 29)(43, "input", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("keyup.enter", function AtributosComponent_Template_input_keyup_enter_43_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](44, AtributosComponent_a_44_Template, 2, 0, "a", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](45, "a", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function AtributosComponent_Template_a_click_45_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](46, "i", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](47, "div", 34)(48, "app-table2", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵ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_11__["ɵɵpipe"](49, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](50, AtributosComponent_ng_template_50_Template, 18, 6, "ng-template", null, 36, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](52, "app-tour");
      }
      if (rf & 2) {
        const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](51);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-10 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.permisoInsAtributos);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](19, 24, 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_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵ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_11__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵ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_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.busquedaNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("columns", ctx.atributoHeader)("datos", ctx.atributos)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("edit", ctx.permisoModifAtributos)("delete", ctx.permisoElimAtributos)("acciones", ctx.permisoElimAtributos || ctx.permisoModifAtributos)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](49, 26, ctx.atributoService.isLoading$));
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_17__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_17__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_19__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_9__.TourComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_10__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_18__.AsyncPipe]
  });
}

/***/ }),

/***/ 496:
/*!*****************************************************************************!*\
  !*** ./src/app/pages/rma/defectos/defectos-edit/defectos-edit.component.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DefectosEditComponent: () => (/* binding */ DefectosEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/rma/defecto.service */ 27350);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);









function DefectosEditComponent_ng_container_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function DefectosEditComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Nuevo");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function DefectosEditComponent_ng_container_3_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("'", ctx_r5.defecto.Nombre, "'");
  }
}
function DefectosEditComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, DefectosEditComponent_ng_container_3_ng_container_1_Template, 2, 0, "ng-container", 3)(2, DefectosEditComponent_ng_container_3_ng_container_2_Template, 2, 0, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, " Defecto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, DefectosEditComponent_ng_container_3_ng_container_4_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.defecto.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r0.defecto.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.defecto.Id);
  }
}
function DefectosEditComponent_ng_container_5_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nombre correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function DefectosEditComponent_ng_container_5_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nombre del defecto requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function DefectosEditComponent_ng_container_5_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nombre del defecto no debe tener m\u00E1s de 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function DefectosEditComponent_ng_container_5_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Observaci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function DefectosEditComponent_ng_container_5_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function DefectosEditComponent_ng_container_5_ng_container_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "option", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const tipo_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpropertyInterpolate"]("value", tipo_r12.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](tipo_r12.Nombre);
  }
}
function DefectosEditComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "form", 7)(2, "div", 8)(3, "div", 9)(4, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, DefectosEditComponent_ng_container_5_div_7_Template, 2, 0, "div", 12)(8, DefectosEditComponent_ng_container_5_div_8_Template, 2, 0, "div", 13)(9, DefectosEditComponent_ng_container_5_div_9_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "div", 14)(11, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12, "Observaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "textarea", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](14, DefectosEditComponent_ng_container_5_div_14_Template, 2, 0, "div", 12)(15, DefectosEditComponent_ng_container_5_div_15_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "div", 14)(17, "label", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18, "Tipo de Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "select", 18)(20, "option", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21, "Seleccione el Tipo de Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](22, DefectosEditComponent_ng_container_5_ng_container_22_Template, 3, 2, "ng-container", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Nombre"))("is-valid", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Observacion"))("is-valid", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r1.tipoDefecto);
  }
}
function DefectosEditComponent_ng_container_9_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "i", 26);
  }
}
function DefectosEditComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function DefectosEditComponent_ng_container_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r14.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, DefectosEditComponent_ng_container_9_i_4_Template, 1, 0, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r2.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](2, 2, ctx_r2.defectoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](5, 4, ctx_r2.defectoService.isLoading$));
  }
}
/**
 * SP SINWEB-138 componente de insercion/edicion de defectos modulo rma
 */
class DefectosEditComponent {
  constructor(defectoService, fb, modal, vh) {
    this.defectoService = defectoService;
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.subscriptions = [];
    this.btnActivo = true;
  }
  ngOnInit() {
    if (!this.defecto) {
      this.defecto = {
        Id: undefined,
        Nombre: '',
        IdTipoDefecto: '',
        Observacion: ''
      };
    }
    this.loadForm();
  }
  /**
   * SP SINWEB-138 carga el formulario
   */
  loadForm() {
    if (this.defecto.Id) {
      this.defecto.IdTipoDefecto = this.defecto.TipoDefecto.Id;
    }
    this.formGroup = this.fb.group({
      Nombre: [this.defecto.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(100)])],
      IdTipoDefecto: [this.defecto.IdTipoDefecto, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required])],
      Observacion: [this.defecto.Observacion, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(200)])]
    });
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  /**
   * SP SINWEB-138 metodo que llama a editar o guardar
   */
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      return;
    }
    this.prepareDefecto();
    if (this.defecto.Id) {
      this.edit();
    } else {
      this.create();
    }
  }
  /**
   * SP SINWEB-138 llama a endpoint de la api y edita defecto
   */
  edit() {
    const sbUpdate = this.defectoService.editar(this.defecto, this.defecto.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbUpdate);
  }
  /**
   * SP SINWEB-138 llama a endpoint de la api y guarda defecto
   */
  create() {
    this.btnActivo = false;
    const sbCreate = this.defectoService.nuevo(this.defecto).subscribe(res => {
      this.btnActivo = true;
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbCreate);
  }
  /**
   * SP SINWEB-138 prepara el objeto a insertar modificar
   */
  prepareDefecto() {
    const formData = this.formGroup.value;
    this.defecto.Nombre = formData.Nombre;
    this.defecto.IdTipoDefecto = formData.IdTipoDefecto;
    this.defecto.Observacion = formData.Observacion;
  }
  static #_ = this.ɵfac = function DefectosEditComponent_Factory(t) {
    return new (t || DefectosEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_1__.DefectoService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: DefectosEditComponent,
    selectors: [["app-defectos-edit"]],
    inputs: {
      defecto: "defecto",
      tipoDefecto: "tipoDefecto"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 10,
    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"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], ["data-cy", "nombre-defecto", 1, "col-lg-12", "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-12", "p-2"], [1, "form-label"], ["name", "Descripcion", "name", "Observacion", "formControlName", "Observacion", 1, "form-control", "form-control-solid"], ["campoObligatorio", ""], ["placeholder", "buscar tipo de defecto", "name", "IdTipoDefecto", "formControlName", "IdTipoDefecto", 1, "form-control", "form-control-lg", "form-control-solid", "form-select"], ["value", "", "disabled", ""], [4, "ngFor", "ngForOf"], [1, "valid-feedback"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [3, "value"], ["data-cy", "save-defecto", "type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function DefectosEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, DefectosEditComponent_ng_container_3_Template, 5, 3, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, DefectosEditComponent_ng_container_5_Template, 23, 15, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function DefectosEditComponent_Template_button_click_7_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](9, DefectosEditComponent_ng_container_9_Template, 6, 6, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.defecto);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.tipoDefecto);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.defecto);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_2__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_6__.AsyncPipe]
  });
}

/***/ }),

/***/ 30096:
/*!**********************************************************!*\
  !*** ./src/app/pages/rma/defectos/defectos.component.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DefectosComponent: () => (/* binding */ DefectosComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _defectos_edit_defectos_edit_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defectos-edit/defectos-edit.component */ 496);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 65879);
/* 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_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 _core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services//rma/defecto.service */ 27350);
/* harmony import */ var src_app_core_services_rma_tipo_defecto_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/rma/tipo-defecto.service */ 27233);
/* 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_9__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);
























function DefectosComponent_ng_template_3_Template(rf, ctx) {}
function DefectosComponent_div_4_ng_template_3_Template(rf, ctx) {}
function DefectosComponent_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, DefectosComponent_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 DefectosComponent_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 DefectosComponent_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 defecto");
    _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 DefectosComponent_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 DefectosComponent_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"]();
  }
}
const _c0 = () => [0];
function DefectosComponent_ng_template_50_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _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, "Tipo defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "select-loading", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("valueSelect", function DefectosComponent_ng_template_50_Template_select_loading_valueSelect_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r11.filterForm.controls.tipoDefecto.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](7, "async");
    _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"](10, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Todos")("items", ctx_r4.tipoDefecto)("valueSelected", ctx_r4.filterForm.controls.tipoDefecto.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](7, 8, ctx_r4.tipoDefectoService.isLoading$));
  }
}
const MSJ_EXITO_INSERCION = 'Se insertó correctamente un defecto.';
const MSJ_EXITO_EDICION = 'Se modificó correctamente el defecto seleccionado.';
const MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente el defecto  seleccionado.';
/**
 * Componente de listado/vista de defectos
 */
class DefectosComponent {
  constructor(fb, toast, modalService, alert, exportacion, sf, authService, tourService, defectoService, tipoDefectoService) {
    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.defectoService = defectoService;
    this.tipoDefectoService = tipoDefectoService;
    this.defectos = [];
    this.total = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.unsubscribe = [];
    this.tipoDefectoSelect = -1;
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    //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;
    //permisos
    this.permisoInsDefectos = false;
    this.permisoModifDefectos = false;
    this.permisoElimDefectos = false;
    this.defectosHeader = [{
      Nombre: 'Nombre',
      Order: 2,
      Key: 'Nombre',
      WCol: '20%'
    }, {
      Nombre: 'Tipo defecto',
      Order: 4,
      Key: 'TipoDefecto.Nombre',
      WCol: '20%'
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '50%'
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(100)]
    });
    this.filterForm = this.fb.group({
      tipoDefecto: [-1]
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    this.permisoInsDefectos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_INS_DEFECTOS);
    this.permisoModifDefectos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_DEFECTOS);
    this.permisoElimDefectos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_ELIM_DEFECTOS);
    this.cargarTipoDefecto();
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesRMA.DEF_STATES;
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.DEF_S_NOMBRE));
    //SP SINWEB-239
    this.buscarNombre = this.sf.getState(this.sf.states.DEF_S_NOMBRE);
    //filtros
    this.tipoDefectoSelect = this.sf.getState(this.sf.states.DEF_F_TIPO_DEF);
    //listado
    this.page = Number(this.sf.getState(this.sf.states.DEF_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.DEF_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.DEF_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.DEF_L_SENTIDO);
  }
  /**
   * Metodo observable de cambio de filtro (OPCIONAL)
   */
  configuracionFilter() {
    this.unsubscribe.push(this.filterForm.controls.tipoDefecto.valueChanges.subscribe(IdTipoDefecto => {
      if (this.filtro || this.filtroMobile) {
        this.tipoDefectoSelect = IdTipoDefecto;
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Limpieza de filtros , busquedas , estados
   */
  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;
    //SP SINWEB-239
    this.buscarNombre = '';
    this.cargarTipoDefecto();
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  /**
   * Metodo que carga un filtro con datos de la api (OPCIONAL)
   */
  cargarTipoDefecto() {
    this.tipoDefecto = [];
    let datos = {
      PageNumber: -1,
      Orden: 2
    };
    const susc = this.tipoDefectoService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(resp => {
      this.tipoDefecto = resp.Data;
      //Si tiene estado guardado se setea el valor en el formulario
      //SP SINWEB-204 se agrega emit event false para que al limpiar filtros no dispare llamadas extras
      this.filterForm.controls.tipoDefecto.setValue(this.sf.getState(this.sf.states.DEF_F_TIPO_DEF), {
        emitEvent: false
      });
    });
    susc.unsubscribe;
  }
  /**
   * Metodo de recarga de pagina
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * Metodo que cambia el tamaño de pagina y actualiza la busqueda
   * @param {any} event Tamaño de pagina seleccionado
   */
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  /**
   * Metodo de busqueda de defectos
   * @param {any} datos Parametros de busqueda
   */
  onSearch(datos) {
    const susc = this.defectoService.fetch(datos).subscribe(data => {
      this.defectos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Metodo de carga de filtros
   * @param {number} page Numero de paginas
   * @param {number} order Numero que indica ordenamiento
   * @param {string} sentido Sentido de ordenamiento
   */
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //busqueda
    //SP SINWEB-239
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.NombreDefecto = this.buscarNombre;
    }
    //filtros
    if (this.tipoDefectoSelect >= 0) {
      datos.IdTipoDefecto = this.tipoDefectoSelect;
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * Metodo que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos a guardar en cookies
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.DEF_S_NOMBRE, !datos.NombreDefecto ? this.sf.states.DEF_S_NOMBRE.default : datos.NombreDefecto);
    //filtros
    this.sf.changeState(this.sf.states.DEF_F_TIPO_DEF, !datos.IdTipoDefecto ? this.sf.states.DEF_F_TIPO_DEF.default : datos.IdTipoDefecto);
    //listado
    this.sf.changeState(this.sf.states.DEF_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.DEF_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.DEF_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.DEF_L_SENTIDO, datos.SentidoOrden);
  }
  nuevo() {
    this.editar(undefined, false);
  }
  /**
   * Llama al modal de confirmacion para eliminar un defecto
   * @param {any} defecto Elemento a insertar/editar
   * @param {boolean} esEditar Indica si estamos editando o insertando
   */
  editar(defecto, esEditar) {
    const modalRef = this.modalService.open(_defectos_edit_defectos_edit_component__WEBPACK_IMPORTED_MODULE_3__.DefectosEditComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.defecto = defecto;
    modalRef.componentInstance.tipoDefecto = this.tipoDefecto;
    modalRef.result.then(() => {
      this.loadPage();
      if (esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_EDICION, '', 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_INSERCION, '', 'success');
      }
    }, () => {});
  }
  /**
   * Llama al modal de confirmacion para eliminar un Defecto
   * @param {number} idDefecto Id del elemento a eliminar
   * @param {string} nombre Nombre del elemento
   */
  eliminar(idDefecto, nombre) {
    this.alert.showReturnAlert('Eliminación de defecto.', "¿Está seguro de eliminar el defecto: '" + nombre + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarDefecto(idDefecto);
      }
    });
  }
  /**
   * Llama a la api para eliminar defecto
   * @param {number} idDefecto Id del elemento a eliminar
   */
  eliminarDefecto(idDefecto) {
    const sb = this.defectoService.eliminar(idDefecto).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * Metodo para activar acción
   * @param {any} event  Objeto con acción y registro de la tabla
   */
  acciones(event) {
    switch (event.accion) {
      case 'edit':
        this.editar(event.registro, true);
        break;
      case 'delete':
        this.eliminar(event.registro.Id, event.registro.Nombre);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * Metodo para cambio de pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  /**
   * Realiza llamada a la api y exporta a excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    //se arman las columnas y keys para buscar datos y armar el excel
    const columns = ['Nombre', 'Tipo de defecto', 'Observación'];
    const keys = ['Nombre', 'TipoDefecto.Nombre', 'Observacion'];
    this.alert.showLoadingAlert('Exportando Defectos', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //llamada al recurso correspondiente de la api
    this.defectoService.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Defectos Exportados', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(data.Data, columns, keys, 'Listado de Defectos');
      } else {
        this.exportacion.exportToPdf(data.Data, columns, keys, 'Listado de Defectos');
      }
    });
  }
  /**
   * Get de nombre
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * Limpieza de input de nombre
   */
  borrarNombre() {
    this.searchForm.get('nombre').reset('');
    this.page = 1;
    this.buscarNombre = '';
    this.loadPage();
  }
  buscarPorNombre() {
    this.page = 1;
    this.buscarNombre = this.getNombre();
    this.loadPage();
  }
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * Metodo para  iniciar tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * Metodo para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de defectos
    fetch('./assets/tours/rma/defectos.json').then(response => response.json()).then(tourDefectos => {
      this.tourSteps = tourDefectos;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this.unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'defectos.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  static #_ = this.ɵfac = function DefectosComponent_Factory(t) {
    return new (t || DefectosComponent)(_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_2__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_4__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_5__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_7__.DefectoService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_rma_tipo_defecto_service__WEBPACK_IMPORTED_MODULE_8__.TipoDefectoService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
    type: DefectosComponent,
    selectors: [["app-defectos"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_17__.TourService])],
    decls: 53,
    vars: 28,
    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", "defectos.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"], ["data-cy", "new-defecto", "tourAnchor", "newDefectos.anchor.id", "class", "btn btn-primary", 3, "click", 4, "ngIf"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-block", "d-lg-none"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-xxl-4", "col-lg-6"], ["tourAnchor", "searchNombre.anchor.id", 1, "input-group"], ["data-cy", "nombre-defecto-search", "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"], ["title", "Defectos", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "edit", "delete", "acciones", "apiTable", "isLoading", "lazyLoad", "emitAction"], ["FILTRO", ""], [1, "d-none", "d-lg-block", "col-xxl-2", "col-lg-3"], ["tourAnchor", "filtroDefectos.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], ["data-cy", "new-defecto", "tourAnchor", "newDefectos.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"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"]],
    template: function DefectosComponent_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 DefectosComponent_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, DefectosComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, DefectosComponent_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, " Defectos ");
        _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 DefectosComponent_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, DefectosComponent_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 DefectosComponent_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 DefectosComponent_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 DefectosComponent_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 DefectosComponent_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 DefectosComponent_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 DefectosComponent_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 DefectosComponent_Template_input_keyup_enter_43_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](44, DefectosComponent_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 DefectosComponent_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 DefectosComponent_Template_app_table2_lazyLoad_48_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function DefectosComponent_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, DefectosComponent_ng_template_50_Template, 8, 11, "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-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.permisoInsDefectos);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](19, 24, ctx.defectoService.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.defectosHeader)("datos", ctx.defectos)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("edit", ctx.permisoModifDefectos)("delete", ctx.permisoElimDefectos)("acciones", ctx.permisoElimDefectos || ctx.permisoModifDefectos)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](49, 26, ctx.defectoService.isLoading$));
      }
    },
    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__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_19__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.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_9__.TourComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_10__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_11__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_19__.AsyncPipe]
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InicioRmaComponent: () => (/* binding */ InicioRmaComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common/locales/es */ 46828);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ng-apexcharts */ 86903);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! simplebar-angular */ 63744);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/ui/input-date-time/input-date-time.component */ 75871);















const _c0 = ["chart"];
function InicioRmaComponent_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 71)(1, "div")(2, "p", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, "Total reclamos");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "h5", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx_r0.indicadoresGral.CantidadTotalReclamos, " ");
  }
}
function InicioRmaComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 71)(1, "div")(2, "p", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, " Reclamos cerrados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "h5", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5);
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx_r1.indicadoresGral.porcReclamosCerrados, " % ");
  }
}
function InicioRmaComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 71)(1, "div")(2, "p", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, " Prom. d\u00EDas inicio/cierre ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](4, "h5", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](6, "number");
    _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"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind3"](6, 1, ctx_r2.indicadoresGral.PromedioDiasEntreIngresoYEntregaCliente, "1.0-0", "es"), " ");
  }
}
function InicioRmaComponent_div_30_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 73)(1, "div", 23)(2, "div", 74)(3, "div", 3)(4, "div", 75)(5, "div", 76)(6, "h5", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](7, "Indicadores por fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "span", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 79)(11, "app-input-date-time", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("valorEmit", function InicioRmaComponent_div_30_Template_app_input_date_time_valorEmit_11_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.setFechaHoraDesde($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](12, "app-input-date-time", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("valorEmit", function InicioRmaComponent_div_30_Template_app_input_date_time_valorEmit_12_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r10.setFechaHoraHasta($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "button", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function InicioRmaComponent_div_30_Template_button_click_13_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r11.loadIndicadores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](14, "i", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "button", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function InicioRmaComponent_div_30_Template_button_click_15_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r9);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r12.cleanFechas());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](16, "i", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("Desde el ", ctx_r3.fechaHoraDesdeFiltrada, " hasta el ", ctx_r3.fechaHoraHastaFiltrada, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx_r3.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("valor", ctx_r3.getFechaHoraDesde());
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("valor", ctx_r3.getFechaHoraHasta());
  }
}
function InicioRmaComponent_div_43_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "apx-chart", 86);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("series", ctx_r4.chartPieConfigs.series)("chart", ctx_r4.chartPieConfigs.chart)("labels", ctx_r4.chartPieConfigs.labels)("colors", ctx_r4.chartPieConfigs.colors)("responsive", ctx_r4.chartPieConfigs.responsive)("legend", ctx_r4.chartPieConfigs.legend);
  }
}
function InicioRmaComponent_ng_template_149_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "tr")(2, "td", 91)(3, "h5", 92)(4, "a", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "td", 94)(7, "div")(8, "ul", 95)(9, "li", 96)(10, "span", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const prov_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("(", prov_r14.Proveedor.Codigo, ") ", prov_r14.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", prov_r14.CantidadReclamos, " ");
  }
}
function InicioRmaComponent_ng_template_149_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "ngx-simplebar", 87)(1, "div", 88)(2, "table", 89)(3, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, InicioRmaComponent_ng_template_149_ng_container_4_Template, 12, 3, "ng-container", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r6.indicadoresPart.ReclamosPorProveedor);
  }
}
function InicioRmaComponent_ng_template_153_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "tr")(2, "td", 91)(3, "h5", 92)(4, "a", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "td", 94)(7, "div")(8, "ul", 95)(9, "li", 96)(10, "span", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const cli_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"]("(", cli_r16.Cliente.Codigo, ") ", cli_r16.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", cli_r16.CantidadReclamos, " ");
  }
}
function InicioRmaComponent_ng_template_153_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "ngx-simplebar", 87)(1, "div", 88)(2, "table", 89)(3, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, InicioRmaComponent_ng_template_153_ng_container_4_Template, 12, 3, "ng-container", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx_r7.indicadoresPart.ReclamosPorCliente);
  }
}
const _c1 = a0 => ({
  "shadow-lg": a0
});
const _c2 = () => ["/rma/seguimiento"];
const _c3 = () => ["/rma/defectos"];
class InicioRmaComponent {
  constructor(authService, reclamoService, fb) {
    this.authService = authService;
    this.reclamoService = reclamoService;
    this.fb = fb;
    this.standalone = true;
    this.subscriptions = []; // almacena las subscripciones
    this.indicadoresGral = {};
    this.indicadoresPart = {};
    this.reclamosAbiertos = 0;
    this.reclamosCerrados = 0;
    this.useLargeShadow = false;
    //filtros
    this.searchForm = this.fb.group({
      // SP SINWEB-614 - cambio a campos fechaHora
      fechaHoraDesde: [''],
      fechaHoraHasta: ['']
      // SP SINWEB-614 fin
    });
    //permisos
    this.permisosRMA = {
      VerIndicadores: false
    };
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_7__.registerLocaleData)(_angular_common_locales_es__WEBPACK_IMPORTED_MODULE_8__["default"]); //permite dar formatos a numeros
    this.cargarPermisos();
    if (this.permisosRMA.VerIndicadores) {
      this.cargarIndicadores('01/01/2000 00:00', '01/01/3000 00:00', true);
      this.inicializarSearchForm();
    }
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_1__.THEME_DARK;
    this.useLargeShadow = this.darkMode && window.location.href.includes('/estadistica/inicio');
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisosRMA = {
      VerIndicadores: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_0__.PERMISO_INDICADORES_RECLAMO)
    };
  }
  cargarIndicadores(fechaRecepciondesde, fechaRecepcionHasta, general) {
    let datos = {};
    //SP SINWEB-614 condicional que controla si hay fechas para filtrar
    if (fechaRecepciondesde) {
      datos.FechaHoraRecepcionDesde = fechaRecepciondesde;
    }
    if (fechaRecepcionHasta) {
      datos.FechaHoraRecepcionHasta = fechaRecepcionHasta;
    }
    //orden
    datos.Orden = 3;
    const susc1 = this.reclamoService.getIndicadores(datos).subscribe(data => {
      data.Data.porcReclamosCerrados = Math.ceil(data.Data.CantCerrados * 100 / data.Data.CantidadTotalReclamos);
      if (general) {
        this.indicadoresGral = data.Data;
      } else {
        this.indicadoresPart = data.Data;
        this.cargarGraficoTorta();
      }
      this.fechaHoraDesdeFiltrada = datos.FechaHoraRecepcionDesde ? datos.FechaHoraRecepcionDesde : 'inicio';
      this.fechaHoraHastaFiltrada = datos.FechaHoraRecepcionHasta ? datos.FechaHoraRecepcionHasta : 'fin';
    });
    this.subscriptions.push(susc1);
  }
  inicializarSearchForm() {
    //SP SINWEB-614 - Se agrega la hora actual en los campos de hora
    this.searchForm = this.fb.group({
      fechaHoraDesde: [(0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.format)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.addYear)(new Date(), -1), 'DD/MM/YYYY HH:mm')],
      fechaHoraHasta: [(0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.format)(new Date(), 'DD/MM/YYYY HH:mm')]
    });
    this.loadIndicadores();
  }
  loadIndicadores() {
    //SP SINWEB-614 - Se obtienen las fechas y horas para filtrar
    let fechaHoraDesde = this.searchForm.get('fechaHoraDesde').value;
    let fechaHoraHasta = this.searchForm.get('fechaHoraHasta').value;
    this.cargarIndicadores(fechaHoraDesde, fechaHoraHasta, false);
  }
  cargarGraficoTorta() {
    this.reclamosAbiertos = this.indicadoresPart.CantidadTotalReclamos - this.indicadoresPart.CantCerrados;
    this.reclamosCerrados = this.indicadoresPart.CantCerrados;
    this.chartPieConfigs = {
      chart: {
        height: 250,
        type: 'donut'
      },
      series: [this.reclamosAbiertos, this.reclamosCerrados],
      labels: ['Abiertas', 'Cerradas'],
      colors: ['#1abc9c', '#f1556c'],
      // colors: ['#34C38F', '#FF0000'],
      legend: {
        show: true,
        position: 'right',
        horizontalAlign: 'center',
        verticalAlign: 'middle',
        floating: false,
        fontSize: '14px',
        offsetX: 0,
        offsetY: 100
      },
      responsive: [{
        breakpoint: 600,
        options: {
          chart: {
            height: 260
          },
          legend: {
            // show: false
            position: 'bottom',
            offsetY: 0
          }
        }
      }]
    };
  }
  /* Funcion que realiza el calculo del progreso de la operacion segun dos parametros de cantidad: realizada y solicitada */
  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%'
      };
    }
  }
  /**
   * SP SINWEB-614 - Limpia filtros y busca
   */
  cleanFechas() {
    this.searchForm.controls.fechaHoraDesde.setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.format)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.addYear)(new Date(), -1), 'DD/MM/YYYY HH:mm'));
    this.searchForm.controls.fechaHoraHasta.setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.format)(new Date(), 'DD/MM/YYYY HH:mm'));
    this.loadIndicadores();
  }
  getFechaHoraDesde() {
    return this.searchForm.get('fechaHoraDesde').value;
  }
  setFechaHoraDesde($event) {
    this.searchForm.get('fechaHoraDesde').setValue($event);
  }
  getFechaHoraHasta() {
    return this.searchForm.get('fechaHoraHasta').value;
  }
  setFechaHoraHasta($event) {
    this.searchForm.get('fechaHoraHasta').setValue($event);
  }
  static #_ = this.ɵfac = function InicioRmaComponent_Factory(t) {
    return new (t || InicioRmaComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_4__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormBuilder));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: InicioRmaComponent,
    selectors: [["app-inicio-rma"]],
    viewQuery: function InicioRmaComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵloadQuery"]()) && (ctx.chart = _t.first);
      }
    },
    inputs: {
      standalone: "standalone"
    },
    decls: 209,
    vars: 76,
    consts: [[1, "row"], [1, "col-lg-12"], [1, "card", 3, "ngClass"], [1, "card-body"], [1, "row", "justify-content-between"], [1, "col-lg-4"], [1, "media", "text-md-start", "text-center"], [1, "text-center", "text-md-start", "me-md-3"], [1, "mdi", "mdi-certificate-outline", "text-primary", 2, "font-size", "2.25rem"], [1, "media-body", "align-self-center"], [1, "text-muted"], [1, "my-2"], [1, "col-lg-5", "align-self-center"], [1, "text-center", "mt-4", "mt-lg-0"], ["class", "col-12 col-md-4", 4, "ngIf"], [1, "col-lg-3", "d-none", "d-lg-block"], [1, "clearfix", "mt-4", "mt-lg-0"], ["ngbDropdown", "", 1, "dropdown", "float-end"], ["type", "button", "data-toggle", "dropdown", "aria-haspopup", "true", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-primary", "dropdown-toggle"], [1, "bx", "bxs-share", "align-middle", "mr-1"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], ["href", "javascript: void(0);", 1, "dropdown-item", 3, "routerLink"], ["class", "row pt-1", 4, "ngIf"], [1, "col-xl-12"], [1, "card", "mb-1", 3, "ngClass"], [1, "card-title"], [1, "row", "g-1"], [1, "col-xl-4"], [1, "card", "mb-0", 2, "min-height", "550px", 3, "ngClass"], [1, "text-muted", "mb-4"], ["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-3"], [1, "bg-success", "bg-soft", "px-2", "rounded-3", "shadow-sm"], [1, "mdi", "mdi-package-variant", "mdi-36px", 2, "color", "#1abc9c"], [1, "mb-2"], [1, "m-0", "p-0"], [1, "bg-danger", "bg-soft", "px-2", "rounded-3", "shadow-sm"], [1, "mdi", "mdi-package-variant-closed", "mdi-36px", 2, "color", "#f1556c"], [1, "text-center"], [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%"], [1, "mb-0"], [2, "width", "25%"], [1, "progress", "bg-transparent", "progress-sm"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(indicadoresPart.CantIniciados, indicadoresPart.CantidadTotalReclamos,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(indicadoresPart.CantADictaminarPrv, indicadoresPart.CantidadTotalReclamos,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(indicadoresPart.CantConResolucionPrv, indicadoresPart.CantidadTotalReclamos,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(indicadoresPart.CantConResolucionCli, indicadoresPart.CantidadTotalReclamos,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(indicadoresPart.CantCerrados, indicadoresPart.CantidadTotalReclamos,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["role", "progressbar", "aria-valuenow", "calcularProgreso(indicadoresPart.CantAnulados, indicadoresPart.CantidadTotalReclamos,'numero')", "aria-valuemin", "0", "aria-valuemax", "100", 1, "progress-bar", "bg-warning", "rounded"], ["ngbNav", "", 1, "nav-pills", "bg-light", "rounded", 3, "activeId"], ["nav1", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "mt-4", 3, "ngbNavOutlet"], [1, "card", "mb-0", 3, "ngClass"], [1, "d-flex", "align-items-center", "mb-3"], [1, "avatar-xs", "me-3"], [1, "avatar-title", "rounded-circle", "bg-primary", "bg-soft", "text-primary", "font-size-18"], [1, "bx", "bx-copy-alt"], [1, "font-size-14", "mb-0"], [1, "text-muted", "mt-3"], [1, "d-flex"], [1, "badge", "badge-soft-success", "font-size-12"], [1, "ms-2", "text-truncate"], [1, "col-12", "col-md-4"], [1, "text-muted", "text-truncate", "mb-2"], [1, "row", "pt-1"], [1, "card"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], [1, "flex-grow-1"], [1, "mb-0", "card-title", "flex-grow-1"], [1, "text-muted", "font-size-10"], [1, "flex-shrink-0", "d-flex", "gap-1", 3, "formGroup"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"], [1, "btn", "btn-primary", 3, "click"], [1, "mdi", "mdi-refresh"], [1, "btn", "btn-danger", 3, "click"], [1, "mdi", "mdi-trash-can-outline"], [1, "mt-2", "mb-4"], ["dir", "ltr", 1, "apex-charts", 3, "series", "chart", "labels", "colors", "responsive", "legend"], [2, "height", "360px"], [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"], [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 InicioRmaComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6)(7, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](8, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "div", 9)(10, "div", 10)(11, "h5", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](12, "M\u00F3dulo RMA");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "div", 12)(14, "div", 13)(15, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](16, InicioRmaComponent_div_16_Template, 6, 1, "div", 14)(17, InicioRmaComponent_div_17_Template, 6, 1, "div", 14)(18, InicioRmaComponent_div_18_Template, 7, 5, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](19, "div", 15)(20, "div", 16)(21, "div", 17)(22, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](23, "i", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](24, " Accesos directos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](25, "div", 20)(26, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](27, " Seguimiento ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](28, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](29, " Defectos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](30, InicioRmaComponent_div_30_Template, 17, 5, "div", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](31, "div", 0)(32, "div", 23)(33, "div", 24)(34, "div", 3)(35, "h4", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](36, "Reclamos");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](37, "div", 26)(38, "div", 27)(39, "div", 28)(40, "div", 3)(41, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](42, "Abiertos vs. Cerrados");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](43, InicioRmaComponent_div_43_Template, 2, 6, "div", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](44, "div", 31)(45, "div", 0)(46, "div", 32)(47, "div", 33)(48, "div", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](49, "i", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](50, "div")(51, "p", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](52, "Abiertos");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](53, "h3", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](54);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](55, "div", 32)(56, "div", 33)(57, "div", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](58, "i", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](59, "div")(60, "p", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](61, "Cerrados");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](62, "h3", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](63);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](64, "div", 27)(65, "div", 28)(66, "div", 3)(67, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](68, "Estados");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](69, "div", 40)(70, "div", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](71, "i", 42);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](72, "h3");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](73);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](74, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](75, "Total de reclamos");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](76, "div", 43)(77, "table", 44)(78, "tbody")(79, "tr")(80, "td", 45)(81, "p", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](82, "Iniciados");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](83, "td", 47)(84, "h5", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](85);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](86, "td")(87, "div", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](88, "div", 49);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](89, "tr")(90, "td", 45)(91, "p", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](92, "A dictaminar");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](93, "td", 47)(94, "h5", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](95);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](96, "td")(97, "div", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](98, "div", 50);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](99, "tr")(100, "td", 45)(101, "p", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](102, "Res. proveedor");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](103, "td", 47)(104, "h5", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](105);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](106, "td")(107, "div", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](108, "div", 51);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](109, "tr")(110, "td", 45)(111, "p", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](112, "Res. cliente");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](113, "td", 47)(114, "h5", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](115);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](116, "td")(117, "div", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](118, "div", 52);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](119, "tr")(120, "td", 45)(121, "p", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](122, "Cerrados");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](123, "td", 47)(124, "h5", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](125);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](126, "td")(127, "div", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](128, "div", 53);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](129, "tr")(130, "td", 45)(131, "p", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](132, "Anulados");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](133, "td", 47)(134, "h5", 46);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](135);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](136, "td")(137, "div", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](138, "div", 54);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](139, "div", 27)(140, "div", 28)(141, "div", 3)(142, "h5", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](143, "Mayor cantidad de reclamos");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](144, "ul", 55, 56)(146, "li", 57)(147, "a", 58);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](148, "Proveedores");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](149, InicioRmaComponent_ng_template_149_Template, 5, 1, "ng-template", 59);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](150, "li", 57)(151, "a", 58);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](152, "Clientes");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](153, InicioRmaComponent_ng_template_153_Template, 5, 1, "ng-template", 59);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](154, "div", 60);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](155, "div", 27)(156, "div", 61)(157, "div", 3)(158, "div", 62)(159, "div", 63)(160, "span", 64);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](161, "i", 65);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](162, "h5", 66);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](163, " Promedio d\u00EDas entre ingreso y resoluci\u00F3n proveedor ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](164, "div", 67)(165, "h4");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](166);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](167, "number");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](168, "div", 68)(169, "span", 69);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](170);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](171, "span", 70);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](172, "cantidad de d\u00EDas totales");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](173, "div", 27)(174, "div", 61)(175, "div", 3)(176, "div", 62)(177, "div", 63)(178, "span", 64);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](179, "i", 65);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](180, "h5", 66);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](181, " Promedio d\u00EDas entre ingreso y notificaci\u00F3n cliente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](182, "div", 67)(183, "h4");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](184);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](185, "number");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](186, "div", 68)(187, "span", 69);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](188);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](189, "span", 70);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](190, "cantidad de d\u00EDas totales");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](191, "div", 27)(192, "div", 2)(193, "div", 3)(194, "div", 62)(195, "div", 63)(196, "span", 64);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](197, "i", 65);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](198, "h5", 66);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](199, " Promedio d\u00EDas entre ingreso y entrega ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](200, "div", 67)(201, "h4");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](202);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](203, "number");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](204, "div", 68)(205, "span", 69);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](206);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](207, "span", 70);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](208, "cantidad de d\u00EDas totales");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()()()()();
      }
      if (rf & 2) {
        const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵreference"](145);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](58, _c1, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.permisosRMA.VerIndicadores);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.permisosRMA.VerIndicadores);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.permisosRMA.VerIndicadores);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](60, _c2));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](61, _c3));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.permisosRMA.VerIndicadores);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](62, _c1, ctx.useLargeShadow));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](64, _c1, ctx.darkMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.chartPieConfigs !== undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx.reclamosAbiertos);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx.reclamosCerrados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](66, _c1, ctx.darkMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx.indicadoresPart.CantidadTotalReclamos);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx.indicadoresPart.CantIniciados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](ctx.calcularProgreso(ctx.indicadoresPart.CantIniciados, ctx.indicadoresPart.CantidadTotalReclamos, "porcentaje"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.indicadoresPart.CantADictaminarPrv, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](ctx.calcularProgreso(ctx.indicadoresPart.CantADictaminarPrv, ctx.indicadoresPart.CantidadTotalReclamos, "porcentaje"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.indicadoresPart.CantConResolucionPrv, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](ctx.calcularProgreso(ctx.indicadoresPart.CantConResolucionPrv, ctx.indicadoresPart.CantidadTotalReclamos, "porcentaje"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.indicadoresPart.CantConResolucionCli, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](ctx.calcularProgreso(ctx.indicadoresPart.CantConResolucionCli, ctx.indicadoresPart.CantidadTotalReclamos, "porcentaje"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx.indicadoresPart.CantCerrados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](ctx.calcularProgreso(ctx.indicadoresPart.CantCerrados, ctx.indicadoresPart.CantidadTotalReclamos, "porcentaje"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx.indicadoresPart.CantAnulados);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵstyleMap"](ctx.calcularProgreso(ctx.indicadoresPart.CantAnulados, ctx.indicadoresPart.CantidadTotalReclamos, "porcentaje"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](68, _c1, ctx.darkMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("activeId", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngbNavItem", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngbNavItem", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngbNavOutlet", _r5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](70, _c1, ctx.darkMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind3"](167, 46, ctx.indicadoresPart.PromedioDiasEntreIngresoYResolucionProveedor, "1.0-0", "es"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.indicadoresPart.DiasEntreIngrYResPrv, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](72, _c1, ctx.darkMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind3"](185, 50, ctx.indicadoresPart.PromedioDiasEntreIngresoYNotificacionCliente, "1.0-0", "es"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.indicadoresPart.DiasEntreIngrYNotifCli, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](74, _c1, ctx.darkMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind3"](203, 54, ctx.indicadoresPart.PromedioDiasEntreIngresoYEntregaCliente, "1.0-0", "es"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", ctx.indicadoresPart.DiasEntreIngrYEntregaCli, " ");
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_10__.RouterLink, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdownMenu, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbNavOutlet, ng_apexcharts__WEBPACK_IMPORTED_MODULE_12__.ChartComponent, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, simplebar_angular__WEBPACK_IMPORTED_MODULE_13__.SimplebarAngularComponent, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_5__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_7__.DecimalPipe]
  });
}

/***/ }),

/***/ 45059:
/*!*********************************************************************************!*\
  !*** ./src/app/pages/rma/resolucion/resolucion-new/resolucion-new.component.ts ***!
  \*********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ResolucionNewComponent: () => (/* binding */ ResolucionNewComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/rma/resolucion.service */ 63682);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 96814);








function ResolucionNewComponent_ng_container_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
}
function ResolucionNewComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Nueva");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
}
function ResolucionNewComponent_ng_container_3_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("'", ctx_r5.resolucion.Nombre, "'");
  }
}
function ResolucionNewComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ResolucionNewComponent_ng_container_3_ng_container_1_Template, 2, 0, "ng-container", 3)(2, ResolucionNewComponent_ng_container_3_ng_container_2_Template, 2, 0, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Resoluci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ResolucionNewComponent_ng_container_3_ng_container_4_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.resolucion.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r0.resolucion.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.resolucion.Id);
  }
}
function ResolucionNewComponent_ng_container_5_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Nombre correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ResolucionNewComponent_ng_container_5_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Nombre de la resoluci\u00F3n requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ResolucionNewComponent_ng_container_5_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Nombre de la resoluci\u00F3n no debe tener m\u00E1s de 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ResolucionNewComponent_ng_container_5_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Observaci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ResolucionNewComponent_ng_container_5_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function ResolucionNewComponent_ng_container_5_option_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", item_r12.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r12.nombre, " ");
  }
}
function ResolucionNewComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 7)(2, "div", 8)(3, "div", 9)(4, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "input", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, ResolucionNewComponent_ng_container_5_div_7_Template, 2, 0, "div", 12)(8, ResolucionNewComponent_ng_container_5_div_8_Template, 2, 0, "div", 13)(9, ResolucionNewComponent_ng_container_5_div_9_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 14)(11, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Observaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "textarea", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, ResolucionNewComponent_ng_container_5_div_14_Template, 2, 0, "div", 12)(15, ResolucionNewComponent_ng_container_5_div_15_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 14)(17, "label");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "select", 16)(20, "option", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Seleccione el estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, ResolucionNewComponent_ng_container_5_option_22_Template, 2, 2, "option", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Nombre"))("is-valid", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "Campo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Campo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Observacion"))("is-valid", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r1.estadoOptions);
  }
}
function ResolucionNewComponent_ng_container_9_i_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "i", 24);
  }
}
function ResolucionNewComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "button", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ResolucionNewComponent_ng_container_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r14.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ResolucionNewComponent_ng_container_9_i_4_Template, 1, 0, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r2.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, ctx_r2.resolucionService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](5, 4, ctx_r2.resolucionService.isLoading$));
  }
}
/**
 * SP SINWEB-140 componente de insercion/edicion de resoluciones modulo rma
 */
class ResolucionNewComponent {
  constructor(resolucionService, fb, modal, vh) {
    this.resolucionService = resolucionService;
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.subscriptions = [];
    this.btnActivo = true;
  }
  ngOnInit() {
    if (!this.resolucion) {
      this.resolucion = {
        Id: undefined,
        Nombre: '',
        Estado: '',
        Observacion: ''
      };
    }
    this.loadForm();
  }
  /**
   * SP SINWEB-140 carga el formulario
   */
  loadForm() {
    this.formGroup = this.fb.group({
      Nombre: [this.resolucion.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.maxLength(100)])],
      Estado: [this.resolucion.Id ? this.resolucion.EstadoResolucion : '', _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.required])],
      Observacion: [this.resolucion.Observacion, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__.Validators.maxLength(200)])]
    });
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  /**
   * SP SINWEB-140 metodo que llama a editar o guardar
   */
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      return;
    }
    this.prepararResolucion();
    if (this.resolucion.Id) {
      this.edit();
    } else {
      this.create();
    }
  }
  /**
   * {siglas} SINWEB- llama a endpoint de la api y edita la resolucion
   */
  edit() {
    const sbUpdate = this.resolucionService.editar(this.resolucion, this.resolucion.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbUpdate);
  }
  /**
   * SP SINWEB-140 llama a endpoint de la api y guarda la resolucion
   */
  create() {
    this.btnActivo = false;
    const sbCreate = this.resolucionService.nuevo(this.resolucion).subscribe(res => {
      this.btnActivo = true;
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbCreate);
  }
  /**
   * {siglas} SINWEB- prepara el objeto a insertar modificar
   */
  prepararResolucion() {
    const formData = this.formGroup.value;
    this.resolucion.Nombre = formData.Nombre;
    this.resolucion.EstadoResolucion = formData.Estado;
    this.resolucion.Observacion = formData.Observacion;
  }
  static #_ = this.ɵfac = function ResolucionNewComponent_Factory(t) {
    return new (t || ResolucionNewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_1__.ResolucionService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
    type: ResolucionNewComponent,
    selectors: [["app-resolucion-new"]],
    inputs: {
      resolucion: "resolucion",
      estadoOptions: "estadoOptions"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 10,
    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"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], ["data-cy", "nombre-resolucion", 1, "col-lg-12", "p-2"], [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", 4, "ngIf"], [1, "col-lg-12", "p-2"], ["name", "Observacion", "formControlName", "Observacion", 1, "form-control", "form-control-solid"], ["placeholder", "buscar select", "name", "Estado", "formControlName", "Estado", 1, "form-control", "form-control-lg", "form-control-solid", "form-select"], ["value", "", "disabled", ""], [3, "value", 4, "ngFor", "ngForOf"], [1, "valid-feedback"], [1, "invalid-feedback"], [3, "value"], ["data-cy", "save-resolucion", "type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function ResolucionNewComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, ResolucionNewComponent_ng_container_3_Template, 5, 3, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, ResolucionNewComponent_ng_container_5_Template, 23, 15, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ResolucionNewComponent_Template_button_click_7_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, ResolucionNewComponent_ng_container_9_Template, 6, 6, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.resolucion);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.resolucion);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.resolucion);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_5__.AsyncPipe]
  });
}

/***/ }),

/***/ 68000:
/*!**************************************************************!*\
  !*** ./src/app/pages/rma/resolucion/resolucion.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ResolucionComponent: () => (/* binding */ ResolucionComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _resolucion_new_resolucion_new_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./resolucion-new/resolucion-new.component */ 45059);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* 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_exportacion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/exportacion.service */ 18969);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var _core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../core/services/rma/resolucion.service */ 63682);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);























function ResolucionComponent_ng_template_3_Template(rf, ctx) {}
function ResolucionComponent_div_4_ng_template_3_Template(rf, ctx) {}
function ResolucionComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 36)(1, "div", 37)(2, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, ResolucionComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](50);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r1.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r4);
  }
}
function ResolucionComponent_a_43_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "a", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_a_43_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r6.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function ResolucionComponent_ng_template_49_option_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "option", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", option_r9.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" ", option_r9.nombre, " ");
  }
}
const _c0 = () => [0];
function ResolucionComponent_ng_template_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 21)(1, "p-accordion", 41)(2, "p-accordionTab", 42)(3, "div")(4, "p", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "select", 44)(7, "option", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](8, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](9, ResolucionComponent_ng_template_49_option_9_Template, 2, 2, "option", 46);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpureFunction0"](4, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r3.estadoOptions);
  }
}
const MSJ_EXITO_INSERCION = 'Se insertó correctamente una resolución.';
const MSJ_EXITO_EDICION = 'Se modificó correctamente la resolución seleccionada.';
const MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente la resolución seleccionada.';
/**
 * Componente de listado/vista CRUD
 */
class ResolucionComponent {
  constructor(fb, toast, modalService, alert, exportacion, sf, authService, tourService, resolucionService) {
    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.resolucionService = resolucionService;
    this.resolucion = [];
    this.total = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.unsubscribe = [];
    //filtros
    this.estadoResolucion = '';
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    //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;
    //permisos
    this.permisoInsResolucion = false;
    this.permisoModifResolucion = false;
    this.permisoElimResolucion = false;
    this.resolucionHeader = [{
      Nombre: 'Nombre',
      Order: 2,
      Key: 'Nombre',
      WCol: '25%'
    }, {
      Nombre: 'Estado',
      Order: 3,
      Type: 'dictionary',
      Key: 'EstadoResolucion',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_RESOLUCION_ESTADO,
      WCol: '25%'
    }, {
      Nombre: 'Observación',
      Order: 1,
      Key: 'Observacion',
      WCol: '40%'
    }];
    this.estadoOptions = [{
      id: 'A',
      nombre: 'Aprobado'
    }, {
      id: 'D',
      nombre: 'Dictaminar'
    }, {
      id: 'R',
      nombre: 'Rechazado'
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(100)]
    });
    this.filterForm = this.fb.group({
      estado: ['']
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    this.permisoInsResolucion = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_RESOLUCION);
    this.permisoModifResolucion = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_RESOLUCION);
    this.permisoElimResolucion = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ELIM_RESOLUCION);
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesRMA.RESOLUCION_STATES;
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.RESOLUCION_S_NOMBRE));
    this.buscarNombre = this.sf.getState(this.sf.states.RESOLUCION_S_NOMBRE);
    //filtros
    //this.filterForm.controls.estado.setValue(this.sf.getState(this.sf.states.RESOLUCION_F_ESTADO))
    this.estadoResolucion = this.sf.getState(this.sf.states.RESOLUCION_F_ESTADO);
    this.filterForm.controls.estado.setValue(this.estadoResolucion);
    //listado
    this.page = Number(this.sf.getState(this.sf.states.RESOLUCION_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.RESOLUCION_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.RESOLUCION_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.RESOLUCION_L_SENTIDO);
  }
  /**
   * Metodo observable de cambio de filtro (OPCIONAL)
   */
  configuracionFilter() {
    this.unsubscribe.push(this.filterForm.controls.estado.valueChanges.subscribe(estado => {
      if (this.filtro || this.filtroMobile) {
        this.estadoResolucion = estado;
        this.page = 1;
        this.loadPage();
      }
    }));
  }
  /**
   * Limpieza de filtros , busquedas , estados
   */
  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();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  /**
   * Metodo de recarga de pagina
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * Metodo que cambia el tamaño de pagina y actualiza la busqueda
   * @param {any} event Tamaño de pagina seleccionado
   */
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  /**
   * Metodo de busqueda del crud
   * @param {any} datos Parametros de busqueda
   */
  onSearch(datos) {
    const susc = this.resolucionService.fetch(datos).subscribe(data => {
      this.resolucion = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Metodo de carga de filtros
   * @param {number} page Numero de paginas
   * @param {number} order Numero que indica ordenamiento
   * @param {string} sentido Sentido de ordenamiento
   */
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //busqueda
    //SP SINWEB-239
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.Nombre = this.buscarNombre;
    }
    //filtros
    //if (this.estadoResolucion != ''){
    datos.EstadoResolucion = this.estadoResolucion;
    //}
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * Metodo que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos a guardar en cookies
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.RESOLUCION_S_NOMBRE, !datos.Nombre ? this.sf.states.RESOLUCION_S_NOMBRE.default : datos.Nombre);
    //filtros
    this.sf.changeState(this.sf.states.RESOLUCION_F_ESTADO, !datos.EstadoResolucion ? this.sf.states.RESOLUCION_F_ESTADO.default : datos.EstadoResolucion);
    //listado
    this.sf.changeState(this.sf.states.RESOLUCION_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.RESOLUCION_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.RESOLUCION_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.RESOLUCION_L_SENTIDO, datos.SentidoOrden);
  }
  nuevo() {
    this.editar(undefined, false);
  }
  /**
   * Llama al modal de confirmacion para eliminar una resolucion
   * @param {any} resolucion Elemento a insertar/editar
   * @param {boolean} esEditar Indica si estamos editando o insertando
   */
  editar(resolucion, esEditar) {
    const modalRef = this.modalService.open(_resolucion_new_resolucion_new_component__WEBPACK_IMPORTED_MODULE_4__.ResolucionNewComponent, {
      size: 'lg',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.resolucion = resolucion;
    modalRef.componentInstance.estadoOptions = this.estadoOptions;
    modalRef.result.then(() => {
      this.loadPage();
      if (esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_EDICION, '', 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_INSERCION, '', 'success');
      }
    }, () => {});
  }
  /**
   * Llama al modal de confirmacion para eliminar una resolucion
   * @param {number} idResolucion Id del elemento a eliminar
   * @param {string} nombre Nombre del elemento
   */
  eliminar(idResolucion, nombre) {
    this.alert.showReturnAlert('Eliminación de CRUD.', "¿Está seguro de eliminar la Resolución: '" + nombre + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarResolucion(idResolucion);
      }
    });
  }
  /**
   * Llama a la api para eliminar de CRUD
   * @param {number} idResolucion Id del elemento a eliminar
   */
  eliminarResolucion(idResolucion) {
    const sb = this.resolucionService.eliminar(idResolucion).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * Metodo para activar acción
   * @param {any} event  Objeto con acción y registro de la tabla
   */
  acciones(event) {
    switch (event.accion) {
      case 'edit':
        this.editar(event.registro, true);
        break;
      case 'delete':
        this.eliminar(event.registro.Id, event.registro.Nombre);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * Metodo para cambio de pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  /**
   * Realiza llamada a la api y exporta a excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    //se arman las columnas y keys para buscar datos y armar el excel
    const columns = ['Nombre', 'Estado', 'Observación'];
    const keys = ['Nombre', 'EstadoResolucion', 'Observacion'];
    this.alert.showLoadingAlert('Exportando Resoluciones', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //llamada al recurso correspondiente de la api
    this.resolucionService.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Resoluciones Exportadas', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(data.Data, columns, keys, 'Listado de Resoluciones');
      } else {
        this.exportacion.exportToPdf(data.Data, columns, keys, 'Listado de Resoluciones');
      }
    });
  }
  /**
   * Get de nombre
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * Limpieza de input de nombre
   */
  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-239 control de filtro no reactivo
   * @returns
   */
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * Metodo para  iniciar tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * Metodo para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de resoluciones
    fetch('./assets/tours/rma/resolucion.json').then(response => response.json()).then(tourResolucion => {
      this.tourSteps = tourResolucion;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this.unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'resolucion.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  static #_ = this.ɵfac = function ResolucionComponent_Factory(t) {
    return new (t || ResolucionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_14__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_5__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_7__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_8__.ResolucionService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({
    type: ResolucionComponent,
    selectors: [["app-resolucion"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_3__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.TourService])],
    decls: 52,
    vars: 25,
    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", "resolucion.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"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-auto", "d-none", "d-lg-block"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-auto", "d-block", "d-lg-none"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [1, "col-xxl-4", "col-lg-6"], ["tourAnchor", "searchNombre.anchor.id", 1, "input-group"], ["data-cy", "nombre-resolucion-search", "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"], ["title", "Resoluciones", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "acciones", "apiTable", "isLoading", "lazyLoad", "emitAction"], ["FILTRO", ""], [1, "d-none", "d-lg-block", "col-xxl-2", "col-lg-3"], ["tourAnchor", "filtroResolucion.anchor.id", 1, "card", 3, "formGroup"], [1, "card-body", "p-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "text-muted"], ["data-cy", "estado-resolucion", "formControlName", "estado", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]],
    template: function ResolucionComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("visibleChange", function ResolucionComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, ResolucionComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](4, ResolucionComponent_div_4_Template, 4, 2, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, " Resoluciones ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_13_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](15, "div", 13)(16, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_16_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](17, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](18, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](19, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_19_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](20, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](21, "div", 16)(22, "button", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](23, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](24, "ul", 19)(25, "li")(26, "a", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_26_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](27, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](28, "li")(29, "a", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_29_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](30, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](31, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerStart"](32, 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](33, "div", 22)(34, "div", 23)(35, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_35_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](36, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](37, "div", 25)(38, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_38_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](39, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](40, "div", 27)(41, "div", 28)(42, "input", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("keyup.enter", function ResolucionComponent_Template_input_keyup_enter_42_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](43, ResolucionComponent_a_43_Template, 2, 0, "a", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](44, "a", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function ResolucionComponent_Template_a_click_44_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](45, "i", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](46, "div", 33)(47, "app-table2", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("lazyLoad", function ResolucionComponent_Template_app_table2_lazyLoad_47_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function ResolucionComponent_Template_app_table2_emitAction_47_listener($event) {
          return ctx.acciones($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](48, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](49, ResolucionComponent_ng_template_49_Template, 10, 5, "ng-template", null, 35, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](51, "app-tour");
      }
      if (rf & 2) {
        const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](50);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-10 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](18, 21, ctx.resolucionService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵ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_11__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵ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_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx.busquedaNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("columns", ctx.resolucionHeader)("datos", ctx.resolucion)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("acciones", false)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](48, 23, ctx.resolucionService.isLoading$));
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_17__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_17__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_18__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_19__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_9__.TourComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_10__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_18__.AsyncPipe]
  });
}

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RmaRoutingModule: () => (/* binding */ RmaRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/guards/auth.guard */ 8036);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_pages_rma_inicio_rma_inicio_rma_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/pages/rma/inicio-rma/inicio-rma.component */ 20032);
/* harmony import */ var src_app_pages_rma_resolucion_resolucion_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/rma/resolucion/resolucion.component */ 68000);
/* harmony import */ var src_app_pages_rma_tipos_defecto_tipos_defecto_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/pages/rma/tipos-defecto/tipos-defecto.component */ 19856);
/* harmony import */ var src_app_pages_rma_atributos_atributos_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/rma/atributos/atributos.component */ 12128);
/* harmony import */ var src_app_pages_rma_defectos_defectos_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/rma/defectos/defectos.component */ 30096);
/* harmony import */ var src_app_pages_rma_seguimiento_seguimiento_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/pages/rma/seguimiento/seguimiento.component */ 23955);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 65879);











const PERMISO_LIS_ATR = src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_ATRIBUTO;
const PERMISO_LIS_DEF = src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_DEFECTOS;
const PERMISO_LIS_TIPO_DEF = src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TIPO_DEFECTOS;
const PERMISO_LIS_RES = src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_RESOLUCION;
const PERMISO_LIS_RECL = src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_RECLAMOS;
const routes = [{
  path: 'inicio',
  component: src_app_pages_rma_inicio_rma_inicio_rma_component__WEBPACK_IMPORTED_MODULE_2__.InicioRmaComponent
}, {
  path: 'atributos',
  component: src_app_pages_rma_atributos_atributos_component__WEBPACK_IMPORTED_MODULE_5__.AtributosComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
  data: {
    permiso: PERMISO_LIS_ATR
  }
}, {
  path: 'defectos',
  component: src_app_pages_rma_defectos_defectos_component__WEBPACK_IMPORTED_MODULE_6__.DefectosComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
  data: {
    permiso: PERMISO_LIS_DEF
  }
}, {
  path: 'tipos-defecto',
  component: src_app_pages_rma_tipos_defecto_tipos_defecto_component__WEBPACK_IMPORTED_MODULE_4__.TiposDefectoComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
  data: {
    permiso: PERMISO_LIS_TIPO_DEF
  }
}, {
  path: 'resolucion',
  component: src_app_pages_rma_resolucion_resolucion_component__WEBPACK_IMPORTED_MODULE_3__.ResolucionComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
  data: {
    permiso: PERMISO_LIS_RES
  }
}, {
  path: 'seguimiento',
  component: src_app_pages_rma_seguimiento_seguimiento_component__WEBPACK_IMPORTED_MODULE_7__.SeguimientoComponent,
  //Permite acceso a la ruta si tiene permisos
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
  data: {
    permiso: PERMISO_LIS_RECL
  }
}];
/**
 * SP SINWEB-151 rutas correspondientes a modulo rma
 */
class RmaRoutingModule {
  static #_ = this.ɵfac = function RmaRoutingModule_Factory(t) {
    return new (t || RmaRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineNgModule"]({
    type: RmaRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵsetNgModuleScope"](RmaRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule]
  });
})();

/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RmaModule: () => (/* binding */ RmaModule)
/* harmony export */ });
/* harmony import */ var _inicio_rma_inicio_rma_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inicio-rma/inicio-rma.component */ 20032);
/* harmony import */ var _defectos_defectos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defectos/defectos.component */ 30096);
/* harmony import */ var _tipos_defecto_tipos_defecto_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tipos-defecto/tipos-defecto.component */ 19856);
/* harmony import */ var _resolucion_resolucion_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./resolucion/resolucion.component */ 68000);
/* harmony import */ var _atributos_atributos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./atributos/atributos.component */ 12128);
/* harmony import */ var _rma_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rma-routing.module */ 82542);
/* harmony import */ var _seguimiento_seguimiento_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./seguimiento/seguimiento.component */ 23955);
/* harmony import */ var _seguimiento_reclamos_listado_reclamos_listado_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./seguimiento/reclamos-listado/reclamos-listado.component */ 35890);
/* harmony import */ var _seguimiento_seguimiento_detalle_seguimiento_detalle_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./seguimiento/seguimiento-detalle/seguimiento-detalle.component */ 75420);
/* harmony import */ var _defectos_defectos_edit_defectos_edit_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./defectos/defectos-edit/defectos-edit.component */ 496);
/* harmony import */ var _tipos_defecto_tipos_defecto_edit_tipos_defecto_edit_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./tipos-defecto/tipos-defecto-edit/tipos-defecto-edit.component */ 47386);
/* harmony import */ var _resolucion_resolucion_new_resolucion_new_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./resolucion/resolucion-new/resolucion-new.component */ 45059);
/* harmony import */ var _atributos_atributos_edit_atributos_edit_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./atributos/atributos-edit/atributos-edit.component */ 98762);
/* harmony import */ var _seguimiento_reclamos_listado_reclamos_new_reclamos_new_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./seguimiento/reclamos-listado/reclamos-new/reclamos-new.component */ 13551);
/* harmony import */ var _seguimiento_proveedor_rec_listado_proveedor_rec_listado_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./seguimiento/proveedor-rec-listado/proveedor-rec-listado.component */ 68654);
/* harmony import */ var _seguimiento_cliente_rec_listado_cliente_rec_listado_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./seguimiento/cliente-rec-listado/cliente-rec-listado.component */ 64273);
/* harmony import */ var _seguimiento_proveedor_rec_listado_enviar_prov_enviar_prov_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./seguimiento/proveedor-rec-listado/enviar-prov/enviar-prov.component */ 91930);
/* harmony import */ var _seguimiento_proveedor_rec_listado_resuelto_new_resuelto_new_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./seguimiento/proveedor-rec-listado/resuelto-new/resuelto-new.component */ 754);
/* harmony import */ var _seguimiento_seguimiento_operativo_seguimiento_operativo_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./seguimiento/seguimiento-operativo/seguimiento-operativo.component */ 4761);
/* harmony import */ var _seguimiento_cliente_rec_listado_cliente_rec_new_cliente_rec_new_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./seguimiento/cliente-rec-listado/cliente-rec-new/cliente-rec-new.component */ 11630);
/* harmony import */ var _seguimiento_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./seguimiento/reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var _seguimiento_envio_multiple_prov_envio_multiple_prov_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./seguimiento/envio-multiple-prov/envio-multiple-prov.component */ 21428);
/* harmony import */ var _seguimiento_reclamos_trazabilidad_reclamos_trazabilidad_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./seguimiento/reclamos-trazabilidad/reclamos-trazabilidad.component */ 90303);
/* harmony import */ var src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! src/app/shared/shared.module */ 56208);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);



























/**
 * SP SINWEB-151 modulo de rma
 */
class RmaModule {
  static #_ = this.ɵfac = function RmaModule_Factory(t) {
    return new (t || RmaModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_24__["ɵɵdefineNgModule"]({
    type: RmaModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_24__["ɵɵdefineInjector"]({
    imports: [_rma_routing_module__WEBPACK_IMPORTED_MODULE_5__.RmaRoutingModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_23__.SharedModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_24__["ɵɵsetNgModuleScope"](RmaModule, {
    declarations: [_inicio_rma_inicio_rma_component__WEBPACK_IMPORTED_MODULE_0__.InicioRmaComponent, _defectos_defectos_component__WEBPACK_IMPORTED_MODULE_1__.DefectosComponent, _tipos_defecto_tipos_defecto_component__WEBPACK_IMPORTED_MODULE_2__.TiposDefectoComponent, _resolucion_resolucion_component__WEBPACK_IMPORTED_MODULE_3__.ResolucionComponent, _atributos_atributos_component__WEBPACK_IMPORTED_MODULE_4__.AtributosComponent, _seguimiento_seguimiento_component__WEBPACK_IMPORTED_MODULE_6__.SeguimientoComponent, _seguimiento_reclamos_listado_reclamos_listado_component__WEBPACK_IMPORTED_MODULE_7__.ReclamosListadoComponent, _seguimiento_seguimiento_detalle_seguimiento_detalle_component__WEBPACK_IMPORTED_MODULE_8__.SeguimientoDetalleComponent, _defectos_defectos_edit_defectos_edit_component__WEBPACK_IMPORTED_MODULE_9__.DefectosEditComponent, _seguimiento_reclamos_listado_reclamos_new_reclamos_new_component__WEBPACK_IMPORTED_MODULE_13__.ReclamosNewComponent, _tipos_defecto_tipos_defecto_edit_tipos_defecto_edit_component__WEBPACK_IMPORTED_MODULE_10__.TiposDefectoEditComponent, _resolucion_resolucion_new_resolucion_new_component__WEBPACK_IMPORTED_MODULE_11__.ResolucionNewComponent, _atributos_atributos_edit_atributos_edit_component__WEBPACK_IMPORTED_MODULE_12__.AtributosEditComponent, _seguimiento_seguimiento_operativo_seguimiento_operativo_component__WEBPACK_IMPORTED_MODULE_18__.SeguimientoOperativoComponent, _seguimiento_proveedor_rec_listado_proveedor_rec_listado_component__WEBPACK_IMPORTED_MODULE_14__.ProveedorRecListadoComponent, _seguimiento_cliente_rec_listado_cliente_rec_listado_component__WEBPACK_IMPORTED_MODULE_15__.ClienteRecListadoComponent, _seguimiento_proveedor_rec_listado_enviar_prov_enviar_prov_component__WEBPACK_IMPORTED_MODULE_16__.EnviarProvComponent, _seguimiento_proveedor_rec_listado_resuelto_new_resuelto_new_component__WEBPACK_IMPORTED_MODULE_17__.ResueltoNewComponent, _seguimiento_cliente_rec_listado_cliente_rec_new_cliente_rec_new_component__WEBPACK_IMPORTED_MODULE_19__.ClienteRecNewComponent, _seguimiento_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_20__.ReclamosViewComponent, _seguimiento_envio_multiple_prov_envio_multiple_prov_component__WEBPACK_IMPORTED_MODULE_21__.EnvioMultipleProvComponent, _seguimiento_reclamos_trazabilidad_reclamos_trazabilidad_component__WEBPACK_IMPORTED_MODULE_22__.ReclamosTrazabilidadComponent],
    imports: [_rma_routing_module__WEBPACK_IMPORTED_MODULE_5__.RmaRoutingModule, src_app_shared_shared_module__WEBPACK_IMPORTED_MODULE_23__.SharedModule],
    exports: [_inicio_rma_inicio_rma_component__WEBPACK_IMPORTED_MODULE_0__.InicioRmaComponent]
  });
})();
_angular_core__WEBPACK_IMPORTED_MODULE_24__["ɵɵsetComponentScope"](_seguimiento_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_20__.ReclamosViewComponent, [_angular_common__WEBPACK_IMPORTED_MODULE_25__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgTemplateOutlet, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavOutlet, _seguimiento_reclamos_listado_reclamos_new_reclamos_new_component__WEBPACK_IMPORTED_MODULE_13__.ReclamosNewComponent, _seguimiento_proveedor_rec_listado_enviar_prov_enviar_prov_component__WEBPACK_IMPORTED_MODULE_16__.EnviarProvComponent, _seguimiento_proveedor_rec_listado_resuelto_new_resuelto_new_component__WEBPACK_IMPORTED_MODULE_17__.ResueltoNewComponent, _seguimiento_cliente_rec_listado_cliente_rec_new_cliente_rec_new_component__WEBPACK_IMPORTED_MODULE_19__.ClienteRecNewComponent], []);

/***/ }),

/***/ 64273:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/cliente-rec-listado/cliente-rec-listado.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ClienteRecListadoComponent: () => (/* binding */ ClienteRecListadoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __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_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/ui/log/log.component */ 44192);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/rma/resolucion.service */ 63682);
/* 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_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* 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 ClienteRecListadoComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](1, 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "div", 20)(3, "div", 21)(4, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "select", 23)(7, "option", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, "Todos los estados resoluci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "option", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](10, "Aprobado");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](11, "option", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12, "Rechazado");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](13, "div", 21)(14, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](15, "Resoluci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "select-loading", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("valueSelect", function ClienteRecListadoComponent_div_21_Template_select_loading_valueSelect_16_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r2.searchForm.controls.IdsResolucionesProv.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](17, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "div", 21)(19, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](20, "Notificado?");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](21, "select", 28)(22, "option", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](23, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](25, "Notificados");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "option", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](27, "No notificados");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](28, "div", 21)(29, "label", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](30, "Entregado?");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](31, "select", 31)(32, "option", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](33, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](34, "option", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](35, "Entregados");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](36, "option", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](37, "No entregados");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r0.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("defaultValue", 0)("defaultValueDis", false)("defaultString", "Todas las resoluciones")("items", ctx_r0.resoluciones)("valueSelected", ctx_r0.searchForm.controls.IdsResolucionesProv.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](17, 7, ctx_r0.resolucionService.isLoading$));
  }
}
function ClienteRecListadoComponent_ng_container_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "app-table2", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("lazyLoad", function ClienteRecListadoComponent_ng_container_23_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r4.lazyLoadChange($event));
    })("emitAction", function ClienteRecListadoComponent_ng_container_23_Template_app_table2_emitAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r5);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r6.accionOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("columns", ctx_r1.getReclamosHeader())("order", ctx_r1.order)("sentido", ctx_r1.sentido)("datos", ctx_r1.registros)("page", ctx_r1.page)("cant_search", ctx_r1.cant_search)("totalItems", ctx_r1.totalItems)("dropdownButtons", ctx_r1.dropdownActions)("acciones", true)("apiTable", true)("isLoading", ctx_r1.isLoading);
  }
}
class ClienteRecListadoComponent {
  constructor(fb, alert, resolucionService, modalService, configGralService) {
    this.fb = fb;
    this.alert = alert;
    this.resolucionService = resolucionService;
    this.modalService = modalService;
    this.configGralService = configGralService;
    this.registros = [];
    this.isLoading = false;
    this.order = 3;
    this.sentido = 'Desc';
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.totalItems = 0;
    // @Output() pageChangeEv = new EventEmitter<any>();
    // @Output() setPageEv = new EventEmitter<any>();
    // @Output() setOrderEv = new EventEmitter<any>();
    this.lazyLoadChangeEv = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.export = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.filtros = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.eliminar = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.editar = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.editarAtributo = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.cerrar = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.subscriptions = [];
    //filtros
    this.filtro = false;
    this.searchForm = this.fb.group({
      Estado: [''],
      IdsResolucionesProv: [0],
      Notificado: [''],
      Entregado: ['']
    });
    this.resolucionFilter = '0';
    this.entregadoFilter = '';
    this.notificadoFilter = '';
    //listado
    this.reclamosHeader = [{
      Nombre: 'Nro.Reclamo',
      Order: 3,
      Key: 'NumeroReclamo',
      WCol: '10%'
    }, {
      Nombre: 'Cliente',
      WCol: '20%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Cliente.Nombre',
          b: 'Cliente.Codigo'
        }
      }
    }, {
      // MC SINWEB-399 Se agrega columna Sucursal
      Nombre: 'Sucursal',
      Key: 'Sucursal.Nombre'
    }, {
      Nombre: 'Artículo',
      WCol: '20%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Articulo.Nombre',
          b: 'Articulo.Codigo'
        }
      }
    }, {
      Nombre: 'Fecha Resolución',
      Key: 'RMACliente.FechaResolucion',
      WCol: '8%'
    }, {
      Nombre: 'Estado Resolución',
      Type: 'dictionary',
      Key: 'RMACliente.RMAResolucion.EstadoResolucion',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_RESOLUCION_ESTADO,
      WCol: '10%'
    }, {
      Nombre: 'Resolución',
      Key: 'RMACliente.RMAResolucion.Nombre'
    }, {
      // MC SINWEB-400 Se agrega columna Observación
      Nombre: 'Observación Resolución',
      Key: 'RMACliente.Observacion'
    }, {
      Nombre: 'Fecha Notificación',
      Key: 'RMACliente.FechaNotificacion',
      WCol: '8%'
    }, {
      Nombre: 'Fecha Entrega',
      Key: 'RMACliente.FechaEntrega',
      WCol: '8%'
    }, {
      // MC SINWEB-400 Se agrega columna Observación
      Nombre: 'Resolución Proveedor',
      Key: 'RMAProveedor.RMAResolucion.Nombre',
      ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO ? '#F6F4F4' : '#343b53'
    }, {
      // MC SINWEB-400 Se agrega columna Observación
      Nombre: 'Observación Resol.Prov.',
      Key: 'RMAProveedor.ObservacionResolucion',
      ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO ? '#F6F4F4' : '#343b53'
    }, {
      Nombre: 'Responsable',
      Key: 'RMACliente.Empleado.Nombre',
      WCol: '8%'
    }];
    this.dropdownActions = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR
    }, {
      Title: 'Editar atributos',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Editar resolución a cliente',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_EDITAR
    }, {
      Title: 'Eliminar resolución a cliente',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_ELIMINAR
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Cerrar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_CERRAR
    }];
    this.headerLog = [{
      Nombre: 'Fecha',
      Order: 1,
      Key: 'Fecha',
      WCol: '25%'
    }, {
      Nombre: 'Usuario',
      Order: 2,
      Key: 'Usuario',
      WCol: '25%'
    }, {
      Nombre: 'Registro',
      Order: 3,
      Key: 'Registro',
      WCol: '25%'
    }, {
      Nombre: 'Mensaje',
      Order: 4,
      Key: 'Mensaje',
      WCol: '25%'
    }];
  }
  ngOnInit() {
    this.order = 3;
    this.sentido = 'Asc';
    this.cargarPermisos();
    this.subscriptions.push(this.searchForm.controls.Estado.valueChanges.subscribe(estado => {
      this.searchForm.controls.IdsResolucionesProv.setValue(0);
      this.resolucionFilter = '0';
      if (estado !== '') {
        this.cargarResoluciones(estado);
      } else {
        this.resoluciones = [];
        this.enviarFiltros();
      }
    }));
    this.subscriptions.push(this.searchForm.controls.IdsResolucionesProv.valueChanges.subscribe(resol => {
      if (resol !== 0) {
        this.resolucionFilter = resol;
        this.enviarFiltros();
      }
    }));
    this.subscriptions.push(this.searchForm.controls.Entregado.valueChanges.subscribe(entregado => {
      this.entregadoFilter = entregado;
      this.enviarFiltros();
    }));
    this.subscriptions.push(this.searchForm.controls.Notificado.valueChanges.subscribe(notificado => {
      this.notificadoFilter = notificado;
      this.enviarFiltros();
    }));
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisos.Linea1 = (this.permisos.EditRegRes || this.permisos.CerrarReclamo || this.permisos.ElimRegRes) && this.permisos.VisReclamo;
    this.permisos.Linea2 = (this.permisos.EditRegRes || this.permisos.VisReclamo || this.permisos.ElimRegRes) && this.permisos.CerrarReclamo;
    this.dropdownActions[0]['Show'] = this.permisos.VisReclamo;
    this.dropdownActions[1]['Show'] = this.permisos.Linea1;
    this.dropdownActions[2]['Show'] = this.permisos.EditRegRes;
    this.dropdownActions[3]['Show'] = this.permisos.ElimRegRes;
    this.dropdownActions[4]['Show'] = this.permisos.Linea2;
    this.dropdownActions[5]['Show'] = this.permisos.CerrarReclamo;
  }
  /* Metodo que realiza la llamada a la api para traer las resoluciones existentes */
  cargarResoluciones(estado) {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 2;
    datos.EstadoResolucion = estado;
    if (this.resolucionFilter !== '0') {
      datos.IdsResolucionesProv = this.resolucionFilter;
    }
    const susc = this.resolucionService.fetch(datos).subscribe(data => {
      this.resoluciones = data.Data;
      this.resolucionFilter = this.resoluciones.map(res => res.Id).join(',');
      this.enviarFiltros();
    });
    susc.unsubscribe;
  }
  enviarFiltros() {
    this.filtros.emit({
      IdsResolucionesClie: this.resolucionFilter !== '0' ? this.resolucionFilter : '',
      Entregado: this.entregadoFilter,
      Notificado: this.notificadoFilter
    });
  }
  // pageChange(e: any){
  //   this.pageChangeEv.emit(e);
  // }
  // setPage(e: any){
  //   this.setPageEv.emit(e);
  // }
  // setOrder(e: any){
  //   this.setOrderEv.emit(e);
  // }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange(e) {
    this.lazyLoadChangeEv.emit(e);
  }
  /**
   * SP SINWEB-169 se agrego accion visualizar reclamo
   * @param event datos del evento
   */
  accionOrder(event) {
    switch (event.accion) {
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_ELIMINAR:
        this.eliminarCliente(event.registro.RMACliente.Id, event.registro.NumeroReclamo);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR:
        this.visualizarReclamos(event.registro);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO:
        this.editarAtributo.emit({
          reclamo: event.registro,
          modoEdicion: true,
          modoAtributo: true
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_EDITAR:
        this.editar.emit({
          reclamo: event.registro,
          modoEdicion: true
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_CERRAR:
        this.cerrarReclamo(event.registro.Id, event.registro.NumeroReclamo);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG:
        this.verLog(event.registro);
        break;
      default:
        break;
    }
  }
  eliminarCliente(idRMACliente, numeroReclamo) {
    this.alert.showReturnAlert('Eliminación de Cliente.', "¿Está seguro en eliminar el cliente asociado al reclamo: '" + numeroReclamo + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminar.emit({
          idRMACliente: idRMACliente
        });
      }
    });
  }
  cerrarReclamo(idReclamo, numeroReclamo) {
    this.alert.showReturnAlert('Cierre de  de Cliente.', "¿Está seguro en cerrar el reclamo seleccionado: '" + numeroReclamo + "' ?", 'success', 'Aceptar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.cerrar.emit({
          idReclamo: idReclamo
        });
      }
    });
  }
  /**
   * SP SINWEB-169 metodo para visualizar reclamo
   * @param reclamo objeto con el reclamo
   */
  visualizarReclamos(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  exportTo(extension) {
    this.export.emit({
      alert: 'Reclamos enviados a proveedor exportados',
      name: 'Listado de reclamos enviados a proveedor',
      columns: ['Nro.Reclamo', '(Cod) Artículo', 'Defecto', '(Cod) Cliente', 'Fecha Resolucion', 'Estado Resolución', 'Nombre Resolución'],
      keys: ['NumeroReclamo', 'CodArticulo', 'RMADefecto.Nombre', 'CodCliente', 'RMAProveedor.FechaResolucion', 'RMAProveedor.RMAResolucion.EstadoResolucion', 'RMAProveedor.RMAResolucion.Nombre'],
      extension: extension // MC SINWEB-378 Exportación a Pdf
    });
  }
  /**
   * MC SINWEB-164 - Método para ver el Registro de cambios de un reclamo
   * @param {any} registro Reclamo
   */
  verLog(registro) {
    const modalRef = this.modalService.open(src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_3__.LogComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.coloresRow = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.COLORES_ROW;
    modalRef.componentInstance.title = `Reclamo Nro. '${registro.NumeroReclamo}'`;
    modalRef.componentInstance.logData = registro.Log;
    modalRef.componentInstance.splitOp = '\r\n\r\n';
    modalRef.componentInstance.splitSeparators = ['[', '-', ']', '\r\n'];
    modalRef.componentInstance.columnsKeys = ['Fecha', 'Usuario', 'Registro', 'Mensaje'];
    modalRef.componentInstance.columns = this.headerLog;
  }
  getReclamosHeader() {
    return this.atributos.mostrarAtributos == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO ? JSON.parse(JSON.stringify(this.reclamosHeader.concat(this.atributos.columnas))) : this.reclamosHeader;
  }
  static #_ = this.ɵfac = function ClienteRecListadoComponent_Factory(t) {
    return new (t || ClienteRecListadoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_4__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_5__.ResolucionService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: ClienteRecListadoComponent,
    selectors: [["cliente-rec-listado"]],
    inputs: {
      registros: "registros",
      isLoading: "isLoading",
      order: "order",
      sentido: "sentido",
      page: "page",
      cant_search: "cant_search",
      totalItems: "totalItems",
      permisos: "permisos",
      atributos: "atributos"
    },
    outputs: {
      lazyLoadChangeEv: "lazyLoadChangeEv",
      export: "export",
      filtros: "filtros",
      eliminar: "eliminar",
      editar: "editar",
      editarAtributo: "editarAtributo",
      cerrar: "cerrar"
    },
    decls: 24,
    vars: 3,
    consts: [[1, "row"], [1, "col-lg-12"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], [1, "mb-0", "card-title", "flex-grow-1"], [1, "flex-shrink-0", "d-flex", "gap-1"], [1, "col-auto"], [1, "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [3, "ngClass"], ["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"], ["class", "card-body border-bottom bg-light", 4, "ngIf"], [1, "card-body"], [4, "ngIf"], [1, "card-body", "border-bottom", "bg-light"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-lg-3"], [1, "form-label"], ["name", "Estado", "formControlName", "Estado", 1, "form-select"], ["value", ""], ["value", "A"], ["value", "R"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["name", "Notificado", "formControlName", "Notificado", 1, "form-select"], ["value", "S"], ["value", "N"], ["name", "Entregado", "formControlName", "Entregado", 1, "form-select"], ["anchorActions", "accionesResuelto.anchor.id", "anchorRegistros", "registrosResuelto.anchor.id", "anchorPaginacion", "paginacionResuelto.anchor.id", "title", "Cliente", 3, "columns", "order", "sentido", "datos", "page", "cant_search", "totalItems", "dropdownButtons", "acciones", "apiTable", "isLoading", "lazyLoad", "emitAction"]],
    template: function ClienteRecListadoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "h5", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](6, "Cliente");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div", 6)(8, "div", 7)(9, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ClienteRecListadoComponent_Template_a_click_9_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](10, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](11, "div", 10)(12, "button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](13, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "ul", 13)(15, "li")(16, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ClienteRecListadoComponent_Template_a_click_16_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "li")(19, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ClienteRecListadoComponent_Template_a_click_19_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](20, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](21, ClienteRecListadoComponent_div_21_Template, 38, 9, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](23, ClienteRecListadoComponent_ng_container_23_Template, 2, 11, "ng-container", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline align-middle" : "mdi mdi-filter-off-outline align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](11);
        _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.isLoading);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbDropdownMenu, _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]
  });
}

/***/ }),

/***/ 11630:
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/cliente-rec-listado/cliente-rec-new/cliente-rec-new.component.ts ***!
  \********************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ClienteRecNewComponent: () => (/* binding */ ClienteRecNewComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_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_rma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/validators/dateValidators */ 49545);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __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_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/rma/resolucion.service */ 63682);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../shared/ui/input-date-time/input-date-time.component */ 75871);



















function ClienteRecNewComponent_div_1_ng_container_2_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, "Registro de resoluci\u00F3n a cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerEnd"]();
  }
}
function ClienteRecNewComponent_div_1_ng_container_2_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, "Editar resoluci\u00F3n a cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerEnd"]();
  }
}
function ClienteRecNewComponent_div_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](1, ClienteRecNewComponent_div_1_ng_container_2_ng_container_1_Template, 2, 0, "ng-container", 29)(2, ClienteRecNewComponent_div_1_ng_container_2_ng_container_2_Template, 2, 0, "ng-container", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r5.modoEdicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", !ctx_r5.modoEdicion);
  }
}
function ClienteRecNewComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 27)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](2, ClienteRecNewComponent_div_1_ng_container_2_Template, 3, 2, "ng-container", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx_r0.reclamo);
  }
}
function ClienteRecNewComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 30)(1, "div", 31)(2, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Nro. Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](4, "input", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "div", 33)(6, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](8, "input", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](9, "div", 33)(10, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, "Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](12, "input", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
}
function ClienteRecNewComponent_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 36)(1, "div", 37)(2, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](3, "Fecha resolucion");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](4, "input", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](5, "div", 39)(6, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](7, "Estado proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](8, "input", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](9, "div", 33)(10, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](11, "Resoluci\u00F3n proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](12, "input", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()();
  }
}
function ClienteRecNewComponent_div_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 1000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
}
function ClienteRecNewComponent_div_50_i_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](0, "i", 48);
  }
}
function ClienteRecNewComponent_div_50_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 43)(1, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function ClienteRecNewComponent_div_50_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r9.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](3, "button", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function ClienteRecNewComponent_div_50_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r10);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r11.visualizarReclamo(ctx_r11.reclamo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](4, " Ver reclamo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerStart"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](6, "button", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("click", function ClienteRecNewComponent_div_50_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵrestoreView"](_r10);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵresetView"](ctx_r12.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](7, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](8, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](9, ClienteRecNewComponent_div_50_i_9_Template, 1, 0, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](10, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("disabled", ctx_r4.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](7, 2, ctx_r4.reclamoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](10, 4, ctx_r4.reclamoService.isLoading$));
  }
}
class ClienteRecNewComponent {
  constructor(fb, modal, vh, authenticationService, empleadoService, reclamoService, resolucionService, modalService) {
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.authenticationService = authenticationService;
    this.empleadoService = empleadoService;
    this.reclamoService = reclamoService;
    this.resolucionService = resolucionService;
    this.modalService = modalService;
    this.modoEdicion = false;
    this.modoVisualizar = false;
    //formulario
    this.formGroup = this.fb.group({
      NumeroReclamo: [''],
      Articulo: [''],
      Cliente: [''],
      FechaResolucionProveedor: [''],
      EstadoProveedor: [''],
      ResolucionProveedor: [''],
      ObservacionResolucionProveedor: [''],
      FechaResolucion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required])],
      FechaHoraEntrega: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([(0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_5__.fechaHoraIncompleta)()])],
      FechaNotificacion: [''],
      IdEmpleado: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.min(0)])],
      ObservacionEntrega: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.maxLength(1000)])],
      IdRMAResolucion: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.min(1)])],
      Estado: ['D']
    });
    this.subscriptions = [];
  }
  ngOnInit() {
    /**
     * SP SINWEB-202 desahabilita los formularios si estamos en vizualizar
     */
    if (this.modoVisualizar) {
      this.formGroup.disable();
    }
    this.cargarEmpleado();
    if (this.reclamo.RMACliente == null) {
      this.loadForm();
    } else {
      const sb = this.reclamoService.SerchById(this.reclamo.Id).subscribe(reclamo => {
        this.reclamo = reclamo;
        this.loadForm();
      });
      this.subscriptions.push(sb);
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  loadForm() {
    if (this.reclamo.RMACliente !== null) {
      this.cargarResoluciones(this.reclamo.RMACliente?.RMAResolucion.EstadoResolucion);
      this.formGroup = this.fb.group({
        NumeroReclamo: [''],
        Articulo: [''],
        Cliente: [''],
        FechaResolucion: [(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(this.reclamo.RMACliente?.FechaResolucion), _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required])],
        IdEmpleado: [this.reclamo.RMACliente?.Empleado.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.min(0)])],
        //SP SINWEB-416 se agrega form control para la hora de entrega y se divide la fecha y hora del reclamo en ambos form controls
        FechaHoraEntrega: [(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaHoraSinAmPm)(this.reclamo.RMACliente?.FechaEntrega), _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([(0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_5__.fechaHoraIncompleta)()])],
        FechaNotificacion: [this.reclamo.RMACliente?.FechaNotificacion !== null ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(this.reclamo.RMACliente?.FechaNotificacion) : ''],
        ObservacionEntrega: [this.reclamo.RMACliente?.Observacion, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.maxLength(1000)])],
        IdRMAResolucion: [this.reclamo.RMACliente?.RMAResolucion.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.Validators.min(1)])],
        Estado: [this.reclamo.RMACliente?.RMAResolucion.EstadoResolucion],
        FechaResolucionProveedor: [''],
        EstadoProveedor: [''],
        ResolucionProveedor: [''],
        ObservacionResolucionProveedor: ['']
      });
    } else {
      this.cargarResoluciones(this.reclamo.RMAProveedor?.RMAResolucion.EstadoResolucion);
      this.formGroup.controls.FechaResolucion.setValue((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaActual)());
      this.formGroup.controls.Estado.setValue(this.reclamo.RMAProveedor?.RMAResolucion.EstadoResolucion);
      this.formGroup.controls.IdRMAResolucion.setValue(this.reclamo.RMAProveedor?.RMAResolucion.Id);
    }
    this.formGroup.controls.NumeroReclamo.setValue(this.reclamo.NumeroReclamo);
    this.formGroup.controls.Articulo.setValue('(' + this.reclamo.Articulo.Codigo + ') ' + this.reclamo.Articulo.Nombre);
    this.formGroup.controls.Cliente.setValue('(' + this.reclamo.Cliente.Codigo + ') ' + this.reclamo.Cliente.Nombre);
    this.formGroup.controls.FechaResolucionProveedor.setValue(this.reclamo.RMAProveedor?.FechaResolucion);
    this.formGroup.controls.EstadoProveedor.setValue(this.reclamo.RMAProveedor?.RMAResolucion.EstadoResolucion == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_RESOLUCION_ESTADO_APROBADO ? 'Aprobado' : 'Rechazado');
    this.formGroup.controls.ResolucionProveedor.setValue(this.reclamo.RMAProveedor?.RMAResolucion.Nombre);
    this.formGroup.controls.ObservacionResolucionProveedor.setValue(this.reclamo.RMAProveedor?.ObservacionResolucion);
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    this.subscriptions.push(this.formGroup.controls.Estado.valueChanges.subscribe(estado => {
      this.formGroup.controls.IdRMAResolucion.setValue(0);
      this.cargarResoluciones(estado);
    }));
    this.currentUser = this.authenticationService.usuario;
  }
  /* Metodo que realiza la llamada a la api para traer las resoluciones existentes */
  cargarResoluciones(estado) {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
    datos.PageNumber = 1;
    datos.PageSize = 100;
    datos.Orden = 2;
    datos.EstadoResolucion = estado;
    const susc = this.resolucionService.fetch(datos).subscribe(data => {
      this.resoluciones = data.Data;
    });
    susc.unsubscribe;
  }
  /* Metodo que realiza la llamada a la api para traer los empleados existentes */
  cargarEmpleado() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 3;
    const susc = this.empleadoService.fetch(datos).subscribe(data => {
      this.empleados = data.Data;
      //si es nuevo reclamo, se asigna el empleado logueado
      if (!this.reclamo.Id) {
        this.formGroup.get('IdEmpleado')?.setValue(!this.currentUser.Empleado ? data.Data[0].Id : this.currentUser.Empleado.Id);
      }
    });
    susc.unsubscribe;
  }
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      console.log(this.formGroup);
      return;
    }
    this.prepareCliente();
    if (this.reclamo.RMACliente !== null) {
      this.edit();
    } else {
      this.create();
    }
  }
  prepareCliente() {
    const formData = this.formGroup.controls;
    this.cliente = {};
    this.cliente.FechaResolucion = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(formData.FechaResolucion.value);
    if (formData.FechaHoraEntrega.value !== '' && formData.FechaHoraEntrega.value !== undefined) {
      this.cliente.FechaEntrega = formData.FechaHoraEntrega.value;
    }
    if (formData.FechaNotificacion.value !== '') {
      this.cliente.FechaNotificacion = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(formData.FechaNotificacion.value);
    }
    this.cliente.IdEmpleado = formData.IdEmpleado.value;
    this.cliente.Observacion = formData.ObservacionEntrega.value;
    this.cliente.IdRMAResolucion = Number(formData.IdRMAResolucion.value);
  }
  edit() {
    const sbEdit = this.reclamoService.putEntregaCliente(this.cliente, this.reclamo.RMACliente.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data.NumeroReclamo);
      }
    });
    this.subscriptions.push(sbEdit);
  }
  create() {
    const sbCreate = this.reclamoService.postEntregaCliente(this.cliente, this.reclamo.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data.NumeroReclamo);
      }
    });
    this.subscriptions.push(sbCreate);
  }
  /**
   * MC SINWEB-401 Método para visualizar el reclamo completo
   * @param reclamo datos del reclamo
   */
  visualizarReclamo(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_4__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  //SP SINWEB-416 metodos para fecha y hora de entrega
  getFechaHoraEntrega() {
    return this.formGroup.get('FechaHoraEntrega').value;
  }
  setFechaHoraEntrega($event) {
    this.formGroup.get('FechaHoraEntrega').setValue($event);
  }
  static #_ = this.ɵfac = function ClienteRecNewComponent_Factory(t) {
    return new (t || ClienteRecNewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_7__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_8__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_9__.ResolucionService), _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineComponent"]({
    type: ClienteRecNewComponent,
    selectors: [["app-cliente-rec-new"]],
    inputs: {
      reclamo: "reclamo",
      modoEdicion: "modoEdicion",
      modoVisualizar: "modoVisualizar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 51,
    vars: 27,
    consts: [[1, "modal-content"], ["class", "modal-header", 4, "ngIf"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], ["action", "#", 1, "form", "form-label-right", "mt-2", 3, "formGroup"], [1, "form-group", "p-2"], ["class", "row pb-2 py-2 bg-warning bg-soft", 4, "ngIf"], ["class", "row py-2 bg-warning bg-soft", 4, "ngIf"], [1, "row", "p-1", "pt-2"], [1, "col-lg-6"], ["campoObligatorio", "", 1, "control-label"], ["type", "date", "formControlName", "FechaResolucion", 1, "form-control", "digits"], ["campoObligatorio", "", 1, "form-label"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], [1, "form-label"], ["name", "Estado", "formControlName", "Estado", 1, "form-select"], ["value", "", "disabled", ""], ["value", "D"], ["value", "A"], ["value", "R"], [1, "row", "p-1"], [1, "control-label"], ["type", "date", "formControlName", "FechaNotificacion", 1, "form-control", "digits"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"], [1, "col-lg-12"], ["name", "ObservacionEntrega", "rows", "2", "name", "ObservacionEntrega", "formControlName", "ObservacionEntrega", 1, "form-control", "form-control-solid"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], ["class", "modal-footer", 4, "ngIf"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "row", "pb-2", "py-2", "bg-warning", "bg-soft"], [1, "col-lg-2"], ["type", "text", "name", "NumeroReclamo", "formControlName", "NumeroReclamo", "disabled", "", 1, "form-control", "form-control-solid"], [1, "col-lg-5"], ["type", "text", "name", "Articulo", "formControlName", "Articulo", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "Cliente", "formControlName", "Cliente", "disabled", "", 1, "form-control", "form-control-solid"], [1, "row", "py-2", "bg-warning", "bg-soft"], [1, "col-lg-3"], ["type", "text", "name", "FechaResolucionProveedor", "formControlName", "FechaResolucionProveedor", "disabled", "", 1, "form-control", "form-control-solid"], [1, "col-lg-4"], ["type", "text", "name", "EstadoProveedor", "formControlName", "EstadoProveedor", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "ResolucionProveedor", "formControlName", "ResolucionProveedor", "disabled", "", 1, "form-control", "form-control-solid"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-info", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function ClienteRecNewComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](1, ClienteRecNewComponent_div_1_Template, 3, 1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](2, "div", 2)(3, "form", 3)(4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](5, ClienteRecNewComponent_div_5_Template, 13, 0, "div", 5)(6, ClienteRecNewComponent_div_6_Template, 13, 0, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](7, "div", 7)(8, "div", 8)(9, "label", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](10, "Fecha Resoluci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](11, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](12, "div", 8)(13, "label", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](14, "Responsable");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](15, "select-loading", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("valueSelect", function ClienteRecNewComponent_Template_select_loading_valueSelect_15_listener($event) {
          return ctx.formGroup.controls.IdEmpleado.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](16, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](17, "div", 7)(18, "div", 8)(19, "label", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](20, "Estado");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](21, "select", 14)(22, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](23, "Seleccione Estado");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](24, "option", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](25, "A dictaminar");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](26, "option", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](27, "Aprobado");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](28, "option", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](29, "Rechazado");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](30, "div", 8)(31, "label", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](32, "Resoluci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](33, "select-loading", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("valueSelect", function ClienteRecNewComponent_Template_select_loading_valueSelect_33_listener($event) {
          return ctx.formGroup.controls.IdRMAResolucion.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipe"](34, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](35, "div", 19)(36, "div", 8)(37, "label", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](38, "Fecha Notificaci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](39, "input", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](40, "div", 8)(41, "label", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](42, "Fecha Entrega");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](43, "app-input-date-time", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵlistener"]("valorEmit", function ClienteRecNewComponent_Template_app_input_date_time_valorEmit_43_listener($event) {
          return ctx.setFechaHoraEntrega($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementStart"](44, "div", 19)(45, "div", 23)(46, "label", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtext"](47, "Observaci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelement"](48, "textarea", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](49, ClienteRecNewComponent_div_49_Template, 2, 0, "div", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵtemplate"](50, ClienteRecNewComponent_div_50_Template, 11, 6, "div", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Responsable")("items", ctx.empleados)("valueSelected", ctx.formGroup.controls.IdEmpleado.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](16, 23, ctx.empleadoService.isLoading$))("deshabilitado", ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](18);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("defaultValue", 0)("defaultValueDis", false)("defaultString", "Seleccione la resoluci\u00F3n")("items", ctx.resoluciones)("valueSelected", ctx.formGroup.controls.IdRMAResolucion.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵpipeBind1"](34, 25, ctx.resolucionService.isLoading$))("deshabilitado", ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("valor", ctx.getFechaHoraEntrega());
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("ObservacionEntrega"));
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "ObservacionEntrega"));
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_16__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_10__.CampoObligatorioDirective, _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__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_11__.SelectLoadingComponent, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_12__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_16__.AsyncPipe]
  });
}

/***/ }),

/***/ 21428:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/envio-multiple-prov/envio-multiple-prov.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EnvioMultipleProvComponent: () => (/* binding */ EnvioMultipleProvComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 32013);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* 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 rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ 59773);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/validators/dateValidators */ 49545);
/* 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_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_seleccionar_proveedor_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/seleccionar-proveedor.service */ 50571);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/ui/input-date-time/input-date-time.component */ 75871);



















function EnvioMultipleProvComponent_ng_template_13_ng_template_0_Template(rf, ctx) {}
function EnvioMultipleProvComponent_ng_template_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](0, EnvioMultipleProvComponent_ng_template_13_ng_template_0_Template, 0, 0, "ng-template", 17);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r4);
  }
}
function EnvioMultipleProvComponent_ng_template_20_ng_template_0_Template(rf, ctx) {}
function EnvioMultipleProvComponent_ng_template_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](0, EnvioMultipleProvComponent_ng_template_20_ng_template_0_Template, 0, 0, "ng-template", 17);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function EnvioMultipleProvComponent_ng_template_27_a_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_ng_template_27_a_3_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r13.borrarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_div_44_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " Nro. de serie no debe tener m\u00E1s de 13 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 55)(1, "div", 56)(2, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, "Recepci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](4, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](5, "div", 56)(6, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](7, "Empleado");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](8, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](9, "div", 56)(10, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](11, "Sucursal");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](12, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "div", 59)(14, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](15, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](16, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](17, "div", 60)(18, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](19, "Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](20, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](21, "div", 61)(22, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](23, "Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](24, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](25, "div", 61)(26, "label", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](27, "Motivo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](28, "input", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](29, "div", 62)(30, "div", 63)(31, "label", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](32, "Fecha del informe");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](33, "div", 19)(34, "app-input-date-time", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("valorEmit", function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_Template_app_input_date_time_valorEmit_34_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r26);
      const reclamo_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r24.setFechaEnvioReclamo($event, reclamo_r16));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](35, "div", 63)(36, "label", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](37, "Responsable");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](38, "select-loading", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("valueSelect", function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_Template_select_loading_valueSelect_38_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r26);
      const reclamo_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r27.onResponsableChange(reclamo_r16, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](39, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](40, "div", 68)(41, "label", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](42, "Nro. de Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](43, "input", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](44, EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_div_44_Template, 2, 0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](45, "div", 72)(46, "label", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](47, "Observaci\u00F3n Informe");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](48, "textarea", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("keyup", function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_Template_textarea_keyup_48_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r26);
      const reclamo_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r29.onObservacionChange(reclamo_r16, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const reclamo_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate"]("value", reclamo_r16.FechaHoraRecepcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate"]("value", reclamo_r16.Empleado.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate"]("value", reclamo_r16.Sucursal.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate2"]("value", "(", reclamo_r16.Articulo.Codigo, ") ", reclamo_r16.Articulo.Nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate2"]("value", "(", reclamo_r16.Cliente.Codigo, ") ", reclamo_r16.Cliente.Nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate"]("value", reclamo_r16.RMADefecto.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate"]("value", reclamo_r16.MotivoReclamo);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("valor", ctx_r19.getFechaEnvioReclamo(reclamo_r16));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Responsable")("items", ctx_r19.empleados)("valueSelected", reclamo_r16.formGroup.controls.IdEmpleado.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](39, 21, ctx_r19.empleadoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", reclamo_r16.formGroup.controls["NumeroReclamo"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", reclamo_r16.formGroup.controls["NumeroReclamo"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", reclamo_r16.formGroup.controls["ObservacionEnvio"].invalid);
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_i_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](0, "i", 75);
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_i_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](0, "i", 76);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("pTooltip", "Reclamo enviado al proveedor con \u00E9xito");
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_i_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](0, "i", 77);
  }
  if (rf & 2) {
    const reclamo_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("pTooltip", "Error al enviar: " + reclamo_r16.formGroup.controls["error"].value);
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 41)(1, "div", 42)(2, "input", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("change", function EnvioMultipleProvComponent_ng_template_27_div_6_div_17_Template_input_change_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r34);
      const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r33.checkEnvioValido());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](3, "div", 44)(4, "div", 45, 46)(6, "div", 47)(7, "h2", 48)(8, "button", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "div", 50)(11, "div", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](12, EnvioMultipleProvComponent_ng_template_27_div_6_div_17_ng_template_12_Template, 49, 23, "ng-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](13, "div", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](14, EnvioMultipleProvComponent_ng_template_27_div_6_div_17_i_14_Template, 1, 0, "i", 52)(15, EnvioMultipleProvComponent_ng_template_27_div_6_div_17_i_15_Template, 1, 1, "i", 53)(16, EnvioMultipleProvComponent_ng_template_27_div_6_div_17_i_16_Template, 1, 1, "i", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const reclamo_r16 = ctx.$implicit;
    const i_r17 = ctx.index;
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", reclamo_r16.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate1"]("id", "chk-", i_r17, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("closeOthers", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpropertyInterpolate1"]("id", "static-", i_r17, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtextInterpolate1"](" Nro. Reclamo: ", reclamo_r16.NumeroReclamo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", reclamo_r16.formGroup.controls.enviado.value === false && !reclamo_r16.formGroup.controls["error"].value);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", reclamo_r16.formGroup.controls.enviado.value === true && !reclamo_r16.formGroup.controls["error"].value);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", reclamo_r16.formGroup.controls.enviado.value === false && reclamo_r16.formGroup.controls["error"].value);
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div")(1, "div", 29)(2, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_ng_template_27_div_6_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r36);
      const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r35.recargar());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](3, "i", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "div", 32)(5, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](6, " Acciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](7, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](8, "div", 35)(9, "a", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_ng_template_27_div_6_Template_a_click_9_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r36);
      const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r37.seleccionarTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](10, "Seleccionar todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](11, "a", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_ng_template_27_div_6_Template_a_click_11_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r36);
      const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r38.deseleccionarTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12, "Deseleccionar todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](13, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](14, "a", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_ng_template_27_div_6_Template_a_click_14_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r36);
      const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r39.invertirSelecciones());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](15, "Invertir selecciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](16, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](17, EnvioMultipleProvComponent_ng_template_27_div_6_div_17_Template, 17, 8, "div", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](18, "ngb-progressbar", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngForOf", ctx_r10.reclamos);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("value", ctx_r10.progreso);
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " Seleccione un proveedor para comenzar el informe m\u00FAltiple ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function EnvioMultipleProvComponent_ng_template_27_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 79);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " El proveedor seleccionado no posee reclamos iniciados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function EnvioMultipleProvComponent_ng_template_27_Template(rf, ctx) {
  if (rf & 1) {
    const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "form", 18)(1, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](2, "input", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](3, EnvioMultipleProvComponent_ng_template_27_a_3_Template, 2, 0, "a", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_ng_template_27_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r41);
      const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r40.buscarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](5, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](6, EnvioMultipleProvComponent_ng_template_27_div_6_Template, 19, 2, "div", 24)(7, EnvioMultipleProvComponent_ng_template_27_div_7_Template, 2, 0, "div", 25)(8, EnvioMultipleProvComponent_ng_template_27_div_8_Template, 2, 0, "div", 26);
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r3.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r3.getProveedor());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r3.reclamos.length !== 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r3.reclamos.length === 0 && !ctx_r3.mostrarAlertaProvVacio);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r3.reclamos.length === 0 && ctx_r3.mostrarAlertaProvVacio);
  }
}
function EnvioMultipleProvComponent_ng_template_29_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](1, " Nro. de serie no debe tener m\u00E1s de 13 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
  }
}
function EnvioMultipleProvComponent_ng_template_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 80)(1, "form", 81)(2, "div", 82)(3, "div", 68)(4, "label", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](5, "Fecha del informe");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](6, "app-input-date-time", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("valorEmit", function EnvioMultipleProvComponent_ng_template_29_Template_app_input_date_time_valorEmit_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r44);
      const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r43.setFechaEnvioPred($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](7, "div", 68)(8, "label", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](9, "Responsable");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](10, "select-loading", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("valueSelect", function EnvioMultipleProvComponent_ng_template_29_Template_select_loading_valueSelect_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵrestoreView"](_r44);
      const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵresetView"](ctx_r45.formPred.controls.IdEmpleado.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipe"](11, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](12, "div", 68)(13, "label", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](14, "Nro. de Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](15, "input", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](16, EnvioMultipleProvComponent_ng_template_29_div_16_Template, 2, 0, "div", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](17, "div", 72)(18, "label", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](19, "Observaci\u00F3n Informe");
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](20, "textarea", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("formGroup", ctx_r5.formPred);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("valor", ctx_r5.getFechaEnvioPred());
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Responsable")("items", ctx_r5.empleados)("valueSelected", ctx_r5.formPred.controls.IdEmpleado.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵpipeBind1"](11, 13, ctx_r5.empleadoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r5.formPred.controls["NumeroReclamo"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngIf", ctx_r5.formPred.controls["NumeroReclamo"].invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵclassProp"]("is-invalid", ctx_r5.formPred.controls["ObservacionEnvio"].invalid);
  }
}
/**
 * MC SINWEB-184 - Componente para enviar múltiples reclamos a un proveedor
 */
class EnvioMultipleProvComponent {
  // listenerFn: () => void;
  constructor(fb, modal, modalService, reclamoService, empleadoService, authService, selProvService) {
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.reclamoService = reclamoService;
    this.empleadoService = empleadoService;
    this.authService = authService;
    this.selProvService = selProvService;
    this.envioValido = true;
    this.forceDisabled = true;
    this.seEnvioAlgo = false;
    this.progreso = 0;
    this.mostrarAlertaProvVacio = false;
    this.reclamos = [];
    this.reclamosConCheck = [];
    this.empleados = [];
    this.formGroup = this.fb.group({
      Proveedor: [],
      IdProveedor: [-1]
    });
    this.formPred = this.fb.group({
      NumeroReclamo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(13)])],
      IdEmpleado: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.min(0)])],
      //SP SINWEB-416 nuevo form control de hora y fecha
      FechaEnvio: [(0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_2__.format)(new Date(), 'DD/MM/YYYY HH:mm'), _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([(0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_3__.fechaHoraIncompleta)()])],
      ObservacionEnvio: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(1000)])]
    });
    this._unsubscribe = [];
    // MC SINWEB-197 Variable para completar la suscripción al observable
    this.complete$ = new rxjs__WEBPACK_IMPORTED_MODULE_13__.Subject();
  }
  ngOnInit() {
    this.cargarEmpleados();
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
    this.complete$.next(true);
  }
  /**
   * MC SINWEB-184 - Método para cargar los empleados (select de Responsable)
   */
  cargarEmpleados() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.FALSO;
    datos.PageNumber = 1;
    datos.PageSize = 1000;
    datos.Orden = 3;
    const susc = this.empleadoService.fetch(datos).subscribe(data => {
      this.empleados = data.Data;
      if (data.Errors == null) {
        this.formPred.controls['IdEmpleado'].setValue(this.authService.usuario.Empleado.Id);
      }
    });
    this._unsubscribe.push(susc);
  }
  /**
   * MC SINWEB-184 - Método para validar si se puede enviar el formulario, que es cuando se selecciona al menos un reclamo
   * y cuando los reclamos seleccionados tienen sus campos válidos
   */
  checkEnvioValido() {
    let hayReclamoSelec = this.reclamos.some(reclamo => reclamo.formGroup.controls['checked'].value === true && reclamo.formGroup.controls['enviado'].value === false);
    this.reclamosConCheck = this.reclamos.filter(reclamo => reclamo.formGroup.controls['checked'].value === true && reclamo.formGroup.controls['enviado'].value === false);
    let camposValidos = this.reclamosConCheck.every(reclamo => reclamo.formGroup.valid === true);
    this.envioValido = hayReclamoSelec && camposValidos;
  }
  /**
   * MC SINWEB-184 - Método que se ejecuta cuando se selecciona un responsable
   * @param {any} reclamo Reclamo
   * @param {any} event Evento con el valor del empleado seleccionado
   */
  onResponsableChange(reclamo, event) {
    reclamo.formGroup.controls.IdEmpleado.setValue(event);
    this.checkEnvioValido();
  }
  /**
   * MC SINWEB-184 - Método que se ejecuta cuando se escribe en el campo ObservacionEnvio, espera a que termine
   * de escribir y luego valida si se puede enviar el formulario
   * @param {any} reclamo Reclamo
   * @param {any} event Evento con el valor del textarea
   */
  onObservacionChange(reclamo, event) {
    if (reclamo.formGroup.controls['checked'].value) {
      clearTimeout(this.observacionTimer);
      this.observacionTimer = setTimeout(() => {
        // this.doneTyping(event.target.value)
        this.checkEnvioValido();
      }, 200);
    }
  }
  /**
   * MC SINWEB-184 - Método get para obtener campo Proveedor
   * @returns {any} Proveedor
   */
  getProveedor() {
    return this.formGroup.get('Proveedor').value;
  }
  /**
   * MC SINWEB-184 - Método para limpiar el campo Proveedor
   */
  borrarProveedor() {
    this.formGroup.get('Proveedor').reset('');
    this.formGroup.get('IdProveedor').reset(-1);
    this.reclamos = [];
    this.forceDisabled = false;
    this.progreso = 0;
    if (this.mostrarAlertaProvVacio) {
      this.mostrarAlertaProvVacio = false;
    }
  }
  /**
   * MC SINWEB-184 - Método para buscar un proveedor
   */
  buscarProveedor() {
    // MC SINWEB-197 Cambios para la generalización del componente
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_0__.SeleccionarProveedorComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    this.selProvService.data$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.takeUntil)(this.complete$)).subscribe(data => {
      modalRef.componentInstance.filtros = {
        FetchSource: this.reclamoService.getProveedores({
          ...data,
          IdsEstadosRMAReclamo: '1'
        }),
        Modal: true,
        OcultarFiltros: true
      };
    });
    modalRef.result.then(resolve => {
      this.complete$.next(true);
      if (resolve !== undefined) {
        this.formGroup.controls.IdProveedor.setValue(resolve.IdProveedor);
        this.formGroup.controls.Proveedor.setValue(resolve.Proveedor);
        this.cargarReclamos(resolve.IdProveedor);
        this.forceDisabled = false;
        this.progreso = 0;
      }
    });
  }
  /**
   * MC SINWEB-184 - Método para cargar los reclamos del proveedor seleccionado
   * @param {number} IdProveedor Id del proveedor al que se le van a enviar los reclamos
   */
  cargarReclamos(IdProveedor) {
    let datos = {};
    datos.PageNumber = 1;
    datos.PageSize = 1000;
    datos.Orden = 2;
    datos.IncluirArticulosAProd = 'S';
    datos.IdProveedor = IdProveedor;
    datos.IdsEstados = 1;
    const susc = this.reclamoService.getReclamos(datos).subscribe(data => {
      this.mostrarAlertaProvVacio = data.TotalRecords === 0;
      this.reclamos = data.Data;
      this.reclamos.forEach((reclamo, index, array) => {
        array[index]['formGroup'] = this.fb.group({
          IdEmpleado: [this.authService.usuario.Empleado.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.min(0)])],
          FechaEnvio: [''],
          NumeroReclamo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(13)])],
          ObservacionEnvio: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_12__.Validators.maxLength(1000)])],
          checked: [{
            value: true,
            disabled: false
          }],
          enviado: [false],
          error: [null]
        });
      });
      this.checkEnvioValido();
    });
    this._unsubscribe.push(susc);
    // MC - Uso un método GET personalizado para que no afecte al listado de Reclamos de fondo
  }
  /**
   * MC SINWEB-184 - Método para enviar los reclamos seleccionados
   */
  guardar() {
    this.progreso = 0;
    this.reclamosConCheck.forEach(reclamo => {
      this.create(reclamo);
    });
  }
  /**
   * MC SINWEB-184 - Método para preparar el reclamo para enviar
   * @param {any} reclamo Reclamo
   * @returns {any} Reclamo con los campos preparados para enviar
   */
  prepareReclamo(reclamo) {
    let fg = reclamo.formGroup.value;
    //SP SINWEB-416 - Se formatea la fecha y hora de envio
    fg.FechaEnvio = fg.FechaEnvio === '' ? this.formPred.controls['FechaEnvio'].value : fg.FechaEnvio;
    fg.IdEmpleado = Number(fg.IdEmpleado) !== this.formPred.controls['IdEmpleado'].value ? Number(fg.IdEmpleado) : this.formPred.controls['IdEmpleado'].value;
    fg.NumeroReclamo = fg.NumeroReclamo === '' ? this.formPred.controls['NumeroReclamo'].value : fg.NumeroReclamo;
    fg.ObservacionEnvio = fg.ObservacionEnvio === '' ? this.formPred.controls['ObservacionEnvio'].value : fg.ObservacionEnvio;
    delete fg.checked;
    delete fg.enviado;
    //SP SINWEB-416 se deletea la Hora de envio ya que no es requerida
    delete fg.HoraEnvio;
    return fg;
  }
  /**
   * MC SINWEB-184 - Método para enviar un reclamo
   * @param {any} reclamo Reclamo
   */
  create(reclamo) {
    const fg = this.prepareReclamo(reclamo);
    const sbCreate = this.reclamoService.postEnvioProveedor(fg, reclamo.Id).subscribe({
      next: res => {
        if (res.Errors == null) {
          // this.modal.close(res.Data.NumeroReclamo);
          const recIndex = this.reclamosConCheck.findIndex(r => r.Id === reclamo.Id);
          this.reclamosConCheck[recIndex].formGroup.controls['enviado'].setValue(true);
          this.reclamosConCheck[recIndex].formGroup.controls['checked'].disable();
          this.calcularProgreso();
          this.checkEnvioValido();
          this.seEnvioAlgo = true;
        }
      },
      error: err => {
        if (err) {
          const recIndex = this.reclamosConCheck.findIndex(r => r.Id === reclamo.Id);
          this.reclamosConCheck[recIndex].formGroup.controls['error'].setValue(err.error.Errors[0]);
        }
      }
    });
    this._unsubscribe.push(sbCreate);
  }
  /**
   * MC SINWEB-184 - Método para calcular el progreso de los reclamos enviados (se usa para la barra de progreso)
   */
  calcularProgreso() {
    let total = this.reclamosConCheck.length;
    let paso = total !== 0 ? 100 / total : 0;
    this.progreso += paso;
  }
  /**
   * MC SINWEB-184 - Método para seleccionar todos los reclamos
   */
  seleccionarTodos() {
    this.reclamos.forEach((reclamo, index, array) => {
      if (reclamo.formGroup.controls['enviado'].value === false && reclamo.formGroup.controls['checked'].disabled === false) {
        array[index]['formGroup'].controls['checked'].setValue(true);
      }
    });
    this.checkEnvioValido();
  }
  /**
   * MC SINWEB-184 - Método para deseleccionar todos los reclamos
   */
  deseleccionarTodos() {
    this.reclamos.forEach((reclamo, index, array) => {
      if (reclamo.formGroup.controls['enviado'].value === false && reclamo.formGroup.controls['checked'].disabled === false) {
        array[index]['formGroup'].controls['checked'].setValue(false);
      }
    });
    this.checkEnvioValido();
  }
  /**
   * MC SINWEB-184 - Método para invertir las selecciones de los reclamos
   */
  invertirSelecciones() {
    this.reclamos.forEach((reclamo, index, array) => {
      if (reclamo.formGroup.controls['enviado'].value === false && reclamo.formGroup.controls['checked'].disabled === false) {
        array[index]['formGroup'].controls['checked'].setValue(!array[index]['formGroup'].controls['checked'].value);
      }
    });
    this.checkEnvioValido();
  }
  /**
   * MC SINWEB-184 - Método para recargar el listado de reclamos de un proveedor
   */
  recargar() {
    this.cargarReclamos(this.formGroup.controls['IdProveedor'].value);
    this.progreso = 0;
    this.forceDisabled = false;
  }
  // SP SINWEB-416 - Métodos para manejar la fecha y hora de envio
  getFechaEnvioPred() {
    return this.formPred.get('FechaEnvio').value;
  }
  setFechaEnvioPred($event) {
    this.formPred.get('FechaEnvio').setValue($event);
  }
  getFechaEnvioReclamo(reclamo) {
    return reclamo.formGroup.get('FechaEnvio').value;
  }
  setFechaEnvioReclamo($event, reclamo) {
    console.log(reclamo);
    reclamo.formGroup.get('FechaEnvio').setValue($event);
  }
  static #_ = this.ɵfac = function EnvioMultipleProvComponent_Factory(t) {
    return new (t || EnvioMultipleProvComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_4__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_5__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdirectiveInject"](src_app_core_services_core_seleccionar_proveedor_service__WEBPACK_IMPORTED_MODULE_7__.SeleccionarProveedorService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineComponent"]({
    type: EnvioMultipleProvComponent,
    selectors: [["app-envio-multiple-prov"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵProvidersFeature"]([])],
    decls: 31,
    vars: 6,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title"], [1, "modal-body"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified", 3, "activeId", "destroyOnHide"], ["mainNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], [1, "d-block", "d-sm-none"], [1, "d-none", "d-sm-block"], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["RECLAMOS_TAB", ""], ["PREDETERMINADO_TAB", ""], [3, "ngTemplateOutlet"], [1, "my-3", 3, "formGroup"], [1, "input-group"], ["type", "search", "formControlName", "Proveedor", "placeholder", "Seleccionar Proveedor", "readonly", "", 1, "form-control"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [4, "ngIf"], ["class", "alert alert-info py-3 mb-0 text-center", "role", "alert", 4, "ngIf"], ["class", "alert alert-warning py-3 mb-0 text-center", "role", "alert", 4, "ngIf"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "d-flex", "justify-content-end", "gap-1", "mb-3"], ["placement", "start", "ngbTooltip", "Recargar el listado de reclamos del proveedor", 1, "btn", "btn-light", 3, "click"], [1, "bx", "bx-sync", "font-size-16", "align-middle"], ["ngbDropdown", "", 1, "dropdown"], ["type", "button", "id", "dropdownMenuButton", "ngbDropdownToggle", "", 1, "btn", "btn-light", "dropdown-toggle"], [1, "mdi", "mdi-chevron-down"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], [1, "dropdown-item", 2, "cursor", "pointer", 3, "click"], [1, "dropdown-divider"], [1, "pe-sm-4", "animate__animated", "animate__fadeIn", 2, "max-height", "400px", "overflow-y", "auto", "overflow-x", "auto"], ["class", "row align-items-center", 3, "formGroup", 4, "ngFor", "ngForOf"], ["type", "success", 1, "mt-4", 3, "value"], [1, "row", "align-items-center", 3, "formGroup"], [1, "col-1", "text-center"], ["type", "checkbox", "formControlName", "checked", 2, "width", "20px", "height", "20px", 3, "id", "change"], [1, "col-10"], ["ngbAccordion", "", 3, "closeOthers"], ["accordion", "ngbAccordion"], ["ngbAccordionItem", "", 3, "id"], ["ngbAccordionHeader", "", 1, "text-dark"], ["ngbAccordionButton", ""], ["ngbAccordionCollapse", ""], ["ngbAccordionBody", "", 1, "p-0"], ["class", "bx bx-check-circle bx-sm text-secondary", 4, "ngIf"], ["class", "bx bx-check-circle bx-sm text-success", "tooltipPosition", "top", 3, "pTooltip", 4, "ngIf"], ["class", "bx bx-check-circle bx-sm text-danger", "tooltipPosition", "top", 3, "pTooltip", 4, "ngIf"], [1, "row", "mx-0", "mb-1", "bg-light", "py-3", "px-2", "rounded"], [1, "col-lg-4", "mb-2"], [1, "form-label"], ["type", "text", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "col-lg-7", "mb-2"], [1, "col-lg-5", "mb-2"], [1, "col-lg-6"], [1, "row", "p-4", 2, "color", "#495057 !important"], [1, "col-lg-6", "mb-1"], [1, "control-label", "text-dark"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"], ["campoObligatorio", "", 1, "form-label", "text-dark"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "valueSelect"], [1, "col-lg-6", "mb-2"], [1, "form-label", "text-dark"], ["type", "text", "autocomplete", "off", "formControlName", "NumeroReclamo", 1, "form-control", "form-control-solid"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], [1, "col-12"], ["formControlName", "ObservacionEnvio", 1, "form-control", "form-control-solid", 3, "keyup"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [1, "bx", "bx-check-circle", "bx-sm", "text-secondary"], ["tooltipPosition", "top", 1, "bx", "bx-check-circle", "bx-sm", "text-success", 3, "pTooltip"], ["tooltipPosition", "top", 1, "bx", "bx-check-circle", "bx-sm", "text-danger", 3, "pTooltip"], ["role", "alert", 1, "alert", "alert-info", "py-3", "mb-0", "text-center"], ["role", "alert", 1, "alert", "alert-warning", "py-3", "mb-0", "text-center"], [1, "mt-3"], [3, "formGroup"], [1, "row"], ["formControlName", "ObservacionEnvio", 1, "form-control", "form-control-solid"]],
    template: function EnvioMultipleProvComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h4", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](3, " Informe m\u00FAltiple a proveedor ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](4, "div", 3)(5, "ul", 4, 5)(7, "li", 6)(8, "a", 7)(9, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](10, "Reclamos");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](11, "span", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](12, "Reclamos");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](13, EnvioMultipleProvComponent_ng_template_13_Template, 1, 1, "ng-template", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](14, "li", 6)(15, "a", 7)(16, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](17, "Predet.");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](18, "span", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](19, "Datos predeterminados");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](20, EnvioMultipleProvComponent_ng_template_20_Template, 1, 1, "ng-template", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelement"](21, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](22, "div", 12)(23, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_Template_button_click_23_listener() {
          return ctx.modal.dismiss(ctx.seEnvioAlgo);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](24, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementStart"](25, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵlistener"]("click", function EnvioMultipleProvComponent_Template_button_click_25_listener() {
          return ctx.guardar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtext"](26, " Enviar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplate"](27, EnvioMultipleProvComponent_ng_template_27_Template, 9, 5, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"])(29, EnvioMultipleProvComponent_ng_template_29_Template, 21, 15, "ng-template", null, 16, _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵreference"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("activeId", 1)("destroyOnHide", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngbNavItem", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngbNavItem", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("ngbNavOutlet", _r0);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵproperty"]("disabled", ctx.forceDisabled || !ctx.envioValido);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_16__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_16__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_16__.NgTemplateOutlet, primeng_tooltip__WEBPACK_IMPORTED_MODULE_17__.Tooltip, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_8__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbAccordionButton, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbAccordionDirective, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbAccordionItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbAccordionHeader, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbAccordionBody, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbAccordionCollapse, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbDropdownMenu, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbNavOutlet, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbProgressbar, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.NgbTooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_9__.SelectLoadingComponent, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_10__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_16__.AsyncPipe]
  });
}

/***/ }),

/***/ 91930:
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/proveedor-rec-listado/enviar-prov/enviar-prov.component.ts ***!
  \**************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EnviarProvComponent: () => (/* binding */ EnviarProvComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/validators/dateValidators */ 49545);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 65879);
/* 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_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/ui/input-date-time/input-date-time.component */ 75871);


















function EnviarProvComponent_div_1_ng_container_2_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, "Informe de reclamo a proveedor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
}
function EnviarProvComponent_div_1_ng_container_2_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, "Editar informe de reclamo a proveedor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
}
function EnviarProvComponent_div_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, EnviarProvComponent_div_1_ng_container_2_ng_container_1_Template, 2, 0, "ng-container", 22)(2, EnviarProvComponent_div_1_ng_container_2_ng_container_2_Template, 2, 0, "ng-container", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r5.modoEdicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx_r5.modoEdicion);
  }
}
function EnviarProvComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 20)(1, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, EnviarProvComponent_div_1_ng_container_2_Template, 3, 2, "ng-container", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx_r0.reclamo);
  }
}
function EnviarProvComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 23)(1, "div", 24)(2, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, "Nro. Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](4, "input", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "div", 26)(6, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](7, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](8, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](9, "div", 26)(10, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](11, "Proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](12, "input", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
}
function EnviarProvComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Nro. de serie no debe tener m\u00E1s de 13 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function EnviarProvComponent_div_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 1000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function EnviarProvComponent_div_28_i_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "i", 35);
  }
}
function EnviarProvComponent_div_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 30)(1, "button", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function EnviarProvComponent_div_28_Template_button_click_1_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.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "button", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function EnviarProvComponent_div_28_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r10);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r11.visualizarReclamo(ctx_r11.reclamo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](4, " Ver reclamo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerStart"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function EnviarProvComponent_div_28_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r10);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r12.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](7, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](8, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](9, EnviarProvComponent_div_28_i_9_Template, 1, 0, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](10, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementContainerEnd"]();
    _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__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("disabled", ctx_r4.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](7, 2, ctx_r4.reclamoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](10, 4, ctx_r4.reclamoService.isLoading$));
  }
}
const _c0 = (a0, a1) => [a0, a1];
const _c1 = () => ["Fecha y hora del informe incompleta", "Fecha y hora del informe requerida"];
class EnviarProvComponent {
  constructor(fb, modal, vh, authenticationService, empleadoService, reclamoService, modalService) {
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.authenticationService = authenticationService;
    this.empleadoService = empleadoService;
    this.reclamoService = reclamoService;
    this.modalService = modalService;
    this.modoEdicion = false;
    /**
     * SP SINWEB-169 nuevo input para vizualizar
     */
    this.modoVisualizar = false;
    //formulario
    this.formGroup = this.fb.group({
      NumeroReclamo: [''],
      Articulo: [''],
      Proveedor: [''],
      //SP SINWEB-416 cambio para obtener la fecha hora
      FechaHoraEnvio: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, (0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_5__.fechaHoraIncompleta)()])],
      IdEmpleado: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
      NumeroReclamoProv: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(13)])],
      ObservacionEnvio: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(1000)])]
    });
    this.subscriptions = [];
  }
  ngOnInit() {
    /**
     * SP SINWEB-202 desahabilita los formularios si estamos en vizualizar
     */
    if (this.modoVisualizar) {
      this.formGroup.disable();
    }
    if (this.reclamo.RMAProveedor == null) {
      this.loadForm();
    } else {
      const sb = this.reclamoService.SerchById(this.reclamo.Id).subscribe(reclamo => {
        this.reclamo = reclamo;
        this.loadForm();
      });
      this.subscriptions.push(sb);
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  loadForm() {
    if (this.reclamo.RMAProveedor !== null) {
      this.formGroup = this.fb.group({
        NumeroReclamo: [''],
        Articulo: [''],
        Proveedor: [''],
        //SP SINWEB-416 seteo de fecha hora
        FechaHoraEnvio: [(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaHoraSinAmPm)(this.reclamo.RMAProveedor?.FechaEnvio), _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, (0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_5__.fechaHoraIncompleta)()])],
        IdEmpleado: [this.reclamo.RMAProveedor?.Empleado.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.min(0)])],
        NumeroReclamoProv: [this.reclamo.RMAProveedor?.NumeroReclamo, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(13)])],
        ObservacionEnvio: [this.reclamo.RMAProveedor?.ObservacionEnvio, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_13__.Validators.maxLength(1000)])]
      });
    } else {
      //SP SINWEB-416 nuevo fecha y hora , inicializacion
      this.formGroup.controls.FechaHoraEnvio.setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_4__.format)(new Date(), 'DD/MM/YYYY HH:mm'));
    }
    this.formGroup.controls.NumeroReclamo.setValue(this.reclamo.NumeroReclamo);
    this.formGroup.controls.Articulo.setValue('(' + this.reclamo.Articulo.Codigo + ') ' + this.reclamo.Articulo.Nombre);
    this.formGroup.controls.Proveedor.setValue('(' + this.reclamo.Proveedor.Codigo + ') ' + this.reclamo.Proveedor.Nombre);
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    this.currentUser = this.authenticationService.usuario;
    this.cargarEmpleado();
  }
  /* Metodo que realiza la llamada a la api para traer los empleados existentes */
  cargarEmpleado() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 3;
    const susc = this.empleadoService.fetch(datos).subscribe(data => {
      this.empleados = data.Data;
      //si es nuevo reclamo, se asigna el empleado logueado
      /** SP SINWEB-579 se corrigio condicion, this.reclamo por this.reclamo.RMAProveedor? */
      if (!this.reclamo.RMAProveedor?.Id) {
        this.formGroup.get('IdEmpleado')?.setValue(!this.currentUser.Empleado ? data.Data[0].Id : this.currentUser.Empleado.Id);
      }
    });
    susc.unsubscribe;
  }
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      return;
    }
    this.prepareEnvio();
    if (this.reclamo.RMAProveedor !== null) {
      this.edit();
    } else {
      this.create();
    }
  }
  prepareEnvio() {
    const formData = this.formGroup.value;
    this.envioProveedor = {};
    this.envioProveedor.IdEmpleado = Number(formData.IdEmpleado);
    //SP SINWEB-416 setea la fecha de envio y hay fecha y hora seteada
    if (formData.FechaHoraEnvio) {
      this.envioProveedor.FechaEnvio = formData.FechaHoraEnvio;
    }
    this.envioProveedor.NumeroReclamo = formData.NumeroReclamoProv;
    this.envioProveedor.ObservacionEnvio = formData.ObservacionEnvio;
  }
  edit() {
    const sbEdit = this.reclamoService.putEnvioProveedor(this.envioProveedor, this.reclamo.RMAProveedor.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data.NumeroReclamo);
      }
    });
    this.subscriptions.push(sbEdit);
  }
  create() {
    const sbCreate = this.reclamoService.postEnvioProveedor(this.envioProveedor, this.reclamo.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data.NumeroReclamo);
      }
    });
    this.subscriptions.push(sbCreate);
  }
  /**
   * MC SINWEB-401 Método para visualizar el reclamo completo
   * @param reclamo datos del reclamo
   */
  visualizarReclamo(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_3__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  //SP SINWEB-416 metodos para obtener y setear la fecha y hora
  getFechaHoraEnvio() {
    return this.formGroup.get('FechaHoraEnvio').value;
  }
  setFechaHoraEnvio($event) {
    this.formGroup.get('FechaHoraEnvio').setValue($event);
  }
  fechaHoraTouched() {
    this.formGroup.get('FechaHoraEnvio').markAsTouched();
  }
  static #_ = this.ɵfac = function EnviarProvComponent_Factory(t) {
    return new (t || EnviarProvComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_7__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_8__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
    type: EnviarProvComponent,
    selectors: [["app-enviar-prov"]],
    inputs: {
      reclamo: "reclamo",
      modoEdicion: "modoEdicion",
      modoVisualizar: "modoVisualizar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 29,
    vars: 29,
    consts: [[1, "modal-content"], ["class", "modal-header", 4, "ngIf"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], ["action", "#", 1, "form", "form-label-right", "mt-2", 3, "formGroup"], [1, "form-group", "p-2"], ["class", "row pb-2 py-2 bg-warning bg-soft", 4, "ngIf"], [1, "row", "p-1", "pt-2"], [1, "col-lg-6"], ["campoObligatorio", "", 1, "control-label"], ["maxDate", "31/12/3000", 3, "valor", "showErrors", "errors", "msgErrors", "valorEmit", "touchedEmit"], ["campoObligatorio", "", 1, "form-label"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], [1, "row", "p-1"], [1, "form-label"], ["type", "text", "name", "NumeroReclamoProv", "autocomplete", "off", "formControlName", "NumeroReclamoProv", 1, "form-control", "form-control-solid"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], [1, "col-lg-12"], [1, "control-label"], ["name", "ObservacionEnvio", "rows", "2", "name", "ObservacionEnvio", "formControlName", "ObservacionEnvio", 1, "form-control", "form-control-solid"], ["class", "modal-footer", 4, "ngIf"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "row", "pb-2", "py-2", "bg-warning", "bg-soft"], [1, "col-lg-2"], ["type", "text", "name", "NumeroReclamo", "formControlName", "NumeroReclamo", "disabled", "", 1, "form-control", "form-control-solid"], [1, "col-lg-5"], ["type", "text", "name", "Articulo", "formControlName", "Articulo", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "Proveedor", "formControlName", "Proveedor", "disabled", "", 1, "form-control", "form-control-solid"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-info", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function EnviarProvComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, EnviarProvComponent_div_1_Template, 3, 1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](2, "div", 2)(3, "form", 3)(4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, EnviarProvComponent_div_5_Template, 13, 0, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "div", 6)(7, "div", 7)(8, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](9, "Fecha del informe");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](10, "app-input-date-time", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("valorEmit", function EnviarProvComponent_Template_app_input_date_time_valorEmit_10_listener($event) {
          return ctx.setFechaHoraEnvio($event);
        })("touchedEmit", function EnviarProvComponent_Template_app_input_date_time_touchedEmit_10_listener() {
          return ctx.fechaHoraTouched();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](11, "div", 7)(12, "label", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](13, "Responsable");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](14, "select-loading", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("valueSelect", function EnviarProvComponent_Template_select_loading_valueSelect_14_listener($event) {
          return ctx.formGroup.controls.IdEmpleado.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](15, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](16, "div", 12)(17, "div", 7)(18, "label", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](19, "Nro. de Reclamo");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](20, "input", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](21, EnviarProvComponent_div_21_Template, 2, 0, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](22, "div", 12)(23, "div", 16)(24, "label", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](25, "Observaci\u00F3n Informe");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](26, "textarea", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](27, EnviarProvComponent_div_27_Template, 2, 0, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](28, EnviarProvComponent_div_28_Template, 11, 6, "div", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("valor", ctx.getFechaHoraEnvio())("showErrors", true)("errors", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction2"](25, _c0, ctx.vh.controlHasError("fechaHoraIncompleta", "FechaHoraEnvio"), ctx.vh.controlHasError("required", "FechaHoraEnvio")))("msgErrors", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction0"](28, _c1));
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Responsable")("items", ctx.empleados)("valueSelected", ctx.formGroup.controls.IdEmpleado.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBind1"](15, 23, ctx.empleadoService.isLoading$))("deshabilitado", ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("NumeroReclamoProv"))("is-valid", ctx.vh.isControlValid("NumeroReclamoProv"));
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "NumeroReclamoProv"));
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("ObservacionEnvio"));
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "ObservacionEnvio"));
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_15__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_9__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_10__.SelectLoadingComponent, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_11__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_15__.AsyncPipe]
  });
}

/***/ }),

/***/ 68654:
/*!************************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/proveedor-rec-listado/proveedor-rec-listado.component.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ProveedorRecListadoComponent: () => (/* binding */ ProveedorRecListadoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __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 _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reclamos-view/reclamos-view.component */ 81415);
/* 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_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/ui/log/log.component */ 44192);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/rma/resolucion.service */ 63682);
/* 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_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);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/ui/input-date-time/input-date-time.component */ 75871);
















function ProveedorRecListadoComponent_div_21_a_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ProveedorRecListadoComponent_div_21_a_17_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r11.borrarSearch("NroReclamoProv"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function ProveedorRecListadoComponent_div_21_div_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "p", 27);
    _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", 38)(4, "option", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Todos los estados resoluci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "option", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7, "Aprobado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](8, "option", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9, "Rechazado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
}
function ProveedorRecListadoComponent_div_21_div_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "p", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Resoluci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "select-loading", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valueSelect", function ProveedorRecListadoComponent_div_21_div_21_Template_select_loading_valueSelect_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r13.searchForm.controls.IdsResolucionesProv.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("defaultValue", 0)("defaultValueDis", false)("defaultString", "Todas las resoluciones")("items", ctx_r10.resoluciones)("valueSelected", ctx_r10.searchForm.controls.IdsResolucionesProv.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](4, 6, ctx_r10.resolucionService.isLoading$));
  }
}
function ProveedorRecListadoComponent_div_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](1, 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "div", 25)(3, "div", 26)(4, "p", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Fecha Env\u00EDo desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "app-input-date-time", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valorEmit", function ProveedorRecListadoComponent_div_21_Template_app_input_date_time_valorEmit_6_listener($event) {
      _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.setFechaHoraEnvioProveedorDesde($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "div", 26)(8, "p", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](9, "Fecha Env\u00EDo hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "app-input-date-time", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valorEmit", function ProveedorRecListadoComponent_div_21_Template_app_input_date_time_valorEmit_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r16);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r17.setFechaHoraEnvioProveedorHasta($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "div", 29)(12, "div")(13, "p", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](14, "N\u00FAmero de reclamo proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](15, "div", 30)(16, "input", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("keyup.enter", function ProveedorRecListadoComponent_div_21_Template_input_keyup_enter_16_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r16);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r18.enviarFiltros());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](17, ProveedorRecListadoComponent_div_21_a_17_Template, 2, 0, "a", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ProveedorRecListadoComponent_div_21_Template_a_click_18_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r16);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r19.enviarFiltros());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](19, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](20, ProveedorRecListadoComponent_div_21_div_20_Template, 10, 0, "div", 35)(21, ProveedorRecListadoComponent_div_21_div_21_Template, 5, 8, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx_r0.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("valor", ctx_r0.getFechaHoraEnvioProveedorDesde());
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("valor", ctx_r0.getFechaHoraEnvioProveedorHasta());
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.getSearch("NroReclamoProv"));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.tabActive !== 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.tabActive !== 0);
  }
}
function ProveedorRecListadoComponent_li_25_ng_template_6_ng_template_0_Template(rf, ctx) {}
function ProveedorRecListadoComponent_li_25_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, ProveedorRecListadoComponent_li_25_ng_template_6_ng_template_0_Template, 0, 0, "ng-template", 48);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](29);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngTemplateOutlet", _r5);
  }
}
function ProveedorRecListadoComponent_li_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "li", 43)(1, "a", 44)(2, "span", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "A dict.");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "span", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "A dictaminar");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, ProveedorRecListadoComponent_li_25_ng_template_6_Template, 1, 1, "ng-template", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngbNavItem", 0);
  }
}
function ProveedorRecListadoComponent_li_26_ng_template_6_ng_template_0_Template(rf, ctx) {}
function ProveedorRecListadoComponent_li_26_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, ProveedorRecListadoComponent_li_26_ng_template_6_ng_template_0_Template, 0, 0, "ng-template", 48);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngTemplateOutlet", _r7);
  }
}
function ProveedorRecListadoComponent_li_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "li", 43)(1, "a", 44)(2, "span", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "Res.");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "span", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Resuelto");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, ProveedorRecListadoComponent_li_26_ng_template_6_Template, 1, 1, "ng-template", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngbNavItem", 1);
  }
}
function ProveedorRecListadoComponent_ng_template_28_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "app-table2", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("emitAction", function ProveedorRecListadoComponent_ng_template_28_ng_container_0_Template_app_table2_emitAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r25.accionOrder($event));
    })("lazyLoad", function ProveedorRecListadoComponent_ng_template_28_ng_container_0_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r26);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r27.lazyLoadChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("columns", ctx_r24.getReclamosHeader(ctx_r24.reclamosHeader_dictaminar))("order", ctx_r24.order)("sentido", ctx_r24.sentido)("datos", ctx_r24.registros)("page", ctx_r24.page)("cant_search", ctx_r24.cant_search)("totalItems", ctx_r24.totalItems)("dropdownButtons", ctx_r24.dropdownActions_dictaminar)("apiTable", true)("acciones", true);
  }
}
function ProveedorRecListadoComponent_ng_template_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, ProveedorRecListadoComponent_ng_template_28_ng_container_0_Template, 2, 10, "ng-container", 51);
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r4.isLoading);
  }
}
function ProveedorRecListadoComponent_ng_template_30_ng_container_0_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, "app-table2", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("emitAction", function ProveedorRecListadoComponent_ng_template_30_ng_container_0_Template_app_table2_emitAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r30);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r29.accionOrder($event));
    })("lazyLoad", function ProveedorRecListadoComponent_ng_template_30_ng_container_0_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r30);
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r31.lazyLoadChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("columns", ctx_r28.getReclamosHeader(ctx_r28.reclamosHeader_resuelto))("order", ctx_r28.order)("sentido", ctx_r28.sentido)("datos", ctx_r28.registros)("page", ctx_r28.page)("cant_search", ctx_r28.cant_search)("totalItems", ctx_r28.totalItems)("dropdownButtons", ctx_r28.dropdownActions_resuelto)("apiTable", true)("acciones", true);
  }
}
function ProveedorRecListadoComponent_ng_template_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, ProveedorRecListadoComponent_ng_template_30_ng_container_0_Template, 2, 10, "ng-container", 51);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r6.isLoading);
  }
}
class ProveedorRecListadoComponent {
  constructor(fb, alert, modalService, resolucionService) {
    this.fb = fb;
    this.alert = alert;
    this.modalService = modalService;
    this.resolucionService = resolucionService;
    this.registros = [];
    this.isLoading = false;
    this.order = 3;
    this.sentido = 'Desc';
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.totalItems = 0;
    this.idsResueltos = '';
    // @Output() pageChangeEv = new EventEmitter<any>();
    // @Output() setPageEv = new EventEmitter<any>();
    // @Output() setOrderEv = new EventEmitter<any>();
    this.lazyLoadChangeEv = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.export = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.filtros = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.editar = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.editarAtributo = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.eliminar = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.eliminarRes = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.editarResol = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.cargarCliente = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.subscriptions = [];
    //filtros
    this.filtro = false;
    this.searchForm = this.fb.group({
      NroReclamoProv: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.maxLength(350)],
      //SP SINWEB-416 Cambio para usar nuevos inputs de fecha y hora
      FechaHoraEnvioProveedorDesde: [''],
      FechaHoraEnvioProveedorHasta: [''],
      Estado: [''],
      IdsResolucionesProv: [0]
    });
    this.resolucionFilter = '0';
    //tab de la pagina
    this.tabActive = 0;
    this.tabs = {
      A_DICTAMINAR_TAB: 0,
      RESUELTO_TAB: 1
    };
    //listado
    this.reclamosHeader_dictaminar = [{
      Nombre: 'Nro.Reclamo',
      Order: 3,
      Key: 'NumeroReclamo',
      WCol: '10%'
    }, {
      Nombre: 'Artículo',
      WCol: '20%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(x) w ',
        ArrayKeys: {
          w: 'Articulo.Nombre',
          x: 'Articulo.Codigo'
        }
      }
    }, {
      Nombre: 'Defecto',
      Key: 'RMADefecto.Nombre',
      Order: 19,
      WCol: '15%'
    }, {
      Nombre: 'Proveedor',
      WCol: '20%',
      Type: 'template',
      Order: 24,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Proveedor.Nombre',
          b: 'Proveedor.Codigo'
        }
      }
    },
    // MC SINWEB-766  Se agrega columna Cliente
    {
      Nombre: 'Cliente',
      WCol: '20%',
      Type: 'template',
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Cliente.Nombre',
          b: 'Cliente.Codigo'
        }
      }
    }, {
      // MC SINWEB-399 Se agrega columna Sucursal
      Nombre: 'Sucursal',
      Key: 'Sucursal.Nombre'
    }, {
      Nombre: 'Fecha Envío',
      Key: 'RMAProveedor.FechaEnvio',
      WCol: '8%'
    }, {
      Nombre: 'Nro.Reclamo Prov.',
      Key: 'RMAProveedor.NumeroReclamo',
      WCol: '10%'
    }, {
      Nombre: 'Responsable',
      Key: 'RMAProveedor.Empleado.Nombre'
    }, {
      // MC SINWEB-400 Se agrega columna Observación
      Nombre: 'Observación',
      Key: 'Observacion'
    }];
    this.dropdownActions_dictaminar = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR
    }, {
      Title: 'Editar atributos',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Editar informe a proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_EDITAR
    }, {
      Title: 'Volver a estado iniciado',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_ELIMINAR
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Registrar resolución proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_NUEVA
    }];
    this.reclamosHeader_resuelto = [{
      Nombre: 'Nro.Reclamo',
      Order: 3,
      Key: 'NumeroReclamo',
      WCol: '10%'
    }, {
      Nombre: 'Artículo',
      WCol: '20%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Articulo.Nombre',
          b: 'Articulo.Codigo'
        }
      }
    }, {
      Nombre: 'Defecto',
      Key: 'RMADefecto.Nombre',
      Order: 19,
      WCol: '15%'
    }, {
      Nombre: 'Proveedor',
      WCol: '20%',
      Type: 'template',
      Order: 24,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Proveedor.Nombre',
          b: 'Proveedor.Codigo'
        }
      }
    }, {
      // MC SINWEB-399 Se agrega columna Sucursal
      Nombre: 'Sucursal',
      Key: 'Sucursal.Nombre'
    }, {
      Nombre: 'Fecha Envío',
      Key: 'RMAProveedor.FechaEnvio',
      WCol: '8%'
    }, {
      Nombre: 'Nro.Reclamo Prov.',
      Key: 'RMAProveedor.NumeroReclamo',
      WCol: '10%'
    }, {
      Nombre: 'Responsable',
      Key: 'RMAProveedor.Empleado.Nombre'
    }, {
      Nombre: 'Fecha Resolución',
      Key: 'RMAProveedor.FechaResolucion',
      WCol: '8%'
    }, {
      Nombre: 'Estado Resolución',
      Type: 'dictionary',
      Key: 'RMAProveedor.RMAResolucion.EstadoResolucion',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_RESOLUCION_ESTADO,
      WCol: '10%'
    }, {
      Nombre: 'Resolución',
      Key: 'RMAProveedor.RMAResolucion.Nombre'
    }, {
      // MC SINWEB-400 Se agrega columna Observación
      Nombre: 'Observación Resolución',
      Key: 'RMAProveedor.ObservacionResolucion'
    }];
    this.dropdownActions_resuelto = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR
    }, {
      Title: 'Editar atributos',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Editar resolución',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_EDITAR
    }, {
      Title: 'Rescisión de resolución',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_ELIMINAR
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Registrar resolución a cliente',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_NUEVA
    }];
    this.headerLog = [{
      Nombre: 'Fecha',
      Order: 1,
      Key: 'Fecha',
      WCol: '25%'
    }, {
      Nombre: 'Usuario',
      Order: 2,
      Key: 'Usuario',
      WCol: '25%'
    }, {
      Nombre: 'Registro',
      Order: 3,
      Key: 'Registro',
      WCol: '25%'
    }, {
      Nombre: 'Mensaje',
      Order: 4,
      Key: 'Mensaje',
      WCol: '25%'
    }];
  }
  ngOnInit() {
    this.order = 3;
    this.sentido = 'Desc';
    this.cargarPermisos();
    this.subscriptions.push(this.searchForm.controls.Estado.valueChanges.subscribe(estado => {
      this.searchForm.controls.IdsResolucionesProv.setValue(0);
      this.resolucionFilter = '0';
      if (estado !== '') {
        this.cargarResoluciones(estado);
      } else {
        this.resoluciones = [];
        this.enviarFiltros();
      }
    }));
    this.subscriptions.push(this.searchForm.controls.IdsResolucionesProv.valueChanges.subscribe(resol => {
      if (resol !== 0) {
        this.resolucionFilter = resol;
        this.enviarFiltros();
      }
    }));
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisos.Linea1 = (this.permisos.ModifEnvProv || this.permisos.ElimEnvProv) && this.permisos.VisReclamo;
    this.permisos.Linea2 = (this.permisos.ModifEnvProv || this.permisos.ElimEnvProv) && this.permisos.InsRegRes || (!this.permisos.ModifEnvProv || !this.permisos.ElimEnvProv) && this.permisos.VisReclamo;
    this.dropdownActions_dictaminar[0]['Show'] = this.permisos.VisReclamo;
    this.dropdownActions_dictaminar[1]['Show'] = this.permisos.Linea1;
    this.dropdownActions_dictaminar[2]['Show'] = this.permisos.ModifEnvProv;
    this.dropdownActions_dictaminar[3]['Show'] = this.permisos.ElimEnvProv;
    this.dropdownActions_dictaminar[4]['Show'] = this.permisos.Linea2;
    this.dropdownActions_dictaminar[5]['Show'] = this.permisos.InsRegRes;
    this.permisos.Linea1b = (this.permisos.ElimRegRes || this.permisos.EditRegRes) && this.permisos.VisReclamo;
    this.permisos.Linea2b = (this.permisos.ElimRegRes || this.permisos.EditRegRes) && this.permisos.InsClienteReclamo || (!this.permisos.ElimRegRes || !this.permisos.EditRegRes) && this.permisos.VisReclamo;
    this.dropdownActions_resuelto[0]['Show'] = this.permisos.VisReclamo;
    this.dropdownActions_resuelto[1]['Show'] = this.permisos.Linea1b;
    this.dropdownActions_resuelto[2]['Show'] = this.permisos.EditRegRes;
    this.dropdownActions_resuelto[3]['Show'] = this.permisos.ElimRegRes;
    this.dropdownActions_resuelto[4]['Show'] = this.permisos.Linea2b;
    this.dropdownActions_resuelto[5]['Show'] = this.permisos.InsClienteReclamo;
  }
  /* Metodo que realiza la llamada a la api para traer las resoluciones existentes */
  cargarResoluciones(estado) {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 2;
    datos.EstadoResolucion = estado;
    if (this.resolucionFilter !== '0') {
      datos.IdsResolucionesProv = this.resolucionFilter;
    }
    const susc = this.resolucionService.fetch(datos).subscribe(data => {
      this.resoluciones = data.Data;
      this.resolucionFilter = this.resoluciones.map(res => res.Id).join(',');
      this.enviarFiltros();
    });
    susc.unsubscribe;
  }
  nuevoEnvioAlProveedor() {
    this.editar.emit({
      reclamo: null,
      modoEdicion: false
    });
  }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange(e) {
    this.lazyLoadChangeEv.emit(e);
  }
  /**
   * SP SINWEB-169 se accion visualizar
   * @param event datos de la accion
   */
  accionOrder(event) {
    switch (event.accion) {
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_EDITAR:
        this.editar.emit({
          envioProveedor: event.registro,
          modoEdicion: true
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR:
        this.visualizarReclamos(event.registro);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_ELIMINAR:
        this.eliminarEnvioProvedor(event.registro.RMAProveedor.Id, event.registro.NumeroReclamo);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_NUEVA:
        this.editarResol.emit({
          reclamo: event.registro,
          modoEdicion: false
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_EDITAR:
        this.editarResol.emit({
          reclamo: event.registro,
          modoEdicion: true
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO:
        this.editarAtributo.emit({
          reclamo: event.registro,
          modoEdicion: true,
          modoAtributo: true
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_NUEVA:
        this.cargarCliente.emit({
          reclamo: event.registro,
          modoEdicion: false
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_ELIMINAR:
        this.eliminarResolucion(event.registro.RMAProveedor.Id, event.registro.NumeroReclamo);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG:
        this.verLog(event.registro);
        break;
      default:
        break;
    }
  }
  eliminarEnvioProvedor(idEnvioProveedor, numeroReclamo) {
    this.alert.showReturnAlert('Volver a estado INICIADO.', "¿Está seguro de regresar al estado 'Iniciado' al reclamo: '" + numeroReclamo + "' ?", 'warning', 'Aceptar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminar.emit({
          idEnvioProveedor: idEnvioProveedor
        });
      }
    });
  }
  eliminarResolucion(idEnvioProveedor, numeroReclamo) {
    this.alert.showReturnAlert('Rescisión de resolución.', "¿Está seguro de rescindir la resolución del reclamo del proveedor: '" + numeroReclamo + "' ?", 'warning', 'Aceptar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarRes.emit({
          idEnvioProveedor: idEnvioProveedor
        });
      }
    });
  }
  getSearch(filtro) {
    return this.searchForm.get(filtro).value;
  }
  borrarSearch(filtro) {
    this.searchForm.get(filtro).reset('');
    this.enviarFiltros();
  }
  enviarFiltros() {
    let IdsResolucionesProv = this.tabActive == 0 ? src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_DICTAMINAR.toString() : this.resolucionFilter == '0' ? this.idsResueltos : this.resolucionFilter.toString();
    this.filtros.emit({
      NroReclamoProv: this.getSearch('NroReclamoProv'),
      //SP SINWEB-416 Cambio para usar nuevos inputs de fecha y hora
      FechaEnvioProveedorDesde: this.getSearch('FechaHoraEnvioProveedorDesde') ? this.getSearch('FechaHoraEnvioProveedorDesde') : '',
      FechaEnvioProveedorHasta: this.getSearch('FechaHoraEnvioProveedorHasta') ? this.getSearch('FechaHoraEnvioProveedorHasta') : '',
      IdsResolucionesProv: IdsResolucionesProv
    });
  }
  /**
   * SP SINWEB-169 metodo para visualizar reclamo
   * @param reclamo datos del reclamo
   */
  visualizarReclamos(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  exportTo(extension) {
    this.export.emit({
      alert: 'Reclamos enviados a proveedor exportados',
      name: 'Listado de reclamos enviados a proveedor',
      columns: ['Nro.Reclamo', 'Artículo', 'Defecto', 'Proveedor', 'Cliente', 'Sucursal', 'Fecha Envío', 'Nro.Reclamo Prov.', 'Responsable'],
      keys: ['NumeroReclamo', 'Articulo.Nombre', 'RMADefecto.Nombre', 'Proveedor.Nombre', 'Cliente.Nombre', 'Sucursal.Nombre', 'RMAProveedor.FechaEnvio', 'RMAProveedor.NumeroReclamo', 'RMAProveedor.Empleado.Nombre'],
      extension: extension // MC SINWEB-378 Exportación a Pdf
    });
  }
  navChanged(event) {
    this.tabActive = event.nextId;
    this.enviarFiltros();
  }
  /**
   * MC SINWEB-164 - Método para ver el Registro de cambios de un reclamo
   * @param {any} registro Reclamo
   */
  verLog(registro) {
    const modalRef = this.modalService.open(src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_4__.LogComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.coloresRow = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.COLORES_ROW;
    modalRef.componentInstance.title = `Reclamo Nro. '${registro.NumeroReclamo}'`;
    modalRef.componentInstance.logData = registro.Log;
    modalRef.componentInstance.splitOp = '\r\n\r\n';
    modalRef.componentInstance.splitSeparators = ['[', '-', ']', '\r\n'];
    modalRef.componentInstance.columnsKeys = ['Fecha', 'Usuario', 'Registro', 'Mensaje'];
    modalRef.componentInstance.columns = this.headerLog;
  }
  getReclamosHeader(header) {
    return this.atributos.mostrarAtributos == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO ? JSON.parse(JSON.stringify(header.concat(this.atributos.columnas))) : header;
  }
  /**
   * SP SINWEB-416 Se agrega metodo para validar que se haya seleccionado una fecha y hora y filtrar si pasa la validacion
   * @param type
   */
  onChangeFechaFilter() {
    this.enviarFiltros();
  }
  /**
   * SP SINWEB-416 Se setea la fecha desde el input--date-time
   * @param $event
   */
  setFechaHoraEnvioProveedorDesde($event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)($event, this.searchForm.get('FechaHoraEnvioProveedorDesde').value)) {
      this.searchForm.get('FechaHoraEnvioProveedorDesde').setValue($event);
      this.onChangeFechaFilter();
    }
  }
  getFechaHoraEnvioProveedorDesde() {
    return this.searchForm.get('FechaHoraEnvioProveedorDesde').value;
  }
  /**
   * SP SINWEB-416 Se setea la fecha hasta el input-date-time
   * @param $event
   */
  setFechaHoraEnvioProveedorHasta($event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.setFechaHoraReactivo)($event, this.searchForm.get('FechaHoraEnvioProveedorHasta').value)) {
      this.searchForm.get('FechaHoraEnvioProveedorHasta').setValue($event);
      this.onChangeFechaFilter();
    }
  }
  getFechaHoraEnvioProveedorHasta() {
    return this.searchForm.get('FechaHoraEnvioProveedorHasta').value;
  }
  static #_ = this.ɵfac = function ProveedorRecListadoComponent_Factory(t) {
    return new (t || ProveedorRecListadoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService), _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_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_6__.ResolucionService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: ProveedorRecListadoComponent,
    selectors: [["proveedor-rec-listado"]],
    inputs: {
      registros: "registros",
      isLoading: "isLoading",
      order: "order",
      sentido: "sentido",
      page: "page",
      cant_search: "cant_search",
      totalItems: "totalItems",
      permisos: "permisos",
      idsResueltos: "idsResueltos",
      atributos: "atributos"
    },
    outputs: {
      lazyLoadChangeEv: "lazyLoadChangeEv",
      export: "export",
      filtros: "filtros",
      editar: "editar",
      editarAtributo: "editarAtributo",
      eliminar: "eliminar",
      eliminarRes: "eliminarRes",
      editarResol: "editarResol",
      cargarCliente: "cargarCliente"
    },
    decls: 32,
    vars: 5,
    consts: [[1, "row"], [1, "col-lg-12"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], [1, "mb-0", "card-title", "flex-grow-1"], [1, "flex-shrink-0", "d-flex", "gap-1"], [1, "col-auto"], [1, "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [3, "ngClass"], ["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"], ["class", "card-body border-bottom bg-light", 4, "ngIf"], [1, "card-body"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified", 3, "navChange"], ["mainNavProv", "ngbNav"], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavOutlet"], ["A_DICTAMINAR_TAB", ""], ["RESUELTO_TAB", ""], [1, "card-body", "border-bottom", "bg-light"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-lg-3"], [1, "text-muted"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"], [1, "col-lg-4"], [1, "input-group"], ["type", "text", "formControlName", "NroReclamoProv", "placeholder", "Buscar por Nro. de reclamo proveedor", "maxlength", "350", 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-3", 4, "ngIf"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["name", "Estado", "formControlName", "Estado", 1, "form-select"], ["value", ""], ["value", "A"], ["value", "R"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "valueSelect"], [3, "ngbNavItem"], ["ngbNavLink", ""], [1, "d-block", "d-sm-none", 2, "font-weight", "bold"], [1, "d-none", "d-sm-block", 2, "font-weight", "bold"], ["ngbNavContent", ""], [3, "ngTemplateOutlet"], [1, "d-block", "d-sm-none"], [1, "d-none", "d-sm-block"], [4, "ngIf"], ["anchorActions", "accionesProv1.anchor.id", "anchorRegistros", "registrosProv1.anchor.id", "anchorPaginacion", "paginacionProv1.anchor.id", "title", "A dictaminar", 3, "columns", "order", "sentido", "datos", "page", "cant_search", "totalItems", "dropdownButtons", "apiTable", "acciones", "emitAction", "lazyLoad"], ["anchorActions", "accionesProv2.anchor.id", "anchorRegistros", "registrosProv2.anchor.id", "anchorPaginacion", "paginacionProv2.anchor.id", "title", "Resuelto", 3, "columns", "order", "sentido", "datos", "page", "cant_search", "totalItems", "dropdownButtons", "apiTable", "acciones", "emitAction", "lazyLoad"]],
    template: function ProveedorRecListadoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "h5", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](6, "Proveedor");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "div", 6)(8, "div", 7)(9, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ProveedorRecListadoComponent_Template_a_click_9_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](10, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "div", 10)(12, "button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](13, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](14, "ul", 13)(15, "li")(16, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ProveedorRecListadoComponent_Template_a_click_16_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](17, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "li")(19, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function ProveedorRecListadoComponent_Template_a_click_19_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](20, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](21, ProveedorRecListadoComponent_div_21_Template, 22, 6, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](22, "div", 16)(23, "ul", 17, 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("navChange", function ProveedorRecListadoComponent_Template_ul_navChange_23_listener($event) {
          return ctx.navChanged($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](25, ProveedorRecListadoComponent_li_25_Template, 7, 1, "li", 19)(26, ProveedorRecListadoComponent_li_26_Template, 7, 1, "li", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](27, "div", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](28, ProveedorRecListadoComponent_ng_template_28_Template, 1, 1, "ng-template", null, 21, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"])(30, ProveedorRecListadoComponent_ng_template_30_Template, 1, 1, "ng-template", null, 22, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](24);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline align-middle" : "mdi mdi-filter-off-outline align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.permisos.InsEnvProv);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.permisos.InsRegRes);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngbNavOutlet", _r1);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_13__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.DefaultValueAccessor, _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__.MaxLengthValidator, _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, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbNavOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_7__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_8__.Table2Component, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_9__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_13__.AsyncPipe]
  });
}

/***/ }),

/***/ 754:
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/proveedor-rec-listado/resuelto-new/resuelto-new.component.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ResueltoNewComponent: () => (/* binding */ ResueltoNewComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_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_rma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* 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_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/rma/resolucion.service */ 63682);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/ui/select-loading/select-loading.component */ 24718);















function ResueltoNewComponent_div_1_ng_container_2_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "Registro de resoluci\u00F3n proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
}
function ResueltoNewComponent_div_1_ng_container_2_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, "Editar registro de resoluci\u00F3n proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
}
function ResueltoNewComponent_div_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, ResueltoNewComponent_div_1_ng_container_2_ng_container_1_Template, 2, 0, "ng-container", 24)(2, ResueltoNewComponent_div_1_ng_container_2_ng_container_2_Template, 2, 0, "ng-container", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r4.modoEdicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx_r4.modoEdicion);
  }
}
function ResueltoNewComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, ResueltoNewComponent_div_1_ng_container_2_Template, 3, 2, "ng-container", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r0.reclamo);
  }
}
function ResueltoNewComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 25)(1, "div", 26)(2, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, "Nro. Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](4, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "div", 28)(6, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](7, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](8, "input", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "div", 28)(10, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](11, "Proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](12, "input", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function ResueltoNewComponent_div_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 1000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function ResueltoNewComponent_div_33_i_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 37);
  }
}
function ResueltoNewComponent_div_33_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 32)(1, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ResueltoNewComponent_div_33_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r8.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", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ResueltoNewComponent_div_33_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r10.visualizarReclamo(ctx_r10.reclamo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4, " Ver reclamo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "button", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function ResueltoNewComponent_div_33_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r11.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](7, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](9, ResueltoNewComponent_div_33_i_9_Template, 1, 0, "i", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](10, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
    _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__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r3.formGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](7, 2, ctx_r3.reclamoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](10, 4, ctx_r3.reclamoService.isLoading$));
  }
}
class ResueltoNewComponent {
  constructor(fb, modal, vh, resolucionService, reclamoService, modalService) {
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.resolucionService = resolucionService;
    this.reclamoService = reclamoService;
    this.modalService = modalService;
    this.modoEdicion = false;
    /**
     * SP SINWEB-169 nuevo input para visualizar
     */
    this.modoVisualizar = false;
    this.modoResolucion = '';
    //formulario
    this.formGroup = this.fb.group({
      NumeroReclamo: [''],
      Articulo: [''],
      Proveedor: [''],
      Cliente: [''],
      FechaResolucion: [''],
      IdRMAResolucion: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.min(2)])],
      Estado: ['D'],
      ObservacionResolucion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.maxLength(1000)])]
    });
    this.subscriptions = [];
  }
  ngOnInit() {
    /**
     * SP SINWEB-202 desahabilita los formularios si estamos en vizualizar
     */
    if (this.modoVisualizar) {
      this.formGroup.disable();
    }
    if (this.reclamo.RMAProveedor.RMAResolucion?.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_RESOLUCION_DICTAMINAR) {
      this.loadForm();
    } else {
      const sb = this.reclamoService.SerchById(this.reclamo.Id).subscribe(reclamo => {
        this.reclamo = reclamo;
        this.loadForm();
      });
      this.subscriptions.push(sb);
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  loadForm() {
    if (this.reclamo.RMAProveedor.RMAResolucion.Id !== src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_RESOLUCION_DICTAMINAR) {
      this.cargarResoluciones(this.reclamo.RMAProveedor?.RMAResolucion.EstadoResolucion);
      this.formGroup = this.fb.group({
        NumeroReclamo: [''],
        Articulo: [''],
        Proveedor: [''],
        Cliente: [''],
        FechaResolucion: [(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(this.reclamo.RMAProveedor?.FechaResolucion)],
        Estado: [this.reclamo.RMAProveedor?.RMAResolucion.EstadoResolucion],
        IdRMAResolucion: [this.reclamo.RMAProveedor?.RMAResolucion.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.min(2)])],
        ObservacionResolucion: [this.reclamo.RMAProveedor?.ObservacionResolucion, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_10__.Validators.maxLength(1000)])]
      });
    } else {
      this.formGroup.controls.IdRMAResolucion.setValue(src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_RESOLUCION_DICTAMINAR);
      this.formGroup.controls.FechaResolucion.setValue((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaActual)());
    }
    this.formGroup.controls.NumeroReclamo.setValue(this.reclamo.NumeroReclamo);
    this.formGroup.controls.Articulo.setValue('(' + this.reclamo.Articulo.Codigo + ') ' + this.reclamo.Articulo.Nombre);
    this.formGroup.controls.Proveedor.setValue('(' + this.reclamo.Proveedor.Codigo + ') ' + this.reclamo.Proveedor.Nombre);
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    this.subscriptions.push(this.formGroup.controls.Estado.valueChanges.subscribe(estado => {
      this.formGroup.controls.IdRMAResolucion.setValue(0);
      this.cargarResoluciones(estado);
    }));
  }
  /* Metodo que realiza la llamada a la api para traer las resoluciones existentes */
  cargarResoluciones(estado) {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
    datos.PageNumber = -1;
    datos.Orden = 2;
    datos.EstadoResolucion = estado;
    const susc = this.resolucionService.fetch(datos).subscribe(data => {
      this.resoluciones = data.Data;
    });
    susc.unsubscribe;
  }
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      return;
    }
    this.prepareResolucion();
    this.create();
  }
  prepareResolucion() {
    const formData = this.formGroup.controls;
    this.resolucion = {};
    this.resolucion.FechaResolucion = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(formData.FechaResolucion.value);
    this.resolucion.IdRMAResolucion = Number(formData.IdRMAResolucion.value);
    this.resolucion.ObservacionResolucion = formData.ObservacionResolucion.value;
  }
  create() {
    const sbEdit = this.reclamoService.putResolucion(this.resolucion, this.reclamo.RMAProveedor.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data.NumeroReclamo);
      }
    });
    this.subscriptions.push(sbEdit);
  }
  /**
   * MC SINWEB-401 Método para visualizar el reclamo completo
   * @param reclamo datos del reclamo
   */
  visualizarReclamo(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_4__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  static #_ = this.ɵfac = function ResueltoNewComponent_Factory(t) {
    return new (t || ResueltoNewComponent)(_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_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_5__.ResolucionService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_6__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: ResueltoNewComponent,
    selectors: [["app-resuelto-new"]],
    inputs: {
      reclamo: "reclamo",
      modoEdicion: "modoEdicion",
      modoVisualizar: "modoVisualizar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 34,
    vars: 16,
    consts: [[1, "modal-content"], ["class", "modal-header", 4, "ngIf"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], ["action", "#", 1, "form", "form-label-right", "mt-2", 3, "formGroup"], [1, "form-group", "p-2"], ["class", "row pb-2 py-2 bg-warning bg-soft", 4, "ngIf"], [1, "row", "p-1", "pt-2"], [1, "col-lg-6"], [1, "control-label"], ["type", "date", "formControlName", "FechaResolucion", 1, "form-control", "digits"], [1, "form-label"], ["name", "Estado", "formControlName", "Estado", 1, "form-select"], ["value", "D", "disabled", ""], ["value", "A"], ["value", "R"], ["campoObligatorio", "", 1, "form-label"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], [1, "row", "p-1"], [1, "col-lg-12"], ["name", "ObservacionResolucion", "rows", "2", "name", "ObservacionResolucion", "formControlName", "ObservacionResolucion", 1, "form-control", "form-control-solid"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], ["class", "modal-footer", 4, "ngIf"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "row", "pb-2", "py-2", "bg-warning", "bg-soft"], [1, "col-lg-2"], ["type", "text", "name", "NumeroReclamo", "formControlName", "NumeroReclamo", "disabled", "", 1, "form-control", "form-control-solid"], [1, "col-lg-5"], ["type", "text", "name", "Articulo", "formControlName", "Articulo", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "Proveedor", "formControlName", "Proveedor", "disabled", "", 1, "form-control", "form-control-solid"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-info", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function ResueltoNewComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, ResueltoNewComponent_div_1_Template, 3, 1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "div", 2)(3, "form", 3)(4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, ResueltoNewComponent_div_5_Template, 13, 0, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "div", 6)(7, "div", 7)(8, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9, "Fecha de resoluci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](10, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](11, "div", 6)(12, "div", 7)(13, "label", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](14, "Estado");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "select", 11)(16, "option", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, "Seleccione Estado");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "option", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](19, "Aprobado");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](21, "Rechazado");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "div", 7)(23, "label", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](24, "Resoluci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](25, "select-loading", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("valueSelect", function ResueltoNewComponent_Template_select_loading_valueSelect_25_listener($event) {
          return ctx.formGroup.controls.IdRMAResolucion.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](26, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](27, "div", 17)(28, "div", 18)(29, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](30, "Observaci\u00F3n de resoluci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](31, "textarea", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](32, ResueltoNewComponent_div_32_Template, 2, 0, "div", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](33, ResueltoNewComponent_div_33_Template, 11, 6, "div", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](20);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("defaultValue", 0)("defaultValueDis", false)("defaultString", "Seleccione la resoluci\u00F3n")("items", ctx.resoluciones)("valueSelected", ctx.formGroup.controls.IdRMAResolucion.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](26, 14, ctx.resolucionService.isLoading$))("deshabilitado", ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("ObservacionResolucion"));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "ObservacionResolucion"));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_7__.CampoObligatorioDirective, _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_8__.SelectLoadingComponent, _angular_common__WEBPACK_IMPORTED_MODULE_12__.AsyncPipe]
  });
}

/***/ }),

/***/ 35890:
/*!**************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/reclamos-listado/reclamos-listado.component.ts ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReclamosListadoComponent: () => (/* binding */ ReclamosListadoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __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_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var _envio_multiple_prov_envio_multiple_prov_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../envio-multiple-prov/envio-multiple-prov.component */ 21428);
/* harmony import */ var src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/ui/log/log.component */ 44192);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* 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 ReclamosListadoComponent_h5_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "h5", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Reclamos Iniciados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function ReclamosListadoComponent_h5_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "h5", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Reclamos Cerrados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function ReclamosListadoComponent_h5_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "h5", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1, " Reclamos Anulados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function ReclamosListadoComponent_a_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function ReclamosListadoComponent_a_9_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r6.nuevoReclamo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Nuevo Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function ReclamosListadoComponent_a_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _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 ReclamosListadoComponent_a_10_Template_a_click_0_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.abrirEnvioMultiple());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "span", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Informe m\u00FAltiple a proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function ReclamosListadoComponent_ng_container_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "app-table2", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("lazyLoad", function ReclamosListadoComponent_ng_container_25_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r10.lazyLoadChange($event));
    })("emitAction", function ReclamosListadoComponent_ng_container_25_Template_app_table2_emitAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r11);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.accionOrder($event));
    });
    _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"]("columns", ctx_r5.getReclamosHeader())("order", ctx_r5.order)("sentido", ctx_r5.sentido)("datos", ctx_r5.registros)("page", ctx_r5.page)("cant_search", ctx_r5.cant_search)("totalItems", ctx_r5.totalItems)("dropdownButtons", ctx_r5.getDropdownButtons())("anchorActions", ctx_r5.estado == ctx_r5.ESTADO_INICIADO ? "accionesListadoIniciado.anchor.id" : ctx_r5.estado == ctx_r5.ESTADO_CERRADO ? "accionesListadoCerrado.anchor.id" : "accionesListadoAnulado.anchor.id")("apiTable", true)("acciones", true);
  }
}
class ReclamosListadoComponent {
  constructor(fb, alert, modalService) {
    this.fb = fb;
    this.alert = alert;
    this.modalService = modalService;
    this.registros = [];
    this.isLoading = false;
    this.order = 3;
    this.sentido = 'Asc';
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.totalItems = 0;
    // @Output() pageChangeEv = new EventEmitter<any>();
    // @Output() setPageEv = new EventEmitter<any>();
    // @Output() setOrderEv = new EventEmitter<any>();
    this.lazyLoadChangeEv = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.export = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.editar = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.anular = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.abrir = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.envioProv = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.detectEnvio = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    //constantes
    this.ESTADO_INICIADO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO;
    this.ESTADO_CERRADO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CERRADO;
    this.ESTADO_ANULADO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_ANULADO;
    //filtros
    this.searchForm = this.fb.group({});
    //listado
    this.reclamosHeader = [{
      Nombre: 'Nro.Reclamo',
      Order: 3,
      Key: 'NumeroReclamo',
      WCol: '10%'
    }, {
      Nombre: 'Recepción',
      Order: 2,
      Key: 'FechaHoraRecepcion',
      WCol: '10%'
    }, {
      Nombre: 'Artículo',
      WCol: '20%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Articulo.Nombre',
          b: 'Articulo.Codigo'
        }
      }
    }, {
      Nombre: 'Nro.Serie',
      Key: 'NroSerie',
      WCol: '10%'
    }, {
      Nombre: 'Defecto',
      Order: 19,
      Key: 'RMADefecto.Nombre',
      WCol: '10%'
    }, {
      Nombre: 'Cliente',
      WCol: '20%',
      Type: 'template',
      Order: 8,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Cliente.Nombre',
          b: 'Cliente.Codigo'
        }
      }
    }, {
      Nombre: 'Proveedor',
      WCol: '20%',
      Type: 'template',
      Order: 24,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Proveedor.Nombre',
          b: 'Proveedor.Codigo'
        }
      }
    }, {
      // MC SINWEB-399 Se agrega columna Sucursal
      Nombre: 'Sucursal',
      Key: 'Sucursal.Nombre'
    }];
    this.dropdownActions = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Editar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR
    }, {
      Title: 'Anular reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ANULAR
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Informar a proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_EDITAR
    }];
    this.dropdownActionsCerrado = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Abrir reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ABRIR
    }];
    this.dropdownActionsAnulado = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }];
    this.headerLog = [{
      Nombre: 'Fecha',
      Order: 1,
      Key: 'Fecha',
      WCol: '25%'
    }, {
      Nombre: 'Usuario',
      Order: 2,
      Key: 'Usuario',
      WCol: '25%'
    }, {
      Nombre: 'Registro',
      Order: 3,
      Key: 'Registro',
      WCol: '25%'
    }, {
      Nombre: 'Mensaje',
      Order: 4,
      Key: 'Mensaje',
      WCol: '25%'
    }];
  }
  ngOnInit() {
    this.page = 1;
    this.order = 2;
    this.sentido = 'Asc';
    this.cargarPermisos();
  }
  cargarPermisos() {
    this.permisos.Linea1 = (this.permisos.ModReclamo || this.permisos.AnulReclamo) && this.permisos.VisReclamo;
    this.permisos.Linea2 = (this.permisos.ModReclamo || this.permisos.AnulReclamo) && this.permisos.InsEnvProv || (!this.permisos.ModReclamo || !this.permisos.AnulReclamo) && this.permisos.VisReclamo;
    this.dropdownActions[0]['Show'] = this.permisos.VisReclamo;
    this.dropdownActions[1]['Show'] = this.permisos.Linea1;
    this.dropdownActions[2]['Show'] = this.permisos.ModReclamo;
    this.dropdownActions[3]['Show'] = this.permisos.AnulReclamo;
    this.dropdownActions[4]['Show'] = this.permisos.Linea2;
    this.dropdownActions[5]['Show'] = this.permisos.InsEnvProv;
    this.permisos.Linea1b = this.permisos.AbrirReclamo && this.permisos.VisReclamo;
    this.dropdownActionsCerrado[0]['Show'] = this.permisos.VisReclamo;
    this.dropdownActionsCerrado[1]['Show'] = this.permisos.Linea1b;
    this.dropdownActionsCerrado[2]['Show'] = this.permisos.AbrirReclamo;
    this.dropdownActionsAnulado[0]['Show'] = this.permisos.VisReclamo;
  }
  nuevoReclamo() {
    this.editar.emit({
      reclamo: null,
      modoEdicion: false
    });
  }
  // pageChange(e: any){
  //   this.pageChangeEv.emit(e);
  // }
  // setPage(e: any){
  //   this.setPageEv.emit(e);
  // }
  // setOrder(e: any){
  //   this.setOrderEv.emit(e);
  // }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange(e) {
    this.lazyLoadChangeEv.emit(e);
  }
  getDropdownButtons() {
    switch (this.estado) {
      case this.ESTADO_INICIADO:
        return this.dropdownActions;
        break;
      case this.ESTADO_CERRADO:
        return this.dropdownActionsCerrado;
        break;
      case this.ESTADO_ANULADO:
        return this.dropdownActionsAnulado;
        break;
      default:
        break;
    }
  }
  /**
   * SP SINWEB169 se agrega accion visualizar reclamo
   * @param event datos del evento
   */
  accionOrder(event) {
    switch (event.accion) {
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR:
        this.editar.emit({
          reclamo: event.registro,
          modoEdicion: true,
          modoAtributo: false
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR:
        this.visualizarReclamos(event.registro);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ANULAR:
        this.anularReclamo(event.registro.Id, event.registro.NumeroReclamo);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_EDITAR:
        this.envioProv.emit({
          reclamo: event.registro,
          modoEdicion: false
        });
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ABRIR:
        this.abrirReclamo(event.registro.Id, event.registro.NumeroReclamo);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG:
        this.verLog(event.registro);
        break;
      default:
        break;
    }
  }
  anularReclamo(idReclamo, numeroReclamo) {
    this.alert.showReturnAlert('Anulación de Reclamo.', "¿Está seguro de anular el reclamo: '" + numeroReclamo + "' ?", 'warning', 'Anular', 'Cancelar', true).then(result => {
      if (result.value) {
        this.anular.emit({
          idReclamo: idReclamo
        });
      }
    });
  }
  abrirReclamo(idReclamo, numeroReclamo) {
    this.alert.showReturnAlert('Apertura de Reclamo.', "¿Está seguro de abrir el reclamo: '" + numeroReclamo + "' ?", 'success', 'Abrir', 'Cancelar', true).then(result => {
      if (result.value) {
        this.abrir.emit({
          idReclamo: idReclamo
        });
      }
    });
  }
  /**
   * SP SINWEB-169 funcion para visualizar el reclamo
   * @param reclamo datos del reclamo
   */
  visualizarReclamos(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  exportTo(extension) {
    this.export.emit({
      alert: 'Reclamos iniciados exportados',
      name: 'Listado de reclamos iniciados',
      columns: ['Nro.Reclamo', 'Nro.Serie', 'Recepción', '(Cod) Artículo', '(Cod) Cliente', '(Cod) Proveedor', 'Estado'],
      keys: ['NumeroReclamo', 'NroSerie', 'FechaHoraRecepcion', 'CodArticulo', 'CodCliente', 'CodProveedor', 'RMAEstado.Nombre'],
      extension: extension // MC SINWEB-378 Exportación a Pdf
    });
  }
  /**
   * MC SINWEB-184
   */
  abrirEnvioMultiple() {
    const modalRef = this.modalService.open(_envio_multiple_prov_envio_multiple_prov_component__WEBPACK_IMPORTED_MODULE_3__.EnvioMultipleProvComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(resolve => {
      // console.log('Resolve: ', resolve);
      if (resolve || modalRef.componentInstance.seEnvioAlgo) {
        this.detectEnvio.emit(true);
      }
    }, reason => {
      // console.log('Reason: ', reason);
      if (reason && reason !== 0 && reason !== 1 || modalRef.componentInstance.seEnvioAlgo) {
        this.detectEnvio.emit(true);
      }
    });
  }
  /**
   * MC SINWEB-164 - Método para ver el Registro de cambios de un reclamo
   * @param {any} registro Reclamo
   */
  verLog(registro) {
    const modalRef = this.modalService.open(src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_4__.LogComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.coloresRow = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.COLORES_ROW;
    modalRef.componentInstance.title = `Reclamo Nro. '${registro.NumeroReclamo}'`;
    modalRef.componentInstance.logData = registro.Log;
    modalRef.componentInstance.splitOp = '\r\n\r\n';
    modalRef.componentInstance.splitSeparators = ['[', '-', ']', '\r\n'];
    modalRef.componentInstance.columnsKeys = ['Fecha', 'Usuario', 'Registro', 'Mensaje'];
    modalRef.componentInstance.columns = this.headerLog;
  }
  getReclamosHeader() {
    return this.atributos.mostrarAtributos == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO ? JSON.parse(JSON.stringify(this.reclamosHeader.concat(this.atributos.columnas))) : this.reclamosHeader;
  }
  static #_ = this.ɵfac = function ReclamosListadoComponent_Factory(t) {
    return new (t || ReclamosListadoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: ReclamosListadoComponent,
    selectors: [["reclamos-listado"]],
    inputs: {
      registros: "registros",
      isLoading: "isLoading",
      order: "order",
      sentido: "sentido",
      page: "page",
      cant_search: "cant_search",
      totalItems: "totalItems",
      permisos: "permisos",
      estado: "estado",
      atributos: "atributos"
    },
    outputs: {
      lazyLoadChangeEv: "lazyLoadChangeEv",
      export: "export",
      editar: "editar",
      anular: "anular",
      abrir: "abrir",
      envioProv: "envioProv",
      detectEnvio: "detectEnvio"
    },
    decls: 26,
    vars: 7,
    consts: [[1, "row"], [1, "col-lg-12"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], ["class", "mb-0 card-title flex-grow-1", 4, "ngIf"], [1, "flex-shrink-0", "d-flex", "gap-1"], ["class", "btn btn-primary", 3, "click", 4, "ngIf"], ["class", "btn btn-warning", 3, "click", 4, "ngIf"], ["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, "card-body"], [4, "ngIf"], [1, "mb-0", "card-title", "flex-grow-1"], [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-warning", 3, "click"], [1, "d-block", "d-md-none", "mdi", "mdi-cube-send", "mdi-16"], ["anchorRegistros", "estado == ESTADO_INICIADO ? 'registrosListadoIniciado.anchor.id' : (estado == ESTADO_CERRADO ? 'registrosListadoCerrado,anchor.id' : 'registrosListadoAnulado.anchor.id')", "anchorRegistros", "estado == ESTADO_INICIADO ? 'paginacionListadoIniciado.anchor.id' : (estado == ESTADO_CERRADO ? 'paginacionListadoCerrado,anchor.id' : 'paginacionListadoAnulado.anchor.id')", "title", "Reclamos Iniciados", 3, "columns", "order", "sentido", "datos", "page", "cant_search", "totalItems", "dropdownButtons", "anchorActions", "apiTable", "acciones", "lazyLoad", "emitAction"]],
    template: function ReclamosListadoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, ReclamosListadoComponent_h5_5_Template, 2, 0, "h5", 5)(6, ReclamosListadoComponent_h5_6_Template, 2, 0, "h5", 5)(7, ReclamosListadoComponent_h5_7_Template, 2, 0, "h5", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](9, ReclamosListadoComponent_a_9_Template, 4, 0, "a", 7)(10, ReclamosListadoComponent_a_10_Template, 4, 0, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "div", 9)(12, "button", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](13, "i", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](14, "ul", 12)(15, "li")(16, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function ReclamosListadoComponent_Template_a_click_16_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "li")(19, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function ReclamosListadoComponent_Template_a_click_19_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](20, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](21, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](22, 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](23, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](24, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](25, ReclamosListadoComponent_ng_container_25_Template, 2, 11, "ng-container", 17);
        _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"]("ngIf", ctx.estado == ctx.ESTADO_INICIADO);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.estado == ctx.ESTADO_CERRADO);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.estado == ctx.ESTADO_ANULADO);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.estado == ctx.ESTADO_INICIADO);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.estado == ctx.ESTADO_INICIADO);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.isLoading);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_6__.Table2Component]
  });
}

/***/ }),

/***/ 13551:
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/reclamos-listado/reclamos-new/reclamos-new.component.ts ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReclamosNewComponent: () => (/* binding */ ReclamosNewComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_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_rma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* 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 src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-comprobante-venta/seleccionar-comprobante-venta.component */ 98163);
/* 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 src_app_core_directives_less_than_today_directive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/directives/less-than-today.directive */ 48860);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/utils/validators/dateValidators */ 49545);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/core/proveedor.service */ 19803);
/* harmony import */ var src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/rma/defecto.service */ 27350);
/* harmony import */ var src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/core/services/rma/RMAAtributo.service */ 34852);
/* harmony import */ var src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../../../shared/ui/input-number/input-number.component */ 62271);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../../../shared/ui/input-date-time/input-date-time.component */ 75871);






























function ReclamosNewComponent_div_1_ng_container_2_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "Nuevo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_div_1_ng_container_2_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "Editar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_div_1_ng_container_2_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" '", ctx_r12.reclamo.NumeroReclamo, "'");
  }
}
function ReclamosNewComponent_div_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_div_1_ng_container_2_ng_container_1_Template, 2, 0, "ng-container", 17)(2, ReclamosNewComponent_div_1_ng_container_2_ng_container_2_Template, 2, 0, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, " reclamo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, ReclamosNewComponent_div_1_ng_container_2_ng_container_4_Template, 2, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r9.modoEdicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx_r9.modoEdicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r9.reclamo.Id);
  }
}
function ReclamosNewComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 15)(1, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](2, ReclamosNewComponent_div_1_ng_container_2_Template, 5, 3, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r0.reclamo);
  }
}
function ReclamosNewComponent_li_5_ng_template_6_ng_template_0_Template(rf, ctx) {}
function ReclamosNewComponent_li_5_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](0, ReclamosNewComponent_li_5_ng_template_6_ng_template_0_Template, 0, 0, "ng-template", 18);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function ReclamosNewComponent_li_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "li", 6)(1, "a", 7)(2, "span", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, "Datos");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](4, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](5, "Datos principales ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](6, ReclamosNewComponent_li_5_ng_template_6_Template, 1, 1, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbNavItem", 1);
  }
}
function ReclamosNewComponent_ng_template_12_ng_template_0_Template(rf, ctx) {}
function ReclamosNewComponent_ng_template_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](0, ReclamosNewComponent_ng_template_12_ng_template_0_Template, 0, 0, "ng-template", 18);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngTemplateOutlet", _r8);
  }
}
function ReclamosNewComponent_div_14_i_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](0, "i", 23);
  }
}
function ReclamosNewComponent_div_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 19)(1, "button", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_div_14_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r17.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](4, "button", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_div_14_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r18);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r19.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](5, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](6, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](7, ReclamosNewComponent_div_14_i_7_Template, 1, 0, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](8, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r4.formGroup.invalid || ctx_r4.AtributoGroup.invalid || _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBind1"](5, 2, ctx_r4.reclamoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBind1"](8, 4, ctx_r4.reclamoService.isLoading$));
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_17_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_17_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r32.borrarCliente());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_ng_template_15_ng_container_17_a_1_Template, 2, 0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "a", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_17_Template_a_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r35);
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r34.buscarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](3, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r20.getCliente());
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "div", 30)(2, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, "Sucursal");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](4, "input", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("value", ctx_r21.reclamo.Sucursal.Nombre);
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_25_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_25_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r38);
      const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r37.borrarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_ng_template_15_ng_container_25_a_1_Template, 2, 0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "a", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_25_Template_a_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r40);
      const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r39.buscarArticulos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](3, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r22.getArticulo());
  }
}
function ReclamosNewComponent_ng_template_15_div_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Nro. de serie correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_div_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Nro. de serie no debe tener m\u00E1s de 50 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_37_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_37_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r43);
      const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r42.borrarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_37_Template(rf, ctx) {
  if (rf & 1) {
    const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_ng_template_15_ng_container_37_a_1_Template, 2, 0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "a", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_37_Template_a_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r45);
      const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r44.buscarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](3, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r25.getProveedor());
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_50_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_50_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r48);
      const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r47.borrarNroVenta());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_ng_container_50_Template(rf, ctx) {
  if (rf & 1) {
    const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_ng_template_15_ng_container_50_a_1_Template, 2, 0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "a", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_15_ng_container_50_Template_a_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r50);
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r49.buscarComprobantes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](3, "i", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r26.getNroVenta());
  }
}
function ReclamosNewComponent_ng_template_15_div_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Lugar de venta correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_div_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Lugar de venta no debe tener m\u00E1s de 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_div_66_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Motivo de reclamo no debe tener m\u00E1s de 1000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_15_div_71_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 1000 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
const _c0 = (a0, a1, a2) => [a0, a1, a2];
const _c1 = () => ["Fecha y hora de recepci\u00F3n incompleta", "Fecha y hora de recepci\u00F3n requerida", "La fecha no debe ser mayor a hoy"];
const _c2 = (a0, a1) => ({
  "col-lg-5": a0,
  "col-lg-3": a1
});
const _c3 = (a0, a1) => ({
  "bg-warning bg-soft": a0,
  "": a1
});
function ReclamosNewComponent_ng_template_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "form", 24)(1, "div", 25)(2, "div", 26)(3, "div", 27)(4, "label", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](5, "Fecha y hora recepci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](6, "app-input-date-time", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("valorEmit", function ReclamosNewComponent_ng_template_15_Template_app_input_date_time_valorEmit_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r52);
      const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r51.setFechaHoraRecepcion($event));
    })("touchedEmit", function ReclamosNewComponent_ng_template_15_Template_app_input_date_time_touchedEmit_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r52);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r53.fechaHoraRecepcionTouched());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](7, "div", 30)(8, "label", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](9, "Empleado");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](10, "select-loading", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("valueSelect", function ReclamosNewComponent_ng_template_15_Template_select_loading_valueSelect_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r52);
      const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r54.formGroup.controls.IdEmpleado.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](11, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](12, "div", 33)(13, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](14, "Cliente *");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](15, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](16, "input", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](17, ReclamosNewComponent_ng_template_15_ng_container_17_Template, 4, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](18, ReclamosNewComponent_ng_template_15_ng_container_18_Template, 5, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](19, "div", 26)(20, "div", 37)(21, "label", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](22, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](23, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](24, "input", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](25, ReclamosNewComponent_ng_template_15_ng_container_25_Template, 4, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](26, "div", 30)(27, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](28, "Nro. de Serie");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](29, "input", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](30, ReclamosNewComponent_ng_template_15_div_30_Template, 2, 0, "div", 40)(31, ReclamosNewComponent_ng_template_15_div_31_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](32, "div", 30)(33, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](34, "Proveedor *");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](35, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](36, "input", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](37, ReclamosNewComponent_ng_template_15_ng_container_37_Template, 4, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](38, "div", 26)(39, "div", 43)(40, "label", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](41, "Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](42, "select-loading", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("valueSelect", function ReclamosNewComponent_ng_template_15_Template_select_loading_valueSelect_42_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r52);
      const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r55.formGroup.controls.IdRMADefecto.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](43, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](44, "div", 30)(45, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](46, "Nro. de venta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](47, "i", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](48, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](49, "input", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](50, ReclamosNewComponent_ng_template_15_ng_container_50_Template, 4, 1, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](51, "div", 46)(52, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](53, "Fecha venta");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](54, "input", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](55, "div", 46)(56, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](57, "Lugar de venta");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](58, "input", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](59, ReclamosNewComponent_ng_template_15_div_59_Template, 2, 0, "div", 40)(60, ReclamosNewComponent_ng_template_15_div_60_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](61, "div", 26)(62, "div", 37)(63, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](64, "Motivo del reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](65, "textarea", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](66, ReclamosNewComponent_ng_template_15_div_66_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](67, "div", 37)(68, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](69, "Observaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](70, "textarea", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](71, ReclamosNewComponent_ng_template_15_div_71_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](72, "div", 33)(73, "div", 52)(74, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](75, "Fecha Revisi\u00F3n t\u00E9cnica");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](76, "input", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formGroup", ctx_r5.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("valor", ctx_r5.getFechaHoraRecepcion())("showErrors", true)("errors", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction3"](57, _c0, ctx_r5.vh.controlHasError("fechaHoraIncompleta", "FechaHoraRecepcion"), ctx_r5.vh.controlHasError("required", "FechaHoraRecepcion"), ctx_r5.vh.controlHasError("LessThanToday", "FechaHoraRecepcion")))("msgErrors", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction0"](61, _c1));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Responsable")("items", ctx_r5.empleados)("valueSelected", ctx_r5.formGroup.controls.IdEmpleado.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBind1"](11, 53, ctx_r5.empleadoService.isLoading$))("deshabilitado", !ctx_r5.modoEdicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](62, _c2, !ctx_r5.modoVisualizar, ctx_r5.modoVisualizar));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", ctx_r5.vh.isControlInvalid("NroSerie"))("is-valid", ctx_r5.vh.isControlValid("NroSerie"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readOnly", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.vh.isControlValid("NroSerie"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.vh.controlHasError("maxlength", "NroSerie"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccione Defecto")("items", ctx_r5.defectos)("valueSelected", ctx_r5.formGroup.controls.IdRMADefecto.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBind1"](43, 55, ctx_r5.defectoService.isLoading$))("deshabilitado", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("dropSpecialCharacters", false)("readOnly", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.formGroup.controls.IdCliente.value > 0 && ctx_r5.formGroup.controls.Articulo.value !== "" && !ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readOnly", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", ctx_r5.vh.isControlInvalid("ComprLugar"))("is-valid", ctx_r5.vh.isControlValid("ComprLugar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readOnly", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.vh.isControlValid("ComprLugar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.vh.controlHasError("maxlength", "ComprLugar"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", ctx_r5.vh.isControlInvalid("MotivoReclamo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readOnly", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.vh.controlHasError("maxlength", "MotivoReclamo"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", ctx_r5.vh.isControlInvalid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readOnly", ctx_r5.modoVisualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r5.vh.controlHasError("maxlength", "Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", !ctx_r5.modoVisualizar ? "row px-3 pt-1" : "row px-1 pt-1");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](65, _c3, !ctx_r5.modoVisualizar, ctx_r5.modoVisualizar));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readOnly", ctx_r5.modoVisualizar);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_i_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r70 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "i", 66, 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_i_4_Template_i_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r70);
      const _r68 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](1);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](_r68.open());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbTooltip", atr_r57.Observacion);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](3, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_ng_container_3_Template, 2, 0, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_i_4_Template, 2, 1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "app-input-number", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("emitValue", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_Template_app_input_number_emitValue_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r74);
      const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r72.setAtributoValue(atr_r57.Nombre, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate"](atr_r57.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Requerido == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Observacion !== "" && atr_r57.Observacion !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("value", ctx_r59.getAtributoValue(atr_r57.Nombre))("decimals", 0)("tooltip", atr_r57.Requerido == "S" && ctx_r59.getAtributoValue(atr_r57.Nombre) === null ? "Atributo adicional requerido" : "")("isInvalid", atr_r57.Requerido == "S" && ctx_r59.getAtributoValue(atr_r57.Nombre) === null)("isValid", ctx_r59.getAtributoValue(atr_r57.Nombre) && !ctx_r59.modoVisualizar)("disabled", ctx_r59.modoVisualizar);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_i_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "i", 66, 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_i_4_Template_i_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r80);
      const _r78 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](1);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](_r78.open());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbTooltip", atr_r57.Observacion);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](3, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_ng_container_3_Template, 2, 0, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_i_4_Template, 2, 1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "app-input-number", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("emitValue", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_Template_app_input_number_emitValue_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r84);
      const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r82.setAtributoValue(atr_r57.Nombre, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate"](atr_r57.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Requerido == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Observacion !== "" && atr_r57.Observacion !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("value", ctx_r60.getAtributoValue(atr_r57.Nombre))("tooltip", atr_r57.Requerido == "S" && ctx_r60.getAtributoValue(atr_r57.Nombre) === null ? "Atributo adicional requerido" : "")("isInvalid", atr_r57.Requerido == "S" && ctx_r60.getAtributoValue(atr_r57.Nombre) === null)("isValid", ctx_r60.getAtributoValue(atr_r57.Nombre) && !ctx_r60.modoVisualizar)("disabled", ctx_r60.modoVisualizar);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_i_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "i", 66, 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_i_4_Template_i_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r90);
      const _r88 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](1);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](_r88.open());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbTooltip", atr_r57.Observacion);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](3, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_ng_container_3_Template, 2, 0, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_i_4_Template, 2, 1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](5, "input", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"]("", atr_r57.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Requerido == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Observacion !== "" && atr_r57.Observacion !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", atr_r57.Requerido == "S" && ctx_r61.vh.controlHasError("required", atr_r57.Nombre))("is-valid", ctx_r61.vh.isControlValid(atr_r57.Nombre));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formControlName", atr_r57.Nombre);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_4_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "div", 70)(2, "label", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_4_ng_container_4_Template, 2, 0, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "textarea", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](6, "                ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"]("", atr_r57.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Requerido == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", atr_r57.Requerido == "S" && ctx_r62.vh.controlHasError("required", atr_r57.Nombre))("is-valid", ctx_r62.vh.isControlValid(atr_r57.Nombre));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formControlName", atr_r57.Nombre);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "*");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_i_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r99 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "i", 66, 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_i_4_Template_i_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r99);
      const _r97 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](1);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](_r97.open());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbTooltip", atr_r57.Observacion);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](3, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_ng_container_3_Template, 2, 0, "ng-container", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_i_4_Template, 2, 1, "i", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](5, "input", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate"](atr_r57.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Requerido == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Observacion !== "" && atr_r57.Observacion !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵclassProp"]("is-invalid", atr_r57.Requerido == "S" && ctx_r63.vh.controlHasError("required", atr_r57.Nombre))("is-valid", ctx_r63.vh.isControlValid(atr_r57.Nombre));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formControlName", atr_r57.Nombre);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r104 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "app-checkbox", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("emitAction", function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_6_Template_app_checkbox_emitAction_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r104);
      const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r102.setAtributoValue(atr_r57.Nombre, !ctx_r102.getAtributoValue(atr_r57.Nombre)));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r64.modoVisualizar)("value", ctx_r64.getAtributoValue(atr_r57.Nombre))("title", atr_r57.Nombre);
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Atributo adicional requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_1_Template, 6, 9, "ng-container", 17)(2, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_2_Template, 6, 8, "ng-container", 17)(3, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_3_Template, 6, 8, "ng-container", 17)(4, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_4_Template, 7, 7, "ng-container", 17)(5, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_5_Template, 6, 8, "ng-container", 17)(6, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_ng_container_6_Template, 3, 3, "ng-container", 17)(7, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_div_7_Template, 2, 0, "div", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Dominio == "I");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Dominio == "R");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Dominio == "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Dominio == "B");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Dominio == "D");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Dominio == "L");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.Requerido == "S" && ctx_r58.vh.controlHasError("required", atr_r57.Nombre));
  }
}
function ReclamosNewComponent_ng_template_17_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_ng_template_17_ng_container_3_div_1_Template, 8, 7, "div", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atr_r57 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", atr_r57.permitido);
  }
}
function ReclamosNewComponent_ng_template_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "form", 24)(1, "div", 25)(2, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](3, ReclamosNewComponent_ng_template_17_ng_container_3_Template, 2, 1, "ng-container", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formGroup", ctx_r7.AtributoGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngForOf", ctx_r7.atributos);
  }
}
class ReclamosNewComponent {
  constructor(fb, modal, modalService, vh, reclamoService, empleadoService, authenticationService, proveedorService, defectoService, atributoService, clienteService) {
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.vh = vh;
    this.reclamoService = reclamoService;
    this.empleadoService = empleadoService;
    this.authenticationService = authenticationService;
    this.proveedorService = proveedorService;
    this.defectoService = defectoService;
    this.atributoService = atributoService;
    this.clienteService = clienteService;
    this.modoEdicion = false;
    this.modoAtributo = false;
    /**
     * SP SINWEB-169 nuevo input para vizualizar
     */
    this.modoVisualizar = false;
    this.activeId = 1;
    this.subscriptions = [];
    //formulario
    this.formGroup = this.fb.group({
      //SP SINWEB-416 se agrega fecha y hora de recepcion
      FechaHoraRecepcion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, (0,src_app_core_directives_less_than_today_directive__WEBPACK_IMPORTED_MODULE_8__.lessThanTodayValidator)(), (0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_10__.fechaHoraIncompleta)()])],
      IdEmpleado: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.min(0)])],
      NroSerie: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(50)])],
      Articulo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required])],
      IdArticulo: [0],
      Proveedor: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required])],
      IdProveedor: [-1],
      Observacion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(1000)])],
      MotivoReclamo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(1000)])],
      IdRMADefecto: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.min(0)])],
      IdVenta: [''],
      ComprNumero: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(20)])],
      ComprFecha: [''],
      ComprLugar: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(100)])],
      Cliente: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required])],
      IdCliente: [-1, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.min(0)])],
      FechaRevisionTecnico: ['']
    });
    this.AtributoGroup = this.fb.group({});
    // MC SINWEB-432 Se agrega para limitar el datepicker de Fecha y hora de recepcion
    this.currentDate = new Date();
  }
  ngOnInit() {
    if (this.modoAtributo) {
      this.activeId = 2;
    }
    /**
     * SP SINWEB-169 desahabilita los formularios si estamos en vizualizar
     */
    if (this.modoVisualizar) {
      this.formGroup.disable();
    } else {
      //SP SINWEB-369 se quito el disabled y se agrego en readonly en el html por problemas con la validacion
      //SP deshabilitar campos de formulario
      //this.formGroup.get('Articulo').disable();
      //this.formGroup.get('Cliente').disable();
    }
    if (!this.reclamo) {
      this.reclamo = {
        //SP SINWEB-416 se agrega hora recepcion y fecha hora recepcion pasa a ser fecha recepcion
        FechaHoraRecepcion: '',
        IdEmpleado: 0,
        IdCliente: 0,
        IdArticulo: 0,
        NroSerie: '',
        Cantidad: 1,
        IdRMADefecto: 0,
        FechaRevisionTecnico: '',
        MotivoReclamo: '',
        Observacion: '',
        IdProveedor: 0,
        IdRMAEstado: 1,
        Atributos: []
      };
      this.loadForm();
    } else {
      const sb = this.reclamoService.SerchById(this.reclamo.Id).subscribe(reclamo => {
        this.reclamo = reclamo;
        this.loadForm();
      });
      this.subscriptions.push(sb);
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  loadForm() {
    if (this.reclamo.Id !== undefined) {
      this.formGroup = this.fb.group({
        //SP SINWEB-416 se agrega hora recepcion y fecha hora recepcion pasa a ser fecha recepcion
        FechaHoraRecepcion: [(0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaHoraSinAmPm)(this.reclamo.FechaHoraRecepcion), _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, (0,src_app_core_directives_less_than_today_directive__WEBPACK_IMPORTED_MODULE_8__.lessThanTodayValidator)(), (0,src_app_core_utils_validators_dateValidators__WEBPACK_IMPORTED_MODULE_10__.fechaHoraIncompleta)()])],
        IdEmpleado: [this.reclamo.Empleado?.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.min(0)])],
        NroSerie: [this.reclamo.NroSerie, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(50)])],
        Articulo: ['(' + this.reclamo.Articulo.Codigo + ') ' + this.reclamo.Articulo?.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required])],
        IdArticulo: [this.reclamo.Articulo?.Id],
        Proveedor: ['(' + this.reclamo.Proveedor.Codigo + ') ' + this.reclamo.Proveedor?.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required])],
        IdProveedor: [this.reclamo.Proveedor?.Id],
        Observacion: [this.reclamo.Observacion, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(1000)])],
        MotivoReclamo: [this.reclamo.MotivoReclamo, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(1000)])],
        IdRMADefecto: [this.reclamo.RMADefecto.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.min(0)])],
        IdVenta: [this.reclamo.ComprobanteVenta?.Id],
        ComprNumero: [this.reclamo.ComprNumero, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(20)])],
        ComprFecha: [this.reclamo.ComprFecha !== undefined && this.reclamo.ComprFecha !== null ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(this.reclamo.ComprFecha) : ''],
        ComprLugar: [this.reclamo.ComprLugar, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.maxLength(100)])],
        Cliente: ['(' + this.reclamo.Cliente.Codigo + ') ' + this.reclamo.Cliente?.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required])],
        IdCliente: [this.reclamo.Cliente?.Id, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.min(0)])],
        FechaRevisionTecnico: [this.reclamo.FechaRevisionTecnico !== undefined && this.reclamo.FechaRevisionTecnico !== null ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(this.reclamo.FechaRevisionTecnico) : '']
      });
    } else {
      this.formGroup.controls.FechaHoraRecepcion.setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_9__.format)(new Date(), 'DD/MM/YYYY HH:mm'));
      this.formGroup.controls.ComprNumero.disable();
    }
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    this.vh.formGroup = this.AtributoGroup;
    this.currentUser = this.authenticationService.usuario;
    this.cargarAtributos();
    //this.cargarProveedor();
    this.cargarEmpleado();
    this.cargarDefecto();
  }
  /* Metodo que realiza la llamada a la api para traer los empleados existentes */
  cargarEmpleado() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
    datos.PageNumber = 1;
    datos.PageSize = 1000;
    datos.Orden = 3;
    const susc = this.empleadoService.fetch(datos).subscribe(data => {
      this.empleados = data.Data;
      //si es nuevo reclamo, se asigna el empleado logueado
      if (!this.reclamo.Id) {
        this.formGroup.get('IdEmpleado')?.setValue(!this.currentUser.Empleado ? data.Data[0].Id : this.currentUser.Empleado.Id);
      }
    });
    susc.unsubscribe;
  }
  borrarCliente() {
    this.formGroup.controls.IdCliente.reset(0);
    this.formGroup.controls.Cliente.reset('');
    //SP SINWEB-369 limpiar nro de comprobante de venta
    this.formGroup.controls.ComprNumero.reset('');
    this.formGroup.controls.ComprNumero.disable();
  }
  buscarClientes() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_5__.SeleccionarClienteComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.IdCliente.setValue(resolve.IdCliente);
        this.formGroup.controls.Cliente.setValue(resolve.Cliente);
        //SP SINWEB-369 limpiar nro de comprobante de venta
        this.formGroup.controls.ComprNumero.reset('');
        if (this.formGroup.controls.IdArticulo.value > 0) {
          this.formGroup.controls.ComprNumero.enable();
        }
      }
    });
  }
  /* Metodo que realiza la llamada a la api para traer los defectos de rma existentes */
  cargarDefecto() {
    let datos = {};
    datos.PageNumber = 1;
    datos.PageSize = 1000;
    datos.Orden = 2;
    const susc2 = this.defectoService.fetch(datos).subscribe(data => {
      this.defectos = data.Data;
    });
    susc2.unsubscribe;
  }
  cargarAtributos() {
    let datos = {};
    datos.PageNumber = -1;
    datos.IncluirEstados = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO;
    const susc3 = this.atributoService.fetch(datos).subscribe(data => {
      this.atributos = data.Data;
      this.atributos.forEach(atributo => {
        let estado = this.reclamo.Id ? this.reclamo.RMAEstado.Id : 1;
        if (this.atributoHabilitado(atributo.Estados, [estado])) {
          atributo.permitido = true;
          if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_STRING || atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_BLOB) {
            this.AtributoGroup.addControl(atributo.Nombre, this.fb.control(''));
          }
          if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_INTEGER || atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_REAL) {
            this.AtributoGroup.addControl(atributo.Nombre, this.fb.control(0));
          }
          if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_LOGICO) {
            this.AtributoGroup.addControl(atributo.Nombre, this.fb.control(false));
          }
          if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_DATE) {
            this.AtributoGroup.addControl(atributo.Nombre, this.fb.control(''));
          }
          if (atributo.Requerido == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO) {
            this.AtributoGroup.controls[atributo.Nombre].setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required]));
            //PM SINWEB-200
            if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_DATE) {
              this.AtributoGroup.get(atributo.Nombre)?.setValue((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(atributo.Valor));
            }
            if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_LOGICO) {
              this.AtributoGroup.get(atributo.Nombre)?.setValue(atributo.Valor == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO ? true : false);
            }
            if (atributo.Dominio !== src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_LOGICO && atributo.Dominio !== src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_DATE) {
              this.AtributoGroup.get(atributo.Nombre)?.setValue(atributo.Valor);
            }
          }
        } else {
          atributo.permitido = false;
        }
      });
      if (this.reclamo.Id) {
        this.cargarAtributosValores();
        /**
         * SP SINWEB-169 desahabilita los formularios si estamos en vizualizar
         */
        if (this.modoVisualizar) {
          this.AtributoGroup.disable();
          this.AtributoGroup.clearValidators();
        }
      }
    });
    susc3.unsubscribe;
  }
  cargarAtributosValores() {
    this.reclamo.Atributos.forEach(atributoReclamo => {
      let atributo = this.atributos.find(x => x.Id == atributoReclamo.RMAAtributo.Id);
      if (atributo) {
        if (atributo.permitido) {
          if (atributoReclamo.RMAAtributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_DATE) {
            atributoReclamo.Valor = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(atributoReclamo.Valor);
          }
          if (atributoReclamo.RMAAtributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_LOGICO) {
            atributoReclamo.Valor = atributoReclamo.Valor == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO ? true : false;
          }
          this.AtributoGroup.controls[atributoReclamo.RMAAtributo.Nombre].setValue(atributoReclamo.Valor);
        }
      }
    });
  }
  getAtributoValue(atributo) {
    return this.AtributoGroup.get(atributo)?.value;
  }
  setAtributoValue(atributo, valor) {
    this.AtributoGroup.controls[atributo].setValue(valor);
  }
  save() {
    this.formGroup.markAllAsTouched();
    this.AtributoGroup.markAllAsTouched();
    if (!this.formGroup.valid || !this.AtributoGroup.valid) {
      return;
    }
    this.prepareReclamo();
    if (this.reclamo.Id) {
      this.edit();
    } else {
      this.create();
    }
  }
  edit() {
    if (this.reclamo.RMAEstado.Id !== src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_RECLAMO_ESTADO_CERRADO && this.reclamo.RMAEstado.Id !== src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_RECLAMO_ESTADO_ANULADO) {
      const sbCreate = this.reclamoService.editar(this.reclamo, this.reclamo.Id).subscribe(res => {
        if (res.Errors == null) {
          this.modal.close(res.Data.NumeroReclamo);
        }
      });
      this.subscriptions.push(sbCreate);
    } else {
      const sbCreate = this.reclamoService.putReclamoAnularCerrado(this.reclamo, this.reclamo.Id).subscribe(res => {
        if (res.Errors == null) {
          this.modal.close(res.Data.NumeroReclamo);
        }
      });
      this.subscriptions.push(sbCreate);
    }
  }
  create() {
    const sbCreate = this.reclamoService.nuevo(this.reclamo).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close(res.Data.NumeroReclamo);
      }
    });
    this.subscriptions.push(sbCreate);
  }
  prepareReclamo() {
    const formData = this.formGroup.value;
    //SP SINWEB-416 se agrega hora recepcion y fecha hora recepcion pasa a ser fecha recepcion
    this.reclamo.FechaHoraRecepcion = formData.FechaHoraRecepcion ? formData.FechaHoraRecepcion : '';
    this.reclamo.IdEmpleado = formData.IdEmpleado;
    this.reclamo.IdCliente = Number(formData.IdCliente);
    this.reclamo.NroSerie = formData.NroSerie;
    this.reclamo.Cantidad = 1;
    this.reclamo.IdVenta = formData.IdVenta;
    this.reclamo.ComprNumero = formData.ComprNumero;
    this.reclamo.ComprFecha = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(formData.ComprFecha);
    this.reclamo.ComprLugar = formData.ComprLugar;
    this.reclamo.IdRMADefecto = Number(formData.IdRMADefecto);
    this.reclamo.FechaRevisionTecnico = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(formData.FechaRevisionTecnico);
    this.reclamo.MotivoReclamo = formData.MotivoReclamo;
    this.reclamo.Observacion = formData.Observacion;
    this.reclamo.IdProveedor = Number(formData.IdProveedor);
    this.reclamo.IdRMAEstado = 1;
    this.reclamo.IdArticulo = Number(formData.IdArticulo);
    this.reclamo.IdSucursal = this.currentUser.IdSucursal;
    let atributosEnviar = [];
    this.atributos.forEach(atributo => {
      let atributoEnviar = {};
      atributoEnviar.IdRMAAtributo = atributo.Id;
      atributoEnviar.Valor = this.AtributoGroup.get(atributo.Nombre)?.value;
      if (atributoEnviar.Valor !== undefined && atributoEnviar.Valor !== null && atributoEnviar.Valor !== '' && atributoEnviar.Valor !== 0) {
        if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_DATE) {
          atributoEnviar.Valor = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFecha)(atributoEnviar.Valor);
        }
        if (atributo.Dominio == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_3__.RMA_ATRIBUTO_LOGICO) {
          atributoEnviar.Valor = atributoEnviar.Valor ? src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO : src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.FALSO;
        }
        atributosEnviar.push(atributoEnviar);
      }
    });
    this.reclamo.Atributos = atributosEnviar;
  }
  getArticulo() {
    return this.formGroup.get('Articulo').value;
  }
  borrarArticulo() {
    this.formGroup.controls.IdArticulo.reset(0);
    this.formGroup.controls.Articulo.reset('');
    //SP SINWEB-369 limpiar nro de comprobante de venta
    this.formGroup.controls.ComprNumero.reset('');
    this.formGroup.controls.ComprNumero.disable();
  }
  buscarArticulos() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_4__.SeleccionarArticuloComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.IdArticulo.setValue(resolve.IdArticulo);
        this.formGroup.controls.Articulo.setValue(resolve.Articulo);
        //SP SINWEB-369 limpiar nro de comprobante de venta
        this.formGroup.controls.ComprNumero.reset('');
        if (this.formGroup.controls.IdCliente.value > 0) {
          this.formGroup.controls.ComprNumero.enable();
        }
      }
    });
  }
  cargarProveedor() {
    let datos = {};
    datos.PageNumber = 1;
    datos.PageSize = 100000000;
    datos.Orden = 3;
    datos.EstadoProveedor = 'A';
    let susc = this.proveedorService.fetch(datos).subscribe(data => {
      data.Data.forEach(proveedor => {
        proveedor.Nombre = proveedor.Nombre + ' (' + proveedor.Codigo + ')';
      });
      this.proveedores = data.Data;
    });
    susc.unsubscribe;
  }
  /**
   * SP SINWEB-259 - Método get para obtener campo Proveedor
   * @returns {any} Proveedor
   */
  getProveedor() {
    return this.formGroup.get('Proveedor').value;
  }
  /**
   * SP SINWEB-259 - Método para limpiar el filtro Proveedor
   */
  borrarProveedor() {
    this.formGroup.get('Proveedor').reset('');
    this.formGroup.get('IdProveedor').reset(-1);
  }
  /**
   * 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.formGroup.controls.IdProveedor.setValue(resolve.IdProveedor);
        this.formGroup.controls.Proveedor.setValue(resolve.Proveedor);
      }
    });
  }
  getNroVenta() {
    return this.formGroup.get('ComprNumero').value;
  }
  buscarComprobantes() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_comprobante_venta_seleccionar_comprobante_venta_component__WEBPACK_IMPORTED_MODULE_6__.SeleccionarComprobanteVentaComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-1',
      windowClass: 'modal-z-index-1',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.filtros = {
      Cliente: {
        Id: this.formGroup.controls.IdCliente.value,
        Ocultar: true
      },
      Articulo: {
        Id: this.formGroup.controls.IdArticulo.value,
        Ocultar: true
      },
      TiposComprobante: {
        Ids: '3',
        Ocultar: true
      }
    };
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.ComprFecha.setValue((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(resolve.ComprobanteObj.Fecha));
        this.formGroup.controls.ComprNumero.setValue(resolve.ComprobanteObj.Numero);
      }
    });
  }
  borrarNroVenta() {
    this.formGroup.controls.IdVenta.reset('');
    this.formGroup.controls.ComprNumero.reset('');
  }
  selectCliente(event) {
    this.formGroup.controls.IdCliente.setValue(event);
    if (this.formGroup.controls.IdArticulo.value > 0) {
      this.formGroup.controls.ComprNumero.enable();
    }
  }
  getCliente() {
    return this.formGroup.get('Cliente').value;
  }
  atributoHabilitado(estados, estadosPermitidos) {
    let retorno = false;
    estados.forEach(estado => {
      if (estadosPermitidos.includes(estado.RMAEstado?.Id)) {
        retorno = true;
      }
    });
    return retorno;
  }
  //SP SINWEB-416 metodos para obtener y setear la fecha y hora
  getFechaHoraRecepcion() {
    return this.formGroup.get('FechaHoraRecepcion').value;
  }
  setFechaHoraRecepcion($event) {
    this.formGroup.get('FechaHoraRecepcion').setValue($event);
  }
  fechaHoraRecepcionTouched() {
    this.formGroup.get('FechaHoraRecepcion').markAsTouched();
  }
  static #_ = this.ɵfac = function ReclamosNewComponent_Factory(t) {
    return new (t || ReclamosNewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_24__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_11__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_12__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_13__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_14__.ProveedorService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_15__.DefectoService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_16__.RMAAtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_17__.ClienteService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdefineComponent"]({
    type: ReclamosNewComponent,
    selectors: [["app-reclamos-new"]],
    inputs: {
      reclamo: "reclamo",
      modoEdicion: "modoEdicion",
      modoAtributo: "modoAtributo",
      modoVisualizar: "modoVisualizar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 19,
    vars: 7,
    consts: [[1, "modal-content"], ["class", "modal-header", 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", "d-sm-none"], [1, "d-none", "d-sm-block"], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["class", "modal-footer", 4, "ngIf"], ["DATOS_TAB", ""], ["ATRIBUTOS_TAB", ""], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [3, "ngTemplateOutlet"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"], ["action", "#", 1, "form", "form-label-right", "mt-2", 3, "formGroup"], [1, "form-group", "p-2"], [1, "row", "p-1"], [1, "col-lg-4"], ["campoObligatorio", "", 1, "control-label"], ["maxDate", "31/12/3000", 3, "valor", "showErrors", "errors", "msgErrors", "valorEmit", "touchedEmit"], [1, "col-lg-3"], ["campoObligatorio", "", 1, "form-label"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "search", "formControlName", "Cliente", "placeholder", "Seleccionar cliente", "readonly", "", 1, "form-control"], [1, "col-lg-6"], ["type", "search", "formControlName", "Articulo", "placeholder", "Seleccionar Art\u00EDculo", "readonly", "", 1, "form-control"], ["type", "text", "name", "NroSerie", "autocomplete", "off", "formControlName", "NroSerie", 1, "form-control", "form-control-solid", 3, "readOnly"], ["class", "valid-feedback", 4, "ngIf"], ["class", "invalid-feedback animate__animated animate__shakeX", 4, "ngIf"], ["type", "search", "formControlName", "Proveedor", "placeholder", "Seleccionar proveedor", "readonly", "", 1, "form-control"], [1, "col-lg-5"], ["ngbTooltip", "Los comprobantes para elegir ser\u00E1n los relacionados al cliente y art\u00EDculo seleccionado.", 1, "bx", "bx-info-circle", "font-size-17"], ["type", "text", "mask", "0000-00000000", "formControlName", "ComprNumero", 1, "form-control", 3, "dropSpecialCharacters", "readOnly"], [1, "col-lg-2"], ["type", "date", "formControlName", "ComprFecha", 1, "form-control", "digits", 3, "readOnly"], ["type", "text", "name", "ComprLugar", "autocomplete", "off", "formControlName", "ComprLugar", 1, "form-control", "form-control-solid", 3, "readOnly"], [1, "control-label"], ["name", "MotivoReclamo", "rows", "2", "name", "MotivoReclamo", "formControlName", "MotivoReclamo", 1, "form-control", "form-control-solid", 3, "readOnly"], ["name", "Observacion", "rows", "2", "name", "Descripcion", "formControlName", "Observacion", 1, "form-control", "form-control-solid", 3, "readOnly"], [1, "col-lg-6", "py-2", 3, "ngClass"], ["type", "date", "formControlName", "FechaRevisionTecnico", 1, "form-control", "digits", 3, "readOnly"], ["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", "disabled", "", 1, "form-control", 3, "value"], [1, "valid-feedback"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [4, "ngFor", "ngForOf"], ["class", "col-lg-6", 4, "ngIf"], ["class", "mdi mdi-information-outline me-1", "placement", "top", 3, "ngbTooltip", "click", 4, "ngIf"], [3, "title", "value", "decimals", "tooltip", "isInvalid", "isValid", "disabled", "emitValue"], ["placement", "top", 1, "mdi", "mdi-information-outline", "me-1", 3, "ngbTooltip", "click"], ["t", "ngbTooltip"], [3, "title", "value", "tooltip", "isInvalid", "isValid", "disabled", "emitValue"], ["type", "text", "name", "Valor", "autocomplete", "off", "maxlength", "200", 1, "form-control", "form-control-solid", 3, "formControlName"], [1, "col-lg-12"], ["rows", "2", "name", "Valor", "maxlength", "200", 1, "form-control", "form-control-solid", 3, "formControlName"], ["type", "date", 1, "form-control", "digits", 3, "formControlName"], ["colorDisabled", "secondary", "colorUncheked", "primary", "colorChecked", "success", 1, "my-2", 3, "disabled", "value", "title", "emitAction"]],
    template: function ReclamosNewComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, ReclamosNewComponent_div_1_Template, 3, 1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "div", 2)(3, "ul", 3, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](5, ReclamosNewComponent_li_5_Template, 7, 1, "li", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](6, "li", 6)(7, "a", 7)(8, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](9, "Atributos");
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](10, "span", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](11, "Atributos adicionales ");
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](12, ReclamosNewComponent_ng_template_12_Template, 1, 1, "ng-template", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](13, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](14, ReclamosNewComponent_div_14_Template, 9, 6, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](15, ReclamosNewComponent_ng_template_15_Template, 77, 68, "ng-template", null, 13, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplateRefExtractor"])(17, ReclamosNewComponent_ng_template_17_Template, 4, 2, "ng-template", null, 14, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("activeId", ctx.activeId)("destroyOnHide", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx.modoAtributo);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbNavItem", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngbNavOutlet", _r1);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", !ctx.modoVisualizar);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_26__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_26__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_26__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_26__.NgTemplateOutlet, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_18__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_24__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_24__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbNavOutlet, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_25__.NgbTooltip, ngx_mask__WEBPACK_IMPORTED_MODULE_27__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.FormControlName, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_19__.CheckboxComponent, _shared_ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_20__.InputNumberComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_21__.SelectLoadingComponent, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_22__.InputDateTimeComponent, _angular_common__WEBPACK_IMPORTED_MODULE_26__.AsyncPipe],
    styles: [".back-z-index {\n  z-index: 1056 !important;\n}\n\n .modal-z-index {\n  z-index: 1057 !important;\n}"]
  });
}

/***/ }),

/***/ 90303:
/*!************************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/reclamos-trazabilidad/reclamos-trazabilidad.component.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReclamosTrazabilidadComponent: () => (/* binding */ ReclamosTrazabilidadComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_rma_RMAReclamoTrazabilidad_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/rma/RMAReclamoTrazabilidad.service */ 37954);
/* harmony import */ var _shared_ui_table_table_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/ui/table/table.component */ 99585);






class ReclamosTrazabilidadComponent {
  constructor(fb, modal, rMAReclamoTrazabilidad) {
    this.fb = fb;
    this.modal = modal;
    this.rMAReclamoTrazabilidad = rMAReclamoTrazabilidad;
    //formulario
    this.formGroup = this.fb.group({
      NumeroReclamo: [''],
      FechaHoraRecepcion: [''],
      Articulo: [''],
      Proveedor: [''],
      RMADefecto: ['']
    });
    this.totalItems = 0;
    //listado
    this.header = [{
      Nombre: 'Fecha',
      Key: 'Fecha',
      WCol: '10%'
    }, {
      Nombre: 'Tipo',
      Key: 'TipoComprobante',
      WCol: '15%'
    }, {
      Nombre: 'Dominio',
      Key: 'Dominio',
      Type: 'diccionario',
      Diccionario: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.DICCIONARIO_RMA_TRAZABILIDAD_DOMINIO,
      WCol: '10%'
    }, {
      Nombre: 'Número',
      Key: 'Numero',
      WCol: '20%'
    }, {
      Nombre: 'Monto',
      Key: 'Total',
      Type: 'number',
      Pipe: '1.2-2',
      WCol: '15%'
    }, {
      Nombre: 'Cliente',
      WCol: '30%',
      Type: 'combinado',
      Data: {
        Plantilla: '(b) a ',
        ArrayKeys: {
          a: 'ContribuyenteNombre',
          b: 'ContribuyenteCodigo'
        }
      }
    }];
    this.subscriptions = [];
  }
  ngOnInit() {
    if (this.reclamo.Id !== undefined) {
      const sb = this.rMAReclamoTrazabilidad.getTrazabilidades({}, this.reclamo.Id).subscribe(trazabilidades => {
        this.trazabilidades = trazabilidades.Data;
        this.totalItems = trazabilidades.Data.length;
        console.log(this.trazabilidades);
        this.loadForm();
      });
      this.subscriptions.push(sb);
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  loadForm() {
    if (this.trazabilidades !== undefined) {
      this.formGroup = this.fb.group({
        NumeroReclamo: [this.reclamo.NumeroReclamo],
        FechaHoraRecepcion: [this.reclamo.FechaHoraRecepcion],
        Articulo: ['(' + this.reclamo.Articulo.Codigo + ') ' + this.reclamo.Articulo.Nombre],
        Proveedor: ['(' + this.reclamo.Proveedor.Codigo + ') ' + this.reclamo.Proveedor.Nombre],
        RMADefecto: [this.reclamo.RMADefecto.Nombre]
      });
    }
  }
  static #_ = this.ɵfac = function ReclamosTrazabilidadComponent_Factory(t) {
    return new (t || ReclamosTrazabilidadComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAReclamoTrazabilidad_service__WEBPACK_IMPORTED_MODULE_1__.RMAReclamoTrazabilidad));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: ReclamosTrazabilidadComponent,
    selectors: [["app-reclamos-trazabilidad"]],
    inputs: {
      reclamo: "reclamo"
    },
    decls: 37,
    vars: 8,
    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, "background-color", "#ced4da26"], ["action", "#", 1, "form", "form-label-right", "mt-1", 3, "formGroup"], [1, "form-group", "p-2"], [1, "row", "p-1"], [1, "col-lg-4"], [1, "form-label"], ["type", "text", "name", "NumeroReclamo", "formControlName", "NumeroReclamo", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "FechaHoraRecepcion", "formControlName", "FechaHoraRecepcion", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "RMADefecto", "formControlName", "RMADefecto", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "Articulo", "formControlName", "Articulo", "disabled", "", 1, "form-control", "form-control-solid"], ["type", "text", "name", "Proveedor", "formControlName", "Proveedor", "disabled", "", 1, "form-control", "form-control-solid"], [1, "card-body", "mt-1"], [1, "form-group", "p-3"], [3, "columns", "datos", "pagination", "acciones", "totalItems", "mostrarCantidadTabla"], [1, "modal-footer"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "click"]],
    template: function ReclamosTrazabilidadComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 3)(6, "form", 4)(7, "div", 5)(8, "div", 6)(9, "div", 7)(10, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "Nro. Reclamo");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](12, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 7)(14, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, "Recepci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](16, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "div", 6)(18, "div", 7)(19, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "Defecto");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](21, "input", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](22, "div", 7)(23, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Art\u00EDculo");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](25, "input", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "div", 7)(27, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Proveedor");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](29, "input", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](30, "div", 14)(31, "div", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](32, "app-table", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "div", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](34);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "button", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ReclamosTrazabilidadComponent_Template_button_click_35_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](36, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("Trazabilidad reclamo nro. '", ctx.reclamo.NumeroReclamo, "'");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](26);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("columns", ctx.header)("datos", ctx.trazabilidades)("pagination", false)("acciones", false)("totalItems", ctx.totalItems)("mostrarCantidadTabla", false);
      }
    },
    dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormControlName, _shared_ui_table_table_component__WEBPACK_IMPORTED_MODULE_2__.TableComponent],
    styles: [".modal-z-index-traz {\n  z-index: 1058 !important;\n}\n\n .back-z-index-traz {\n  z-index: 1057 !important;\n}"]
  });
}

/***/ }),

/***/ 81415:
/*!********************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/reclamos-view/reclamos-view.component.ts ***!
  \********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReclamosViewComponent: () => (/* binding */ ReclamosViewComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var src_app_shared_reportes_core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/shared/reportes/core/impresion-cmprb/impresion-cmprb.component */ 80162);
/* harmony import */ var src_app_shared_reportes_rma_cmprb_reclamo_cmprb_reclamo_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/reportes/rma/cmprb-reclamo/cmprb-reclamo.component */ 81590);
/* harmony import */ var src_app_pages_rma_seguimiento_reclamos_trazabilidad_reclamos_trazabilidad_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/rma/seguimiento/reclamos-trazabilidad/reclamos-trazabilidad.component */ 90303);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);






function ReclamosViewComponent_ng_container_3_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" '", ctx_r15.reclamo.NumeroReclamo, "'");
  }
}
function ReclamosViewComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0)(1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "Visualizar reclamo nro.");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, ReclamosViewComponent_ng_container_3_ng_container_3_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r0.reclamo.Id);
  }
}
function ReclamosViewComponent_li_9_ng_template_6_ng_template_0_Template(rf, ctx) {}
function ReclamosViewComponent_li_9_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, ReclamosViewComponent_li_9_ng_template_6_ng_template_0_Template, 0, 0, "ng-template", 24);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngTemplateOutlet", _r6);
  }
}
function ReclamosViewComponent_li_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 19)(1, "a", 20)(2, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Iniciado");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Reclamo iniciado");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](6, ReclamosViewComponent_li_9_ng_template_6_Template, 1, 1, "ng-template", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 1);
  }
}
function ReclamosViewComponent_li_10_ng_template_4_ng_template_0_Template(rf, ctx) {}
function ReclamosViewComponent_li_10_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, ReclamosViewComponent_li_10_ng_template_4_ng_template_0_Template, 0, 0, "ng-template", 24);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngTemplateOutlet", _r8);
  }
}
function ReclamosViewComponent_li_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 19)(1, "a", 20)(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ReclamosViewComponent_li_10_ng_template_4_Template, 1, 1, "ng-template", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 2);
  }
}
function ReclamosViewComponent_li_11_ng_template_4_ng_template_0_Template(rf, ctx) {}
function ReclamosViewComponent_li_11_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, ReclamosViewComponent_li_11_ng_template_4_ng_template_0_Template, 0, 0, "ng-template", 24);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngTemplateOutlet", _r14);
  }
}
function ReclamosViewComponent_li_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 19)(1, "a", 20)(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ReclamosViewComponent_li_11_ng_template_4_Template, 1, 1, "ng-template", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 3);
  }
}
function ReclamosViewComponent_ng_template_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "app-reclamos-new", 26);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("modoVisualizar", true)("reclamo", ctx_r5.reclamo);
  }
}
function ReclamosViewComponent_ng_template_23_li_3_ng_template_4_ng_template_0_Template(rf, ctx) {}
function ReclamosViewComponent_ng_template_23_li_3_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, ReclamosViewComponent_ng_template_23_li_3_ng_template_4_ng_template_0_Template, 0, 0, "ng-template", 24);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3);
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngTemplateOutlet", _r10);
  }
}
function ReclamosViewComponent_ng_template_23_li_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 19)(1, "a", 20)(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Informe");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ReclamosViewComponent_ng_template_23_li_3_ng_template_4_Template, 1, 1, "ng-template", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 1);
  }
}
function ReclamosViewComponent_ng_template_23_li_4_ng_template_4_ng_template_0_Template(rf, ctx) {}
function ReclamosViewComponent_ng_template_23_li_4_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, ReclamosViewComponent_ng_template_23_li_4_ng_template_4_ng_template_0_Template, 0, 0, "ng-template", 24);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3);
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngTemplateOutlet", _r12);
  }
}
function ReclamosViewComponent_ng_template_23_li_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li", 19)(1, "a", 20)(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "Resoluci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, ReclamosViewComponent_ng_template_23_li_4_ng_template_4_Template, 1, 1, "ng-template", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavItem", 2);
  }
}
function ReclamosViewComponent_ng_template_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 5)(1, "ul", 6, 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, ReclamosViewComponent_ng_template_23_li_3_Template, 5, 1, "li", 8)(4, ReclamosViewComponent_ng_template_23_li_4_Template, 5, 1, "li", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](2);
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("activeId", ctx_r7.reclamo.RMAProveedor.RMAResolucion.Id > 1 ? 2 : 1)("destroyOnHide", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r7.reclamo.RMAEstado.Id >= 2 && ctx_r7.reclamo.RMAProveedor.RMAResolucion.Id >= 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r7.reclamo.RMAEstado.Id >= 2 && ctx_r7.reclamo.RMAProveedor.RMAResolucion.Id >= 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavOutlet", _r22);
  }
}
function ReclamosViewComponent_ng_template_25_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "app-enviar-prov", 26);
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("modoVisualizar", true)("reclamo", ctx_r9.reclamo);
  }
}
function ReclamosViewComponent_ng_template_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "app-resuelto-new", 26);
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("modoVisualizar", true)("reclamo", ctx_r11.reclamo);
  }
}
function ReclamosViewComponent_ng_template_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "app-cliente-rec-new", 26);
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("modoVisualizar", true)("reclamo", ctx_r13.reclamo);
  }
}
/**
 * SP SINWEB-169 nuevo componente para visualizar reclamos , este llama al resto de componente dependiendo el estado del reclamo.
 */
class ReclamosViewComponent {
  constructor(modal, modalService) {
    this.modal = modal;
    this.modalService = modalService;
  }
  ngOnInit() {}
  /**
   * SP SINWEB-169 metodo para imprimir comprobante
   */
  imprimirComprobante() {
    const modalRef = this.modalService.open(src_app_shared_reportes_core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_1__.ImpresionCmprbComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.tipocomprobante = src_app_shared_reportes_rma_cmprb_reclamo_cmprb_reclamo_component__WEBPACK_IMPORTED_MODULE_2__.CmprbReclamoComponent;
    modalRef.componentInstance.datosComprobante = this.reclamo;
    modalRef.componentInstance.tipoNombreComprobante = 'Reclamo de producto';
    modalRef.result.then(exito => {});
  }
  verTrazabilidad() {
    const modalRef = this.modalService.open(src_app_pages_rma_seguimiento_reclamos_trazabilidad_reclamos_trazabilidad_component__WEBPACK_IMPORTED_MODULE_3__.ReclamosTrazabilidadComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-traz',
      windowClass: 'modal-z-index-traz',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = this.reclamo;
    modalRef.result.then(exito => {});
  }
  obtenerColorEstado(nombreEstado) {
    const colorEstado = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.DICCIONARIO_RMA_SEGUIMIENTO_ESTADO.find(dicc => dicc.Id == nombreEstado).Style;
    return colorEstado ? colorEstado : 'background:#00619a';
  }
  static #_ = this.ɵfac = function ReclamosViewComponent_Factory(t) {
    return new (t || ReclamosViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
    type: ReclamosViewComponent,
    selectors: [["app-reclamos-view"]],
    inputs: {
      reclamo: "reclamo"
    },
    decls: 31,
    vars: 10,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], [1, "badge", "rounde-pill", "font-size-20", "float", "float-right"], [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, "ngbNavOutlet"], [1, "modal-footer"], ["data-cy", "verTraz-rma-seguimiento", "type", "button", 1, "btn", "btn-info", "btn-elevate", "mr-2", 3, "click"], ["data-cy", "verCompr-rma-seguimiento", "type", "button", 1, "btn", "btn-warning", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "click"], ["INICIADO", ""], ["PROVEEDOR", ""], ["DICTAMINAR", ""], ["RESUELTO", ""], ["CLIENTE", ""], [3, "ngbNavItem"], ["ngbNavLink", ""], [1, "d-block", "d-sm-none"], [1, "d-none", "d-sm-block"], ["ngbNavContent", ""], [3, "ngTemplateOutlet"], [1, "d-block"], [3, "modoVisualizar", "reclamo"], ["proveedorNav", "ngbNav"]],
    template: function ReclamosViewComponent_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__["ɵɵtemplate"](3, ReclamosViewComponent_ng_container_3_Template, 4, 1, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "div", 5)(7, "ul", 6, 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](9, ReclamosViewComponent_li_9_Template, 7, 1, "li", 8)(10, ReclamosViewComponent_li_10_Template, 5, 1, "li", 8)(11, ReclamosViewComponent_li_11_Template, 5, 1, "li", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ReclamosViewComponent_Template_button_click_15_listener() {
          return ctx.verTrazabilidad();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](16, " Ver trazabilidad ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "button", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ReclamosViewComponent_Template_button_click_17_listener() {
          return ctx.imprimirComprobante();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, " Ver comprobante ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "button", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function ReclamosViewComponent_Template_button_click_19_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](20, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](21, ReclamosViewComponent_ng_template_21_Template, 1, 2, "ng-template", null, 14, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"])(23, ReclamosViewComponent_ng_template_23_Template, 6, 5, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"])(25, ReclamosViewComponent_ng_template_25_Template, 1, 2, "ng-template", null, 16, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"])(27, ReclamosViewComponent_ng_template_27_Template, 1, 2, "ng-template", null, 17, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"])(29, ReclamosViewComponent_ng_template_29_Template, 1, 2, "ng-template", null, 18, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.reclamo);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstyleProp"]("background", ctx.reclamo.RMAEstado.Color);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.reclamo.RMAEstado.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("activeId", ctx.reclamo.RMAEstado.Id >= 4 ? 1 : ctx.reclamo.RMAEstado.Id)("destroyOnHide", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.reclamo.RMAEstado.Id >= 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.reclamo.RMAEstado.Id >= 2 && ctx.reclamo.RMAEstado.Id < 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.reclamo.RMAEstado.Id >= 3 && ctx.reclamo.RMAEstado.Id < 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngbNavOutlet", _r1);
      }
    }
  });
}

/***/ }),

/***/ 75420:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/seguimiento-detalle/seguimiento-detalle.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeguimientoDetalleComponent: () => (/* binding */ SeguimientoDetalleComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_14__ = __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_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var _reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../reclamos-view/reclamos-view.component */ 81415);
/* harmony import */ var _envio_multiple_prov_envio_multiple_prov_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../envio-multiple-prov/envio-multiple-prov.component */ 21428);
/* harmony import */ var src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/ui/log/log.component */ 44192);
/* 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_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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_rma_RMAEstado_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/rma/RMAEstado.service */ 82367);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/ui/pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);
/* harmony import */ var _seguimiento_operativo_seguimiento_operativo_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../seguimiento-operativo/seguimiento-operativo.component */ 4761);





















function SeguimientoDetalleComponent_a_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function SeguimientoDetalleComponent_a_11_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r4.nuevoReclamo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](1, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](2, "Nuevo Reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
}
function SeguimientoDetalleComponent_div_26_div_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "div", 27)(1, "p", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](2, "Ordernar por");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](3, "select-loading", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("valueSelect", function SeguimientoDetalleComponent_div_26_div_20_Template_select_loading_valueSelect_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r8.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Por defecto")("items", ctx_r6.ordenamientos)("valueSelected", 0);
  }
}
function SeguimientoDetalleComponent_div_26_ng_container_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](1, "div", 27)(2, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](3, "Fecha Rev. T\u00E9cnica Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](4, "input", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](5, "div", 27)(6, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](7, "Fecha Rev. T\u00E9cnica Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](8, "input", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerEnd"]();
  }
}
function SeguimientoDetalleComponent_div_26_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerStart"](1, 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](2, "div", 26)(3, "div", 27)(4, "div")(5, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](6, "Vista");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](7, "select", 29)(8, "option", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](9, "Detalle");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](10, "option", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](11, "Operativa");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](12, "option", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](13, "Completa");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](14, "div", 27)(15, "div")(16, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](17, "Estado");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](18, "select-loading", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("valueSelect", function SeguimientoDetalleComponent_div_26_Template_select_loading_valueSelect_18_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r10.searchForm.controls.IdsEstados.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵpipe"](19, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](20, SeguimientoDetalleComponent_div_26_div_20_Template, 4, 4, "div", 34)(21, SeguimientoDetalleComponent_div_26_ng_container_21_Template, 9, 0, "ng-container", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("formGroup", ctx_r1.searchForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("defaultValue", ctx_r1.estadosPermitidos.length > 1 ? 0 : "")("defaultString", "Todos")("items", ctx_r1.estados)("valueSelected", ctx_r1.searchForm.controls.IdsEstados.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵpipeBind1"](19, 8, ctx_r1.rMAEstadoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r1.filterModoVista == ctx_r1.modoVista.Operativo);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx_r1.filterModoVista == ctx_r1.modoVista.Completo);
  }
}
function SeguimientoDetalleComponent_ng_container_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](1, "app-seguimiento-operativo", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("AccionOrden", function SeguimientoDetalleComponent_ng_container_28_Template_app_seguimiento_operativo_AccionOrden_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r12.accionOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](2, "div", 40)(3, "div", 41)(4, "app-page-info", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("valueSelect", function SeguimientoDetalleComponent_ng_container_28_Template_app_page_info_valueSelect_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r13);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r14.setPage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](5, "div", 43)(6, "div", 44)(7, "div", 45)(8, "nav", 46)(9, "ul", 47)(10, "ngb-pagination", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("pageChange", function SeguimientoDetalleComponent_ng_container_28_Template_ngb_pagination_pageChange_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r13);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r15.page = $event);
    })("pageChange", function SeguimientoDetalleComponent_ng_container_28_Template_ngb_pagination_pageChange_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r13);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r16.pageChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("reclamos", ctx_r2.registros)("permisos", ctx_r2.permisos);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("page", ctx_r2.page)("totalItems", ctx_r2.totalItems)("items", ctx_r2.pageOptions)("valueSelected", ctx_r2.cant_search);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("collectionSize", ctx_r2.totalItems)("page", ctx_r2.page)("pageSize", ctx_r2.cant_search)("maxSize", 5)("rotate", true)("boundaryLinks", true);
  }
}
function SeguimientoDetalleComponent_ng_container_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](1, "app-table2", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("lazyLoad", function SeguimientoDetalleComponent_ng_container_29_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r17.lazyLoadChange($event));
    })("emitAction", function SeguimientoDetalleComponent_ng_container_29_Template_app_table2_emitAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵrestoreView"](_r18);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵresetView"](ctx_r19.accionOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("columns", ctx_r3.getReclamosHeader())("order", ctx_r3.order)("sentido", ctx_r3.sentido)("datos", ctx_r3.registros)("page", ctx_r3.page)("cant_search", ctx_r3.cant_search)("totalItems", ctx_r3.totalItems)("dropdownButtons", ctx_r3.dropdownActions)("acciones", true)("apiTable", true);
  }
}
class SeguimientoDetalleComponent {
  constructor(fb, modalService, rMAEstadoService, alert, toast, authService, tourService, configGralService) {
    this.fb = fb;
    this.modalService = modalService;
    this.rMAEstadoService = rMAEstadoService;
    this.alert = alert;
    this.toast = toast;
    this.authService = authService;
    this.tourService = tourService;
    this.configGralService = configGralService;
    this.verAtributosAdicionales = false;
    this.registros = [];
    this.isLoading = false;
    this.sentido = 'Desc';
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.totalItems = 0;
    this.estadosPermitidos = [];
    // @Output() pageChangeEv = new EventEmitter<any>();
    // @Output() setPageEv = new EventEmitter<any>();
    // @Output() setOrderEv = new EventEmitter<any>();
    this.lazyLoadChangeEv = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.export = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.filtros = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.editar = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.editarAtributo = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.anular = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.envioProv = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.eliminarEnvio = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.editarResol = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.eliminarResol = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.cargarCliente = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.eliminarDesp = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.detectEnvio = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.cerrar = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.abrir = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.eliminarCli = new _angular_core__WEBPACK_IMPORTED_MODULE_14__.EventEmitter();
    this.unsubscribe = [];
    this.modoListado = 'detallado';
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.modoVista = {
      Detalle: 'D',
      Operativo: 'O',
      Completo: 'C'
    };
    //arreglos
    this.estados = [];
    //filtros
    this.filtro = false;
    this.filterRevisionTecnicaDesde = '';
    this.filterRevisionTecnicaHasta = '';
    this.searchForm = this.fb.group({
      IdsEstados: [0],
      modoVista: [this.modoVista.Detalle],
      // MC SINWEB-396 Se agregan filtros de fecha de revisión técnica
      FechaRevisionTecnicaDesde: [''],
      FechaRevisionTecnicaHasta: ['']
    });
    /**
     *   SP SINWEB-152 Objeto usado para select de ordenes en vista operativa
     */
    this.ordenamientos = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.ORDENAMIENTOS_RMA_SEGUIMIENTO;
    //listado
    this.reclamosHeader = [{
      Nombre: 'Nro.Reclamo',
      Order: 3,
      Key: 'NumeroReclamo',
      WCol: '6%'
    }, {
      Nombre: 'Recepción',
      Order: 2,
      Key: 'FechaHoraRecepcion',
      WCol: '10%'
    }, {
      Nombre: 'Artículo',
      WCol: '15%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Articulo.Nombre',
          b: 'Articulo.Codigo'
        }
      }
    }, {
      Nombre: 'Nro.Serie',
      Key: 'NroSerie',
      WCol: '6%'
    }, {
      Nombre: 'Defecto',
      Key: 'RMADefecto.Nombre',
      Order: 19,
      WCol: '15%'
    }, {
      Nombre: 'Proveedor',
      WCol: '15%',
      Type: 'template',
      Order: 24,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Proveedor.Nombre',
          b: 'Proveedor.Codigo'
        }
      }
    }, {
      Nombre: 'Cliente',
      WCol: '15%',
      Type: 'template',
      Order: 8,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Cliente.Nombre',
          b: 'Cliente.Codigo'
        }
      }
    }, {
      // MC SINWEB-399 Se agrega columna Sucursal
      Nombre: 'Sucursal',
      Key: 'Sucursal.Nombre'
    }, {
      Nombre: 'Estado',
      Order: 26,
      Type: 'badge',
      ColorKey: 'RMAEstado.Color',
      // Type: 'dictionary',
      // Diccionario: constantesRMA.DICCIONARIO_RMA_SEGUIMIENTO_ESTADO,
      Key: 'RMAEstado.Nombre',
      WCol: '6%'
    }];
    this.reclamosFullHeader = [{
      Nombre: 'Nro.Reclamo',
      Order: 3,
      Key: 'NumeroReclamo',
      WCol: '6%'
    }, {
      Nombre: 'Recepción',
      Order: 2,
      Key: 'FechaHoraRecepcion',
      WCol: '10%'
    }, {
      Nombre: 'Artículo',
      WCol: '15%',
      Type: 'template',
      Order: 11,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Articulo.Nombre',
          b: 'Articulo.Codigo'
        }
      }
    }, {
      Nombre: 'Nro.Serie',
      Key: 'NroSerie',
      WCol: '6%'
    }, {
      Nombre: 'Defecto',
      Key: 'RMADefecto.Nombre',
      Order: 19,
      WCol: '15%'
    }, {
      Nombre: 'Proveedor',
      WCol: '15%',
      Type: 'template',
      Order: 24,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Proveedor.Nombre',
          b: 'Proveedor.Codigo'
        }
      }
    }, {
      Nombre: 'Cliente',
      WCol: '15%',
      Type: 'template',
      Order: 8,
      Data: {
        Template: '(b) a ',
        ArrayKeys: {
          a: 'Cliente.Nombre',
          b: 'Cliente.Codigo'
        }
      }
    }, {
      // MC SINWEB-399 Se agrega columna Sucursal
      Nombre: 'Sucursal',
      Key: 'Sucursal.Nombre'
    }, {
      Nombre: 'Motivo',
      Key: 'MotivoReclamo'
    }, {
      Nombre: 'Fecha Revisión técnica',
      Key: 'FechaRevisionTecnico'
    }, {
      Nombre: 'Fecha Envío',
      Key: 'RMAProveedor.FechaEnvio',
      ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO ? '#F6F4F4' : '#343b53'
    }, {
      Nombre: 'Fecha Resolución Proveedor',
      Key: 'RMAProveedor.FechaResolucion',
      ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO ? '#F6F4F4' : '#343b53'
    }, {
      Nombre: 'Resolución Proveedor',
      Key: 'RMAProveedor.RMAResolucion.Nombre',
      ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO ? '#F6F4F4' : '#343b53'
    }, {
      Nombre: 'Observación Resol.Prov.',
      Key: 'RMAProveedor.ObservacionResolucion',
      ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO ? '#F6F4F4' : '#343b53'
    }, {
      Nombre: 'Fecha Resolución Cliente',
      Key: 'RMACliente.FechaResolucion'
    }, {
      Nombre: 'Resolución Cliente',
      Key: 'RMACliente.RMAResolucion.Nombre'
    }, {
      Nombre: 'Observación Resol.Cliente',
      Key: 'RMACliente.Observacion'
    }, {
      Nombre: 'Fecha Notificación',
      Key: 'RMACliente.FechaNotificacion'
    }, {
      Nombre: 'Fecha Entrega',
      Key: 'RMACliente.FechaEntrega'
    }, {
      Nombre: 'Estado',
      Order: 26,
      Type: 'badge',
      ColorKey: 'RMAEstado.Color',
      // Type: 'dictionary',
      // Diccionario: constantesRMA.DICCIONARIO_RMA_SEGUIMIENTO_ESTADO,
      Key: 'RMAEstado.Nombre',
      WCol: '6%'
    }];
    this.dropdownActions = [{
      Title: 'Visualizar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR,
      Todo: true
    }, {
      Title: 'Registro de cambios',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Editar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (values, action) => {
        if (values[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO) {
          return 'dropdown-item  ';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Editar atributos',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (values, action) => {
        if (values[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR || values[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE || values[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CERRADO || values[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_ANULADO) {
          return 'dropdown-item  ';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Anular reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ANULAR,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Cerrar reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_CERRAR,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Abrir reclamo',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ABRIR,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CERRADO) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Informar a proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_NUEVO,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (values, action) => {
        if (values[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Editar informe a proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_EDITAR,
      fieldsActivate: ['RMAEstado.Id', 'RMAProveedor.RMAResolucion.EstadoResolucion'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR && value[1] === 'D') {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Volver a estado iniciado',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_ELIMINAR,
      fieldsActivate: ['RMAEstado.Id', 'RMAProveedor.RMAResolucion.EstadoResolucion'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR && value[1] === 'D') {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Registrar resolución proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_NUEVA,
      fieldsActivate: ['RMAEstado.Id', 'RMAProveedor.RMAResolucion.EstadoResolucion'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR && value[1] === 'D') {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Editar resolución proveedor',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_EDITAR,
      fieldsActivate: ['RMAEstado.Id', 'RMAProveedor.RMAResolucion.EstadoResolucion'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR && value[1] !== 'D') {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Rescisión de resolución',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_ELIMINAR,
      fieldsActivate: ['RMAEstado.Id', 'RMAProveedor.RMAResolucion.EstadoResolucion'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR && value[1] !== 'D') {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Type: 'divider',
      disabled: true
    }, {
      Title: 'Registrar resolución a cliente',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_NUEVA,
      fieldsActivate: ['RMAEstado.Id', 'RMAProveedor.RMAResolucion.EstadoResolucion'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR && value[1] !== 'D') {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Editar resolución a cliente',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_EDITAR,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }, {
      Title: 'Eliminar resolución a cliente',
      Accion: src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_ELIMINAR,
      fieldsActivate: ['RMAEstado.Id'],
      activate: (value, action) => {
        if (value[0] === src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE) {
          return 'dropdown-item';
        } else {
          return 'dropdown-item disabled';
        }
      }
    }];
    this.headerLog = [{
      Nombre: 'Fecha',
      Order: 1,
      Key: 'Fecha',
      WCol: '25%'
    }, {
      Nombre: 'Usuario',
      Order: 2,
      Key: 'Usuario',
      WCol: '25%'
    }, {
      Nombre: 'Registro',
      Order: 3,
      Key: 'Registro',
      WCol: '25%'
    }, {
      Nombre: 'Mensaje',
      Order: 4,
      Key: 'Mensaje',
      WCol: '25%'
    }];
  }
  ngOnInit() {
    this.cargarPermisos();
    this.cargarEstados();
    this.configuracionFilter();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisos.Linea1 = this.permisos.VisReclamo || this.permisos.ModReclamo || this.permisos.AnulReclamo || this.permisos.CerrarReclamo || this.permisos.AbrirReclamo;
    this.permisos.Linea2 = (this.permisos.ModReclamo || this.permisos.AnulReclamo || this.permisos.CerrarReclamo || this.permisos.AbrirReclamo) && (this.permisos.InsEnvProv || this.permisos.ModifEnvProv || this.permisos.ElimEnvProv);
    this.permisos.Linea3 = (this.permisos.InsEnvProv || this.permisos.ModifEnvProv || this.permisos.ElimEnvProv) && (this.permisos.InsRegRes || this.permisos.EditRegRes || this.permisos.ElimRegRes);
    this.permisos.Linea4 = (this.permisos.InsRegRes || this.permisos.EditRegRes || this.permisos.ElimRegRes) && (this.permisos.InsClienteReclamo || this.permisos.ModifClienteReclamo || this.permisos.ElimClienteReclamo);
    this.permisos.Dropdown = this.permisos.VisReclamo || this.permisos.ModReclamo || this.permisos.AnulReclamo || this.permisos.CerrarReclamo || this.permisos.AbrirReclamo || this.permisos.InsEnvProv || this.permisos.ModifEnvProv || this.permisos.ElimEnvProv || this.permisos.InsRegRes || this.permisos.EditRegRes || this.permisos.ElimRegRes || this.permisos.InsClienteReclamo || this.permisos.ModifClienteReclamo || this.permisos.ElimClienteReclamo;
    this.dropdownActions[0]['Show'] = this.permisos.VisReclamo;
    this.dropdownActions[2]['Show'] = this.permisos.Linea1;
    this.dropdownActions[3]['Show'] = this.permisos.ModReclamo;
    this.dropdownActions[4]['Show'] = this.permisos.ModReclamo;
    this.dropdownActions[5]['Show'] = this.permisos.AnulReclamo;
    this.dropdownActions[6]['Show'] = this.permisos.CerrarReclamo;
    this.dropdownActions[7]['Show'] = this.permisos.AbrirReclamo;
    this.dropdownActions[8]['Show'] = this.permisos.Linea2;
    this.dropdownActions[9]['Show'] = this.permisos.InsEnvProv;
    this.dropdownActions[10]['Show'] = this.permisos.ModifEnvProv;
    this.dropdownActions[11]['Show'] = this.permisos.ElimEnvProv;
    this.dropdownActions[12]['Show'] = this.permisos.Linea3;
    this.dropdownActions[13]['Show'] = this.permisos.InsRegRes;
    this.dropdownActions[14]['Show'] = this.permisos.EditRegRes;
    this.dropdownActions[15]['Show'] = this.permisos.ElimRegRes;
    this.dropdownActions[16]['Show'] = this.permisos.Linea4;
    this.dropdownActions[17]['Show'] = this.permisos.InsClienteReclamo;
    this.dropdownActions[18]['Show'] = this.permisos.ModifClienteReclamo;
    this.dropdownActions[19]['Show'] = this.permisos.ElimClienteReclamo;
  }
  cargarEstados() {
    this.estados = [];
    let datos = {
      PageNumber: -1,
      Orden: 1
    };
    const susc = this.rMAEstadoService.fetch(datos).subscribe(resp => {
      //filtrar en resp.Data los que estan en estadosPermitidos
      this.estados = resp.Data.filter(estado => this.estadosPermitidos.includes(estado.Id));
      if (this.estadosPermitidos.length == 1) {
        this.searchForm.controls.IdsEstados.setValue(this.estadosPermitidos[0]);
        this.filtro = true;
      }
    });
    susc.unsubscribe;
  }
  nuevoReclamo() {
    this.editar.emit({
      reclamo: null,
      modoEdicion: false
    });
  }
  configuracionFilter() {
    this.unsubscribe.push(this.searchForm.controls.IdsEstados.valueChanges.subscribe(idEstado => {
      if (this.filtro) {
        this.filterIdsEstados = idEstado;
        this.enviarFiltros();
      }
    }));
    this.unsubscribe.push(this.searchForm.controls.modoVista.valueChanges.subscribe(idVista => {
      if (this.filtro) {
        this.filterModoVista = idVista;
        if (this.filterModoVista !== this.modoVista.Completo) {
          this.searchForm.controls.FechaRevisionTecnicaDesde.setValue('');
          this.searchForm.controls.FechaRevisionTecnicaHasta.setValue('');
        }
      }
    }));
    // MC SINWEB-396
    this.unsubscribe.push(this.searchForm.controls.FechaRevisionTecnicaDesde.valueChanges.subscribe(FechaRevisionTecnicaDesde => {
      if (this.filtro) {
        this.filterRevisionTecnicaDesde = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.formatFecha)(FechaRevisionTecnicaDesde);
        this.enviarFiltros();
      }
    }));
    this.unsubscribe.push(this.searchForm.controls.FechaRevisionTecnicaHasta.valueChanges.subscribe(FechaRevisionTecnicaHasta => {
      if (this.filtro) {
        this.filterRevisionTecnicaHasta = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_5__.formatFecha)(FechaRevisionTecnicaHasta);
        this.enviarFiltros();
      }
    }));
  }
  enviarFiltros() {
    if (this.filterModoVista !== this.modoVista.Completo) {
      this.filtros.emit({
        IdsEstados: this.filterIdsEstados
      });
    } else {
      this.filtros.emit({
        IdsEstados: this.filterIdsEstados,
        FechaRevisionTecnicaDesde: this.filterRevisionTecnicaDesde,
        FechaRevisionTecnicaHasta: this.filterRevisionTecnicaHasta
      });
    }
  }
  // pageChange(e: any){
  //   this.pageChangeEv.emit(e);
  // }
  // setPage(e: any){
  //   this.setPageEv.emit(e);
  // }
  // setOrder(e: any){
  //   if (this.filterModoVista == this.modoVista.Operativo){
  //     let orden = {
  //       id:(e == 0) ? 1 : this.ordenamientos[e-1].params.ord,
  //       sentido:(e == 0) ? 'Desc' : this.ordenamientos[e-1].params.sentido
  //     }
  //     this.setOrderEv.emit(orden);
  //   }else{
  //     this.setOrderEv.emit(e);
  //   }
  // }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange(e) {
    this.lazyLoadChangeEv.emit(e);
  }
  /**
   * SP SINWEN-169 se agrego accion de visualizar reclamo
   * @param event datos y accion
   */
  accionOrder(event) {
    switch (event.accion) {
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO) {
          this.editar.emit({
            reclamo: event.registro,
            modoEdicion: true,
            modoAtributo: false
          });
        } else {
          this.toast.error('El reclamo no se puede editar, solo se puede editar en estado iniciado.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_EDITAR_ATRIBUTO:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR || event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE || event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CERRADO || event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_ANULADO) {
          this.editarAtributo.emit({
            reclamo: event.registro,
            modoEdicion: true,
            modoAtributo: true
          });
        } else {
          this.toast.error('Los atributos no se puede editar');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_VISUALIZAR:
        this.visualizarReclamos(event.registro);
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ANULAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO) {
          this.anularReclamo(event.registro.Id, event.registro.NumeroReclamo);
        } else {
          this.toast.error('El reclamo no se puede anular, solo se puede anular en estado iniciado.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_CERRAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE) {
          this.cerrarReclamo(event.registro.Id, event.registro.NumeroReclamo);
        } else {
          this.toast.error('El reclamo no se puede cerrar, solo se puede cerrar en estado cliente.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ABRIR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CERRADO) {
          this.abrirReclamo(event.registro.Id, event.registro.NumeroReclamo);
        } else {
          this.toast.error('El reclamo no se puede abrir, solo se puede abrir en estado cerrado.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_ELIMINAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR) {
          this.eliminarEnvioProvedor(event.registro.RMAProveedor.Id, event.registro.NumeroReclamo);
        } else {
          this.toast.error('El reclamo no puede volver a estado iniciado, solo se permite en estado proveedor.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_NUEVO:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_INICIADO) {
          this.envioProv.emit({
            reclamo: event.registro,
            modoEdicion: false
          });
        } else {
          this.toast.error('El reclamo no se puede informar al proveedor, solo se permite en estado iniciado.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_ENVIO_PROV_EDITAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR) {
          this.envioProv.emit({
            reclamo: event.registro,
            modoEdicion: true
          });
        } else {
          this.toast.error('El informe no se puede editar, solo se puede editar en estado proveedor.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_NUEVA:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR) {
          this.editarResol.emit({
            reclamo: event.registro,
            modoEdicion: false
          });
        } else {
          this.toast.error('La resolución no se puede registrar, solo se puede en estado proveedor.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_EDITAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR) {
          this.editarResol.emit({
            reclamo: event.registro,
            modoEdicion: true
          });
        } else {
          this.toast.error('La resolución no se puede editar, solo se puede en estado proveedor.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RESOLUCION_ELIMINAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR) {
          this.eliminarResolucion(event.registro.RMAProveedor.Id, event.registro.NumeroReclamo);
        } else {
          this.toast.error('La resolución no se puede rescindir, solo se puede en estado proveedor.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_NUEVA:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_PROVEEDOR) {
          this.cargarCliente.emit({
            reclamo: event.registro,
            modoEdicion: false
          });
        } else {
          this.toast.error('La resolución al cliente no se puede cargar, solo se permite en estado proveedor.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_EDITAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE) {
          this.cargarCliente.emit({
            reclamo: event.registro,
            modoEdicion: true
          });
        } else {
          this.toast.error('La resolución al cliente no se puede editar, solo se puede editar en estado cliente.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_CLIENTE_ELIMINAR:
        if (event.registro.RMAEstado.Id == src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_RECLAMO_ESTADO_CLIENTE) {
          this.eliminarCliente(event.registro.RMACliente.Id, event.registro.NumeroReclamo);
        } else {
          this.toast.error('La resolución al cliente no se puede eliminar, solo se puede en estado cliente.');
        }
        break;
      case src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.RMA_VER_LOG:
        this.verLog(event.registro);
        break;
      default:
        break;
    }
  }
  anularReclamo(idReclamo, numeroReclamo) {
    this.alert.showReturnAlert('Anulación de Reclamo.', "¿Está seguro de anular el reclamo: '" + numeroReclamo + "' ?", 'warning', 'Anular', 'Cancelar', true).then(result => {
      if (result.value) {
        this.anular.emit({
          idReclamo: idReclamo
        });
      }
    });
  }
  cerrarReclamo(idReclamo, numeroReclamo) {
    this.alert.showReturnAlert('Cierre de  de Cliente.', "¿Está seguro en cerrar el reclamo seleccionado: '" + numeroReclamo + "' ?", 'success', 'Aceptar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.cerrar.emit({
          idReclamo: idReclamo
        });
      }
    });
  }
  abrirReclamo(idReclamo, numeroReclamo) {
    this.alert.showReturnAlert('Apertura de Reclamo.', "¿Está seguro de abrir el reclamo: '" + numeroReclamo + "' ?", 'success', 'Abrir', 'Cancelar', true).then(result => {
      if (result.value) {
        this.abrir.emit({
          idReclamo: idReclamo
        });
      }
    });
  }
  eliminarEnvioProvedor(idEnvioProveedor, numeroReclamo) {
    this.alert.showReturnAlert('Volver a estado INICIADO.', "¿Está seguro de regresar al estado 'Iniciado' al reclamo: '" + numeroReclamo + "' ?", 'warning', 'Aceptar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarEnvio.emit({
          idEnvioProveedor: idEnvioProveedor
        });
      }
    });
  }
  eliminarResolucion(idEnvioProveedor, numeroReclamo) {
    this.alert.showReturnAlert('Rescisión de resolución.', "¿Está seguro de rescindir la resolución del reclamo: '" + numeroReclamo + "' ?", 'warning', 'Aceptar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarResol.emit({
          idEnvioProveedor: idEnvioProveedor
        });
      }
    });
  }
  eliminarCliente(idRMACliente, numeroReclamo) {
    this.alert.showReturnAlert('Eliminación de Cliente.', "¿Está seguro en eliminar el cliente asociado al reclamo: '" + numeroReclamo + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarCli.emit({
          idRMACliente: idRMACliente
        });
      }
    });
  }
  exportTo(extension) {
    let alert = 'Seguimiento de reclamos exportados';
    let name = 'Listado seguimiento de reclamos';
    let columns = this.filterModoVista == this.modoVista.Completo || extension == 'Excel' ? ['Nro.Reclamo', 'Recepción', '(Cod) Artículo', 'Nro.Serie', 'Defecto', '(Cod) Proveedor', '(Cod) Cliente', 'Motivo', 'Fecha Revisión técnica', 'Fecha Envío', 'Fecha Resolución Proveedor', 'Resolución Proveedor', 'Fecha Resolución Cliente', 'Resolución Cliente', 'Fecha Notificación', 'Fecha Entrega', 'Estado'] : ['Nro.Reclamo', 'Recepción', '(Cod) Artículo', 'Nro.Serie', 'Defecto', '(Cod) Proveedor', '(Cod) Cliente', 'Estado'];
    let keys = this.filterModoVista == this.modoVista.Completo || extension == 'Excel' ? ['NumeroReclamo', 'FechaHoraRecepcion', 'CodArticulo', 'NroSerie', 'RMADefecto.Nombre', 'CodProveedor', 'CodCliente', 'MotivoReclamo', 'FechaRevisionTecnico', 'RMAProveedor.FechaEnvio', 'RMAProveedor.FechaResolucion', 'RMAProveedor.RMAResolucion.Nombre', 'RMACliente.FechaResolucion', 'RMACliente.RMAResolucion.Nombre', 'RMACliente.FechaNotificacion', 'RMACliente.FechaEntrega', 'RMAEstado.Nombre'] : ['NumeroReclamo', 'FechaHoraRecepcion', 'CodArticulo', 'NroSerie', 'RMADefecto.Nombre', 'CodProveedor', 'CodCliente', 'RMAEstado.Nombre'];
    this.export.emit({
      alert: alert,
      name: name,
      columns: columns,
      keys: keys,
      extension: extension // MC SINWEB-378 Exportación a Pdf
    });
  }
  /**
   * SP SINWEB-169 metodo para visualizar reclamo
   * @param reclamo objeto con el reclamo
   */
  visualizarReclamos(reclamo) {
    const modalRef = this.modalService.open(_reclamos_view_reclamos_view_component__WEBPACK_IMPORTED_MODULE_2__.ReclamosViewComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.result.then(resolve => {
      return null;
    });
  }
  /**
   * MC SINWEB-184
   */
  abrirEnvioMultiple() {
    const modalRef = this.modalService.open(_envio_multiple_prov_envio_multiple_prov_component__WEBPACK_IMPORTED_MODULE_3__.EnvioMultipleProvComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.result.then(resolve => {
      // console.log('Resolve: ', resolve);
      if (resolve || modalRef.componentInstance.seEnvioAlgo) {
        this.detectEnvio.emit(true);
      }
    }, reason => {
      // console.log('Reason: ', reason);
      if (reason && reason !== 0 && reason !== 1 || modalRef.componentInstance.seEnvioAlgo) {
        this.detectEnvio.emit(true);
      }
    });
  }
  /**
   * MC SINWEB-164 - Método para ver el Registro de cambios de un reclamo
   * @param {any} registro Reclamo
   */
  verLog(registro) {
    const modalRef = this.modalService.open(src_app_shared_ui_log_log_component__WEBPACK_IMPORTED_MODULE_4__.LogComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.coloresRow = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_1__.COLORES_ROW;
    modalRef.componentInstance.title = `Reclamo Nro. '${registro.NumeroReclamo}'`;
    modalRef.componentInstance.logData = registro.Log;
    modalRef.componentInstance.splitOp = '\r\n\r\n';
    modalRef.componentInstance.splitSeparators = ['[', '-', ']', '\r\n'];
    modalRef.componentInstance.columnsKeys = ['Fecha', 'Usuario', 'Registro', 'Mensaje'];
    modalRef.componentInstance.columns = this.headerLog;
  }
  getReclamosHeader() {
    let header = [];
    header = this.filterModoVista !== this.modoVista.Completo ? this.reclamosHeader : this.reclamosFullHeader;
    return this.atributos.mostrarAtributos == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO ? JSON.parse(JSON.stringify(header.concat(this.atributos.columnas))) : header;
  }
  static #_ = this.ɵfac = function SeguimientoDetalleComponent_Factory(t) {
    return new (t || SeguimientoDetalleComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAEstado_service__WEBPACK_IMPORTED_MODULE_6__.RMAEstadoService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_7__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_17__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_8__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_9__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵdefineComponent"]({
    type: SeguimientoDetalleComponent,
    selectors: [["seguimiento-detalle"]],
    inputs: {
      verAtributosAdicionales: "verAtributosAdicionales",
      registros: "registros",
      isLoading: "isLoading",
      order: "order",
      sentido: "sentido",
      page: "page",
      cant_search: "cant_search",
      totalItems: "totalItems",
      permisos: "permisos",
      estadosPermitidos: "estadosPermitidos",
      atributos: "atributos"
    },
    outputs: {
      lazyLoadChangeEv: "lazyLoadChangeEv",
      export: "export",
      filtros: "filtros",
      editar: "editar",
      editarAtributo: "editarAtributo",
      anular: "anular",
      envioProv: "envioProv",
      eliminarEnvio: "eliminarEnvio",
      editarResol: "editarResol",
      eliminarResol: "eliminarResol",
      cargarCliente: "cargarCliente",
      eliminarDesp: "eliminarDesp",
      detectEnvio: "detectEnvio",
      cerrar: "cerrar",
      abrir: "abrir",
      eliminarCli: "eliminarCli"
    },
    decls: 30,
    vars: 5,
    consts: [[1, "row"], [1, "col-lg-12"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], [1, "mb-0", "card-title", "flex-grow-1"], [1, "flex-shrink-0", "d-flex", "gap-1"], ["tourAnchor", "filtroInterno.anchor.id", 1, "col-auto"], ["data-cy", "boton-filtro", 1, "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [3, "ngClass"], ["class", "btn btn-primary", "tourAnchor", "nuevoReclamo.anchor.id", 3, "click", 4, "ngIf"], ["tourAnchor", "envMultiple.anchor.id", 1, "btn", "btn-warning", 3, "click"], [1, "d-none", "d-md-block"], [1, "d-block", "d-md-none", "mdi", "mdi-cube-send", "mdi-16"], ["ngbDropdown", "", "tourAnchor", "exportar.anchor.id", 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"], ["class", "card-body border-bottom bg-light", 4, "ngIf"], [1, "card-body", "px-0"], [4, "ngIf"], ["tourAnchor", "nuevoReclamo.anchor.id", 1, "btn", "btn-primary", 3, "click"], [1, "d-block", "d-md-none", "mdi", "mdi-plus", "mdi-16"], [1, "card-body", "border-bottom", "bg-light"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-lg-3"], [1, "text-muted"], ["formControlName", "modoVista", 1, "form-select"], ["value", "D"], ["value", "O"], ["value", "C"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["class", "col-lg-3", 4, "ngIf"], ["ckass", "text-muted"], [3, "defaultValue", "defaultString", "items", "valueSelected", "valueSelect"], ["type", "date", "id", "revtecnica-date-desde", "formControlName", "FechaRevisionTecnicaDesde", 1, "form-control", "digits"], ["type", "date", "id", "revtecnica-date-hasta", "formControlName", "FechaRevisionTecnicaHasta", 1, "form-control", "digits"], [3, "reclamos", "permisos", "AccionOrden"], [1, "row", "justify-content-between", "align-items-center"], [1, "col-auto", "me-auto"], [3, "page", "totalItems", "items", "valueSelected", "valueSelect"], [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", "gap-2"], [3, "collectionSize", "page", "pageSize", "maxSize", "rotate", "boundaryLinks", "pageChange"], ["anchorActions", "accionesDetalles.anchor.id", "anchorRegistros", "registrosDetalles.anchor.id", "anchorPaginacion", "paginacionDetalles.anchor.id", "title", "Seguimiento Detalles", 3, "columns", "order", "sentido", "datos", "page", "cant_search", "totalItems", "dropdownButtons", "acciones", "apiTable", "lazyLoad", "emitAction"]],
    template: function SeguimientoDetalleComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "h5", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](6, "Detalles");
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](7, "div", 6)(8, "div", 7)(9, "a", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function SeguimientoDetalleComponent_Template_a_click_9_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](10, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](11, SeguimientoDetalleComponent_a_11_Template, 4, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](12, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function SeguimientoDetalleComponent_Template_a_click_12_listener() {
          return ctx.abrirEnvioMultiple();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](13, "span", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](14, "Informe m\u00FAltiple a proveedor");
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](15, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](16, "div", 14)(17, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelement"](18, "i", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](19, "ul", 17)(20, "li")(21, "a", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function SeguimientoDetalleComponent_Template_a_click_21_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](22, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](23, "li")(24, "a", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵlistener"]("click", function SeguimientoDetalleComponent_Template_a_click_24_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtext"](25, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](26, SeguimientoDetalleComponent_div_26_Template, 22, 10, "div", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementStart"](27, "div", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵtemplate"](28, SeguimientoDetalleComponent_ng_container_28_Template, 11, 12, "ng-container", 21)(29, SeguimientoDetalleComponent_ng_container_29_Template, 2, 10, "ng-container", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline align-middle" : "mdi mdi-filter-off-outline align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx.permisos.InsReclamo);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](15);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", !ctx.isLoading && ctx.filterModoVista == ctx.modoVista.Operativo);
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_14__["ɵɵproperty"]("ngIf", !ctx.isLoading && ctx.filterModoVista !== ctx.modoVista.Operativo);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_19__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_19__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_15__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbDropdownMenu, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbPagination, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormControlName, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__.TourAnchorNgBootstrapDirective, _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_10__.PageInfoComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_11__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_12__.Table2Component, _seguimiento_operativo_seguimiento_operativo_component__WEBPACK_IMPORTED_MODULE_13__.SeguimientoOperativoComponent, _angular_common__WEBPACK_IMPORTED_MODULE_19__.AsyncPipe]
  });
}

/***/ }),

/***/ 4761:
/*!************************************************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/seguimiento-operativo/seguimiento-operativo.component.ts ***!
  \************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeguimientoOperativoComponent: () => (/* binding */ SeguimientoOperativoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-rma */ 79005);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeng/api */ 85219);
/* 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);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var primeng_timeline__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng/timeline */ 8720);








function SeguimientoOperativoComponent_ng_container_1_div_16_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r24.ejecutarAccion(ctx_r24.VISUALIZAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Visualizar reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div", 30);
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_9_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r27.ejecutarAccion(ctx_r27.EDITAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Editar reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_10_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r30.ejecutarAccion(ctx_r30.EDITAR_ATRIBUTO, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Editar atributos");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_11_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r33.ejecutarAccion(ctx_r33.ANULAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Anular reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r36.ejecutarAccion(ctx_r36.CERRAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Cerrar reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_13_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r39.ejecutarAccion(ctx_r39.ABRIR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Abrir reclamo");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div", 30);
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_15_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r43);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r42.ejecutarAccion(ctx_r42.ENVIO_PROV_NUEVO, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Informar a proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_16_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r45.ejecutarAccion(ctx_r45.ENVIO_PROV_EDITAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Editar informe a proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_17_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r49);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r48.ejecutarAccion(ctx_r48.ENVIO_PROV_ELIMINAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Volver a estado iniciado");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div", 30);
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_19_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r52);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r51.ejecutarAccion(ctx_r51.RESOLUCION_NUEVA, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Registrar resoluci\u00F3n proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_20_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r54.ejecutarAccion(ctx_r54.RESOLUCION_EDITAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Editar resoluci\u00F3n proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_21_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r57.ejecutarAccion(ctx_r57.RESOLUCION_ELIMINAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Rescisi\u00F3n de resoluci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_div_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div", 30);
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_23_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r61);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r60.ejecutarAccion(ctx_r60.CLIENTE_NUEVO, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Registrar resoluci\u00F3n a cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_24_Template(rf, ctx) {
  if (rf & 1) {
    const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_24_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r63.ejecutarAccion(ctx_r63.CLIENTE_EDITAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Editar resoluci\u00F3n a cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_a_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_a_25_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r67);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
      const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r66.ejecutarAccion(ctx_r66.CLIENTE_ELIMINAR, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Eliminar resoluci\u00F3n a cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function SeguimientoOperativoComponent_ng_container_1_div_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r70 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 23)(1, "button", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Acciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, SeguimientoOperativoComponent_ng_container_1_div_16_a_5_Template, 2, 0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_div_16_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r70);
      const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
      const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r69.ejecutarAccion(ctx_r69.VER_LOG, reclamo_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Registro de cambios");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, SeguimientoOperativoComponent_ng_container_1_div_16_div_8_Template, 1, 0, "div", 29)(9, SeguimientoOperativoComponent_ng_container_1_div_16_a_9_Template, 2, 0, "a", 27)(10, SeguimientoOperativoComponent_ng_container_1_div_16_a_10_Template, 2, 0, "a", 27)(11, SeguimientoOperativoComponent_ng_container_1_div_16_a_11_Template, 2, 0, "a", 27)(12, SeguimientoOperativoComponent_ng_container_1_div_16_a_12_Template, 2, 0, "a", 27)(13, SeguimientoOperativoComponent_ng_container_1_div_16_a_13_Template, 2, 0, "a", 27)(14, SeguimientoOperativoComponent_ng_container_1_div_16_div_14_Template, 1, 0, "div", 29)(15, SeguimientoOperativoComponent_ng_container_1_div_16_a_15_Template, 2, 0, "a", 27)(16, SeguimientoOperativoComponent_ng_container_1_div_16_a_16_Template, 2, 0, "a", 27)(17, SeguimientoOperativoComponent_ng_container_1_div_16_a_17_Template, 2, 0, "a", 27)(18, SeguimientoOperativoComponent_ng_container_1_div_16_div_18_Template, 1, 0, "div", 29)(19, SeguimientoOperativoComponent_ng_container_1_div_16_a_19_Template, 2, 0, "a", 27)(20, SeguimientoOperativoComponent_ng_container_1_div_16_a_20_Template, 2, 0, "a", 27)(21, SeguimientoOperativoComponent_ng_container_1_div_16_a_21_Template, 2, 0, "a", 27)(22, SeguimientoOperativoComponent_ng_container_1_div_16_div_22_Template, 1, 0, "div", 29)(23, SeguimientoOperativoComponent_ng_container_1_div_16_a_23_Template, 2, 0, "a", 27)(24, SeguimientoOperativoComponent_ng_container_1_div_16_a_24_Template, 2, 0, "a", 27)(25, SeguimientoOperativoComponent_ng_container_1_div_16_a_25_Template, 2, 0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.VisReclamo);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.Linea1 && reclamo_r2.RMAEstado.Id !== ctx_r3.E_ANULADO);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ModReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_INICIADO);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ModReclamo && (reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR || reclamo_r2.RMAEstado.Id == ctx_r3.E_CLIENTE));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.AnulReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_INICIADO);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.CerrarReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_CLIENTE);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.AbrirReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_CERRADO);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.Linea2 && (reclamo_r2.RMAEstado.Id == ctx_r3.E_INICIADO || reclamo_r2.RMAEstado.Id == ctx_r3.E_CLIENTE));
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.InsEnvProv && reclamo_r2.RMAEstado.Id == ctx_r3.E_INICIADO);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ModifEnvProv && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ElimEnvProv && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.Linea3 && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.InsRegRes && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.EditRegRes && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ElimRegRes && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.Linea4 && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.InsClienteReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_PROVEEDOR);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ModifClienteReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_CLIENTE);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.permisos.ElimClienteReclamo && reclamo_r2.RMAEstado.Id == ctx_r3.E_CLIENTE);
  }
}
function SeguimientoOperativoComponent_ng_container_1_ng_template_19_span_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const estado_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("background-color", reclamo_r2.RMAEstado.Id < estado_r73.id ? "gray" : estado_r73.color);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", estado_r73.status);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", estado_r73.icon);
  }
}
function SeguimientoOperativoComponent_ng_container_1_ng_template_19_span_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const estado_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("background-color", "gray");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", estado_r73.status);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", estado_r73.icon);
  }
}
function SeguimientoOperativoComponent_ng_container_1_ng_template_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, SeguimientoOperativoComponent_ng_container_1_ng_template_19_span_0_Template, 2, 4, "span", 31)(1, SeguimientoOperativoComponent_ng_container_1_ng_template_19_span_1_Template, 2, 4, "span", 31);
  }
  if (rf & 2) {
    const reclamo_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", reclamo_r2.RMAEstado.Id !== 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", reclamo_r2.RMAEstado.Id === 5);
  }
}
function SeguimientoOperativoComponent_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r81 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3)(2, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeguimientoOperativoComponent_ng_container_1_Template_div_click_2_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r81);
      const reclamo_r2 = restoredCtx.$implicit;
      const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r80.changeActual(reclamo_r2.Id));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 5)(4, "div", 6)(5, "div", 7)(6, "h5", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 9)(9, "p", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 11)(12, "div", 12)(13, "h5");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, SeguimientoOperativoComponent_ng_container_1_div_16_Template, 26, 19, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 6)(18, "p-timeline", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, SeguimientoOperativoComponent_ng_container_1_ng_template_19_Template, 2, 2, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 17)(21, "div", 18)(22, "h5", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "p", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 18)(27, "h5", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, "Nro.Serie");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "p", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "hr", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 11)(33, "div", 22)(34, "h5", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "p", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 22)(39, "h5", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "Proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "p", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 22)(44, "h5", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "Sucursal");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "p", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const reclamo_r2 = ctx.$implicit;
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r0.reclamoActual == reclamo_r2.Id ? "bg-light" : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("background-color", reclamo_r2.RMAEstado.Id !== 5 ? ctx_r0.buscarEstado(reclamo_r2.RMAEstado.Id).color : "#ff0000");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", reclamo_r2.RMAEstado.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", reclamo_r2.NumeroReclamo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](reclamo_r2.FechaHoraRecepcion);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", reclamo_r2.Articulo.Codigo, ")", reclamo_r2.Articulo.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.permisos.Dropdown);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx_r0.estados);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", reclamo_r2.RMADefecto.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](reclamo_r2.NroSerie);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("border-color", reclamo_r2.RMAEstado.Id !== 5 ? ctx_r0.buscarEstado(reclamo_r2.RMAEstado.Id).color + " !important" : "#ff0000 !important");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", reclamo_r2.Cliente.Codigo, ") ", reclamo_r2.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", reclamo_r2.Proveedor.Codigo, ") ", reclamo_r2.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", reclamo_r2.Sucursal.Codigo, ") ", reclamo_r2.Sucursal.Nombre, " ");
  }
}
function SeguimientoOperativoComponent_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 34)(1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " No hay datos para mostrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
}
class SeguimientoOperativoComponent {
  constructor() {
    this.order = 1;
    this.eventOrder = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.AccionOrden = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.EDITAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_EDITAR;
    this.EDITAR_ATRIBUTO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_EDITAR_ATRIBUTO;
    this.ANULAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ANULAR;
    this.VISUALIZAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_VISUALIZAR;
    this.CERRAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_CERRAR;
    this.ABRIR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ABRIR;
    this.ENVIO_PROV_NUEVO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_ENVIO_PROV_NUEVO;
    this.ENVIO_PROV_EDITAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_ENVIO_PROV_EDITAR;
    this.ENVIO_PROV_ELIMINAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_ENVIO_PROV_ELIMINAR;
    this.RESOLUCION_NUEVA = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RESOLUCION_NUEVA;
    this.RESOLUCION_EDITAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RESOLUCION_EDITAR;
    this.RESOLUCION_ELIMINAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RESOLUCION_ELIMINAR;
    this.VER_LOG = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_VER_LOG;
    this.CLIENTE_NUEVO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_CLIENTE_NUEVA;
    this.CLIENTE_EDITAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_CLIENTE_EDITAR;
    this.CLIENTE_ELIMINAR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_CLIENTE_ELIMINAR;
    // MC SINWEB-168 Acciones de vista restantes
    this.E_INICIADO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ESTADO_INICIADO;
    this.E_PROVEEDOR = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ESTADO_PROVEEDOR;
    this.E_CLIENTE = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ESTADO_CLIENTE;
    this.E_CERRADO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ESTADO_CERRADO;
    this.E_ANULADO = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.RMA_RECLAMO_ESTADO_ANULADO;
    this.estados = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_0__.ESTADOS_RMA_SEGUIMIENTO;
  }
  ngOnInit() {}
  /**
   * SP SINWEB-152 metodo usar para ir pintando la linea de tiempo de la card de reclamo
   * @param {number} idEstado Id del Estado a buscar
   */
  buscarEstado(idEstado) {
    let estadoEncontrado = this.estados.find(elem => elem.id == idEstado);
    return estadoEncontrado;
  }
  /**
   * SP SINWEB-152 metodo para emitir accion al componente padre
   * @param {number} accion Accion a realizar
   * @param {any} reclamo Obj con el reclamo
   */
  ejecutarAccion(accion, reclamo) {
    //ejecutarAccion(event){
    this.AccionOrden.emit({
      accion: accion,
      registro: reclamo
    });
  }
  changeActual(reclamoId) {
    this.reclamoActual = reclamoId;
  }
  static #_ = this.ɵfac = function SeguimientoOperativoComponent_Factory(t) {
    return new (t || SeguimientoOperativoComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: SeguimientoOperativoComponent,
    selectors: [["app-seguimiento-operativo"]],
    inputs: {
      order: "order",
      sentido: "sentido",
      reclamos: "reclamos",
      permisos: "permisos"
    },
    outputs: {
      eventOrder: "eventOrder",
      AccionOrden: "AccionOrden"
    },
    decls: 3,
    vars: 2,
    consts: [["data-cy", "reclamos-operativo", 1, "row"], [4, "ngFor", "ngForOf"], ["class", "row justify-content-center mx-1", "data-cy", "operativo-vacio", 4, "ngIf"], ["data-cy", "reclamo", 1, "col-md-6", "d-flex", "align-items-strech", "my-2", "animate__animated", "animate__fadeIn"], ["id", "card1", 1, "card", "border", "border-dark", "border-opacity-25", "d-flex", "flex-column", "col-12", "position-relative", "mb-5", 3, "ngClass", "click"], [1, "card-body", "d-flex", "flex-column"], [1, "row"], [1, "col-sm-6", "text-muted"], ["tooltipPosition", "top", 1, "badge", "blog-badge", "font-size-20", 3, "pTooltip"], [1, "col-sm-6", "fw-bold", "text-start", "text-sm-end"], [1, "mb-2"], [1, "row", "mt-3"], [1, "col-lg-8"], [1, "col-lg-4", "text-end"], ["class", "btn-group", "ngbDropdown", "", 4, "ngIf"], ["align", "alternate", "layout", "horizontal", "styleClass", "customized-timeline", 3, "value"], ["pTemplate", "marker"], [1, "row", "mt-3", "text-center"], [1, "col-md-6"], [1, "text-center"], [1, "mb-2", "text-center", "text-muted"], [1, "border", "border-1", "opacity-75", "rounded"], [1, "col-md-4"], ["ngbDropdown", "", 1, "btn-group"], ["type", "button", "ngbDropdownToggle", "", 1, "btn", "btn-soft-dark", "dropdown-toggle"], [1, "mdi", "mdi-chevron-down"], ["ngbDropdownMenu", "", 1, "dropdown-menu"], ["class", "dropdown-item", "style", "cursor: pointer", 3, "click", 4, "ngIf"], [1, "dropdown-item", 2, "cursor", "pointer", 3, "click"], ["class", "dropdown-divider", 4, "ngIf"], [1, "dropdown-divider"], ["class", "custom-marker rounded-circle py-1 px-2 pointer", "tooltipPosition", "bottom", 3, "backgroundColor", "pTooltip", 4, "ngIf"], ["tooltipPosition", "bottom", 1, "custom-marker", "rounded-circle", "py-1", "px-2", "pointer", 3, "pTooltip"], [3, "ngClass"], ["data-cy", "operativo-vacio", 1, "row", "justify-content-center", "mx-1"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"]],
    template: function SeguimientoOperativoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SeguimientoOperativoComponent_ng_container_1_Template, 48, 20, "ng-container", 1)(2, SeguimientoOperativoComponent_div_2_Template, 3, 0, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.reclamos);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.reclamos.length == 0);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_2__.PrimeTemplate, _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, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbDropdownMenu, primeng_timeline__WEBPACK_IMPORTED_MODULE_6__.Timeline],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n.card[_ngcontent-%COMP%]:hover {\n  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.23);\n}\n\n.animate__animated[_ngcontent-%COMP%] {\n  animation-fill-mode: initial;\n}"]
  });
}

/***/ }),

/***/ 23955:
/*!****************************************************************!*\
  !*** ./src/app/pages/rma/seguimiento/seguimiento.component.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeguimientoComponent: () => (/* binding */ SeguimientoComponent)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! rxjs/operators */ 94664);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* 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_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* 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 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_pages_rma_seguimiento_proveedor_rec_listado_enviar_prov_enviar_prov_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/rma/seguimiento/proveedor-rec-listado/enviar-prov/enviar-prov.component */ 91930);
/* harmony import */ var src_app_pages_rma_seguimiento_proveedor_rec_listado_resuelto_new_resuelto_new_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/pages/rma/seguimiento/proveedor-rec-listado/resuelto-new/resuelto-new.component */ 754);
/* harmony import */ var src_app_pages_rma_seguimiento_cliente_rec_listado_cliente_rec_new_cliente_rec_new_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/pages/rma/seguimiento/cliente-rec-listado/cliente-rec-new/cliente-rec-new.component */ 11630);
/* harmony import */ var src_app_pages_rma_seguimiento_reclamos_listado_reclamos_new_reclamos_new_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/pages/rma/seguimiento/reclamos-listado/reclamos-new/reclamos-new.component */ 13551);
/* harmony import */ var _dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-articulo/seleccionar-articulo.component */ 62656);
/* harmony import */ var _dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* harmony import */ var _dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../dashboards/core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/rma/reclamo.service */ 88145);
/* harmony import */ var src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/rma/resolucion.service */ 63682);
/* 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_core_cliente_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! src/app/core/services/rma/defecto.service */ 27350);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! src/app/core/services/rma/RMAAtributo.service */ 34852);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../../shared/ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../../shared/ui/input-date-time/input-date-time.component */ 75871);
/* harmony import */ var _reclamos_listado_reclamos_listado_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./reclamos-listado/reclamos-listado.component */ 35890);
/* harmony import */ var _seguimiento_detalle_seguimiento_detalle_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./seguimiento-detalle/seguimiento-detalle.component */ 75420);
/* harmony import */ var _proveedor_rec_listado_proveedor_rec_listado_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./proveedor-rec-listado/proveedor-rec-listado.component */ 68654);
/* harmony import */ var _cliente_rec_listado_cliente_rec_listado_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./cliente-rec-listado/cliente-rec-listado.component */ 64273);













































function SeguimientoComponent_ng_template_3_Template(rf, ctx) {}
function SeguimientoComponent_div_4_ng_template_3_Template(rf, ctx) {}
function SeguimientoComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div", 51)(1, "div", 52)(2, "div", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](3, SeguimientoComponent_div_4_ng_template_3_Template, 0, 0, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](75);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r14);
  }
}
function SeguimientoComponent_a_33_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_a_33_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r28.borrarSearch("NumeroReclamo"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
}
function SeguimientoComponent_a_39_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_a_39_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r31);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r30.borrarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
}
function SeguimientoComponent_a_45_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_a_45_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r32.borrarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
}
function SeguimientoComponent_a_52_Template(rf, ctx) {
  if (rf & 1) {
    const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_a_52_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r35);
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r34.borrarCliente());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](1, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
}
function SeguimientoComponent_ng_template_67_ng_template_0_Template(rf, ctx) {}
function SeguimientoComponent_ng_template_67_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](0, SeguimientoComponent_ng_template_67_ng_template_0_Template, 0, 0, "ng-template", 3);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](77);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r16);
  }
}
function SeguimientoComponent_li_68_ng_template_9_ng_template_0_Template(rf, ctx) {}
function SeguimientoComponent_li_68_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](0, SeguimientoComponent_li_68_ng_template_9_ng_template_0_Template, 0, 0, "ng-template", 3);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](79);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r18);
  }
}
function SeguimientoComponent_li_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "li", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](2, "a", 56)(3, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](4, "Rec.Inic.");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](5, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](6, "Reclamos Iniciados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](7, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](8, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](9, SeguimientoComponent_li_68_ng_template_9_Template, 1, 1, "ng-template", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavItem", 1)("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 3, ctx_r8.reclamoService.isLoading$) && ctx_r8.tabActive != ctx_r8.tabs.RECLAMOS_TAB);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](8, 5, ctx_r8.reclamoService.isLoading$) && ctx_r8.tabActive == ctx_r8.tabs.RECLAMOS_TAB ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
  }
}
function SeguimientoComponent_li_69_ng_template_9_ng_template_0_Template(rf, ctx) {}
function SeguimientoComponent_li_69_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](0, SeguimientoComponent_li_69_ng_template_9_ng_template_0_Template, 0, 0, "ng-template", 3);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](81);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r20);
  }
}
function SeguimientoComponent_li_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "li", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](2, "a", 59)(3, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](4, "Prov.");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](5, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](6, "Proveedor ");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](7, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](8, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](9, SeguimientoComponent_li_69_ng_template_9_Template, 1, 1, "ng-template", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavItem", 2)("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 3, ctx_r9.reclamoService.isLoading$) && ctx_r9.tabActive != ctx_r9.tabs.PROVEEDOR_TAB);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](8, 5, ctx_r9.reclamoService.isLoading$) && ctx_r9.tabActive == ctx_r9.tabs.PROVEEDOR_TAB ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
  }
}
function SeguimientoComponent_li_70_ng_template_9_ng_template_0_Template(rf, ctx) {}
function SeguimientoComponent_li_70_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](0, SeguimientoComponent_li_70_ng_template_9_ng_template_0_Template, 0, 0, "ng-template", 3);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](83);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r22);
  }
}
function SeguimientoComponent_li_70_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "li", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](2, "a", 60)(3, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](4, "Cli.");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](5, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](6, "Cliente ");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](7, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](8, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](9, SeguimientoComponent_li_70_ng_template_9_Template, 1, 1, "ng-template", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavItem", 3)("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 3, ctx_r10.reclamoService.isLoading$) && ctx_r10.tabActive != ctx_r10.tabs.CLIENTE_TAB);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](8, 5, ctx_r10.reclamoService.isLoading$) && ctx_r10.tabActive == ctx_r10.tabs.CLIENTE_TAB ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
  }
}
function SeguimientoComponent_li_71_ng_template_9_ng_template_0_Template(rf, ctx) {}
function SeguimientoComponent_li_71_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](0, SeguimientoComponent_li_71_ng_template_9_ng_template_0_Template, 0, 0, "ng-template", 3);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](85);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r24);
  }
}
function SeguimientoComponent_li_71_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "li", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](2, "a", 61)(3, "span", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](4, "Rec.Cerr.");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](5, "span", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](6, "Reclamos Cerrados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](7, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](8, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](9, SeguimientoComponent_li_71_ng_template_9_Template, 1, 1, "ng-template", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavItem", 4)("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 3, ctx_r11.reclamoService.isLoading$) && ctx_r11.tabActive != ctx_r11.tabs.CERRADO_TAB);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](8, 5, ctx_r11.reclamoService.isLoading$) && ctx_r11.tabActive == ctx_r11.tabs.CERRADO_TAB ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
  }
}
function SeguimientoComponent_li_72_ng_template_9_ng_template_0_Template(rf, ctx) {}
function SeguimientoComponent_li_72_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](0, SeguimientoComponent_li_72_ng_template_9_ng_template_0_Template, 0, 0, "ng-template", 3);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](87);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r26);
  }
}
function SeguimientoComponent_li_72_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "li", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](2, "a", 62)(3, "span", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](4, "Rec.Anul.");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](5, "span", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](6, "Reclamos Anulados ");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](7, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](8, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](9, SeguimientoComponent_li_72_ng_template_9_Template, 1, 1, "ng-template", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavItem", 5)("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 3, ctx_r12.reclamoService.isLoading$) && ctx_r12.tabActive != ctx_r12.tabs.ANULADO_TAB);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](8, 5, ctx_r12.reclamoService.isLoading$) && ctx_r12.tabActive == ctx_r12.tabs.ANULADO_TAB ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
  }
}
function SeguimientoComponent_ng_template_74_div_28_Template(rf, ctx) {
  if (rf & 1) {
    const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div", 79)(1, "app-checkbox", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("emitAction", function SeguimientoComponent_ng_template_74_div_28_Template_app_checkbox_emitAction_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r50);
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r49.setFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("value", ctx_r47.getFiltroAtributo());
  }
}
function SeguimientoComponent_ng_template_74_div_29_div_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div")(1, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](2, "Atributo B");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](3, "select-loading", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("valueSelect", function SeguimientoComponent_ng_template_74_div_29_div_29_Template_select_loading_valueSelect_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r54);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r53.filterForm.controls.atributoB.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Seleccione un atributo")("items", ctx_r51.atributos)("valueSelected", ctx_r51.filterForm.controls.atributoB.value)("defaultValueDis", true);
  }
}
function SeguimientoComponent_ng_template_74_div_29_div_30_Template(rf, ctx) {
  if (rf & 1) {
    const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div")(1, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](2, "Valor atributo");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](3, "input", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("keyup.enter", function SeguimientoComponent_ng_template_74_div_29_div_30_Template_input_keyup_enter_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r56);
      const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r55.cambioFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
  }
}
function SeguimientoComponent_ng_template_74_div_29_Template(rf, ctx) {
  if (rf & 1) {
    const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div", 81)(1, "div")(2, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](3, "Modo");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](4, "select", 82)(5, "option", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](6, "Filtro");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](7, "option", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](8, "Comparativo");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](9, "div")(10, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](11, "Atributo A");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](12, "select-loading", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("valueSelect", function SeguimientoComponent_ng_template_74_div_29_Template_select_loading_valueSelect_12_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r58);
      const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r57.filterForm.controls.atributoA.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](13, "div")(14, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](15, "Operaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](16, "select", 86)(17, "option", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](18, "Menor");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](19, "option", 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](20, "Menor e igual");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](21, "option", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](22, "Igual");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](23, "option", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](24, "Distinto");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](25, "option", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](26, "Mayor");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](27, "option", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](28, "Mayor e igual");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](29, SeguimientoComponent_ng_template_74_div_29_div_29_Template, 4, 5, "div", 91)(30, SeguimientoComponent_ng_template_74_div_29_div_30_Template, 4, 0, "div", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](31, "div", 79)(32, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_ng_template_74_div_29_Template_a_click_32_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r58);
      const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r59.limpiarFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](33, "i", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](34, "a", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_ng_template_74_div_29_Template_a_click_34_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r58);
      const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r60.cambioFiltroAtributo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](35, "i", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Seleccione un atributo")("items", ctx_r48.atributos)("valueSelected", ctx_r48.filterForm.controls.atributoA.value)("defaultValueDis", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx_r48.getModoFiltroAtributo() == 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx_r48.getModoFiltroAtributo() == 1);
  }
}
const _c0 = () => [0];
function SeguimientoComponent_ng_template_74_Template(rf, ctx) {
  if (rf & 1) {
    const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div", 16)(1, "p-accordion", 65)(2, "p-accordionTab", 66)(3, "div")(4, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](5, "Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](6, "select-loading", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("valueSelect", function SeguimientoComponent_ng_template_74_Template_select_loading_valueSelect_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r62);
      const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r61.filterForm.controls.IdDefecto.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](7, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](8, "p-accordionTab", 69)(9, "div", 70)(10, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](11, "Fecha Recepci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](12, "label", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](13, "Desde");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](14, "app-input-date-time", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("valorEmit", function SeguimientoComponent_ng_template_74_Template_app_input_date_time_valorEmit_14_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r62);
      const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r63.setFechaHoraRecepcionDesde($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](15, "label", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](16, "Hasta");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](17, "app-input-date-time", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("valorEmit", function SeguimientoComponent_ng_template_74_Template_app_input_date_time_valorEmit_17_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r62);
      const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r64.setFechaHoraRecepcionHasta($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](18, "div", 70)(19, "p", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](20, "Atributos");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](21, "label", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](22, "Mostrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](23, "select", 74)(24, "option", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](25, "Si");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](26, "option", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](27, "No");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](28, SeguimientoComponent_ng_template_74_div_28_Template, 2, 1, "div", 77)(29, SeguimientoComponent_ng_template_74_div_29_Template, 36, 7, "div", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("formGroup", ctx_r13.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("multiple", true)("activeIndex", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpureFunction0"](13, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("defaultString", "Todos")("items", ctx_r13.defectos)("valueSelected", ctx_r13.filterForm.controls.IdDefecto.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](7, 11, ctx_r13.defectoService.isLoading$));
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("valor", ctx_r13.getFechaHoraRecepcionDesde());
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("valor", ctx_r13.getFechaHoraRecepcionHasta());
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx_r13.filterMostrarAtributos === "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx_r13.getFiltroAtributo());
  }
}
function SeguimientoComponent_ng_template_76_Template(rf, ctx) {
  if (rf & 1) {
    const _r66 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "seguimiento-detalle", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("lazyLoadChangeEv", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_lazyLoadChangeEv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r65.lazyLoadChange($event));
    })("export", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_export_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r67.exportTo($event));
    })("filtros", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_filtros_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r68.changeFiltros($event));
    })("editar", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_editar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r69.editarReclamo($event.reclamo, $event.modoEdicion));
    })("editarAtributo", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_editarAtributo_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r70.editarReclamo($event.reclamo, $event.modoEdicion, $event.modoAtributo));
    })("anular", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_anular_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r71.anularReclamo($event.idReclamo));
    })("cerrar", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_cerrar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r72.cerrarReclamo($event.idReclamo));
    })("abrir", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_abrir_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r73.abrirReclamo($event.idReclamo));
    })("envioProv", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_envioProv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r74.editarEnvioProveedor($event.reclamo, $event.modoEdicion));
    })("eliminarEnvio", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_eliminarEnvio_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r75.eliminarEnvio($event.idEnvioProveedor));
    })("editarResol", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_editarResol_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r76.editarResolucion($event.reclamo, $event.modoEdicion));
    })("eliminarResol", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_eliminarResol_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r77.eliminarResolucion($event.idEnvioProveedor));
    })("cargarCliente", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_cargarCliente_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r78.editarCliente($event.reclamo, $event.modoEdicion));
    })("editarDespacho", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_editarDespacho_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r79.editarCliente($event.reclamo, $event.modoEdicion));
    })("eliminarCli", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_eliminarCli_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r80.eliminarCliente($event.idRMACliente));
    })("detectEnvio", function SeguimientoComponent_ng_template_76_Template_seguimiento_detalle_detectEnvio_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r66);
      const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r81.detectarEnvio($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("registros", ctx_r15.registros)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 10, ctx_r15.reclamoService.isLoading$))("order", ctx_r15.order)("sentido", ctx_r15.sentido)("page", ctx_r15.page)("cant_search", ctx_r15.cant_search)("totalItems", ctx_r15.totalItems)("permisos", ctx_r15.permisosReclamo)("estadosPermitidos", ctx_r15.estadosPermitidos)("atributos", ctx_r15.getAtributosHeader());
  }
}
function SeguimientoComponent_ng_template_78_Template(rf, ctx) {
  if (rf & 1) {
    const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "reclamos-listado", 98);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("lazyLoadChangeEv", function SeguimientoComponent_ng_template_78_Template_reclamos_listado_lazyLoadChangeEv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r83);
      const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r82.lazyLoadChange($event));
    })("export", function SeguimientoComponent_ng_template_78_Template_reclamos_listado_export_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r83);
      const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r84.exportTo($event));
    })("editar", function SeguimientoComponent_ng_template_78_Template_reclamos_listado_editar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r83);
      const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r85.editarReclamo($event.reclamo, $event.modoEdicion, $event.modoAtributo));
    })("anular", function SeguimientoComponent_ng_template_78_Template_reclamos_listado_anular_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r83);
      const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r86.anularReclamo($event.idReclamo));
    })("envioProv", function SeguimientoComponent_ng_template_78_Template_reclamos_listado_envioProv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r83);
      const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r87.editarEnvioProveedor($event.reclamo, $event.modoEdicion));
    })("detectEnvio", function SeguimientoComponent_ng_template_78_Template_reclamos_listado_detectEnvio_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r83);
      const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r88.detectarEnvio($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("registros", ctx_r17.registros)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 10, ctx_r17.reclamoService.isLoading$))("order", ctx_r17.order)("sentido", ctx_r17.sentido)("page", ctx_r17.page)("cant_search", ctx_r17.cant_search)("totalItems", ctx_r17.totalItems)("estado", ctx_r17.tabActive)("permisos", ctx_r17.permisosReclamo)("atributos", ctx_r17.getAtributosHeader());
  }
}
function SeguimientoComponent_ng_template_80_Template(rf, ctx) {
  if (rf & 1) {
    const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "proveedor-rec-listado", 99);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("lazyLoadChangeEv", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_lazyLoadChangeEv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r89.lazyLoadChange($event));
    })("export", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_export_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r91.exportTo($event));
    })("filtros", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_filtros_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r92.changeFiltros($event));
    })("editar", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_editar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r93.editarEnvioProveedor($event.envioProveedor, $event.modoEdicion));
    })("editarAtributo", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_editarAtributo_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r94.editarReclamo($event.reclamo, $event.modoEdicion, $event.modoAtributo));
    })("eliminar", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_eliminar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r95.eliminarEnvio($event.idEnvioProveedor));
    })("editarResol", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_editarResol_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r96.editarResolucion($event.reclamo, $event.modoEdicion));
    })("eliminarRes", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_eliminarRes_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r97.eliminarResolucion($event.idEnvioProveedor));
    })("cargarCliente", function SeguimientoComponent_ng_template_80_Template_proveedor_rec_listado_cargarCliente_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r90);
      const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r98.editarCliente($event.reclamo, $event.modoEdicion));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("registros", ctx_r19.registros)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 10, ctx_r19.reclamoService.isLoading$))("order", ctx_r19.order)("sentido", ctx_r19.sentido)("page", ctx_r19.page)("cant_search", ctx_r19.cant_search)("totalItems", ctx_r19.totalItems)("idsResueltos", ctx_r19.idsResueltosProveedor)("permisos", ctx_r19.permisosReclamo)("atributos", ctx_r19.getAtributosHeader());
  }
}
function SeguimientoComponent_ng_template_82_Template(rf, ctx) {
  if (rf & 1) {
    const _r100 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "cliente-rec-listado", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("lazyLoadChangeEv", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_lazyLoadChangeEv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r99.lazyLoadChange($event));
    })("export", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_export_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r101.exportTo($event));
    })("filtros", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_filtros_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r102.changeFiltros($event));
    })("eliminar", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_eliminar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r103.eliminarCliente($event.idRMACliente));
    })("editar", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_editar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r104.editarCliente($event.reclamo, $event.modoEdicion));
    })("editarAtributo", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_editarAtributo_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r105.editarReclamo($event.reclamo, $event.modoEdicion, $event.modoAtributo));
    })("cerrar", function SeguimientoComponent_ng_template_82_Template_cliente_rec_listado_cerrar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r100);
      const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r106.cerrarReclamo($event.idReclamo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("registros", ctx_r21.registros)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 9, ctx_r21.reclamoService.isLoading$))("order", ctx_r21.order)("sentido", ctx_r21.sentido)("page", ctx_r21.page)("cant_search", ctx_r21.cant_search)("totalItems", ctx_r21.totalItems)("permisos", ctx_r21.permisosReclamo)("atributos", ctx_r21.getAtributosHeader());
  }
}
function SeguimientoComponent_ng_template_84_Template(rf, ctx) {
  if (rf & 1) {
    const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "reclamos-listado", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("lazyLoadChangeEv", function SeguimientoComponent_ng_template_84_Template_reclamos_listado_lazyLoadChangeEv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r108);
      const ctx_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r107.lazyLoadChange($event));
    })("export", function SeguimientoComponent_ng_template_84_Template_reclamos_listado_export_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r108);
      const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r109.exportTo($event));
    })("editar", function SeguimientoComponent_ng_template_84_Template_reclamos_listado_editar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r108);
      const ctx_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r110.editarReclamo($event.reclamo, $event.modoEdicion));
    })("envioProv", function SeguimientoComponent_ng_template_84_Template_reclamos_listado_envioProv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r108);
      const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r111.editarEnvioProveedor($event.reclamo, $event.modoEdicion));
    })("abrir", function SeguimientoComponent_ng_template_84_Template_reclamos_listado_abrir_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r108);
      const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r112.abrirReclamo($event.idReclamo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("registros", ctx_r23.registros)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 10, ctx_r23.reclamoService.isLoading$))("order", ctx_r23.order)("sentido", ctx_r23.sentido)("page", ctx_r23.page)("cant_search", ctx_r23.cant_search)("totalItems", ctx_r23.totalItems)("estado", ctx_r23.tabActive)("permisos", ctx_r23.permisosReclamo)("atributos", ctx_r23.getAtributosHeader());
  }
}
function SeguimientoComponent_ng_template_86_Template(rf, ctx) {
  if (rf & 1) {
    const _r114 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "reclamos-listado", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("lazyLoadChangeEv", function SeguimientoComponent_ng_template_86_Template_reclamos_listado_lazyLoadChangeEv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r114);
      const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r113.lazyLoadChange($event));
    })("export", function SeguimientoComponent_ng_template_86_Template_reclamos_listado_export_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r114);
      const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r115.exportTo($event));
    })("editar", function SeguimientoComponent_ng_template_86_Template_reclamos_listado_editar_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r114);
      const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r116.editarReclamo($event.reclamo, $event.modoEdicion));
    })("envioProv", function SeguimientoComponent_ng_template_86_Template_reclamos_listado_envioProv_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵrestoreView"](_r114);
      const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵresetView"](ctx_r117.editarEnvioProveedor($event.reclamo, $event.modoEdicion));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("registros", ctx_r25.registros)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](1, 10, ctx_r25.reclamoService.isLoading$))("order", ctx_r25.order)("sentido", ctx_r25.sentido)("page", ctx_r25.page)("cant_search", ctx_r25.cant_search)("totalItems", ctx_r25.totalItems)("estado", ctx_r25.tabActive)("permisos", ctx_r25.permisosReclamo)("atributos", ctx_r25.getAtributosHeader());
  }
}
//constantes
const MSJ_EXITO_RECLAMO_INSERCION = 'Se insertó correctamente un reclamo.';
const MSJ_EXITO_RECLAMO_EDICION = 'Se modificó correctamente el reclamo seleccionado.';
const MSJ_EXITO_RECLAMO_ANULAR = 'Se anuló correctamente el reclamo seleccionado.';
const MSJ_EXITO_RECLAMO_CIERRE = 'Se cerró correctamente el reclamo seleccionado.';
const MSJ_EXITO_RECLAMO_APERTURA = 'Se abrió correctamente el reclamo seleccionado.';
const MSJ_EXITO_ENV_PROV_INSERCION = 'Se informó correctamente el reclamo al proveedor.';
const MSJ_EXITO_ENV_PROV_EDICION = 'Se modificó correctamente un informe de reclamo a proveedor.';
const MSJ_EXITO_ENV_PROV_ELIMINAR = 'Se modificó correctamente el estado de un reclamo a iniciado.';
const MSJ_EXITO_RESOLUCION_INSERCION = 'Se registró correctamente la resolución del reclamo.';
const MSJ_EXITO_RESOLUCION_EDICION = 'Se modificó correctamente la resolución del reclamo.';
const MSJ_EXITO_RESOLUCION_ELIMINAR = 'Se realizó correctamente la rescisión de la resolución del reclamo.';
const MSJ_EXITO_RESOLUCION_ERROR = "Solo se puede cargar la resolución al cliente cuando el reclamo posee una resolucion distinta a 'por dictaminar'";
const MSJ_EXITO_CLIENTE_INSERCION = 'Se registró correctamente el informe al cliente.';
const MSJ_EXITO_CLIENTE_EDICION = 'Se modificó correctamente el informe al cliente.';
const MSJ_EXITO_CLIENTE_ELIMINAR = 'Se realizó correctamente la eliminación del informe al cliente.';
/* Pages que permite visualizar un listado de reclamos de RMA, segun la ruta de la pagina se decide que vista utiliza  */
class SeguimientoComponent {
  constructor(fb, modalService, route, vh, router, alert, sf, reclamoService, resolucionService, exportacion, clienteService, defectoService, empleadoService, atributoService, authService, tourService, configGralService) {
    this.fb = fb;
    this.modalService = modalService;
    this.route = route;
    this.vh = vh;
    this.router = router;
    this.alert = alert;
    this.sf = sf;
    this.reclamoService = reclamoService;
    this.resolucionService = resolucionService;
    this.exportacion = exportacion;
    this.clienteService = clienteService;
    this.defectoService = defectoService;
    this.empleadoService = empleadoService;
    this.atributoService = atributoService;
    this.authService = authService;
    this.tourService = tourService;
    this.configGralService = configGralService;
    //listado
    this.registros = [];
    this.filtro = true;
    this.filtroMobile = false;
    this.unsubscribe = [];
    this.modoListado = 'operational';
    this.reclamosHeaderAtributos = [];
    /**
     * MC SINWEB-174
     */
    this.defectos = [];
    this.empleados = [];
    this.atributos = [];
    //filtros
    this.searchForm = this.fb.group({
      NumeroReclamo: [''],
      Articulo: [],
      ArticuloId: [''],
      Proveedor: [],
      ProveedorId: [-1],
      Cliente: [],
      ClienteId: [-1]
      // MC SINWEB-399 Se agrega filtro por sucursal
      //Sucursal: [],
      //SucursalId: [-1]
    });
    this.modoFiltroAtributo = {
      Filtro: 1,
      Comparativo: 2
    };
    this.filterForm = this.fb.group({
      //MostrarAtributosAdicionales: [false],
      IdDefecto: [''],
      FechaHoraRecepcionDesde: [''],
      FechaHoraRecepcionHasta: [''],
      mostrarAtributo: [src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.FALSO],
      filtroAtributo: [false],
      modoFiltroAtributo: [this.modoFiltroAtributo.Filtro],
      atributoA: [0],
      atributoOperador: [3],
      atributoValor: [''],
      atributoB: [0]
      // IdEmpleado: [-1],
    });
    /**
     * SP SINWEB-185 Objeto donde cargaremos los permisos
     */
    this.permisosReclamo = {
      InsReclamo: false,
      ModReclamo: false,
      ElimReclamo: false,
      VisReclamo: true,
      InsEnvProv: false,
      ModifEnvProv: false,
      ElimEnvProv: false,
      InsRegRes: true,
      ElimRegRes: true,
      InsClienteReclamo: false,
      ModifClienteReclamo: false,
      ElimClienteReclamo: false
    };
    this.idsResueltosProveedor = '';
    this.estadosPermitidos = [];
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.CANT_SEARCH;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.PAGE_OPTIONS;
    this.order = 2;
    this.sentido = 'Asc';
    this.totalItems = 0;
    this.filterIdDefecto = '';
    //SP SINWEB-614 se juntan filtros fecha hora
    this.filterFechaHoraRecepcionDesde = '';
    this.filterFechaHoraRecepcionHasta = '';
    this.filterMostrarAtributos = '';
    // filterIdEmpleado: number = -1;
    //tab de la pagina
    this.tabActive = 0;
    this.tabs = {
      SEGUIMIENTO_TAB: 0,
      RECLAMOS_TAB: 1,
      PROVEEDOR_TAB: 2,
      CLIENTE_TAB: 3,
      CERRADO_TAB: 4,
      ANULADO_TAB: 5
    };
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.cargarPermisos();
    this.insertarAtributos();
    this.inicializarSteps();
    //se verifica el parametro de la ruta
    const sbs = this.route.paramMap.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_32__.switchMap)(params => {
      //el parametro modo se guarda en el atributo modoListado
      this.modoListado = params.get('modo');
      this.sf.changeState(this.sf.pagenames.BTN_VOLVER, '/rma/reclamo/' + this.modoListado);
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_33__.of)('exito');
    })).subscribe(res => {
      if (res !== 'exito') {}
    });
    this.unsubscribe.push(sbs);
    /**
     * MC SINWEB-174 - Carga de filtros
     */
    this.cargarDefectos();
    this.cargarResoluciones();
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
    this.controlarTour();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  cargarPermisos() {
    this.permisosReclamo = {
      InsReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_RECLAMOS),
      ModReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_RECLAMOS),
      AnulReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ANUL_RECLAMOS),
      CerrarReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_CERRAR_RECLAMOS),
      AbrirReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ABRIR_RECLAMOS),
      ElimReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ELIM_RECLAMOS),
      VisReclamo: true,
      InsEnvProv: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_ENV_PROV_RECLAMOS),
      ModifEnvProv: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_ENV_PROV_RECLAMOS),
      ElimEnvProv: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ELIM_ENV_PROV_RECLAMOS),
      InsRegRes: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_RES_RECLAMOS),
      ElimRegRes: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ELIM_RES_RECLAMOS),
      EditRegRes: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_RESOLUCION),
      InsClienteReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_CLIENTE_RECLAMOS),
      ModifClienteReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_CLIENTE_RECLAMOS),
      ElimClienteReclamo: this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_ELIM_CLIENTE_RECLAMOS)
    };
    if (this.permisosReclamo.InsReclamo) {
      this.estadosPermitidos.push(this.tabs.RECLAMOS_TAB);
    }
    if (this.permisosReclamo.InsEnvProv || this.permisosReclamo.InsRegRes) {
      this.estadosPermitidos.push(this.tabs.PROVEEDOR_TAB);
    }
    if (this.permisosReclamo.InsClienteReclamo) {
      this.estadosPermitidos.push(this.tabs.CLIENTE_TAB);
    }
    if (this.permisosReclamo.CerrarReclamo || this.permisosReclamo.AbrirReclamo) {
      this.estadosPermitidos.push(this.tabs.CERRADO_TAB);
    }
    if (this.permisosReclamo.AnulReclamo || this.permisosReclamo.AbrirReclamo) {
      this.estadosPermitidos.push(this.tabs.ANULADO_TAB);
    }
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesRMA.SEGUIMIENTO_STATES;
    // Búsqueda
    this.searchForm.controls.NumeroReclamo.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_NUMRECLAMO));
    //SP SINWEB-239
    this.buscarNro = this.sf.getState(this.sf.states.SEGUIMIENTO_S_NUMRECLAMO);
    this.searchForm.controls.ArticuloId.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_ARTICULOID));
    this.searchForm.controls.Articulo.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_ARTICULO));
    this.searchForm.controls.ProveedorId.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_PROVEEDORID));
    this.searchForm.controls.Proveedor.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_PROVEEDOR));
    this.searchForm.controls.ClienteId.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_CLIENTEID));
    this.searchForm.controls.Cliente.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_CLIENTE));
    //this.searchForm.controls.SucursalId.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_SUCURSALID));
    //this.searchForm.controls.Sucursal.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_S_SUCURSAL));
    // FiltrosHora
    this.filterIdDefecto = this.sf.getState(this.sf.states.SEGUIMIENTO_F_DEFECTO);
    this.filterFechaHoraRecepcionDesde = this.sf.getState(this.sf.states.SEGUIMIENTO_F_FECHARECEPCIONDESDE);
    this.filterFechaHoraRecepcionHasta = this.sf.getState(this.sf.states.SEGUIMIENTO_F_FECHARECEPCIONHASTA);
    this.filterForm.controls.FechaHoraRecepcionDesde.setValue(this.filterFechaHoraRecepcionDesde);
    this.filterForm.controls.FechaHoraRecepcionHasta.setValue(this.filterFechaHoraRecepcionHasta);
    this.filterMostrarAtributos = this.sf.getState(this.sf.states.SEGUIMIENTO_F_MOSTRAR_ATRIBUTOS) == 'true' ? src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO : src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.FALSO;
    this.filterForm.controls.mostrarAtributo.setValue(this.filterMostrarAtributos);
    // Listado
    this.page = Number(this.sf.getState(this.sf.states.SEGUIMIENTO_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.SEGUIMIENTO_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.SEGUIMIENTO_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.SEGUIMIENTO_L_SENTIDO);
  }
  configuracionFilter() {
    this.unsubscribe.push(this.filterForm.controls.IdDefecto.valueChanges.subscribe(IdDefecto => {
      if (this.filtro || this.filtroMobile) {
        this.filterIdDefecto = IdDefecto;
        this.page = 1;
        this.loadPage();
      }
    }));
    // MC SINWEB-396 Se cambia el filtro para separar Fecha y Hora
    this.unsubscribe.push(this.filterForm.controls.FechaHoraRecepcionDesde.valueChanges.subscribe(FechaHoraRecepcionDesde => {
      if (this.filtro || this.filtroMobile) {
        this.filterFechaHoraRecepcionDesde = FechaHoraRecepcionDesde;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.FechaHoraRecepcionHasta.valueChanges.subscribe(FechaHoraRecepcionHasta => {
      if (this.filtro || this.filtroMobile) {
        this.filterFechaHoraRecepcionHasta = FechaHoraRecepcionHasta;
        this.page = 1;
        this.loadPage();
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.mostrarAtributo.valueChanges.subscribe(mostrarAtributo => {
      if (this.filtro || this.filtroMobile) {
        this.filterMostrarAtributos = mostrarAtributo;
        this.sf.changeState(this.sf.states.SEGUIMIENTO_F_MOSTRAR_ATRIBUTOS, !this.filterMostrarAtributos ? this.sf.states.SEGUIMIENTO_F_MOSTRAR_ATRIBUTOS.default : this.filterMostrarAtributos === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO);
        if (this.filterMostrarAtributos == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.FALSO) {
          this.filterForm.controls.filtroAtributo.setValue(false);
        }
      }
    }));
    this.unsubscribe.push(this.filterForm.controls.modoFiltroAtributo.valueChanges.subscribe(() => {
      if (this.filtro) {
        this.filterForm.controls.atributoA.setValue(0);
        this.filterForm.controls.atributoB.setValue(0);
        this.filterForm.controls.atributoOperador.setValue(3);
        this.filterForm.controls.atributoValor.setValue('');
      }
    }));
  }
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  setOrder(event) {
    // this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  onSearch(datos) {
    const susc = this.reclamoService.fetchCondicionalReclamo(datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_34__.map)(resp => {
      return {
        Data: resp.Data ? resp.Data.map(reclamo => {
          return {
            ...reclamo,
            FechaHoraRecepcion: this.formatearFechaAux(reclamo.FechaHoraRecepcion)
          };
        }) : [],
        TotalRecords: resp.TotalRecords
      };
    })).subscribe(data => {
      this.registros = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    }, error => {});
    susc.unsubscribe;
  }
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //filtro estado
    if (this.tabActive != this.tabs.SEGUIMIENTO_TAB) {
      datos.IdsEstados = this.tabActive.toString();
    }
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    datos.IdsSucursales = this.authService.usuario.IdSucursal.toString();
    //busqueda
    datos.IncluirAtributos = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO;
    //SP SINWEB-239
    if (this.buscarNro != undefined && this.buscarNro != '') {
      datos.NumeroReclamo = this.buscarNro.length <= 8 ? this.buscarNro.padStart(8, '0') : this.buscarNro;
    }
    if (this.searchForm.value.ArticuloId != undefined && this.searchForm.value.ArticuloId != '') {
      datos.IdsArticulos = this.searchForm.value.ArticuloId.toString();
    }
    if (this.searchForm.value.ProveedorId != undefined && this.searchForm.value.ProveedorId != -1) {
      datos.IdProveedor = this.searchForm.get('ProveedorId').value.toString();
    }
    if (this.searchForm.value.ClienteId != undefined && this.searchForm.value.ClienteId != -1) {
      datos.IdCliente = this.searchForm.get('ClienteId').value.toString();
    }
    // if (this.searchForm.value.SucursalId != undefined && this.searchForm.value.SucursalId != -1) {
    //   datos.IdsSucursales = this.searchForm.get('SucursalId').value.toString();
    // }
    //filtros
    if (this.filterIdDefecto != undefined && this.filterIdDefecto != '') {
      datos.IdsDefectos = this.filterIdDefecto;
    }
    // MC SINWEB-396 Se combinan los valores antes de enviarlo a la API
    //SP SINWEB-614 se juntaron fecha y hora en un form
    if (this.filterFechaHoraRecepcionDesde !== undefined && this.filterFechaHoraRecepcionDesde !== '') {
      datos.FechaHoraRecepcionDesde = this.filterFechaHoraRecepcionDesde;
    }
    if (this.filterFechaHoraRecepcionHasta !== undefined && this.filterFechaHoraRecepcionHasta !== '') {
      datos.FechaHoraRecepcionHasta = this.filterFechaHoraRecepcionHasta;
    }
    if (this.getFiltroAtributo() && this.filtroAtributoCorrecto()) {
      datos.Operador = this.getOperadorValido(this.filterForm.controls.atributoOperador.value);
      datos.ModoOperacion = this.filterForm.controls.modoFiltroAtributo.value;
      if (datos.ModoOperacion == 1) {
        datos.IdAtributo = this.filterForm.controls.atributoA.value;
        datos.ValorStr = this.filterForm.controls.atributoValor.value;
      } else {
        datos.IdAtributoA = this.filterForm.controls.atributoA.value;
        datos.IdAtributoB = this.filterForm.controls.atributoB.value;
      }
    }
    if (this.tabs.SEGUIMIENTO_TAB == this.tabActive) {
      datos.IdsEstados = this.estadosPermitidos.join(',');
    }
    //filtros locales
    if (this.filtrosLocales != undefined) {
      if (this.filtrosLocales.IdsEstados != undefined && this.filtrosLocales.IdsEstados != 0) {
        datos.IdsEstados = this.filtrosLocales.IdsEstados;
      }
      if (this.filtrosLocales.NroReclamoProv != undefined) {
        datos.NroReclamoProv = this.filtrosLocales.NroReclamoProv;
      }
      if (this.filtrosLocales.IdsResolucionesProv != undefined && this.filtrosLocales.IdsResolucionesProv != 0) {
        datos.IdsResolucionesProv = this.filtrosLocales.IdsResolucionesProv;
      }
      if (this.filtrosLocales.FechaRevisionTecnicaDesde != undefined && this.filtrosLocales.FechaRevisionTecnicaDesde != '') {
        datos.FechaRevisionTecnicoDesde = this.filtrosLocales.FechaRevisionTecnicaDesde;
      }
      if (this.filtrosLocales.FechaRevisionTecnicaHasta != undefined && this.filtrosLocales.FechaRevisionTecnicaHasta != '') {
        datos.FechaRevisionTecnicoHasta = this.filtrosLocales.FechaRevisionTecnicaHasta;
      }
      // MC SINWEB-174 - Pestaña "Proveedor"
      if (this.filtrosLocales.FechaEnvioProveedorDesde !== undefined && this.filtrosLocales.FechaEnvioProveedorDesde !== '') {
        datos.FechaEnvioProveedorDesde = this.filtrosLocales.FechaEnvioProveedorDesde;
      }
      if (this.filtrosLocales.FechaEnvioProveedorHasta !== undefined && this.filtrosLocales.FechaEnvioProveedorHasta !== '') {
        datos.FechaEnvioProveedorHasta = this.filtrosLocales.FechaEnvioProveedorHasta;
      }
      // MC SINWEB-174 - Pestaña "Reclamos Cerrados"
      if (this.filtrosLocales.IdsEmpleadosRMACliente !== undefined && this.filtrosLocales.IdsEmpleadosRMACliente !== '') {
        datos.IdsEmpleadosRMACliente = this.filtrosLocales.IdsEmpleadosRMACliente;
      }
      if (this.filtrosLocales.FechaEntregaClienteDesde !== undefined && this.filtrosLocales.FechaEntregaClienteDesde !== '') {
        datos.FechaEntregaClienteDesde = this.filtrosLocales.FechaEntregaClienteDesde;
      }
      if (this.filtrosLocales.FechaEntregaClienteHasta !== undefined && this.filtrosLocales.FechaEntregaClienteHasta !== '') {
        datos.FechaEntregaClienteHasta = this.filtrosLocales.FechaEntregaClienteHasta;
      }
      //PM SINWEB-182
      if (this.filtrosLocales.IdsResolucionesProv !== undefined && this.filtrosLocales.IdsResolucionesProv !== '') {
        datos.IdsResolucionesProv = this.filtrosLocales.IdsResolucionesProv;
      } else {
        if (this.tabActive == this.tabs.PROVEEDOR_TAB) {
          datos.IdsResolucionesProv = src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_4__.RMA_RESOLUCION_DICTAMINAR;
        }
      }
      if (this.filtrosLocales.IdsResolucionesClie !== undefined && this.filtrosLocales.IdsResolucionesClie !== '') {
        datos.IdsResolucionesClie = this.filtrosLocales.IdsResolucionesClie;
      }
      if (this.filtrosLocales.Entregado !== undefined && this.filtrosLocales.Entregado !== '') {
        datos.Entregado = this.filtrosLocales.Entregado;
      }
      if (this.filtrosLocales.Notificado !== undefined && this.filtrosLocales.Notificado !== '') {
        datos.Notificado = this.filtrosLocales.Notificado;
      }
    }
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  getOperadorValido(idOperador) {
    if (idOperador == 1) {
      return '<';
    }
    if (idOperador == 2) {
      return '<=';
    }
    if (idOperador == 3) {
      return '=';
    }
    if (idOperador == 4) {
      return '<>';
    }
    if (idOperador == 5) {
      return '>';
    }
    if (idOperador == 6) {
      return '>=';
    }
  }
  //Metodo que realiza el cambio de los estados segun los valores elegidos
  changeStates(datos) {
    // Búsqueda
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_NUMRECLAMO, !datos.NumeroReclamo ? this.sf.states.SEGUIMIENTO_S_NUMRECLAMO.default : datos.NumeroReclamo);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_ARTICULOID, !datos.IdsArticulos ? this.sf.states.SEGUIMIENTO_S_ARTICULOID.default : datos.IdsArticulos);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_ARTICULO, !datos.IdsArticulos ? this.sf.states.SEGUIMIENTO_S_ARTICULO.default : this.searchForm.get('Articulo').value);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_PROVEEDORID, !datos.IdProveedor ? this.sf.states.SEGUIMIENTO_S_PROVEEDORID.default : datos.IdProveedor);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_PROVEEDOR, !datos.IdProveedor ? this.sf.states.SEGUIMIENTO_S_PROVEEDOR.default : this.searchForm.get('Proveedor').value);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_CLIENTEID, !datos.IdCliente ? this.sf.states.SEGUIMIENTO_S_CLIENTEID.default : datos.IdCliente);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_S_CLIENTE, !datos.IdCliente ? this.sf.states.SEGUIMIENTO_S_CLIENTE.default : this.searchForm.get('Cliente').value);
    //this.sf.changeState(this.sf.states.SEGUIMIENTO_S_SUCURSALID, (!datos.IdsSucursales ? this.sf.states.SEGUIMIENTO_S_SUCURSALID.default : datos.IdsSucursales));
    //this.sf.changeState(this.sf.states.SEGUIMIENTO_S_SUCURSAL, (!datos.IdsSucursales ? this.sf.states.SEGUIMIENTO_S_SUCURSAL.default : this.searchForm.get('Sucursal').value));
    // Filtros
    this.sf.changeState(this.sf.states.SEGUIMIENTO_F_DEFECTO, !datos.IdsDefectos ? this.sf.states.SEGUIMIENTO_F_DEFECTO.default : datos.IdsDefectos);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_F_FECHARECEPCIONDESDE, !datos.FechaHoraRecepcionDesde ? this.sf.states.SEGUIMIENTO_F_FECHARECEPCIONDESDE.default : datos.FechaHoraRecepcionDesde);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_F_FECHARECEPCIONHASTA, !datos.FechaHoraRecepcionHasta ? this.sf.states.SEGUIMIENTO_F_FECHARECEPCIONHASTA.default : datos.FechaHoraRecepcionHasta);
    // Listado
    this.sf.changeState(this.sf.states.SEGUIMIENTO_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.SEGUIMIENTO_L_SENTIDO, datos.SentidoOrden);
  }
  cleanStates() {
    this.sf.cleanAllStates();
    this.resetComp();
  }
  resetComp() {
    this.unsubscribe.forEach(sub => {
      sub.unsubscribe();
    });
    this.page = 1;
    this.previousPage = 1;
    this.filterForm.controls.filtroAtributo.setValue(false);
    //SP SINWEB-239
    this.buscarNro = '';
    const sbs = this.route.paramMap.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_32__.switchMap)(params => {
      //el parametro modo se guarda en el atributo modoListado
      this.modoListado = params.get('modo');
      this.sf.changeState(this.sf.pagenames.BTN_VOLVER, '/rma/reclamo/' + this.modoListado);
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_33__.of)('exito');
    })).subscribe(res => {
      if (res !== 'exito') {}
    });
    this.unsubscribe.push(sbs);
    this.cargarDefectos();
    this.cargarResoluciones();
    this.inicializarEstado();
    this.configuracionFilter();
    this.loadPage();
  }
  //metodo para cambio de pagina
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  getSearch(filtro) {
    return this.searchForm.get(filtro).value;
  }
  borrarSearch(filtro) {
    this.searchForm.get(filtro).reset('');
    this.page = 1;
    if (filtro === 'NumeroReclamo') {
      this.buscarNro = '';
    }
    this.loadPage();
  }
  buscarPorNumero() {
    this.page = 1;
    this.buscarNro = this.searchForm.get('NumeroReclamo').value;
    this.loadPage();
  }
  /**
   * SP SINWEB-239 control de filtro no reactivo
   */
  busquedaNro() {
    return this.buscarNro != undefined && this.buscarNro != '';
  }
  getFiltro(filtro) {
    return this.filterForm.get(filtro).value;
  }
  navChanged(event) {
    this.tabActive = event.nextId;
    this.filtrosLocales = {};
    //SP SINWEB-181 reinicio de pagina al cambiar de pestaña y cuando cookies esten disponibles en el caso de la pestaña 1 traer pagina de cookie
    if (this.tabActive == 1) {
      //CARGO PAGINA DE COOKIES
      this.page = 1;
    } else {
      this.page = 1;
    }
    this.loadPage();
  }
  changeFiltros(event) {
    this.filtrosLocales = event;
    this.page = 1;
    this.loadPage();
  }
  exportTo(event) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    datos.SoloAtributosEstado = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO;
    let columns = event.columns.push('Atributos');
    let keys = event.keys.push(['Atributos', 'RMAAtributo.Nombre', 'RMAAtributo.Valor']);
    //se arman las columnas y keys para buscar datos y armar el excel
    this.alert.showLoadingAlert(event.alert, 'Generando archivo ' + event.extension + ', este proceso puede tardar unos minutos');
    //llamada al recurso correspondiente de la api
    this.reclamoService.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert(event.alert, 'Archivo ' + event.extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      let result = data.Data.map(item => ({
        ...item,
        CodArticulo: `(${item.Articulo.Codigo}) ${item.Articulo.Nombre}`,
        CodProveedor: `(${item.Proveedor.Codigo}) ${item.Proveedor.Nombre}`,
        CodCliente: `(${item.Cliente.Codigo}) ${item.Cliente.Nombre}`
      }));
      if (event.extension === 'Excel') {
        this.exportacion.exportToExcel(result, event.columns, event.keys, event.name);
      } else {
        this.exportacion.exportToPdf(result, event.columns, event.keys, event.name);
      }
    });
  }
  editarReclamo(reclamo, esEditar, esAtributo = false) {
    const modalRef = this.modalService.open(src_app_pages_rma_seguimiento_reclamos_listado_reclamos_new_reclamos_new_component__WEBPACK_IMPORTED_MODULE_8__.ReclamosNewComponent, {
      size: 'xl',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.componentInstance.modoEdicion = !esEditar;
    modalRef.componentInstance.modoAtributo = esAtributo;
    modalRef.result.then(res => {
      this.loadPage();
      if (!esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_RECLAMO_INSERCION, 'Número de reclamo: ' + res, 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_RECLAMO_EDICION, 'Número de reclamo: ' + res, 'success');
      }
    }, () => {});
  }
  anularReclamo(idReclamo) {
    const sb = this.reclamoService.putAnulacion({}, idReclamo).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_RECLAMO_ANULAR, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  editarEnvioProveedor(reclamo, esEditar) {
    const modalRef = this.modalService.open(src_app_pages_rma_seguimiento_proveedor_rec_listado_enviar_prov_enviar_prov_component__WEBPACK_IMPORTED_MODULE_5__.EnviarProvComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.componentInstance.modoEdicion = !esEditar;
    modalRef.result.then(res => {
      this.loadPage();
      if (!esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_ENV_PROV_INSERCION, 'Número de reclamo: ' + res, 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_ENV_PROV_EDICION, 'Número de reclamo: ' + res, 'success');
      }
    }, () => {});
  }
  eliminarEnvio(idEnvio) {
    const sb = this.reclamoService.deleteEnvioProveedor(idEnvio).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_ENV_PROV_ELIMINAR, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  editarResolucion(reclamo, esEditar) {
    const modalRef = this.modalService.open(src_app_pages_rma_seguimiento_proveedor_rec_listado_resuelto_new_resuelto_new_component__WEBPACK_IMPORTED_MODULE_6__.ResueltoNewComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.reclamo = reclamo;
    modalRef.componentInstance.modoEdicion = !esEditar;
    modalRef.result.then(res => {
      this.loadPage();
      if (!esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_RESOLUCION_INSERCION, 'Número de reclamo: ' + res, 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_RESOLUCION_EDICION, 'Número de reclamo: ' + res, 'success');
      }
    }, () => {});
  }
  eliminarResolucion(idEnvio) {
    const sb = this.reclamoService.putRecisionResolucion({}, idEnvio).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_RESOLUCION_ELIMINAR, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  editarCliente(reclamo, esEditar) {
    if (reclamo.RMAProveedor.RMAResolucion !== 1) {
      const modalRef = this.modalService.open(src_app_pages_rma_seguimiento_cliente_rec_listado_cliente_rec_new_cliente_rec_new_component__WEBPACK_IMPORTED_MODULE_7__.ClienteRecNewComponent, {
        size: 'lg',
        backdrop: 'static',
        keyboard: false,
        scrollable: true
      });
      modalRef.componentInstance.reclamo = reclamo;
      modalRef.componentInstance.modoEdicion = !esEditar;
      modalRef.result.then(res => {
        this.loadPage();
        if (!esEditar) {
          this.alert.showBasicAlert(MSJ_EXITO_CLIENTE_INSERCION, 'Número de reclamo: ' + res, 'success');
        } else {
          this.alert.showBasicAlert(MSJ_EXITO_CLIENTE_EDICION, 'Número de reclamo: ' + res, 'success');
        }
      }, () => {});
    } else {
      this.alert.showBasicAlert(MSJ_EXITO_RESOLUCION_ERROR, '', 'warning');
    }
  }
  eliminarCliente(idRMACliente) {
    const sb = this.reclamoService.deleteEntregaCliente(idRMACliente).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_CLIENTE_ELIMINAR, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  cerrarReclamo(idReclamo) {
    const sb = this.reclamoService.putCierre({}, idReclamo).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_RECLAMO_CIERRE, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  abrirReclamo(idReclamo) {
    const sb = this.reclamoService.putApertura({}, idReclamo).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_35__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_RECLAMO_APERTURA, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * MC SINWEB-174 - Método que carga los defectos para el filtro
   */
  cargarDefectos() {
    let datos = {};
    datos.PageNumber = -1;
    datos.Orden = 2;
    const susc = this.defectoService.fetch(datos).subscribe(data => {
      this.defectos = data.Data;
      this.filterForm.controls.IdDefecto.setValue(this.sf.getState(this.sf.states.SEGUIMIENTO_F_DEFECTO), {
        emitEvent: false
      });
    });
    this.unsubscribe.push(susc);
  }
  cargarResoluciones() {
    let datos = {};
    datos.PageNumber = -1;
    datos.Orden = 2;
    const susc = this.resolucionService.fetch(datos).subscribe(data => {
      let resoluciones = data.Data;
      //PM SINWEB-182
      this.idsResueltosProveedor = resoluciones.filter(resolucion => resolucion.EstadoResolucion !== src_app_core_utils_constantes_constantes_rma__WEBPACK_IMPORTED_MODULE_4__.RMA_RESOLUCION_ESTADO_DICTAMINAR).map(resolucion => resolucion.Id.toString()).join(',');
    });
    this.unsubscribe.push(susc);
  }
  /**
   * MC SINWEB-174 - Método que carga los responsables para el filtro
   */
  cargarEmpleados() {
    let datos = {};
    datos.BajaLogica = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.FALSO;
    datos.PageNumber = 1;
    datos.PageSize = 1000;
    datos.Orden = 3;
    const susc = this.empleadoService.fetch(datos).subscribe(data => {
      this.empleados = data.Data;
    });
    this.unsubscribe.push(susc);
  }
  /**
   * MC SINWEB-174 - Método get para obtener campo Artículo
   * @returns {any} Artículo
   */
  getArticulo() {
    return this.searchForm.get('Articulo').value;
  }
  /**
   * MC SINWEB-174 - Método para limpiar el filtro Artículo
   */
  borrarArticulo() {
    this.searchForm.get('Articulo').reset('');
    this.searchForm.get('ArticuloId').reset('');
    this.page = 1;
    this.loadPage();
  }
  /**
   * MC SINWEB-174 - Método para buscar un artículo
   */
  buscarArticulo() {
    const modalRef = this.modalService.open(_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_9__.SeleccionarArticuloComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.filtros = {
      Multiple: true
    };
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.searchForm.controls.ArticuloId.setValue(resolve.IdsArticulos.join(','));
        this.searchForm.controls.Articulo.setValue(resolve.Articulos.join(','));
        this.page = 1;
        this.loadPage();
      }
    });
  }
  /**
   * MC SINWEB-174 - Método get para obtener campo Proveedor
   * @returns {any} Proveedor
   */
  getProveedor() {
    return this.searchForm.get('Proveedor').value;
  }
  /**
   * MC SINWEB-174 - Método para limpiar el filtro Proveedor
   */
  borrarProveedor() {
    this.searchForm.get('Proveedor').reset('');
    this.searchForm.get('ProveedorId').reset(-1);
    this.page = 1;
    this.loadPage();
  }
  /**
   * MC SINWEB-174 - Método para buscar un proveedor
   */
  buscarProveedor() {
    const modalRef = this.modalService.open(_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_10__.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.ProveedorId.setValue(resolve.IdProveedor);
        this.searchForm.controls.Proveedor.setValue(resolve.Proveedor);
        this.page = 1;
        this.loadPage();
      }
    });
  }
  /**
   * MC SINWEB-174 - Método get para obtener campo Cliente
   * @returns {any} Cliente
   */
  getCliente() {
    return this.searchForm.get('Cliente').value;
  }
  /**
   * MC SINWEB-174 - Método para limpiar el filtro Cliente
   */
  borrarCliente() {
    this.searchForm.get('Cliente').reset('');
    this.searchForm.get('ClienteId').reset(-1);
    this.page = 1;
    this.loadPage();
  }
  /**
   * MC SINWEB-174 - Método para buscar un cliente
   */
  buscarCliente() {
    const modalRef = this.modalService.open(_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_11__.SeleccionarClienteComponent, {
      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.ClienteId.setValue(resolve.IdCliente);
        this.searchForm.controls.Cliente.setValue(resolve.Cliente);
        this.page = 1;
        this.loadPage();
      }
    });
  }
  /**
   * MC SINWEB-399 - Método para buscar sucursales
   */
  // buscarSucursal(): void {
  //   const modalRef = this.modalService.open(SeleccionarSucursalComponent, {size: 'xl', backdropClass: 'back-z-index', windowClass: 'modal-z-index'});
  //   modalRef.componentInstance.filtros = {
  //     Multiple : true
  //   };
  //   modalRef.result.then((resolve) => {
  //     if (resolve !== undefined) {
  //       this.searchForm.controls.SucursalId.setValue(resolve.IdsSucursals.join(','));
  //       this.searchForm.controls.Sucursal.setValue(resolve.Sucursals.join(','));
  //       this.page = 1;
  //       this.loadPage();
  //     }
  //   });
  // }
  /**
   * MC SINWEB-399 - Método get para obtener campo Sucursal
   * @returns {any} Sucursal
   */
  // getSucursal(): any {
  //   return this.searchForm.get('Sucursal').value;
  // }
  getFiltroAtributo() {
    return this.filterForm.controls.filtroAtributo.value;
  }
  setFiltroAtributo() {
    this.filterForm.controls.filtroAtributo.setValue(!this.getFiltroAtributo());
  }
  getModoFiltroAtributo() {
    return this.filterForm.controls.modoFiltroAtributo.value;
  }
  cambioFiltroAtributo() {
    if (this.filtroAtributoCorrecto()) {
      this.page = 1;
      this.loadPage();
    }
  }
  filtroAtributoCorrecto() {
    let retorno = false;
    let modoFiltroAtributo = this.filterForm.controls.modoFiltroAtributo.value;
    if (modoFiltroAtributo == this.modoFiltroAtributo.Filtro) {
      if (this.filterForm.controls.atributoA.value !== 0 && this.filterForm.controls.atributoValor.value !== '') {
        retorno = true;
      }
    } else {
      if (this.filterForm.controls.atributoA.value !== 0 && this.filterForm.controls.atributoB.value !== 0) {
        retorno = true;
      }
    }
    return retorno;
  }
  limpiarFiltroAtributo() {
    this.filterForm.controls.atributoA.setValue(0);
    this.filterForm.controls.atributoB.setValue(0);
    this.filterForm.controls.atributoOperador.setValue(3);
    this.filterForm.controls.atributoValor.setValue('');
    this.loadPage();
  }
  /**
   * MC SINWEB-399 - Método para limpiar el filtro Sucursal
   */
  // borrarSucursal(): void {
  //   this.searchForm.get('Sucursal').reset('');
  //   this.searchForm.get('SucursalId').reset(-1);
  //   this.page = 1;
  //   this.loadPage();
  // }
  insertarAtributos() {
    let datos = {
      PageNumber: -1,
      Orden: 2,
      SentidoOrden: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.INIT_SENTIDO,
      IncluirEstados: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO
    };
    let susc = this.atributoService.fetch(datos).subscribe(resp => {
      if (resp.Data.length > 0) {
        let atributosTotal = resp.Data;
        atributosTotal.forEach(atributo => {
          if (this.atributoHabilitado(atributo.Estados, this.estadosPermitidos)) {
            this.reclamosHeaderAtributos.push({
              Nombre: atributo.Nombre,
              KeyArray: 'Atributos',
              Key: 'RMAAtributo.Id',
              KeyValue: atributo.Id,
              Type: 'search',
              WCol: '10%',
              ColorBg: this.configGralService._config.DarkMode === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.FALSO ? '#F6F4F4' : '#343b53',
              Estados: atributo.Estados
            });
            this.atributos.push(atributo);
          }
        });
      }
    });
  }
  atributoHabilitado(estados, estadosPermitidos) {
    let retorno = false;
    estados.forEach(estado => {
      if (estadosPermitidos.includes(estado.RMAEstado?.Id)) {
        retorno = true;
      }
    });
    return retorno;
  }
  getAtributosHeader() {
    let columnas = [];
    if (this.tabActive !== this.tabs.SEGUIMIENTO_TAB) {
      this.reclamosHeaderAtributos.forEach(atributo => {
        if (this.atributoHabilitado(atributo.Estados, [this.tabActive])) {
          columnas.push(atributo);
        }
      });
    } else {
      columnas = this.reclamosHeaderAtributos;
    }
    return {
      columnas: columnas,
      mostrarAtributos: this.filterMostrarAtributos
    };
  }
  /**
   * MC SINWEB-174 - Método para aplicar el filtro "Fecha Recepción desde"
   * @param {any} event Evento con la fecha recepción desde
   */
  // onRecepcionDesdeChange(event: any) {
  //   this.filterRecepcionDesde = formatFechaHora(event.target.value);
  //   this.loadPage();
  // }
  /**
   * MC SINWEB-174 - Método para aplicar el filtro "Fecha Recepción hasta"
   * @param {any} event Evento con la fecha recepción hasta
   */
  // onRecepcionHastaChange(event: any) {
  //   this.filterRecepcionHasta = formatFechaHora(event.target.value);
  //   this.loadPage();
  // }
  /**
   * MC SINWEB-184 - Método que se ejecuta para recargar si se envió algún reclamo
   * @param {any} event Evento
   */
  detectarEnvio(event) {
    if (event) {
      this.loadPage();
    }
  }
  /**
   * SP SINWEB-231 Método que inicia tour de la vista
   */
  iniciarTour() {
    document.getElementById('ngb-nav-0').click();
    this.tourService.start();
  }
  /**
   * SP SINWEB-231 Método para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de maquinas
    fetch('./assets/tours/rma/seguimiento.json').then(response => response.json()).then(tourSeguimiento => {
      this.tourSteps = tourSeguimiento;
      this.tourService.initialize(this.tourSteps);
    });
  }
  /**
   * SP SINWEB-231 Observable para realizar acciones durante los pasos
   */
  controlarTour() {
    this.unsubscribe.push(this.tourService.stepHide$.subscribe(step => {
      if (step.step.anchorId == 'seguimiento.anchor.id') {
        this.filtro = true;
      }
    }));
  }
  mostrarTab(tab) {
    return this.estadosPermitidos.includes(tab);
  }
  //SP SINWEB-416 cambios para filtro fechahora
  getFechaHoraRecepcionDesde() {
    return this.filterForm.controls.FechaHoraRecepcionDesde.value;
  }
  getFechaHoraRecepcionHasta() {
    return this.filterForm.controls.FechaHoraRecepcionHasta.value;
  }
  setFechaHoraRecepcionDesde($event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_12__.setFechaHoraReactivo)($event, this.getFechaHoraRecepcionDesde())) {
      this.filterForm.controls.FechaHoraRecepcionDesde.setValue($event);
    }
  }
  setFechaHoraRecepcionHasta($event) {
    if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_12__.setFechaHoraReactivo)($event, this.getFechaHoraRecepcionHasta())) {
      this.filterForm.controls.FechaHoraRecepcionHasta.setValue($event);
    }
  }
  //SP SINWEB-416 fin cambios
  formatearFechaAux(date) {
    if (!date || date == '') return '';
    let [fecha, hora, extra] = date.split(' ');
    return fecha + ' ' + hora.slice(0, -3);
  }
  static #_ = this.ɵfac = function SeguimientoComponent_Factory(t) {
    return new (t || SeguimientoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_36__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_38__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_38__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_13__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_rma_reclamo_service__WEBPACK_IMPORTED_MODULE_14__.ReclamoService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_rma_resolucion_service__WEBPACK_IMPORTED_MODULE_15__.ResolucionService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_16__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_17__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_rma_defecto_service__WEBPACK_IMPORTED_MODULE_18__.DefectoService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_19__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_rma_RMAAtributo_service__WEBPACK_IMPORTED_MODULE_20__.RMAAtributoService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_21__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_39__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_22__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵdefineComponent"]({
    type: SeguimientoComponent,
    selectors: [["app-seguimiento"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService, src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_39__.TourService])],
    decls: 89,
    vars: 30,
    consts: [[1, "row"], ["position", "left", 1, "d-block", "d-lg-none", 3, "visible", "visibleChange"], [1, "m-2"], [3, "ngTemplateOutlet"], ["class", "col-xxl-2 col-lg-3 d-none d-lg-block", 4, "ngIf"], [3, "ngClass"], [1, "card"], [1, "card-body", "border-bottom"], [1, "d-flex", "flex-column", "flex-sm-row", "align-items-center", "flex-wrap", "gap-2"], [1, "mb-0", "card-title", "flex-grow-1", "d-flex", "flex-row"], ["tourAnchor", "seguimiento.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"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "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"], [1, "col-auto", "d-block", "d-lg-none"], [1, "col-lg-2"], ["tourAnchor", "searchNombre.anchor.id", 1, "input-group"], ["type", "text", "formControlName", "NumeroReclamo", "placeholder", "Buscar por N\u00FAmero de reclamo", "mask", "00000000", 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"], ["tourAnchor", "searchArt.anchor.id", 1, "input-group"], ["type", "search", "formControlName", "Articulo", "placeholder", "Seleccionar Art\u00EDculo", "readonly", "", 1, "form-control"], ["tourAnchor", "searchProv.anchor.id", 1, "input-group"], ["type", "search", "formControlName", "Proveedor", "placeholder", "Seleccionar Proveedor", "readonly", "", 1, "form-control"], ["tourAnchor", "searchCliente.anchor.id", 1, "input-group"], ["type", "search", "formControlName", "Cliente", "placeholder", "Seleccionar Cliente", "readonly", "", 1, "form-control"], [1, "card-body"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified", 3, "activeId", "navChange"], ["mainNav", "ngbNav"], [3, "ngbNavItem", "disabled"], ["ngbNavLink", "", "tourAnchor", "seguimiento-detalle.anchor.id"], [1, "d-block", "d-sm-none", "text-dark"], [1, "d-none", "d-sm-block", "text-dark"], ["ngbNavContent", ""], [3, "ngbNavItem", "disabled", 4, "ngIf"], [3, "ngbNavOutlet"], ["FILTRO", ""], ["SEGUIMIENTO_TAB", ""], ["RECLAMOS_TAB", ""], ["PROVEEDOR_TAB", ""], ["CLIENTE_TAB", ""], ["CERRADO_TAB", ""], ["ANULADO_TAB", ""], [1, "col-xxl-2", "col-lg-3", "d-none", "d-lg-block"], ["tourAnchor", "filtroSeg.anchor.id", 1, "card"], [1, "card-body", "p-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["ngbNavLink", "", "tourAnchor", "seguimiento-iniciado.anchor.id"], [1, "d-block", "d-sm-none", "text-success"], [1, "d-none", "d-sm-block", "text-success"], ["ngbNavLink", "", "tourAnchor", "seguimiento-proveedor.anchor.id"], ["ngbNavLink", "", "tourAnchor", "seguimiento-cliente.anchor.id"], ["ngbNavLink", "", "tourAnchor", "seguimiento-cerrado.anchor.id"], ["ngbNavLink", "", "tourAnchor", "seguimiento-anulado.anchor.id"], [1, "d-block", "d-sm-none", "text-danger"], [1, "d-none", "d-sm-block", "text-danger"], [3, "multiple", "activeIndex"], ["header", "B\u00E1sicos"], [1, "text-muted"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["header", "Avanzados"], [1, "border", "border-1", "rounded", "border-opacity-10", "p-2", "mb-2"], [1, "text-muted", "font-size-12"], ["maxDate", "31/12/3000", 3, "valor", "valorEmit"], ["htmlFor", "FechaItemsHasta", 1, "text-muted", "font-size-12"], ["formControlName", "mostrarAtributo", 1, "form-select"], ["value", "S"], ["value", "N"], ["class", "my-2", 4, "ngIf"], ["class", "my-2", "style", "background-color: white", 4, "ngIf"], [1, "my-2"], ["data-cy", "checkbox-filtro-atributo", "title", "Filtrar atributos", "colorChecked", "success", "colorUncheked", "primary", 3, "value", "emitAction"], [1, "my-2", 2, "background-color", "white"], ["formControlName", "modoFiltroAtributo", 1, "form-select"], ["value", "1"], ["value", "2"], [3, "defaultValue", "defaultString", "items", "valueSelected", "defaultValueDis", "valueSelect"], ["formControlName", "atributoOperador", 1, "form-select"], ["value", "3"], ["value", "4"], ["value", "5"], ["value", "6"], [4, "ngIf"], ["data-cy", "boton-filtro", "data-bs-toggle", "tooltip", "data-bs-placement", "bottom", "title", "Limpiar filtro atributos", 1, "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [1, "mdi", "mdi-trash-can-outline", "align-middle"], ["data-cy", "boton-filtro", "data-bs-toggle", "tooltip", "data-bs-placement", "bottom", "title", "filtrar por atributos", 1, "mx-1", "btn", "btn-icon", "btn-soft-secondary", 3, "click"], [1, "mdi", "mdi-table-search"], ["type", "text", "formControlName", "atributoValor", "placeholder", "Valor atributo", 1, "form-control", 3, "keyup.enter"], [3, "registros", "isLoading", "order", "sentido", "page", "cant_search", "totalItems", "permisos", "estadosPermitidos", "atributos", "lazyLoadChangeEv", "export", "filtros", "editar", "editarAtributo", "anular", "cerrar", "abrir", "envioProv", "eliminarEnvio", "editarResol", "eliminarResol", "cargarCliente", "editarDespacho", "eliminarCli", "detectEnvio"], [3, "registros", "isLoading", "order", "sentido", "page", "cant_search", "totalItems", "estado", "permisos", "atributos", "lazyLoadChangeEv", "export", "editar", "anular", "envioProv", "detectEnvio"], [3, "registros", "isLoading", "order", "sentido", "page", "cant_search", "totalItems", "idsResueltos", "permisos", "atributos", "lazyLoadChangeEv", "export", "filtros", "editar", "editarAtributo", "eliminar", "editarResol", "eliminarRes", "cargarCliente"], [3, "registros", "isLoading", "order", "sentido", "page", "cant_search", "totalItems", "permisos", "atributos", "lazyLoadChangeEv", "export", "filtros", "eliminar", "editar", "editarAtributo", "cerrar"], [3, "registros", "isLoading", "order", "sentido", "page", "cant_search", "totalItems", "estado", "permisos", "atributos", "lazyLoadChangeEv", "export", "editar", "envioProv", "abrir"], [3, "registros", "isLoading", "order", "sentido", "page", "cant_search", "totalItems", "estado", "permisos", "atributos", "lazyLoadChangeEv", "export", "editar", "envioProv"]],
    template: function SeguimientoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](0, "div", 0)(1, "p-sidebar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("visibleChange", function SeguimientoComponent_Template_p_sidebar_visibleChange_1_listener($event) {
          return ctx.filtroMobile = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](3, SeguimientoComponent_ng_template_3_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](4, SeguimientoComponent_div_4_Template, 4, 1, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "span", 9)(10, "h5", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](11, " Seguimiento de RMA ");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](12, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_13_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](15, "div", 13)(16, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_16_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](17, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](18, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](19, "a", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_19_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](20, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](21, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementContainerStart"](22, 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](23, "div", 17)(24, "div", 18)(25, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_25_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](26, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](27, "div", 20)(28, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_28_listener() {
          return ctx.filtroMobile = !ctx.filtroMobile;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](29, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](30, "div", 21)(31, "div", 22)(32, "input", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("keyup.enter", function SeguimientoComponent_Template_input_keyup_enter_32_listener() {
          return ctx.buscarPorNumero();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](33, SeguimientoComponent_a_33_Template, 2, 0, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](34, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_34_listener() {
          return ctx.buscarPorNumero();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](35, "i", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](36, "div", 27)(37, "div", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](38, "input", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](39, SeguimientoComponent_a_39_Template, 2, 0, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](40, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_40_listener() {
          return ctx.buscarArticulo();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](41, "i", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](42, "div", 27)(43, "div", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](44, "input", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](45, SeguimientoComponent_a_45_Template, 2, 0, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](46, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_46_listener() {
          return ctx.buscarProveedor();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](47, "i", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](48, "div", 27)(49, "div", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](50, "input", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementContainerStart"](51);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](52, SeguimientoComponent_a_52_Template, 2, 0, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](53, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("click", function SeguimientoComponent_Template_a_click_53_listener() {
          return ctx.buscarCliente();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](54, "i", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](55, "div", 34)(56, "ul", 35, 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵlistener"]("navChange", function SeguimientoComponent_Template_ul_navChange_56_listener($event) {
          return ctx.navChanged($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](58, "li", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](59, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](60, "a", 38)(61, "span", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](62, "Seg.");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementStart"](63, "span", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtext"](64, "Seguimiento ");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](65, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipe"](66, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](67, SeguimientoComponent_ng_template_67_Template, 1, 1, "ng-template", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](68, SeguimientoComponent_li_68_Template, 10, 7, "li", 42)(69, SeguimientoComponent_li_69_Template, 10, 7, "li", 42)(70, SeguimientoComponent_li_70_Template, 10, 7, "li", 42)(71, SeguimientoComponent_li_71_Template, 10, 7, "li", 42)(72, SeguimientoComponent_li_72_Template, 10, 7, "li", 42);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](73, "div", 43);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplate"](74, SeguimientoComponent_ng_template_74_Template, 30, 14, "ng-template", null, 44, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"])(76, SeguimientoComponent_ng_template_76_Template, 2, 12, "ng-template", null, 45, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"])(78, SeguimientoComponent_ng_template_78_Template, 2, 12, "ng-template", null, 46, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"])(80, SeguimientoComponent_ng_template_80_Template, 2, 12, "ng-template", null, 47, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"])(82, SeguimientoComponent_ng_template_82_Template, 2, 11, "ng-template", null, 48, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"])(84, SeguimientoComponent_ng_template_84_Template, 2, 12, "ng-template", null, 49, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"])(86, SeguimientoComponent_ng_template_86_Template, 2, 12, "ng-template", null, 50, _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵelement"](88, "app-tour");
      }
      if (rf & 2) {
        const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](57);
        const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵreference"](75);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("visible", ctx.filtroMobile);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngTemplateOutlet", _r14);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-10 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](18, 24, ctx.reclamoService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵ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_31__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵ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_31__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.busquedaNro());
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.getArticulo());
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.getProveedor());
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.getCliente());
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("activeId", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavItem", 0)("disabled", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](59, 26, ctx.reclamoService.isLoading$) && ctx.tabActive != ctx.tabs.SEGUIMIENTO_TAB);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵpipeBind1"](66, 28, ctx.reclamoService.isLoading$) && ctx.tabActive == ctx.tabs.SEGUIMIENTO_TAB ? "bx bx-sync bx-spin font-size-16 align-middle" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.mostrarTab(ctx.tabs.RECLAMOS_TAB));
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.mostrarTab(ctx.tabs.PROVEEDOR_TAB));
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.mostrarTab(ctx.tabs.CLIENTE_TAB));
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.mostrarTab(ctx.tabs.CERRADO_TAB));
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngIf", ctx.mostrarTab(ctx.tabs.ANULADO_TAB));
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_31__["ɵɵproperty"]("ngbNavOutlet", _r6);
      }
    },
    dependencies: [primeng_accordion__WEBPACK_IMPORTED_MODULE_40__.Accordion, primeng_accordion__WEBPACK_IMPORTED_MODULE_40__.AccordionTab, _angular_common__WEBPACK_IMPORTED_MODULE_41__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_41__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_41__.NgTemplateOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_36__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_36__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_36__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_36__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_36__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_36__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_37__.NgbNavOutlet, ngx_mask__WEBPACK_IMPORTED_MODULE_42__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_36__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_36__.FormControlName, primeng_sidebar__WEBPACK_IMPORTED_MODULE_43__.Sidebar, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_39__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_23__.TourComponent, _shared_ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_24__.CheckboxComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_25__.SelectLoadingComponent, _shared_ui_input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_26__.InputDateTimeComponent, _reclamos_listado_reclamos_listado_component__WEBPACK_IMPORTED_MODULE_27__.ReclamosListadoComponent, _seguimiento_detalle_seguimiento_detalle_component__WEBPACK_IMPORTED_MODULE_28__.SeguimientoDetalleComponent, _proveedor_rec_listado_proveedor_rec_listado_component__WEBPACK_IMPORTED_MODULE_29__.ProveedorRecListadoComponent, _cliente_rec_listado_cliente_rec_listado_component__WEBPACK_IMPORTED_MODULE_30__.ClienteRecListadoComponent, _angular_common__WEBPACK_IMPORTED_MODULE_41__.AsyncPipe],
    changeDetection: 0
  });
}

/***/ }),

/***/ 47386:
/*!********************************************************************************************!*\
  !*** ./src/app/pages/rma/tipos-defecto/tipos-defecto-edit/tipos-defecto-edit.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TiposDefectoEditComponent: () => (/* binding */ TiposDefectoEditComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __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 _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_rma_tipo_defecto_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/rma/tipo-defecto.service */ 27233);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);









function TiposDefectoEditComponent_ng_container_3_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Editar");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Nuevo");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_3_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("'", ctx_r5.tipoDefecto.Nombre, "'");
  }
}
function TiposDefectoEditComponent_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, TiposDefectoEditComponent_ng_container_3_ng_container_1_Template, 2, 0, "ng-container", 3)(2, TiposDefectoEditComponent_ng_container_3_ng_container_2_Template, 2, 0, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, " Tipo de Defecto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, TiposDefectoEditComponent_ng_container_3_ng_container_4_Template, 2, 1, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.tipoDefecto.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx_r0.tipoDefecto.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.tipoDefecto.Id);
  }
}
function TiposDefectoEditComponent_ng_container_5_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nombre correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_5_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nombre del tipo de defecto requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_5_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nombre del tipo de defecto no debe tener m\u00E1s de 100 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_5_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Observaci\u00F3n correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_5_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Observaci\u00F3n no debe tener m\u00E1s de 200 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function TiposDefectoEditComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "form", 7)(2, "div", 8)(3, "div", 9)(4, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](6, "input", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, TiposDefectoEditComponent_ng_container_5_div_7_Template, 2, 0, "div", 12)(8, TiposDefectoEditComponent_ng_container_5_div_8_Template, 2, 0, "div", 13)(9, TiposDefectoEditComponent_ng_container_5_div_9_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "div", 14)(11, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12, "Observaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](13, "textarea", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](14, TiposDefectoEditComponent_ng_container_5_div_14_Template, 2, 0, "div", 12)(15, TiposDefectoEditComponent_ng_container_5_div_15_Template, 2, 0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Nombre"))("is-valid", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("required", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Nombre"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("Observacion"))("is-valid", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.isControlValid("Observacion"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r1.vh.controlHasError("maxlength", "Observacion"));
  }
}
function TiposDefectoEditComponent_ng_container_9_i_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "i", 21);
  }
}
function TiposDefectoEditComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function TiposDefectoEditComponent_ng_container_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r12.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, TiposDefectoEditComponent_ng_container_9_i_3_Template, 1, 0, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r2.formGroup.invalid);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](4, 2, ctx_r2.tipoDefectoService.isLoading$));
  }
}
/**
 * SP SINWEB-137 componente de insercion/edicion de tipos de defectos modulo RMA
 */
class TiposDefectoEditComponent {
  constructor(tipoDefectoService, fb, modal, vh) {
    this.tipoDefectoService = tipoDefectoService;
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.subscriptions = [];
    this.btnActivo = true;
  }
  ngOnInit() {
    if (!this.tipoDefecto) {
      this.tipoDefecto = {
        Id: undefined,
        Nombre: '',
        Observacion: ''
      };
    }
    this.loadForm();
  }
  /**
   * SP SINWEB-137 carga el formulario
   */
  loadForm() {
    this.formGroup = this.fb.group({
      Nombre: [this.tipoDefecto.Nombre, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(100)])],
      Observacion: [this.tipoDefecto.Observacion, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.maxLength(200)])]
    });
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  /**
   * SP SINWEB-137 metodo que llama a editar o guardar
   */
  save() {
    this.formGroup.markAllAsTouched();
    if (!this.formGroup.valid) {
      return;
    }
    this.prepareTipoDefecto();
    if (this.tipoDefecto.Id) {
      this.edit();
    } else {
      this.create();
    }
  }
  /**
   * SP SINWEB-137 llama a endpoint de la api y edita un tipo de defecto
   */
  edit() {
    const sbUpdate = this.tipoDefectoService.editar(this.tipoDefecto, this.tipoDefecto.Id).subscribe(res => {
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbUpdate);
  }
  /**
   * SP SINWEB-137 llama a endpoint de la api y guarda tipos de defectos
   */
  create() {
    this.btnActivo = false;
    const sbCreate = this.tipoDefectoService.nuevo(this.tipoDefecto).subscribe(res => {
      this.btnActivo = true;
      if (res.Errors == null) {
        this.modal.close();
      }
    });
    this.subscriptions.push(sbCreate);
  }
  /**
   * SP SINWEB-137prepara el objeto a insertar modificar
   */
  prepareTipoDefecto() {
    const formData = this.formGroup.value;
    this.tipoDefecto.Nombre = formData.Nombre;
    this.tipoDefecto.Observacion = formData.Observacion;
  }
  static #_ = this.ɵfac = function TiposDefectoEditComponent_Factory(t) {
    return new (t || TiposDefectoEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_rma_tipo_defecto_service__WEBPACK_IMPORTED_MODULE_1__.TipoDefectoService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: TiposDefectoEditComponent,
    selectors: [["app-tipos-defecto-edit"]],
    inputs: {
      tipoDefecto: "tipoDefecto"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 10,
    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"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row"], ["data-cy", "nombre-tipoDefecto", 1, "col-lg-12", "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-12", "p-2"], [1, "form-label"], ["name", "observacion", "name", "Observacion", "formControlName", "Observacion", 1, "form-control", "form-control-solid"], [1, "valid-feedback"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], ["data-cy", "save-tipoDefecto", "type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle", 4, "ngIf"], ["Class", "bx bx-sync bx-spin font-size-16 align-middle"]],
    template: function TiposDefectoEditComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, TiposDefectoEditComponent_ng_container_3_Template, 5, 3, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, TiposDefectoEditComponent_ng_container_5_Template, 16, 14, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function TiposDefectoEditComponent_Template_button_click_7_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](9, TiposDefectoEditComponent_ng_container_9_Template, 5, 4, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.tipoDefecto);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.tipoDefecto);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.tipoDefecto);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_2__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_6__.AsyncPipe]
  });
}

/***/ }),

/***/ 19856:
/*!********************************************************************!*\
  !*** ./src/app/pages/rma/tipos-defecto/tipos-defecto.component.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TiposDefectoComponent: () => (/* binding */ TiposDefectoComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 99397);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-rma */ 79076);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var _tipos_defecto_edit_tipos_defecto_edit_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tipos-defecto-edit/tipos-defecto-edit.component */ 47386);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* 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_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 _core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_rma_tipo_defecto_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/rma/tipo-defecto.service */ 27233);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../shared/widget/tour/tour.component */ 63481);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../shared/ui/table2/table2.component */ 63033);




















function TiposDefectoComponent_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r2.nuevo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "span", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Nuevo Tipo de Defecto");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function TiposDefectoComponent_a_34_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_a_34_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r4.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
const MSJ_EXITO_INSERCION = 'Se insertó correctamente un tipo de defecto.';
const MSJ_EXITO_EDICION = 'Se modificó correctamente el tipo de defecto seleccionado.';
const MSJ_EXITO_ELIMINACION = 'Se eliminó correctamente el tipo de defecto seleccionado.';
/**
 * SP SINWEB-137 Componente de listado/vista de tipos de defectos
 */
class TiposDefectoComponent {
  constructor(fb, toast, modalService, alert, exportacion, sf, authService, tourService, tipoDefectoService) {
    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.tipoDefectoService = tipoDefectoService;
    this.tipoDefectos = [];
    this.total = [];
    this.filtro = false;
    this.filtroMobile = false;
    this.unsubscribe = [];
    // //filtros
    //paginacion
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    //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;
    //permisos
    this.permisoInsTipoDefectos = false;
    this.permisoModifTipoDefectos = false;
    this.permisoElimTipoDefectos = false;
    this.TipoDefectosHeader = [{
      Nombre: 'Nombre',
      Order: 2,
      Key: 'Nombre',
      WCol: '45%'
    }, {
      Nombre: 'Observación',
      Key: 'Observacion',
      WCol: '45%'
    }];
    this.searchForm = this.fb.group({
      nombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.maxLength(100)]
    });
  }
  ngOnInit() {
    this.page = 1;
    this.previousPage = 1;
    this.inicializarSteps();
    this.permisoInsTipoDefectos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_INS_TIPO_DEFECTOS);
    this.permisoModifTipoDefectos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_TIPO_DEFECTOS);
    this.permisoElimTipoDefectos = this.authService.hasPermiso(src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_1__.PERMISO_ELIM_TIPO_DEFECTOS);
    this.inicializarEstado();
    this.loadPage();
  }
  /**
   * Inicializa el estado de los componentes que permite almacenar su estado
   */
  inicializarEstado() {
    this.sf.states = this.sf.pagenamesRMA.TIPO_DEFECTO_STATES;
    //busqueda
    this.searchForm.controls.nombre.setValue(this.sf.getState(this.sf.states.TIPO_DEFECTO_S_NOMBRE));
    this.buscarNombre = this.sf.getState(this.sf.states.TIPO_DEFECTO_S_NOMBRE);
    //filtros
    //listado
    this.page = Number(this.sf.getState(this.sf.states.TIPO_DEFECTO_L_PAGE));
    this.cant_search = Number(this.sf.getState(this.sf.states.TIPO_DEFECTO_L_PAGESIZE));
    this.order = Number(this.sf.getState(this.sf.states.TIPO_DEFECTO_L_ORDER));
    this.sentido = this.sf.getState(this.sf.states.TIPO_DEFECTO_L_SENTIDO);
  }
  /**
   * Limpieza de filtros , busquedas , estados
   */
  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.loadPage();
  }
  ngOnDestroy() {
    this.unsubscribe.forEach(sb => sb.unsubscribe());
  }
  /**
   * Metodo de recarga de pagina
   */
  loadPage() {
    this.onSearch(this.cargarFiltros(this.page, this.order, this.sentido));
  }
  /**
   * Metodo que cambia el tamaño de pagina y actualiza la busqueda
   * @param {any} event Tamaño de pagina seleccionado
   */
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    this.page = 1;
    this.order = event.id;
    this.sentido = event.sentido;
    this.loadPage();
  }
  // MC SINWEB-458 Migración de tabla
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.loadPage();
  }
  /**
   * Metodo de busqueda del tipo de defecto
   * @param {any} datos Parametros de busqueda
   */
  onSearch(datos) {
    const susc = this.tipoDefectoService.fetch(datos).subscribe(data => {
      this.tipoDefectos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  /**
   * Metodo de carga de filtros
   * @param {number} page Numero de paginas
   * @param {number} order Numero que indica ordenamiento
   * @param {string} sentido Sentido de ordenamiento
   */
  cargarFiltros(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //parametros de orden
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //busqueda
    //SP SINWEB-239
    if (this.buscarNombre != undefined && this.buscarNombre != '') {
      datos.Nombre = this.buscarNombre;
    }
    //filtros
    //Almacenar el cambio de estado de los componentes
    if (datos.PageNumber != -1) {
      this.changeStates(datos);
    }
    return datos;
  }
  /**
   * Metodo que realiza el cambio de los estados segun los valores elegidos
   * @param {any} datos Datos a guardar en cookies
   */
  changeStates(datos) {
    //busqueda
    this.sf.changeState(this.sf.states.TIPO_DEFECTO_S_NOMBRE, !datos.Nombre ? this.sf.states.TIPO_DEFECTO_S_NOMBRE.default : datos.Nombre);
    //filtros
    //listado
    this.sf.changeState(this.sf.states.TIPO_DEFECTO_L_PAGE, datos.PageNumber);
    this.sf.changeState(this.sf.states.TIPO_DEFECTO_L_PAGESIZE, datos.PageSize);
    this.sf.changeState(this.sf.states.TIPO_DEFECTO_L_ORDER, datos.Orden);
    this.sf.changeState(this.sf.states.TIPO_DEFECTO_L_SENTIDO, datos.SentidoOrden);
  }
  nuevo() {
    this.editar(undefined, false);
  }
  /**
   * Llama al modal de confirmacion para eliminar de tipo de defecto
   * @param {any} tipoDefecto Elemento a insertar/editar
   * @param {boolean} esEditar Indica si estamos editando o insertando
   */
  editar(tipoDefecto, esEditar) {
    const modalRef = this.modalService.open(_tipos_defecto_edit_tipos_defecto_edit_component__WEBPACK_IMPORTED_MODULE_3__.TiposDefectoEditComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    modalRef.componentInstance.tipoDefecto = tipoDefecto;
    modalRef.result.then(() => {
      this.loadPage();
      if (esEditar) {
        this.alert.showBasicAlert(MSJ_EXITO_EDICION, '', 'success');
      } else {
        this.alert.showBasicAlert(MSJ_EXITO_INSERCION, '', 'success');
      }
    }, () => {});
  }
  /**
   * Llama al modal de confirmacion para eliminar de tipo de defecto
   * @param {number} idTipoDefecto Id del elemento a eliminar
   * @param {string} nombre Nombre del elemento
   */
  eliminar(idTipoDefecto, nombre) {
    this.alert.showReturnAlert('Eliminación de tipo de defecto.', "¿Está seguro de eliminar el tipo de defecto: '" + nombre + "' ?", 'warning', 'Eliminar', 'Cancelar', true).then(result => {
      if (result.value) {
        this.eliminarTipoDefecto(idTipoDefecto);
      }
    });
  }
  /**
   * Llama a la api para eliminar de tipo de defecto
   * @param {number} idTipoDefecto Id del elemento a eliminar
   */
  eliminarTipoDefecto(idTipoDefecto) {
    const sb = this.tipoDefectoService.eliminar(idTipoDefecto).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.tap)(elem => {
      if (!elem.error) {
        this.alert.showBasicAlert(MSJ_EXITO_ELIMINACION, '', 'success');
        this.loadPage();
      }
    })).subscribe();
    sb.unsubscribe;
  }
  /**
   * Metodo para activar acción
   * @param {any} event  Objeto con acción y registro de la tabla
   */
  acciones(event) {
    switch (event.accion) {
      case 'edit':
        this.editar(event.registro, true);
        break;
      case 'delete':
        this.eliminar(event.registro.Id, event.registro.Nombre);
        break;
      default:
        console.log(`La accion ${event.accion} no esta disponible`);
    }
  }
  /**
   * Metodo para cambio de pagina
   */
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  /**
   * Realiza llamada a la api y exporta a excel
   */
  exportTo(extension) {
    let datos = this.cargarFiltros(-1, this.order, this.sentido);
    //datos.PageSize= this.totalItems;
    delete datos.PageSize;
    //se arman las columnas y keys para buscar datos y armar el excel
    const columns = ['Nombre', 'Observación'];
    const keys = ['Nombre', 'Observacion'];
    this.alert.showLoadingAlert('Exportando Tipo de Defecto', 'Generando archivo ' + extension + ', este proceso puede tardar unos minutos');
    //llamada al recurso correspondiente de la api
    this.tipoDefectoService.fetch(datos).subscribe(data => {
      this.alert.closeLoadingAlert();
      this.alert.showBasicAlert('Tipo de Defecto Exportados', 'Archivo ' + extension + ' generado', 'success');
      // MC SINWEB-378 Exportación a Pdf
      if (extension === 'Excel') {
        this.exportacion.exportToExcel(data.Data, columns, keys, 'Listado de Tipo de defecto');
      } else {
        this.exportacion.exportToPdf(data.Data, columns, keys, 'Listado de Tipo de defecto');
      }
    });
  }
  /**
   * Get de nombre
   */
  getNombre() {
    return this.searchForm.controls.nombre.value;
  }
  /**
   * Limpieza de input de nombre
   */
  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-239 control de filtro no reactivo
   * @returns
   */
  busquedaNombre() {
    return this.buscarNombre != undefined && this.buscarNombre != '';
  }
  /**
   * Metodo para  iniciar tour de la vista
   */
  iniciarTour() {
    this.tourService.start();
  }
  /**
   * Metodo para inicializar el objecto de pasos del tour
   */
  inicializarSteps() {
    //Traigo el json con los pasos del tour de tipo de defectos
    fetch('./assets/tours/rma/tipo-defectos.json').then(response => response.json()).then(tourTipoDefectos => {
      this.tourSteps = tourTipoDefectos;
      this.tourService.initialize(this.tourSteps);
    });
  }
  static #_ = this.ɵfac = function TiposDefectoComponent_Factory(t) {
    return new (t || TiposDefectoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_13__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_exportacion_service__WEBPACK_IMPORTED_MODULE_4__.ExportacionService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_5__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_rma_tipo_defecto_service__WEBPACK_IMPORTED_MODULE_7__.TipoDefectoService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: TiposDefectoComponent,
    selectors: [["app-tipos-defecto"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.TourService])],
    decls: 41,
    vars: 23,
    consts: [[1, "row"], [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", "tipoDefectos.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"], ["data-cy", "new-tipoDefecto", "tourAnchor", "newTipoDefectos.anchor.id", "class", "btn btn-primary", 3, "click", 4, "ngIf"], ["tourAnchor", "refresh.anchor.id", 1, "btn", "btn-light", 3, "click"], ["tourAnchor", "filtroReset.anchor.id", 3, "ngClass", "click"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["tourAnchor", "export.anchor.id", "type", "menu", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", "ngbDropdownToggle", "", 1, "btn", "btn-success"], [1, "mdi", "mdi-dots-vertical"], ["aria-labelledby", "dropdownMenuButton1", "ngbDropdownMenu", "", 1, "dropdown-menu"], ["href", "javascript:void(0);", 1, "dropdown-item", 3, "click"], [3, "formGroup"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start"], [1, "col-xxl-4", "col-lg-6"], ["tourAnchor", "searchNombre.anchor.id", 1, "input-group"], ["data-cy", "nombre-tipoDefecto-search", "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"], ["title", "Tipos de Defectos", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "edit", "delete", "acciones", "apiTable", "isLoading", "lazyLoad", "emitAction"], ["data-cy", "new-tipoDefecto", "tourAnchor", "newTipoDefectos.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"]],
    template: function TiposDefectoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "span", 5)(6, "h5", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7, " Tipos de Defectos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](8, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "a", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_Template_a_click_9_listener() {
          return ctx.iniciarTour();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](10, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](12, TiposDefectoComponent_a_12_Template, 4, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_Template_a_click_13_listener() {
          return ctx.loadPage();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](14, "i", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](15, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_Template_a_click_16_listener() {
          return ctx.cleanStates();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](17, "i", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "div", 13)(19, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](20, "i", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](21, "ul", 16)(22, "li")(23, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_Template_a_click_23_listener() {
          return ctx.exportTo("Excel");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](24, "Exportar Excel");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](25, "li")(26, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_Template_a_click_26_listener() {
          return ctx.exportTo("Pdf");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](27, "Exportar Pdf");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](28, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](29, 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](30, "div", 19)(31, "div", 20)(32, "div", 21)(33, "input", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("keyup.enter", function TiposDefectoComponent_Template_input_keyup_enter_33_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](34, TiposDefectoComponent_a_34_Template, 2, 0, "a", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](35, "a", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function TiposDefectoComponent_Template_a_click_35_listener() {
          return ctx.buscarPorNombre();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](36, "i", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](37, "div", 26)(38, "app-table2", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("lazyLoad", function TiposDefectoComponent_Template_app_table2_lazyLoad_38_listener($event) {
          return ctx.lazyLoadChange($event);
        })("emitAction", function TiposDefectoComponent_Template_app_table2_emitAction_38_listener($event) {
          return ctx.acciones($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](39, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](40, "app-tour");
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", ctx.filtro ? "col-xxl-10 col-lg-9" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.permisoInsTipoDefectos);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](15, 19, ctx.tipoDefectoService.isLoading$) ? "bx bx-sync bx-spin font-size-16 align-middle" : "bx bx-sync font-size-16 align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", ctx.sf.getCantCustomStates() > 0 ? "btn btn-danger" : "btn bg-danger bg-soft");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", "mdi mdi-filter-remove-outline mdi-16px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.busquedaNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("columns", ctx.TipoDefectosHeader)("datos", ctx.tipoDefectos)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cant_search)("totalItems", ctx.totalItems)("edit", ctx.permisoModifTipoDefectos)("delete", ctx.permisoElimTipoDefectos)("acciones", ctx.permisoElimTipoDefectos || ctx.permisoModifTipoDefectos)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](39, 21, ctx.tipoDefectoService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_16__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_16__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.MaxLengthValidator, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__.TourAnchorNgBootstrapDirective, _shared_widget_tour_tour_component__WEBPACK_IMPORTED_MODULE_8__.TourComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_9__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_16__.AsyncPipe]
  });
}

/***/ })

}]);