(self["webpackChunkskote"] = self["webpackChunkskote"] || []).push([["main"],{

/***/ 43989:
/*!***************************************************************!*\
  !*** ./src/app/account/auth/acerca-de/acerca-de.component.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AcercaDeComponent: () => (/* binding */ AcercaDeComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __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_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ 20553);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* 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_core_infoAPI_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/infoAPI.service */ 63384);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __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 ngx_mask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-mask */ 43735);













function AcercaDeComponent_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, "div", 7)(2, "div", 8)(3, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 7)(6, "div", 10)(7, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8, "Sinergial Advance - Gesti\u00F3n de procesos de negocios");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](9, "div", 11)(10, "blockquote", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](11, " Advertencia: Este programa est\u00E1 protegido por las leyes de derechos de autor y tratados internacionales. La reproducci\u00F3n o distribuci\u00F3n il\u00EDcitas de este programa o de cualquier parte del mismo est\u00E1n penadas por la ley con severas sanciones civiles y penales y ser\u00E1n objeto de todas las acciones judiciales que correspondan. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](12, "div", 7)(13, "div", 13)(14, "strong", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "div", 15)(17, "div", 16)(18, "a", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](19, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](21, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](22, "a", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](23, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](24, "div", 16)(25, "a", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](26, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](27, " Comercial");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](28, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](29, "a", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](30, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](31, " HelpDesk");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](32, "p", 26)(33, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](34, "www.oliver.ar");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](35, " | \u00A9 2024. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", ctx_r0.modoDesarrollo ? "alert alert-danger" : "alert alert-info");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate4"](" Versi\u00F3n ", ctx_r0.version, " (", ctx_r0.informationalVersion, ") / API ", ctx_r0.versionApi, " (", ctx_r0.apiInformacion, ") ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"]("Nro. de licencia: ", ctx_r0.licencia, "");
  }
}
function AcercaDeComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "form", 28)(2, "div", 29)(3, "div", 30)(4, "label", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5, "Ingrese el n\u00FAmero de licencia a continuaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](7, "input", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "div", 10)(9, "label", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx_r1.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx_r1.vh.isControlInvalid("licencia"))("is-valid", ctx_r1.vh.isControlValid("licencia"));
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](ctx_r1.licenciaEncriptada);
  }
}
function AcercaDeComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "button", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function AcercaDeComponent_ng_container_9_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r4);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r3.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx_r2.formGroup.invalid);
  }
}
class AcercaDeComponent {
  constructor(fb, modal, vh, config, authService, infoApiService) {
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.config = config;
    this.authService = authService;
    this.infoApiService = infoApiService;
    this.modoAcercaDe = true;
    this.version = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.version;
    this.informationalVersion = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.InformationalVersion;
    this.versionApi = '0.0';
    this.apiInformacion = '';
    this.licencia = '';
    this.modoDesarrollo = false;
    this._unsubscribe = [];
    this.formGroup = this.fb.group({
      licencia: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.minLength(12)])]
    });
  }
  ngOnInit() {
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    if (this.modoAcercaDe) {
      this.licencia = this.authService.decryptLicencia(this.config.config.cliente.serial);
      this.modoDesarrollo = this.config.config.cliente.validacion.includes('i02B');
    }
    let data = {};
    this.infoApiService.fetch(data).subscribe(data => {
      this.versionApi = data.Data.Version;
      this.apiInformacion = data.Data.InformationalVersion;
    }, error => {
      this.versionApi = 'ERROR';
    });
  }
  ngOnDestroy() {
    this._unsubscribe.forEach(sb => sb.unsubscribe());
  }
  save() {
    this.modal.close({
      licencia: this.formatLicencia(),
      validacion: this.generarValidacion(20)
    });
  }
  formatLicencia() {
    let licencia = this.formGroup.get('licencia').value.toUpperCase();
    return `${licencia.slice(0, 4)}-${licencia.slice(4, 8)}-${licencia.slice(8, 12)}`;
  }
  generarValidacion(longitud) {
    let resultado = '';
    const caracteres = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    for (let i = 0; i < longitud; i++) {
      const indiceCaracter = Math.floor(Math.random() * caracteres.length);
      resultado += caracteres.charAt(indiceCaracter);
    }
    return resultado;
  }
  static #_ = this.ɵfac = function AcercaDeComponent_Factory(t) {
    return new (t || AcercaDeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_2__.ConfigService), _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_core_infoAPI_service__WEBPACK_IMPORTED_MODULE_4__.InfoAPIService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: AcercaDeComponent,
    selectors: [["app-acerca-de"]],
    inputs: {
      modoAcercaDe: "modoAcercaDe"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 10,
    vars: 3,
    consts: [[1, "modal-content"], [1, "modal-header"], ["src", "assets/images/about-img.jpg", "alt", "Imagen Header", 1, "full-width"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "130px"], [4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], [1, "row"], [1, "col-lg-12", "px-1"], ["role", "alert", 3, "ngClass"], [1, "col-lg-12"], [1, "col-lg-12", "pt-2", "px-4"], [1, "blockquote", 2, "font-size", "13px"], [1, "col-lg-12", "pb-4", "d-flex", "justify-content-end"], [1, "d-flex", "justify-content-end", "text-info"], [1, "row", "d-flex", "flex-column", "justify-content-cente", "text-center"], [1, "col"], ["href", "https://www.facebook.com/Oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-facebook", "font-size-24", "text-primary"], ["href", "https://www.instagram.com/oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-instagram", "font-size-24", "text-primary"], ["href", "https://www.linkedin.com/company/oliver-inform%C3%A1tica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-linkedin", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585175140", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mb-0"], ["href", "https://www.oliver.ar/", "target", "_blank", "rel", "noopener noreferrer"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "form-group", "row", "justify-content-md-center"], [1, "col-lg-12", "p-3"], ["campoObligatorio", "", 1, "form-label", "d-flex", "justify-content-center"], [1, "col-lg-6", "pb-3"], ["data-cy", "licencia", "type", "text", "mask", "AAAA-AAAA-AAAA", "name", "licencia", "autocomplete", "off", "formControlName", "licencia", 1, "col-lg-4", "form-control", "form-control-solid", 2, "text-align", "center"], [1, "form-label", "d-flex", "justify-content-center"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"]],
    template: function AcercaDeComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](2, "img", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, AcercaDeComponent_ng_container_4_Template, 36, 6, "ng-container", 4)(5, AcercaDeComponent_ng_container_5_Template, 11, 6, "ng-container", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function AcercaDeComponent_Template_button_click_7_listener() {
          return ctx.modal.close({
            licencia: "",
            validacion: ""
          });
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](8, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](9, AcercaDeComponent_ng_container_9_Template, 3, 1, "ng-container", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.modoAcercaDe);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.modoAcercaDe);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !ctx.modoAcercaDe);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_5__.CampoObligatorioDirective, ngx_mask__WEBPACK_IMPORTED_MODULE_10__.NgxMaskDirective],
    styles: [".modal-header[_ngcontent-%COMP%] {\n  padding: 0px;\n}\n\n.full-width[_ngcontent-%COMP%] {\n  width: 100%;\n  height: auto;\n}"]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AppRoutingModule: () => (/* binding */ AppRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __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 _layouts_layout_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./layouts/layout.component */ 62653);
/* harmony import */ var _extrapages_page404_page404_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./extrapages/page404/page404.component */ 69722);
/* harmony import */ var _core_guards_RouteConfig_guard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/guards/RouteConfig.guard */ 51651);
/* harmony import */ var _extrapages_external_entrance_external_entrance_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./extrapages/external-entrance/external-entrance.component */ 32173);
/* harmony import */ var _layouts2_layouts2_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./layouts2/layouts2.component */ 57895);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);









const routes = [{
  path: 'login',
  canActivateChild: [_core_guards_RouteConfig_guard__WEBPACK_IMPORTED_MODULE_3__.RouteConfigGuard],
  loadChildren: () => Promise.all(/*! import() */[__webpack_require__.e("default-src_app_pages_dashboards_dashboards_module_ts"), __webpack_require__.e("src_app_account_account_module_ts")]).then(__webpack_require__.bind(__webpack_require__, /*! ./account/account.module */ 91995)).then(m => m.AccountModule)
},
// tslint:disable-next-line: max-line-length
{
  path: '',
  component: _layouts_layout_component__WEBPACK_IMPORTED_MODULE_1__.LayoutComponent,
  loadChildren: () => Promise.all(/*! import() */[__webpack_require__.e("default-src_app_pages_dashboards_dashboards_module_ts"), __webpack_require__.e("src_app_pages_pages_module_ts")]).then(__webpack_require__.bind(__webpack_require__, /*! ./pages/pages.module */ 89238)).then(m => m.PagesModule),
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard]
}, {
  path: 'views',
  component: _layouts2_layouts2_component__WEBPACK_IMPORTED_MODULE_5__.Layouts2Component,
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
  loadChildren: () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ./layouts2/layouts2.module */ 72252)).then(m => m.Layouts2Module)
}, {
  path: 'pages',
  loadChildren: () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ./extrapages/extrapages.module */ 53415)).then(m => m.ExtrapagesModule),
  canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard]
},
// MC SINWEB-110 Agrego redireccionamiento a la pagina de error 404
{
  path: 'external',
  component: _extrapages_external_entrance_external_entrance_component__WEBPACK_IMPORTED_MODULE_4__.ExternalEntranceComponent
}, {
  path: '404',
  component: _extrapages_page404_page404_component__WEBPACK_IMPORTED_MODULE_2__.Page404Component
}, {
  path: '**',
  redirectTo: '404'
}];
class AppRoutingModule {
  static #_ = this.ɵfac = function AppRoutingModule_Factory(t) {
    return new (t || AppRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineNgModule"]({
    type: AppRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule.forRoot(routes, {
      scrollPositionRestoration: 'top',
      //relativeLinkResolution: 'legacy',
      useHash: true,
      bindToComponentInputs: true
    }), _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsetNgModuleScope"](AppRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule]
  });
})();

/***/ }),

/***/ 66401:
/*!**********************************!*\
  !*** ./src/app/app.component.ts ***!
  \**********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AppComponent: () => (/* binding */ AppComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../environments/environment */ 20553);
/* harmony import */ var _layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./layouts/layouts.model */ 45660);
/* 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 _pages_dashboards_novedades_novedades_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pages/dashboards/novedades/novedades.component */ 12589);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-cookieconsent */ 27641);
/* harmony import */ var _core_services_stateful_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./core/services/stateful.service */ 689);
/* harmony import */ var _core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./core/services/configGeneral.service */ 99757);
/* harmony import */ var src_app_core_services_core_check_for_update_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/check-for-update.service */ 37475);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _shared_widget_tap_to_top_tap_to_top_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./shared/widget/tap-to-top/tap-to-top.component */ 1456);














class AppComponent {
  constructor(tourService, ccService, sf, configGral, checkForUpdateService, modalService) {
    this.tourService = tourService;
    this.ccService = ccService;
    this.sf = sf;
    this.configGral = configGral;
    this.checkForUpdateService = checkForUpdateService;
    this.modalService = modalService;
  }
  ngOnInit() {
    //SP SINWEB-135 control de variable de local storage
    const cookieResp = window.localStorage.getItem('cookieConsent');
    if (cookieResp == null) {
      this.ccService.open();
    }
    //SP SINWEB-135 se agregar observable para controlar el click de los botones rechazar , aceptar
    this.statusChangeSubscription = this.ccService.statusChange$.subscribe(event => {
      if (event.status == 'allow') {
        window.localStorage.setItem('cookieConsent', 'S');
        this.configGral._cookieConsent$.next(true);
      } else {
        window.localStorage.setItem('cookieConsent', 'N');
        this.sf.changeState(this.sf.pagenames.REC_EST, 'N');
        this.configGral._cookieConsent$.next(false);
      }
      this.ccService.close(true);
    });
    //SP SINWEB-135 se agregar observable para controlar el click del comp policy
    this.revokeChoiceSubscription = this.ccService.revokeChoice$.subscribe(() => {
      this.ccService.open();
    });
    // document.getElementsByTagName("html")[0].setAttribute("dir", "rtl");
    // MC SINWEB-161 Se mueve el cambio de tema a este componente en lugar del layout
    this.themeMode = this.sf.getState(this.sf.pagenames.DARK_MODE) === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO ? _layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_DARK : _layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_LIGHT;
    this.changeAppTheme(this.themeMode);
  }
  ngAfterViewInit() {
    const localVersion = localStorage.getItem('version');
    if (localVersion && localVersion !== _environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.version) {
      this.mostrarNovedades();
    }
    localStorage.setItem('version', _environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.version);
  }
  ngOnDestroy() {
    this.popupCloseSubscription.unsubscribe();
    this.statusChangeSubscription.unsubscribe();
    this.revokeChoiceSubscription.unsubscribe();
  }
  /**
   * MC SINWEB-338 Método que dado el modo, cambia el tema de la aplicación
   * @param mode Modo (dark o light)
   */
  changeAppTheme(mode) {
    // Cambio de PrimeNG
    let themeLink = document.getElementById('app-theme');
    if (themeLink) {
      themeLink.href = mode === _layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_DARK ? `${_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_DARK_PRIMENG}.css` : `${_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_LIGHT_PRIMENG}.css`;
    }
    // Cambio del template
    document.documentElement.setAttribute('data-bs-theme', mode);
    document.body.setAttribute('data-bs-theme', mode);
  }
  /**
   * MC SINWEB-792 Método que muestra un modal con novedades
   */
  mostrarNovedades() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return fetch('./assets/novedades/novedades.json').then(response => response.json()).then(novedades => {
        if (novedades && novedades.length > 0 && novedades.some(novedad => novedad.Mostrar)) {
          const novedadesAMostrar = novedades.filter(novedad => novedad.Mostrar);
          const modalRef = _this.modalService.open(_pages_dashboards_novedades_novedades_component__WEBPACK_IMPORTED_MODULE_4__.NovedadesComponent, {
            size: 'lg',
            centered: true
          });
          modalRef.componentInstance.novedades = novedadesAMostrar;
        }
      }).catch( /*#__PURE__*/function () {
        var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (error) {
          return console.log(error);
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
    })();
  }
  static #_ = this.ɵfac = function AppComponent_Factory(t) {
    return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.TourService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_11__.NgcCookieConsentService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_5__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_core_check_for_update_service__WEBPACK_IMPORTED_MODULE_7__.CheckForUpdateService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: AppComponent,
    selectors: [["app-root"]],
    decls: 2,
    vars: 0,
    template: function AppComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-tap-to-top")(1, "router-outlet");
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_13__.RouterOutlet, _shared_widget_tap_to_top_tap_to_top_component__WEBPACK_IMPORTED_MODULE_8__.TapToTopComponent]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AppModule: () => (/* binding */ AppModule),
/* harmony export */   createTranslateLoader: () => (/* binding */ createTranslateLoader),
/* harmony export */   parameterProviderFactoryConfig: () => (/* binding */ parameterProviderFactoryConfig)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/platform-browser */ 6593);
/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/platform-browser/animations */ 82931);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../environments/environment */ 20553);
/* harmony import */ var _core_interceptors_header_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/interceptors/header.service */ 53545);
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/services/config.service */ 56375);
/* harmony import */ var _core_services_recursos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./core/services/recursos.service */ 50657);
/* harmony import */ var _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shared/widget/widget.module */ 67040);
/* harmony import */ var _core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./core/services/configGeneral.service */ 99757);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ngx-cookieconsent */ 27641);
/* harmony import */ var ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ngx-slick-carousel */ 54236);
/* harmony import */ var ngx_bootstrap_tabs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ngx-bootstrap/tabs */ 612);
/* harmony import */ var ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ngx-bootstrap/tooltip */ 2268);
/* harmony import */ var ngx_bootstrap_accordion__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ngx-bootstrap/accordion */ 24390);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _nicky_lenaers_ngx_scroll_to__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @nicky-lenaers/ngx-scroll-to */ 20242);
/* harmony import */ var _extrapages_extrapages_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./extrapages/extrapages.module */ 53415);
/* harmony import */ var _layouts_layouts_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./layouts/layouts.module */ 55922);
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-routing.module */ 23966);
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app.component */ 66401);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var _ngx_translate_http_loader__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ngx-translate/http-loader */ 35061);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _core_interceptors_error_interceptor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./core/interceptors/error.interceptor */ 98085);
/* harmony import */ var _core_helpers_jwt_interceptor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./core/helpers/jwt.interceptor */ 45562);
/* harmony import */ var _core_helpers_fake_backend__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./core/helpers/fake-backend */ 43709);
/* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @angular/service-worker */ 70040);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./shared/shared.module */ 56208);
/* harmony import */ var ng2_dragula__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ng2-dragula */ 43256);
/* harmony import */ var _core_interceptors_loader_interceptor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./core/interceptors/loader.interceptor */ 9422);
/* harmony import */ var _layouts2_layouts2_module__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./layouts2/layouts2.module */ 72252);





//Agregados de LTS







// Swiper Slider

// bootstrap component





// Store
// Page Route






// Auth




















if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.defaultauth === 'firebase') {
  //initFirebaseBackend(environment.firebaseConfig);
} else {
  // tslint:disable-next-line: no-unused-expression
  _core_helpers_fake_backend__WEBPACK_IMPORTED_MODULE_13__.FakeBackendInterceptor;
}
function createTranslateLoader(http) {
  return new _ngx_translate_http_loader__WEBPACK_IMPORTED_MODULE_17__.TranslateHttpLoader(http, 'assets/i18n/', '.json');
}
function parameterProviderFactoryConfig(configService, recursosService, configGeneralService) {
  return /*#__PURE__*/(0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
    yield configService.cargarConfig();
    yield recursosService.cargarRecursos();
    if (localStorage.getItem('user') != undefined && localStorage.getItem('grant') != undefined) {
      configGeneralService.cargarConfig();
    }
  });
}
const cookieConfig = {
  cookie: {
    domain: ''
  },
  position: 'bottom',
  theme: 'classic',
  palette: {
    popup: {
      background: '#181818',
      text: '#0080c4',
      link: '#000'
    },
    button: {
      background: '#f9f8f2',
      text: '#000000',
      border: 'transparent'
    }
  },
  type: 'opt-out',
  content: {
    message: 'Este sitio web utiliza cookies para garantizar que obtenga la mejor experiencia.',
    dismiss: 'Got it!',
    deny: 'Rechazar',
    allow: 'Aceptar',
    link: '',
    href: '',
    policy: 'Cookies'
  }
};
class AppModule {
  static #_ = this.ɵfac = function AppModule_Factory(t) {
    return new (t || AppModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineNgModule"]({
    type: AppModule,
    bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_10__.AppComponent]
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineInjector"]({
    providers: [{
      provide: _angular_core__WEBPACK_IMPORTED_MODULE_18__.APP_INITIALIZER,
      useFactory: parameterProviderFactoryConfig,
      deps: [_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__.ConfigService, _core_services_recursos_service__WEBPACK_IMPORTED_MODULE_4__.RecursosService, _core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__.ConfigGeneralService],
      multi: true
    }, {
      provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HTTP_INTERCEPTORS,
      useClass: _core_helpers_jwt_interceptor__WEBPACK_IMPORTED_MODULE_12__.JwtInterceptor,
      multi: true
    }, {
      provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HTTP_INTERCEPTORS,
      useClass: _core_interceptors_header_service__WEBPACK_IMPORTED_MODULE_2__.HeaderService,
      multi: true
    }, {
      provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HTTP_INTERCEPTORS,
      useClass: _core_interceptors_error_interceptor__WEBPACK_IMPORTED_MODULE_11__.ErrorInterceptor,
      multi: true
    },
    //SP SINWEB-446 se agrega el interceptor de loader
    {
      provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HTTP_INTERCEPTORS,
      useClass: _core_interceptors_loader_interceptor__WEBPACK_IMPORTED_MODULE_15__.LoaderInterceptor,
      multi: true
    }],
    imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_20__.BrowserModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_21__.BrowserAnimationsModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HttpClientModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_22__.TranslateModule.forRoot({
      loader: {
        provide: _ngx_translate_core__WEBPACK_IMPORTED_MODULE_22__.TranslateLoader,
        useFactory: createTranslateLoader,
        deps: [_angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HttpClient]
      }
    }), _layouts_layouts_module__WEBPACK_IMPORTED_MODULE_8__.LayoutsModule, _layouts2_layouts2_module__WEBPACK_IMPORTED_MODULE_16__.Layouts2Module, _app_routing_module__WEBPACK_IMPORTED_MODULE_9__.AppRoutingModule, _extrapages_extrapages_module__WEBPACK_IMPORTED_MODULE_7__.ExtrapagesModule, ngx_bootstrap_accordion__WEBPACK_IMPORTED_MODULE_23__.AccordionModule.forRoot(), ngx_bootstrap_tabs__WEBPACK_IMPORTED_MODULE_24__.TabsModule.forRoot(), ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_25__.TooltipModule.forRoot(), _shared_shared_module__WEBPACK_IMPORTED_MODULE_14__.SharedModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbTooltipModule, _nicky_lenaers_ngx_scroll_to__WEBPACK_IMPORTED_MODULE_27__.ScrollToModule.forRoot(), _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_28__.SlickCarouselModule, ngx_toastr__WEBPACK_IMPORTED_MODULE_29__.ToastrModule.forRoot({
      preventDuplicates: true
    }), _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_5__.WidgetModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_30__.TourNgBootstrapModule, ng2_dragula__WEBPACK_IMPORTED_MODULE_31__.DragulaModule.forRoot(), ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_32__.NgcCookieConsentModule.forRoot(cookieConfig), _angular_service_worker__WEBPACK_IMPORTED_MODULE_33__.ServiceWorkerModule.register('ngsw-worker.js', {
      // enabled: !isDevMode(),
      enabled: _environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.production,
      // Register the ServiceWorker as soon as the application is stable
      // or after 30 seconds (whichever comes first).
      registrationStrategy: 'registerWhenStable:30000'
    })]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵsetNgModuleScope"](AppModule, {
    declarations: [_app_component__WEBPACK_IMPORTED_MODULE_10__.AppComponent],
    imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_20__.BrowserModule, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_21__.BrowserAnimationsModule, _angular_common_http__WEBPACK_IMPORTED_MODULE_19__.HttpClientModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_22__.TranslateModule, _layouts_layouts_module__WEBPACK_IMPORTED_MODULE_8__.LayoutsModule, _layouts2_layouts2_module__WEBPACK_IMPORTED_MODULE_16__.Layouts2Module, _app_routing_module__WEBPACK_IMPORTED_MODULE_9__.AppRoutingModule, _extrapages_extrapages_module__WEBPACK_IMPORTED_MODULE_7__.ExtrapagesModule, ngx_bootstrap_accordion__WEBPACK_IMPORTED_MODULE_23__.AccordionModule, ngx_bootstrap_tabs__WEBPACK_IMPORTED_MODULE_24__.TabsModule, ngx_bootstrap_tooltip__WEBPACK_IMPORTED_MODULE_25__.TooltipModule, _shared_shared_module__WEBPACK_IMPORTED_MODULE_14__.SharedModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbTooltipModule, _nicky_lenaers_ngx_scroll_to__WEBPACK_IMPORTED_MODULE_27__.ScrollToModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_26__.NgbModule, ngx_slick_carousel__WEBPACK_IMPORTED_MODULE_28__.SlickCarouselModule, ngx_toastr__WEBPACK_IMPORTED_MODULE_29__.ToastrModule, _shared_widget_widget_module__WEBPACK_IMPORTED_MODULE_5__.WidgetModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_30__.TourNgBootstrapModule, ng2_dragula__WEBPACK_IMPORTED_MODULE_31__.DragulaModule, ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_32__.NgcCookieConsentModule, _angular_service_worker__WEBPACK_IMPORTED_MODULE_33__.ServiceWorkerModule]
  });
})();

/***/ }),

/***/ 81:
/*!******************************!*\
  !*** ./src/app/authUtils.ts ***!
  \******************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   getFirebaseBackend: () => (/* binding */ getFirebaseBackend),
/* harmony export */   initFirebaseBackend: () => (/* binding */ initFirebaseBackend)
/* harmony export */ });
/* harmony import */ var firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! firebase/compat/app */ 17142);
/* harmony import */ var firebase_compat_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! firebase/compat/auth */ 63901);
/* harmony import */ var firebase_compat_firestore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! firebase/compat/firestore */ 60846);



class FirebaseAuthBackend {
  constructor(firebaseConfig) {
    /**
     * Registers the user with given details
     */
    this.registerUser = (email, password) => {
      return new Promise((resolve, reject) => {
        firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().createUserWithEmailAndPassword(email, password).then(user => {
          var user = firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().currentUser;
          resolve(user);
        }, error => {
          reject(this._handleError(error));
        });
      });
    };
    /**
     * Login user with given details
     */
    this.loginUser = (email, password) => {
      return new Promise((resolve, reject) => {
        firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().signInWithEmailAndPassword(email, password).then(user => {
          // eslint-disable-next-line no-redeclare
          var user = firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().currentUser;
          resolve(user);
        }, error => {
          reject(this._handleError(error));
        });
      });
    };
    /**
     * forget Password user with given details
     */
    this.forgetPassword = email => {
      return new Promise((resolve, reject) => {
        // tslint:disable-next-line: max-line-length
        firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().sendPasswordResetEmail(email, {
          url: window.location.protocol + '//' + window.location.host + '/login'
        }).then(() => {
          resolve(true);
        }).catch(error => {
          reject(this._handleError(error));
        });
      });
    };
    /**
     * Logout the user
     */
    this.logout = () => {
      return new Promise((resolve, reject) => {
        firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().signOut().then(() => {
          resolve(true);
        }).catch(error => {
          reject(this._handleError(error));
        });
      });
    };
    this.setLoggeedInUser = user => {
      sessionStorage.setItem('authUser', JSON.stringify(user));
    };
    /**
     * Returns the authenticated user
     */
    this.getAuthenticatedUser = () => {
      if (!sessionStorage.getItem('authUser')) {
        return null;
      }
      return JSON.parse(sessionStorage.getItem('authUser'));
    };
    if (firebaseConfig) {
      // Initialize Firebase
      firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].initializeApp(firebaseConfig);
      firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__["default"].auth().onAuthStateChanged(user => {
        if (user) {
          sessionStorage.setItem('authUser', JSON.stringify(user));
        } else {
          sessionStorage.removeItem('authUser');
        }
      });
    }
  }
  /**
   * Handle the error
   * @param {*} error
   */
  _handleError(error) {
    // tslint:disable-next-line: prefer-const
    var errorMessage = error.message;
    return errorMessage;
  }
}
// tslint:disable-next-line: variable-name
let _fireBaseBackend = null;
/**
 * Initilize the backend
 * @param {*} config
 */
const initFirebaseBackend = config => {
  if (!_fireBaseBackend) {
    _fireBaseBackend = new FirebaseAuthBackend(config);
  }
  return _fireBaseBackend;
};
/**
 * Returns the firebase backend
 */
const getFirebaseBackend = () => {
  return _fireBaseBackend;
};


/***/ }),

/***/ 68082:
/*!*********************************************!*\
  !*** ./src/app/core/animaciones/fadeOut.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   triggerFadeOut: () => (/* binding */ triggerFadeOut)
/* harmony export */ });
/* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/animations */ 86825);

// MC SINWEB-232 Trigger para animación de fade
const triggerFadeOut = (0,_angular_animations__WEBPACK_IMPORTED_MODULE_0__.trigger)('fadeOut', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_0__.transition)(':leave', [(0,_angular_animations__WEBPACK_IMPORTED_MODULE_0__.style)({
  opacity: 1
}), (0,_angular_animations__WEBPACK_IMPORTED_MODULE_0__.animate)('200ms ease-in', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_0__.style)({
  opacity: 0
}))])]);

/***/ }),

/***/ 5767:
/*!*****************************************!*\
  !*** ./src/app/core/context/context.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CONTEXT: () => (/* binding */ CONTEXT),
/* harmony export */   checkContextAndCreate: () => (/* binding */ checkContextAndCreate)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ 69862);

const CONTEXT = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__.HttpContextToken(() => {
  return {
    NO_SEND_HEADER: false,
    REQUIRE_LOADER: false,
    IGNORE_ERROR: false,
    NO_VERIFICAR_PERMISOS: false
  };
});
function checkContextAndCreate(context) {
  let contextObj = {};
  let contextoToSend;
  if (context?.header !== undefined && context?.header === true) {
    Object.assign(contextObj, {
      NO_SEND_HEADER: true
    });
  }
  if (context?.error !== undefined && context?.error === true) {
    Object.assign(contextObj, {
      IGNORE_ERROR: true
    });
  }
  if (context?.permisos !== undefined && context?.permisos === false) {
    Object.assign(contextObj, {
      NO_VERIFICAR_PERMISOS: true
    });
  }
  //SP SINWEB-446 se agrega el contexto de loading
  if (context?.loading !== undefined && context?.loading === true) {
    Object.assign(contextObj, {
      REQUIRE_LOADER: true
    });
  }
  if (Object.keys(contextObj).length > 0) {
    contextoToSend = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__.HttpContext().set(CONTEXT, contextObj);
  }
  return contextoToSend;
}

/***/ }),

/***/ 48081:
/*!*************************************!*\
  !*** ./src/app/core/core.module.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CoreModule: () => (/* binding */ CoreModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var src_app_core_directives_scrollTracker_directive__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/directives/scrollTracker.directive */ 51559);
/* harmony import */ var _directives_trim_input_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./directives/trim-input.directive */ 32936);
/* harmony import */ var _directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./directives/format-codigo-input.directive */ 48508);
/* harmony import */ var _directives_number_input_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./directives/number-input.directive */ 72352);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);







class CoreModule {
  static #_ = this.ɵfac = function CoreModule_Factory(t) {
    return new (t || CoreModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
    type: CoreModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](CoreModule, {
    declarations: [_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_0__.CampoObligatorioDirective, src_app_core_directives_scrollTracker_directive__WEBPACK_IMPORTED_MODULE_1__.ScrollTrackerDirective, _directives_trim_input_directive__WEBPACK_IMPORTED_MODULE_2__.TrimInputDirective, _directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_3__.FormatCodigoInputDirective, _directives_number_input_directive__WEBPACK_IMPORTED_MODULE_4__.NumberInputDirective],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule],
    exports: [_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_0__.CampoObligatorioDirective, src_app_core_directives_scrollTracker_directive__WEBPACK_IMPORTED_MODULE_1__.ScrollTrackerDirective, _directives_trim_input_directive__WEBPACK_IMPORTED_MODULE_2__.TrimInputDirective, _directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_3__.FormatCodigoInputDirective, _directives_number_input_directive__WEBPACK_IMPORTED_MODULE_4__.NumberInputDirective]
  });
})();

/***/ }),

/***/ 61528:
/*!****************************************************************!*\
  !*** ./src/app/core/directives/campo-obligatorio.directive.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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

/**
 * MC SINWEB-172 - Directiva que se agrega al label de un campo para indicar que es obligatorio
 */
class CampoObligatorioDirective {
  constructor(elementRef) {
    this.elementRef = elementRef;
  }
  ngOnInit() {
    this.elementRef.nativeElement.innerHTML += ' *';
  }
  static #_ = this.ɵfac = function CampoObligatorioDirective_Factory(t) {
    return new (t || CampoObligatorioDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
  };
  static #_2 = this.ɵdir = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
    type: CampoObligatorioDirective,
    selectors: [["", "campoObligatorio", ""]]
  });
}

/***/ }),

/***/ 48508:
/*!******************************************************************!*\
  !*** ./src/app/core/directives/format-codigo-input.directive.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FormatCodigoInputDirective: () => (/* binding */ FormatCodigoInputDirective)
/* harmony export */ });
/* harmony import */ var _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/constantes/constantes-gen */ 14719);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _services_configGeneral_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/configGeneral.service */ 99757);



class FormatCodigoInputDirective {
  constructor(elementRef, configGral) {
    this.elementRef = elementRef;
    this.configGral = configGral;
    this.el = this.elementRef.nativeElement;
  }
  onBlurOrPaste() {
    // Aplicar formato al perder el foco o al pegar
    //checkear que el valor no sea el null , undefined o el mismo valor
    if (this.el.value === null || this.el.value === undefined || this.el.value === this.el.defaultValue) {
      return;
    }
    this.applyFormat();
  }
  onKeydown($event) {
    //EVENT TAB o ENTER
    if ($event.key === 'Tab' || $event.key === 'Enter') {
      this.applyFormat();
      return;
    }
    //EVENTO RETROCESO (BACKSPACE) - no formatear
    if ($event.key === 'Backspace' || $event.key === 'Delete') {
      return;
    }
  }
  applyFormat() {
    let val = this.el.value;
    let configLongCodArt = this.configGral._config.LongitudCodArt || '';
    let configFormatCodArt = this.configGral._config.IdFormatoCodArt || '';
    // No formatear si el campo está vacío o solo tiene espacios
    if (val.trim() === '') {
      return;
    }
    if (configLongCodArt !== '' && configFormatCodArt !== '') {
      if (configFormatCodArt === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.FORMATO_COD_ART.SOLO_DIGITOS) {
        if (/^\d+$/.test(val)) {
          // Solo números
          if (val.length < configLongCodArt.length) {
            val = val.padStart(configLongCodArt.length, '0');
          }
        }
      }
      if (val !== this.el.value) {
        this.el.value = val;
        // Disparar eventos para que Angular detecte el cambio
        this.el.dispatchEvent(new Event('input', {
          bubbles: true
        }));
        this.el.dispatchEvent(new Event('change', {
          bubbles: true
        }));
      }
    }
  }
  static #_ = this.ɵfac = function FormatCodigoInputDirective_Factory(t) {
    return new (t || FormatCodigoInputDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_1__.ConfigGeneralService));
  };
  static #_2 = this.ɵdir = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
    type: FormatCodigoInputDirective,
    selectors: [["", "formatCodigoInput", ""]],
    hostBindings: function FormatCodigoInputDirective_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("blur", function FormatCodigoInputDirective_blur_HostBindingHandler() {
          return ctx.onBlurOrPaste();
        })("paste", function FormatCodigoInputDirective_paste_HostBindingHandler() {
          return ctx.onBlurOrPaste();
        })("keydown", function FormatCodigoInputDirective_keydown_HostBindingHandler($event) {
          return ctx.onKeydown($event);
        });
      }
    },
    exportAs: ["formatCodigoInput"]
  });
}

/***/ }),

/***/ 72352:
/*!***********************************************************!*\
  !*** ./src/app/core/directives/number-input.directive.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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

class NumberInputDirective {
  constructor(el) {
    this.el = el;
    this.allowDecimals = true;
    this.isEscaping = false; // Flag para detectar cuando se presiona Escape
  }
  /** Bloquea teclas no válidas */
  onKeyDown(event) {
    const input = this.el.nativeElement;
    const allowedKeys = ['Backspace', 'Tab', 'ArrowLeft', 'ArrowRight', 'Delete', 'Home', 'End'];
    // Manejar Escape - NO formatear, permitir comportamiento por defecto
    if (event.key === 'Escape') {
      this.isEscaping = true;
      // Permitir que Escape funcione normalmente (cancelar edición)
      return;
    }
    // Manejar Enter - aplicar la misma lógica que onBlur
    if (event.key === 'Enter') {
      this.formatAndValidate();
      return;
    }
    // Permitir navegación, atajos Ctrl/Cmd (copiar/pegar/seleccionar...), y teclas funcionales
    if (allowedKeys.includes(event.key) || event.ctrlKey || event.metaKey) {
      return;
    }
    // Manejo del separador decimal
    const decimalsAllowedNow = this.allowDecimals && (this.decimalPlaces == null || this.decimalPlaces > 0);
    if (event.key === '.' || event.key === ',') {
      if (!decimalsAllowedNow) {
        // No se permiten decimales
        event.preventDefault();
        return;
      }
      // Permitir un único separador decimal (punto o coma)
      if (input.value.includes('.') || input.value.includes(',')) {
        event.preventDefault();
      }
      return;
    }
    // Permitir signo negativo sólo si se permite min < 0, en posición inicial y si no existe ya
    if (event.key === '-') {
      const allowsNegative = this.min != null && this.min < 0;
      const start = input.selectionStart ?? 0;
      const end = input.selectionEnd ?? 0;
      if (!allowsNegative || input.value.includes('-') || start !== 0 || start !== end && start !== 0) {
        event.preventDefault();
      }
      return;
    }
    if (/^\d$/.test(event.key)) {
      // Si hay punto y hay límite de decimales, evitar ingresar más de los permitidos
      const dotPos = Math.max(input.value.indexOf('.'), input.value.indexOf(','));
      if (dotPos !== -1 && this.allowDecimals && this.decimalPlaces != null && this.decimalPlaces >= 0) {
        const start = input.selectionStart ?? 0;
        const end = input.selectionEnd ?? 0;
        const fractionLen = input.value.length - dotPos - 1;
        // Determinar cuántos caracteres fraccionarios se van a reemplazar por la selección (si la selección incluye parte de la fracción)
        let replacedFraction = 0;
        if (end > dotPos) {
          const replaceStart = Math.max(start, dotPos + 1);
          const replaceEnd = Math.min(end, input.value.length);
          replacedFraction = Math.max(0, replaceEnd - replaceStart);
        }
        // Si el caret está dentro de la parte fraccionaria y ya se alcanzó el límite (teniendo en cuenta la selección), bloquear
        if (start > dotPos && fractionLen - replacedFraction >= this.decimalPlaces) {
          event.preventDefault();
        }
      }
      return;
    }
    // Permitir dígitos
    // if (/^\d$/.test(event.key)) {
    //   return;
    // }
    // Bloquear exponentes, signos, letras, etc.
    event.preventDefault();
  }
  /** Procesa el input para reemplazar coma, limitar decimales, etc. */
  onInput(event) {
    // Si se está escapando, no procesar el input
    if (this.isEscaping) {
      this.isEscaping = false;
      return;
    }
    const input = this.el.nativeElement;
    let raw = input.value;
    // Normaliza coma a punto
    raw = raw.replace(/,/g, '.');
    // Manejo de casos como "." => "0.", "-." => "-0."
    if (raw === '.') raw = '0.';
    if (raw === '-.') raw = '-0.';
    if (raw.startsWith('.')) raw = '0' + raw;
    if (raw.startsWith('-.')) raw = '-0' + raw.slice(1);
    // // Construir regex según si se permiten decimales o no
    // const regex = this.allowDecimals
    //   ? new RegExp(`^(-?\\d*)(\\.\\d*)?`)
    //   : new RegExp(`^(-?\\d*)`);
    // const match = raw.match(regex);
    // let value = match ? match[0] : '';
    // Construir regex según si se permiten decimales o no y si hay límite de decimales
    let regex;
    if (!this.allowDecimals || this.decimalPlaces === 0) {
      regex = new RegExp(`^(-?\\d*)`);
    } else if (this.decimalPlaces == null) {
      // decimales permitidos e ilimitados
      regex = new RegExp(`^(-?\\d*)(\\.\\d*)?`);
    } else {
      // decimales permitidos con límite
      regex = new RegExp(`^(-?\\d*)(\\.\\d{0,${this.decimalPlaces}})?`);
    }
    const match = raw.match(regex);
    let value = match ? match[0] : '';
    // Si es un valor numérico "completo" (no termina en '.' ni es solo '-') intentamos aplicar min/max
    const originalEndsWithDot = /\.?$/.test(raw) && raw.endsWith('.');
    if (value !== '' && value !== '-' && !originalEndsWithDot) {
      const num = parseFloat(value);
      if (!isNaN(num)) {
        if (this.min != null && num < this.min) {
          value = String(this.min);
        } else if (this.max != null && num > this.max) {
          value = String(this.max);
        }
      }
    }
    if (input.value !== value) {
      input.value = value;
      // Notificar a Angular/forms
      input.dispatchEvent(new Event('input'));
    }
  }
  /** Al perder el foco, asegurar formato final y aplicar clamp definitivo */
  onBlur() {
    if (this.isEscaping) {
      this.isEscaping = false;
      return;
    }
    this.formatAndValidate();
  }
  // Reset del flag cuando se hace focus (por si acaso)
  onFocus() {
    this.isEscaping = false;
  }
  // Extraer la lógica común a un método separado
  formatAndValidate() {
    const input = this.el.nativeElement;
    let value = input.value;
    if (!value || value === '-') {
      // vacío o solo '-' -> setear a 0
      input.value = '';
      input.dispatchEvent(new Event('input'));
      return;
    }
    // Normalizar coma a punto y parsear
    value = value.replace(/,/g, '.');
    const num = parseFloat(value);
    if (isNaN(num)) {
      input.value = '';
      input.dispatchEvent(new Event('input'));
      return;
    }
    let clamped = num;
    if (this.min != null && clamped < this.min) clamped = this.min;
    if (this.max != null && clamped > this.max) clamped = this.max;
    // Formateo final:
    // - Si no se permiten decimales, truncar a entero
    // - Si se permiten decimales, usar la representación normal de JS (elimina ceros finales innecesarios)
    const formatted = this.allowDecimals ? String(num) : String(Math.trunc(num));
    if (input.value !== formatted) {
      input.value = formatted;
      input.dispatchEvent(new Event('input'));
    }
  }
  static #_ = this.ɵfac = function NumberInputDirective_Factory(t) {
    return new (t || NumberInputDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
  };
  static #_2 = this.ɵdir = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
    type: NumberInputDirective,
    selectors: [["", "numberInput", ""]],
    hostBindings: function NumberInputDirective_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown", function NumberInputDirective_keydown_HostBindingHandler($event) {
          return ctx.onKeyDown($event);
        })("input", function NumberInputDirective_input_HostBindingHandler($event) {
          return ctx.onInput($event);
        })("blur", function NumberInputDirective_blur_HostBindingHandler() {
          return ctx.onBlur();
        })("focus", function NumberInputDirective_focus_HostBindingHandler() {
          return ctx.onFocus();
        });
      }
    },
    inputs: {
      allowDecimals: "allowDecimals",
      decimalPlaces: "decimalPlaces",
      min: "min",
      max: "max"
    }
  });
}

/***/ }),

/***/ 51559:
/*!************************************************************!*\
  !*** ./src/app/core/directives/scrollTracker.directive.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


class ScrollTrackerDirective {
  onScroll(event) {
    let tracker = event.target;
    let limit = tracker.scrollHeight - tracker.clientHeight;
    if (event.target.scrollTop >= limit) {
      this.customSubmit.emit();
    }
  }
  constructor() {
    this.customSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  static #_ = this.ɵfac = function ScrollTrackerDirective_Factory(t) {
    return new (t || ScrollTrackerDirective)();
  };
  static #_2 = this.ɵdir = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
    type: ScrollTrackerDirective,
    selectors: [["", "scrollTracker", ""]],
    hostBindings: function ScrollTrackerDirective_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("scroll", function ScrollTrackerDirective_scroll_HostBindingHandler($event) {
          return ctx.onScroll($event);
        });
      }
    },
    outputs: {
      customSubmit: "callAction"
    }
  });
}

/***/ }),

/***/ 32936:
/*!*********************************************************!*\
  !*** ./src/app/core/directives/trim-input.directive.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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

class TrimInputDirective {
  constructor(el) {
    this.el = el;
  }
  onBlur() {
    this.el.nativeElement.value = this.el.nativeElement.value.trim();
  }
  onInput() {
    const startTrimmed = this.el.nativeElement.value.replace(/^\s+/, '');
    if (this.el.nativeElement.value !== startTrimmed) {
      this.el.nativeElement.value = startTrimmed;
    }
  }
  onEnter(event) {
    this.trimValue();
  }
  trimValue() {
    this.el.nativeElement.value = this.el.nativeElement.value.trim();
  }
  static #_ = this.ɵfac = function TrimInputDirective_Factory(t) {
    return new (t || TrimInputDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef));
  };
  static #_2 = this.ɵdir = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
    type: TrimInputDirective,
    selectors: [["", "trimInput", ""]],
    hostBindings: function TrimInputDirective_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("blur", function TrimInputDirective_blur_HostBindingHandler() {
          return ctx.onBlur();
        })("input", function TrimInputDirective_input_HostBindingHandler() {
          return ctx.onInput();
        })("keydown.enter", function TrimInputDirective_keydown_enter_HostBindingHandler($event) {
          return ctx.onEnter($event);
        });
      }
    }
  });
}

/***/ }),

/***/ 51651:
/*!**************************************************!*\
  !*** ./src/app/core/guards/RouteConfig.guard.ts ***!
  \**************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RouteConfigGuard: () => (/* binding */ RouteConfigGuard)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/config.service */ 56375);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);





class RouteConfigGuard {
  constructor(router, config, authenticationService) {
    this.router = router;
    this.config = config;
    this.authenticationService = authenticationService;
  }
  canActivateChild(childRoute, state) {
    return this.canActivate(childRoute, state);
  }
  canActivate(route, state) {
    if (state.url === '/login/login-2') {
      return true;
    }
    if (state.url === '/login/lock-screen') {
      return true;
    }
    if (state.url === '/external') {
      return true;
    }
    //SP SINWEB-328 verifica si el usuario tiene acceso al modulo estadistica
    if (route.routeConfig.path == 'estadistica' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_ESTADISTICA)) {
      return true;
    }
    if (route.routeConfig.path == 'produccion' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PRODUCCION)) {
      return true;
    }
    if (route.routeConfig.path == 'autorizacion' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_AUTORIZACION)) {
      return true;
    }
    if (route.routeConfig.path == 'rma' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_RMA)) {
      return true;
    }
    if (route.routeConfig.path == 'web' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_WEB)) {
      return true;
    }
    if (route.routeConfig.path == 'servicios' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_SERVICIOS)) {
      return true;
    }
    if (route.routeConfig.path == 'notificaciones' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_NOTIFICACIONES)) {
      return true;
    }
    if (route.routeConfig.path == 'plataformas' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_PLATAFORMAS)) {
      return true;
    }
    //SP SINWEB-257
    if (route.routeConfig.path == 'desarrollo' && this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.MENU_ID_MODULO_DESARROLLO)) {
      return true;
    }
    return false;
  }
  static #_ = this.ɵfac = function RouteConfigGuard_Factory(t) {
    return new (t || RouteConfigGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_services_config_service__WEBPACK_IMPORTED_MODULE_1__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
    token: RouteConfigGuard,
    factory: RouteConfigGuard.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 8036:
/*!*******************************************!*\
  !*** ./src/app/core/guards/auth.guard.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthGuard: () => (/* binding */ AuthGuard)
/* harmony export */ });
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../environments/environment */ 20553);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/auth.service */ 90304);
/* harmony import */ var _services_authfake_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/authfake.service */ 39634);
/* harmony import */ var src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/socket-connection.service */ 46295);






class AuthGuard {
  constructor(router, authService, authFackservice, socketConn) {
    this.router = router;
    this.authService = authService;
    this.authFackservice = authFackservice;
    this.socketConn = socketConn;
  }
  canActivate(route, state) {
    if (_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.defaultauth === 'API') {
      if (Object.keys(route.data).length === 0) {
        return this.checkLogin();
      } else {
        return this.checkPermiso(route.data.permiso);
      }
    }
  }
  checkLogin() {
    const currentUser = this.authService.usuario;
    if (currentUser.IdUsrUsuario == undefined) {
      // this.router.navigate(['/login/login-2'], { queryParams: { } });
      // MC SINWEB-154 Cambio para que se desconecte del socket
      this.socketConn.desconectarConnection();
      this.authService.logout();
      return false;
    } else {
      if (currentUser.Token == undefined) {
        // this.router.navigate(['/login/lock-screen'], { queryParams: { } });
        // MC SINWEB-154 Cambio para que se desconecte del socket
        this.socketConn.desconectarConnection();
        this.authService.lockout();
        return false;
      } else {
        //PM SINWEB-54
        // if (!this.socketConn.isConnected()){
        //     this.socketConn.InicializarConnection();
        //   }
        return true;
      }
    }
  }
  checkPermiso(permiso) {
    if (this.authService.hasPermiso(permiso)) {
      return true;
    } else {
      this.router.navigate(['/'], {
        state: {
          skipExitConfirmation: true
        },
        queryParams: {}
      });
      return false;
    }
  }
  static #_ = this.ɵfac = function AuthGuard_Factory(t) {
    return new (t || AuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_services_authfake_service__WEBPACK_IMPORTED_MODULE_2__.AuthfakeauthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_3__.SocketConnectionService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: AuthGuard,
    factory: AuthGuard.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 95180:
/*!******************************************************!*\
  !*** ./src/app/core/guards/pending-changes.guard.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


/**
 * SP SAD-376 Guard para consultar al salir de una página con cambios pendientes
 */
class PendingChangesGuard {
  constructor(router) {
    this.router = router;
  }
  canDeactivate(component) {
    // Si la navegación programática tiene la flag, permitir sin preguntar
    const nav = this.router.getCurrentNavigation();
    if (nav?.extras?.state?.skipExitConfirmation) {
      return true;
    }
    // Caso normal: delegar al componente
    return component.canExit ? component.canExit() : true;
  }
  static #_ = this.ɵfac = function PendingChangesGuard_Factory(t) {
    return new (t || PendingChangesGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_1__.Router));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
    token: PendingChangesGuard,
    factory: PendingChangesGuard.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 43709:
/*!**********************************************!*\
  !*** ./src/app/core/helpers/fake-backend.ts ***!
  \**********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FakeBackendInterceptor: () => (/* binding */ FakeBackendInterceptor)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 58504);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ 9769);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 48857);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 37547);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 58906);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);




class FakeBackendInterceptor {
  constructor() {}
  intercept(request, next) {
    // array in local storage for registered users
    // tslint:disable-next-line: max-line-length
    const users = JSON.parse(localStorage.getItem('users')) || [{
      username: 'admin',
      email: 'admin@themesbrand.com',
      password: '123456'
    }];
    // wrap in delayed observable to simulate server api call
    return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(null).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.mergeMap)(() => {
      // authenticate
      if (request.url.endsWith('/users/authenticate') && request.method === 'POST') {
        const filteredUsers = users.filter(user => {
          return user.email === request.body.email && user.password === request.body.password;
        });
        if (filteredUsers.length) {
          // if login details are valid return 200 OK with user details and fake jwt token
          const user = filteredUsers[0];
          const body = {
            id: user.id,
            email: user.email,
            username: user.username,
            firstName: user.firstName,
            lastName: user.lastName,
            token: 'fake-jwt-token'
          };
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpResponse({
            status: 200,
            body
          }));
        } else {
          // else return 400 bad request
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.throwError)({
            error: {
              message: 'Username or password is incorrect'
            }
          });
        }
      }
      // get users
      if (request.url.endsWith('/users') && request.method === 'GET') {
        // tslint:disable-next-line: max-line-length
        // check for fake auth token in header and return users if valid, this security is implemented server side in a real application
        if (request.headers.get('Authorization') === 'Bearer fake-jwt-token') {
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpResponse({
            status: 200,
            body: users
          }));
        } else {
          // return 401 not authorised if token is null or invalid
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.throwError)({
            status: 401,
            error: {
              message: 'Unauthorised'
            }
          });
        }
      }
      // get user by id
      if (request.url.match(/\/users\/\d+$/) && request.method === 'GET') {
        // tslint:disable-next-line: max-line-length
        // check for fake auth token in header and return user if valid, this security is implemented server side in a real application
        if (request.headers.get('Authorization') === 'Bearer fake-jwt-token') {
          // find user by id in users array
          const urlParts = request.url.split('/');
          // tslint:disable-next-line: radix
          const id = parseInt(urlParts[urlParts.length - 1]);
          // tslint:disable-next-line: no-shadowed-variable
          const matchedUsers = users.filter(user => user.id === id);
          const user = matchedUsers.length ? matchedUsers[0] : null;
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpResponse({
            status: 200,
            body: user
          }));
        } else {
          // return 401 not authorised if token is null or invalid
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.throwError)({
            status: 401,
            error: {
              message: 'Unauthorised'
            }
          });
        }
      }
      // register user
      if (request.url.endsWith('/users/register') && request.method === 'POST') {
        // get new user object from post body
        const newUser = request.body;
        // validation
        const duplicateUser = users.filter(user => user.username === newUser.username).length;
        if (duplicateUser) {
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.throwError)({
            error: {
              message: 'Username "' + newUser.username + '" is already taken'
            }
          });
        }
        // save new user
        newUser.id = users.length + 1;
        users.push(newUser);
        localStorage.setItem('users', JSON.stringify(users));
        // respond 200 OK
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpResponse({
          status: 200
        }));
      }
      // delete user
      if (request.url.match(/\/users\/\d+$/) && request.method === 'DELETE') {
        // tslint:disable-next-line: max-line-length
        // check for fake auth token in header and return user if valid, this security is implemented server side in a real application
        if (request.headers.get('Authorization') === 'Bearer fake-jwt-token') {
          // find user by id in users array
          const urlParts = request.url.split('/');
          // tslint:disable-next-line: radix
          const id = parseInt(urlParts[urlParts.length - 1]);
          for (let i = 0; i < users.length; i++) {
            const user = users[i];
            if (user.id === id) {
              // delete user
              users.splice(i, 1);
              localStorage.setItem('users', JSON.stringify(users));
              break;
            }
          }
          // respond 200 OK
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_0__.of)(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.HttpResponse({
            status: 200
          }));
        } else {
          // return 401 not authorised if token is null or invalid
          return (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.throwError)({
            status: 401,
            error: {
              message: 'Unauthorised'
            }
          });
        }
      }
      // pass through any requests not handled above
      return next.handle(request);
    }))
    // tslint:disable-next-line: max-line-length
    // call materialize and dematerialize to ensure delay even if an error is thrown (https://github.com/Reactive-Extensions/RxJS/issues/648)
    .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.materialize)()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.delay)(500)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.dematerialize)());
  }
  static #_ = this.ɵfac = function FakeBackendInterceptor_Factory(t) {
    return new (t || FakeBackendInterceptor)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjectable"]({
    token: FakeBackendInterceptor,
    factory: FakeBackendInterceptor.ɵfac
  });
}

/***/ }),

/***/ 45562:
/*!*************************************************!*\
  !*** ./src/app/core/helpers/jwt.interceptor.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   JwtInterceptor: () => (/* binding */ JwtInterceptor)
/* harmony export */ });
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../environments/environment */ 20553);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/auth.service */ 90304);
/* harmony import */ var _services_authfake_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/authfake.service */ 39634);




class JwtInterceptor {
  constructor(authenticationService, authfackservice) {
    this.authenticationService = authenticationService;
    this.authfackservice = authfackservice;
  }
  intercept(request, next) {
    if (_environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.defaultauth === 'API') {
      const currentUser = this.authenticationService.usuario;
      if (currentUser && currentUser.Token) {
        request = request.clone({
          setHeaders: {
            Authorization: `Bearer ${currentUser.Token}`
          }
        });
      }
    } else {
      const currentUser = this.authfackservice.currentUserValue;
      if (currentUser && currentUser.Token) {
        request = request.clone({
          setHeaders: {
            Authorization: `Bearer ${currentUser.Token}`
          }
        });
      }
    }
    return next.handle(request);
  }
  static #_ = this.ɵfac = function JwtInterceptor_Factory(t) {
    return new (t || JwtInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_services_authfake_service__WEBPACK_IMPORTED_MODULE_2__.AuthfakeauthenticationService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
    token: JwtInterceptor,
    factory: JwtInterceptor.ɵfac
  });
}

/***/ }),

/***/ 98085:
/*!********************************************************!*\
  !*** ./src/app/core/interceptors/error.interceptor.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ErrorInterceptor: () => (/* binding */ ErrorInterceptor),
/* harmony export */   IGNORE_ERROR: () => (/* binding */ IGNORE_ERROR)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 58504);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 26306);
/* harmony import */ var _errorMetodos__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./errorMetodos */ 28507);
/* harmony import */ var _context_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/auth.service */ 90304);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/config.service */ 56375);









const IGNORE_ERROR = new _angular_common_http__WEBPACK_IMPORTED_MODULE_4__.HttpContextToken(() => false);
class ErrorInterceptor {
  constructor(authenticationService, toast, configService) {
    this.authenticationService = authenticationService;
    this.toast = toast;
    this.configService = configService;
    this.ERROR_CORE = '/undefined/v2/ConfGral?';
    const styleTag = document.createElement('style');
    styleTag.innerHTML = '.custom-toast { white-space: pre-wrap; }';
    document.head.appendChild(styleTag);
  }
  intercept(request, next) {
    //if (request.context.get(IGNORE_ERROR) === true) {
    if (request.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).IGNORE_ERROR && request.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).IGNORE_ERROR === true) {
      return next.handle(request);
    } else {
      return next.handle(request).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.catchError)(error => {
        //SP SINWEB-395 se modifico el interceptor para diferenciar de que error viene la api
        let typeError = (0,_errorMetodos__WEBPACK_IMPORTED_MODULE_0__.getTypeError)(error, this.configService.config.servidor);
        switch (typeError) {
          case 'ApiSinError':
            return this.errorAPISINHandler(error);
          case 'ApiIntegraError':
            return this.errorAPIINTEGRAHandler(error);
          case 'ApiGpoError':
            return this.errorAPIGPOHandler(error);
          default:
            return this.errorHandler(error);
        }
      }));
    }
  }
  /**
   * SP SINWEB-395 handler para manejar error de api sinergial
   * @param error
   * @returns
   */
  errorAPISINHandler(error) {
    if (error.error?.Errors) {
      this.toast.error(error.error.Errors[0], null, {
        disableTimeOut: false,
        tapToDismiss: true,
        messageClass: 'custom-toast'
      });
      //throw 'Error API SINERGIAL'
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
    } else {
      if (error.status === 401 || error.status === 403) {
        this.toast.error('Error de autenticación');
        this.authenticationService.logout();
        //location.reload();
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
        //throw 'Error AUTENTICACION';
      } else {
        if (!error.url.includes(this.ERROR_CORE)) {
          this.toast.error('Error Interno: ' + error.status);
        }
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
      }
    }
  }
  /**
   * SP SINWEB-395 handler para manejar error de api integra
   * @param error
   * @returns
   */
  errorAPIINTEGRAHandler(error) {
    if (error.error?.errors) {
      this.toast.error(error.error.errors[0], null, {
        disableTimeOut: false,
        tapToDismiss: true,
        messageClass: 'custom-toast'
      });
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
    } else {
      if (error.status === 401 || error.status === 403) {
        this.toast.error('Error de autenticación');
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
      } else {
        this.toast.error('Error Interno: ' + error.status);
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
      }
    }
  }
  /**
   * SP SINWEB-395 handler para manejar error de api gpo
   * @param error
   * @returns
   */
  errorAPIGPOHandler(error) {
    if (error.error?.errors) {
      this.toast.error(error.error.errors[0], null, {
        disableTimeOut: false,
        tapToDismiss: true,
        messageClass: 'custom-toast'
      });
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
    } else {
      if (error.status === 401 || error.status === 403) {
        this.toast.error('Error de autenticación');
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
      } else {
        this.toast.error('Error Interno: ' + error.status);
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
      }
    }
  }
  /**
   * SP SINWEB-395 handler para manejar error de otras api
   * @param error
   * @returns
   */
  errorHandler(error) {
    this.toast.error('Error Interno: ' + error.status);
    return (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.throwError)(error);
  }
  static #_ = this.ɵfac = function ErrorInterceptor_Factory(t) {
    return new (t || ErrorInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](_services_config_service__WEBPACK_IMPORTED_MODULE_3__.ConfigService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjectable"]({
    token: ErrorInterceptor,
    factory: ErrorInterceptor.ɵfac
  });
}

/***/ }),

/***/ 28507:
/*!***************************************************!*\
  !*** ./src/app/core/interceptors/errorMetodos.ts ***!
  \***************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   getTypeError: () => (/* binding */ getTypeError),
/* harmony export */   isApiGpoError: () => (/* binding */ isApiGpoError),
/* harmony export */   isApiIntegraError: () => (/* binding */ isApiIntegraError),
/* harmony export */   isApiSinError: () => (/* binding */ isApiSinError)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);

function isApiSinError(error) {
  return lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'Succeeded') && lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'Errors') && lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'Message');
}
function isApiIntegraError(error) {
  return lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'succeeded') && lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'errors') && lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'message');
}
function isApiGpoError(error) {
  return lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'succeeded') && lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'errors') && lodash__WEBPACK_IMPORTED_MODULE_0__.has(error, 'message');
}
function getTypeError(error, servidor) {
  if (error.error == null && (error.status == 401 || error.status == 403)) {
    if (error.url.includes(servidor?.api_server)) {
      return 'ApiSinError';
    }
    if (error.url.includes(servidor?.api_integra)) {
      return 'ApiIntegraError';
    }
    if (error.rl.includes(servidor?.api_gpo)) {
      return 'ApiGpoError';
    }
  } else {
    if (error.error == null) {
      return '';
    } else {
      if (error.url.includes(servidor?.api_server) && isApiSinError(error.error)) {
        return 'ApiSinError';
      }
      if (error.url.includes(servidor?.api_integra) && isApiIntegraError(error.error)) {
        return 'ApiIntegraError';
      }
      if (error.url.includes(servidor?.api_gpo) && isApiGpoError(error.error)) {
        return 'ApiGpoError';
      }
      return '';
    }
  }
}

/***/ }),

/***/ 53545:
/*!*****************************************************!*\
  !*** ./src/app/core/interceptors/header.service.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HeaderService: () => (/* binding */ HeaderService),
/* harmony export */   MULTIPART_FORMDATA: () => (/* binding */ MULTIPART_FORMDATA),
/* harmony export */   NO_SEND_HEADER: () => (/* binding */ NO_SEND_HEADER),
/* harmony export */   NO_VERIFICAR_PERMISOS: () => (/* binding */ NO_VERIFICAR_PERMISOS)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* 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 _context_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/auth.service */ 90304);
/* harmony import */ var _services_stateful_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/stateful.service */ 689);
/* harmony import */ var _services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/config.service */ 56375);







// SC CATFER-9 se define una constante NO_SEND_HEADER, que permita indicar cuando es necesario añadirle token a la solicitud.
const NO_SEND_HEADER = new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContextToken(() => false);
// PMC SINWEB-14 se define una constante NO_VERIFICAR_PERMISOS, que permita indicar cuando es necesario no verificar los permisos de la solicitud
const NO_VERIFICAR_PERMISOS = new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContextToken(() => false);
const MULTIPART_FORMDATA = new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContextToken(() => false);
//SC CATFER-9 Definir interceptor header.services: Servicio encargado de añadir a cada solicitud realizada el bearer token.
class HeaderService {
  constructor(authService, sf, configService) {
    this.authService = authService;
    this.sf = sf;
    this.configService = configService;
  }
  intercept(req, next) {
    let accessToken = this.authService.usuario.Token;
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    if (req.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).NO_SEND_HEADER && req.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).NO_SEND_HEADER === true) {
      return next.handle(req);
    }
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    let noVerificarPermisos = req.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).NO_VERIFICAR_PERMISOS && req.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).NO_VERIFICAR_PERMISOS === true ? src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO : src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.VERDADERO;
    //(req.context.get(NO_VERIFICAR_PERMISOS) === true ? constantes.FALSO : constantes.VERDADERO)
    accessToken = this.authService.usuario.Token;
    let isApiIntegra = req.url.includes(this.configService.config.servidor.api_integra);
    const headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpHeaders({
      Authorization: `Bearer ${!isApiIntegra ? accessToken : this.authService.authIntegra?.token}`,
      'X-Verificar-Permisos': `${noVerificarPermisos}`,
      'Accept-Language': `es-AR`
    });
    const reqClone = req.clone({
      headers
    });
    return next.handle(reqClone);
  }
  static #_ = this.ɵfac = function HeaderService_Factory(t) {
    return new (t || HeaderService)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_services_stateful_service__WEBPACK_IMPORTED_MODULE_3__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵinject"](_services_config_service__WEBPACK_IMPORTED_MODULE_4__.ConfigService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjectable"]({
    token: HeaderService,
    factory: HeaderService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 9422:
/*!*********************************************************!*\
  !*** ./src/app/core/interceptors/loader.interceptor.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LoaderInterceptor: () => (/* binding */ LoaderInterceptor)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 58504);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 26306);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 13519);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _context_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _services_loader_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/loader.service */ 93096);







/**
 * SP SINWEB-446 Interceptor de carga que activa una alerta de carga hasta que termine o falle pa petición http luego la cierra
 * @class {HttpRequestInterceptor}
 */
class LoaderInterceptor {
  constructor(_loading) {
    this._loading = _loading;
    this.title = '';
    this._loading.message.subscribe(resp => {
      if (resp.length !== 0) this.title = resp;
    });
  }
  intercept(request, next) {
    //primero se fija si la llamada requiere que se muestre la alerta de carga ,esto se indica en el service correspondiente, sino sigue el curso normal
    ///if (request.context.get(REQUIRE_LOADING) === false) {
    if (!request.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).REQUIRE_LOADER || request.context.get(_context_context__WEBPACK_IMPORTED_MODULE_1__.CONTEXT).REQUIRE_LOADER === false) {
      return next.handle(request);
    } else {
      //SP CATWEB-510 muestra el comp de carga
      this._loading.show();
      this.openAlert();
      return next.handle(request)
      //cachea el error lo muesta usando el error service y oculta la alerta de carga
      .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.catchError)(err => {
        this._loading.hide();
        this.closeAlert();
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_4__.throwError)(() => err);
      }))
      //cachea la respuesta de la llamada y oculta la alerta de carga
      .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.map)(evt => {
        if (evt instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpResponse) {
          this._loading.hide();
          this.closeAlert();
        }
        return evt;
      }));
    }
  }
  /**
   * SP SINWEB-446 Función que abre una alerta de carga
   */
  openAlert() {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    this.alert.fire({
      title: this.title !== '' ? this.title : 'Cargando...',
      text: null,
      width: 300,
      confirmButtonText: 'Aceptar',
      allowOutsideClick: false,
      allowEscapeKey: false,
      allowEnterKey: false,
      showConfirmButton: false,
      showCancelButton: false,
      showDenyButton: false,
      showCloseButton: false,
      showLoaderOnConfirm: true
    });
    this.alert.showLoading();
  }
  /**
   * SP SINWEB-446 Función que cierra la alerta de carga
   */
  closeAlert() {
    this.alert.close();
  }
  static #_ = this.ɵfac = function LoaderInterceptor_Factory(t) {
    return new (t || LoaderInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](_services_loader_service__WEBPACK_IMPORTED_MODULE_2__.LoaderService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjectable"]({
    token: LoaderInterceptor,
    factory: LoaderInterceptor.ɵfac
  });
}

/***/ }),

/***/ 73701:
/*!**********************************************************!*\
  !*** ./src/app/core/services/accesos-rapidos.service.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AccesosRapidosService: () => (/* binding */ AccesosRapidosService)
/* harmony export */ });
/* harmony import */ var _layouts_sidebar_menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../layouts/sidebar/menu */ 19526);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 65619);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auth.service */ 90304);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config.service */ 56375);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ngx-translate/core */ 89515);







class AccesosRapidosService {
  constructor(auth, config, translate) {
    this.auth = auth;
    this.config = config;
    this.translate = translate;
    this.accesosSeleccionados = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(null); //Definimos nuestro BehaviorSubject, este debe tener un valor inicial siempre
    this.accesosSeleccionados$ = this.accesosSeleccionados.asObservable(); //Tenemos un observable con el valor actual del BehaviourSubject
    this.accesosDisponibles = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(null); //Definimos nuestro BehaviorSubject, este debe tener un valor inicial siempre
    this.accesosDisponibles$ = this.accesosDisponibles.asObservable(); //Tenemos un observable con el valor actual del BehaviourSubject
    this.inicializar();
  }
  inicializar() {
    this.obtenerAccesos();
    this.cargar();
  }
  obtenerAccesos() {
    this.accesos$ = JSON.parse(localStorage.getItem('accesosRapidos'));
    let accesosUpdate = this.accesos$ ? this.limpiarAccesos(this.accesos$) : [];
    this.accesos$ = accesosUpdate;
    localStorage.setItem('accesosRapidos', JSON.stringify(accesosUpdate));
  }
  //SP SINWEB-111 metodo que cargaAccesos del localStorage y arma las opcionesDeAccesos filtrando por modulos activos y permisos disponibles
  cargar() {
    this.accesosSeleccionados.next(this.filtrarAccesosSelect(this.cargarAccesosPorUsuario()));
    const menuFormatModules = this.formatearModulos(_layouts_sidebar_menu__WEBPACK_IMPORTED_MODULE_0__.MENU);
    const menuCopy = JSON.stringify(menuFormatModules);
    const menuItemCopy = JSON.parse(menuCopy);
    this.accesosDisponibles.next(this.filtrarAccesosDisp(this.cargarRutas(this.formatConPermisos(menuItemCopy))));
  }
  //SP SINWEB-111 carga accesos del local storage y los filtra
  cargarAccesosPorUsuario() {
    let aux = this.accesos$ ? this.accesos$.find(accesosUser => accesosUser.id == this.auth.usuario.IdUsrUsuario) : [];
    return aux != undefined ? aux.accesos ? aux.accesos : [] : [];
  }
  //SP SINWEB-111 se filtra por los accesos cargados dentro de los ultimos 6 meses.
  limpiarAccesos(datos) {
    const timeStamp = new Date(new Date().toLocaleString('es-AR')).getTime();
    return datos.filter(element => !this.compararTiempos(timeStamp, element.tiempo));
  }
  //SP SINWEB-111 filtra los accesos cargados por lo uqe sigen teniendo permisos
  filtrarAccesosSelect(accesos) {
    return accesos.filter(acceso => {
      let condition = acceso.permisoId ? this.auth.hasPermiso(this.auth.decrypt(acceso.permisoId)) : true;
      //SP SINWEB-328 control para limpiar los accesos cuando se desactive un modulo
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA)) {
        condition = condition && false;
      }
      //SP SINWEB-111 control para limpiar los accesos cuando se desactive un modulo
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION)) {
        condition = condition && false;
      }
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION)) {
        condition = condition && false;
      }
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA)) {
        condition = condition && false;
      }
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB)) {
        condition = condition && false;
      }
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS)) {
        condition = condition && false;
      }
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES)) {
        condition = condition && false;
      }
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS)) {
        condition = condition && false;
      }
      //SP SINWEB-257
      if (acceso.idModulo == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO && !this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO)) {
        condition = condition && false;
      }
      return condition;
    });
  }
  //SP SINWEB-111 filtra accesos disponibles sacando los que ya estan seleccionados.
  filtrarAccesosDisp(accesos) {
    const filteredArray = accesos.filter(disp => {
      return !this.accesosSeleccionados.value.some(select => disp.link === select.link);
    });
    return filteredArray;
  }
  //SP SINWEB-111 metodo que formateaMenu usando permisos
  formatConPermisos(menu) {
    let menuPermisos = [];
    menu.forEach(element => {
      if (!element.permisoId || this.auth.hasPermiso(element.permisoId)) {
        let menuElement = element;
        if (this.hasItems(menuElement)) {
          let submenu = this.formatConPermisos(menuElement.subItems);
          if (submenu.length > 0) {
            menuElement.subItems = submenu;
            menuPermisos.push(menuElement);
          }
        } else {
          menuPermisos.push(menuElement);
        }
      }
    });
    return menuPermisos;
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.subItems !== undefined ? item.subItems.length > 0 : false;
  }
  //SP SINWEB-111 metodo que formatea menu usando modulos activos
  formatearModulos(menu) {
    let i = 0;
    let menuRes = JSON.parse(JSON.stringify(menu));
    //SP SINWEB-328 control para ocultar el modulo estadistica
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES);
      menuRes.splice(i, 1);
    }
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS);
      menuRes.splice(i, 1);
    }
    //SP SINWEB-257
    if (!this.auth.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO);
      menuRes.splice(i, 1);
    }
    return menuRes;
  }
  //SP SINWEB-111 metodo que arma objectos de accesos con los campos requeridos (link , icon , path , permisoId)
  cargarRutas(menu, currentPath = [], menuIds = []) {
    let rutasAux = [];
    for (let i = 0; i < menu.length; i++) {
      let ruta = menu[i];
      if (!ruta.subItems || ruta.subItems.length === 0) {
        rutasAux.push(this.transformRuta(ruta, currentPath, menuIds));
      } else {
        let subPaths = this.cargarRutas(ruta.subItems, [...currentPath, ruta.label], [...menuIds, ruta.id]);
        rutasAux = rutasAux.concat(subPaths);
      }
    }
    return rutasAux;
  }
  transformRuta(ruta, currentPath, menuIds) {
    const rutaTransformada = {
      path: ''
    };
    if (currentPath.length === 0) {
      rutaTransformada.icon = ruta.icon;
      rutaTransformada.path = '';
      rutaTransformada.nombreModulo = '';
    } else {
      currentPath.forEach((path, index) => {
        if (index == 0) {
          rutaTransformada.icon = _layouts_sidebar_menu__WEBPACK_IMPORTED_MODULE_0__.MENU.find(el => el.label == path).icon;
        }
        this.translate.get(path).toPromise().then(text => {
          rutaTransformada.path = (rutaTransformada.path.length != 0 ? rutaTransformada.path + ' - ' : rutaTransformada.path) + text;
        });
        this.translate.get(currentPath[0]).toPromise().then(text => {
          rutaTransformada.nombreModulo = text;
        });
      });
    }
    this.translate.get(ruta.label).toPromise().then(text => {
      rutaTransformada.label = text;
    });
    rutaTransformada.link = ruta.link;
    //SP SINWEB-111 se guarda el id del modulo en la ruta final.
    rutaTransformada.idModulo = menuIds.length > 0 ? menuIds[0] : 0;
    if (ruta.permisoId) {
      rutaTransformada.permisoId = this.auth.encrypt(ruta.permisoId.toString());
    }
    return rutaTransformada;
  }
  //SP SINWEB-111 metodo para controlar que los tiempo de los accesos del usuario no superen los 6 meses.
  compararTiempos(time1, time2) {
    const diferencia = Math.abs(time1 - time2);
    const seisMesesEnMilisegundos = 6 * 30 * 24 * 60 * 60 * 1000; // Assuming a month has 30 days
    return diferencia > seisMesesEnMilisegundos;
  }
  //SP SINWEB-111 metodo que guarda los accesos en el local storage por usuario.
  guardarAccesos(accesosSelect) {
    const timeStamp = new Date(new Date().toLocaleString('es-AR')).getTime();
    if (this.accesos$) {
      let index = this.accesos$.findIndex(acceso => acceso.id === this.auth.usuario.IdUsrUsuario);
      if (index !== -1) {
        // Replace existing element
        this.accesos$.splice(index, 1, {
          id: this.auth.usuario.IdUsrUsuario,
          accesos: accesosSelect,
          tiempo: timeStamp
        });
      } else {
        // Push new element to array
        this.accesos$.push({
          id: this.auth.usuario.IdUsrUsuario,
          accesos: accesosSelect,
          tiempo: timeStamp
        });
      }
    } else {
      this.accesos$ = [];
      this.accesos$.push({
        id: this.auth.usuario.IdUsrUsuario,
        accesos: accesosSelect,
        tiempo: timeStamp
      });
    }
    localStorage.setItem('accesosRapidos', JSON.stringify(this.accesos$));
  }
  static #_ = this.ɵfac = function AccesosRapidosService_Factory(t) {
    return new (t || AccesosRapidosService)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_3__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__.TranslateService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: AccesosRapidosService,
    factory: AccesosRapidosService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AlertCustomService: () => (/* binding */ AlertCustomService)
/* harmony export */ });
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ 13519);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);


//PM SINWEB-92 Services para mostrar por pantalla un alert de tipo sweetAlert2 personalizable
class AlertCustomService {
  constructor() {}
  //Retorna un alert con un mensaje simple y un boton aceptar
  showBasicAlert(title, text, color) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    this.alert.fire({
      title: title,
      text: text,
      icon: color,
      confirmButtonText: 'Aceptar',
      // MC SINWEB-162
      allowOutsideClick: false,
      allowEscapeKey: false
    });
  }
  //Retorna un alert con un boton aceptar y otro 'mas informacion' que devuelve otro modal con info html
  showMoreInfoAlert(title, text, detallesTitle, detallesTexto, icon) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success ms-2',
        denyButton: 'btn btn-warning ms-2'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    this.alert.fire({
      title: title,
      text: text,
      icon: icon,
      confirmButtonText: 'Aceptar',
      denyButtonText: 'Más información',
      showCancelButton: false,
      showDenyButton: true,
      // MC SINWEB-162
      allowOutsideClick: false,
      allowEscapeKey: false
    }).then(result => {
      if (result.isDenied) {
        this.showDetails(detallesTitle, detallesTexto);
      }
    });
  }
  showDetails(detallesTitle, detallesTexto) {
    let alertDetail = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success ms-2'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    alertDetail.fire({
      title: '<strong>' + detallesTitle + '</strong>',
      html: detallesTexto,
      confirmButtonText: 'Aceptar',
      // MC SINWEB-162
      allowOutsideClick: false,
      allowEscapeKey: false
    });
  }
  //Retorna un alert con un boton aceptar y otro cancelar, esta funcion devuelve un promise para procesar el aceptar
  showReturnAlert(title, text, icon, confirmText, cancelText, showCancel, confirmBtnColor) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        cancelButton: 'btn btn-secondary',
        confirmButton: `btn btn-${confirmBtnColor ? confirmBtnColor : 'danger'} ms-2` // MC SINWEB-118
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    return this.alert.fire({
      title: title,
      html: text,
      icon: icon,
      confirmButtonText: confirmText,
      cancelButtonText: cancelText,
      showCancelButton: showCancel,
      // MC SINWEB-162
      allowOutsideClick: false,
      allowEscapeKey: false
    });
  }
  // MC SINWEB-118 Retorna un alert con un boton aceptar y otro cancelar, toma como parametro un html para mostrar en el alert
  showHtmlAlert(title, icon, html, confirmText, showCancel, cancelText) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        cancelButton: 'btn btn-secondary',
        confirmButton: 'btn btn-success ms-2'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    return this.alert.fire({
      title: title,
      html: html,
      icon: icon,
      confirmButtonText: confirmText,
      cancelButtonText: cancelText,
      showCancelButton: showCancel,
      // MC SINWEB-162
      allowOutsideClick: false,
      allowEscapeKey: false
    });
  }
  //PM SINWEB-281 Retorna un alert con un spinner que se mantiene abierto hasta que se llame a la funcion closeLoadingAlert()
  showLoadingAlert(title, text) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    this.alert.fire({
      title: title,
      text: text,
      confirmButtonText: 'Aceptar',
      allowOutsideClick: false,
      allowEscapeKey: false,
      allowEnterKey: false,
      showConfirmButton: false,
      showCancelButton: false,
      showDenyButton: false,
      showCloseButton: false,
      showLoaderOnConfirm: true
    });
    this.alert.showLoading();
  }
  //PM SINWEB-281 Cierra el alert de loading
  closeLoadingAlert() {
    this.alert.close();
  }
  showCustomAlert2(title, text, icon, confirmText, cancelText, showCancel, denyButtonText, showDenyButton, confirmBtnColor, showButtonAction, idButtonAction) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        cancelButton: 'btn btn-secondary',
        confirmButton: `btn btn-${confirmBtnColor ? confirmBtnColor : 'danger'} ms-2`,
        denyButton: 'btn btn-primary ms-2'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    let textHtml = `<div class="text-center pb-2">${text}</div>
                     <div class="text-center"><button class="btn btn-info" id="${idButtonAction}"><i class="mdi mdi-eye"></i></button></div>`;
    return this.alert.fire({
      title: title,
      html: showButtonAction ? textHtml : text,
      icon: icon,
      confirmButtonText: confirmText,
      cancelButtonText: cancelText,
      showCancelButton: showCancel,
      showDenyButton: showDenyButton,
      denyButtonText: denyButtonText ? denyButtonText : ''
    });
  }
  ShowSelectAlert(title, inputOptions, inputPlaceholder, messageError) {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_0___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success ms-2',
        cancelButton: 'btn btn-secondary'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    return this.alert.fire({
      title: title,
      input: 'select',
      inputOptions: inputOptions,
      inputPlaceholder: inputPlaceholder,
      showCancelButton: true,
      confirmButtonText: 'Aceptar',
      cancelButtonText: 'Cancelar',
      inputValidator: value => {
        return new Promise(resolve => {
          if (!value) {
            resolve(messageError);
          } else {
            resolve();
          }
        });
      }
    });
  }
  static #_ = this.ɵfac = function AlertCustomService_Factory(t) {
    return new (t || AlertCustomService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
    token: AlertCustomService,
    factory: AlertCustomService.ɵfac
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthService: () => (/* binding */ AuthService)
/* harmony export */ });
/* harmony import */ var _authUtils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../authUtils */ 81);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 26306);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var crypto_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! crypto-js */ 77874);
/* harmony import */ var crypto_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_context_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/services/config.service */ 56375);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./recursos.service */ 50657);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ 75187);











class AuthService {
  get usuario() {
    this._usuario = this.getAuthFromLocalStorage();
    return {
      ...this._usuario
    };
  }
  set usuario(user) {}
  getAuthFromLocalStorage() {
    try {
      const data = localStorage.getItem(this.authLocalStorageData);
      const user = localStorage.getItem(this.authLocalStorageUser);
      const empleado = localStorage.getItem(this.authLocalStorageEmpleado);
      const permisos = localStorage.getItem(this.authLocalStoragePermisos);
      const licencia = localStorage.getItem(this.authLocalStorageLicencia);
      let authData = JSON.parse(data);
      authData.User = JSON.parse(user);
      authData.Empleado = JSON.parse(empleado);
      authData.Permisos = JSON.parse(permisos);
      authData.Licencia = JSON.parse(licencia);
      return authData;
    } catch (error) {
      return undefined;
    }
  }
  setAuthFromLocalStorageData(auth) {
    if (auth && auth.Token) {
      this._usuario = auth;
      localStorage.setItem(this.authLocalStorageData, JSON.stringify(auth));
      return true;
    }
    return false;
  }
  setAuthFromLocalStorageUser(user) {
    localStorage.setItem(this.authLocalStorageUser, JSON.stringify(user));
    return true;
  }
  //PM SINWEB-72 Seteo de empleado en local storage
  setAuthFromLocalStorageEmpleado(empleado) {
    //SP SAD-329 se guarda mas informacion del empleado ya que es requerido
    const empleadoConst = {
      Id: empleado.Id,
      Nombre: empleado.Nombre,
      Codigo: empleado.Codigo,
      TipoEmpleado: empleado.TipoEmpleado?.Nombre || '',
      RespIva: empleado.RespIva?.Nombre || '',
      TipoDoc: empleado.TipoDoc?.Nombre || '',
      NroDoc: empleado.NroDoc || '',
      Direccion: empleado.Direccion || '',
      Telefono: empleado.Telefono || '',
      Email: empleado.Email || ''
    };
    localStorage.setItem(this.authLocalStorageEmpleado, JSON.stringify(empleadoConst));
    return true;
  }
  //PM SINWEB-14 Seteo de permisos en local storage
  setAuthFromLocalStoragePermisos(permisos) {
    localStorage.setItem(this.authLocalStoragePermisos, JSON.stringify(permisos));
    return true;
  }
  //PM SINWEB-233 Seteo de licencia en local storage
  setAuthFromLocalStorageLicencia(licencia) {
    localStorage.setItem(this.authLocalStorageLicencia, JSON.stringify(licencia));
    return true;
  }
  setAuthFromLocalStorageIntegra(integra) {
    localStorage.setItem(this.authLocalStorageIntegra, JSON.stringify(integra));
    return true;
  }
  get authIntegra() {
    try {
      const data = localStorage.getItem(this.authLocalStorageIntegra);
      let authIntegra = JSON.parse(data);
      return authIntegra;
    } catch (error) {
      return undefined;
    }
  }
  constructor(http, configService, recursosService, router) {
    this.http = http;
    this.configService = configService;
    this.recursosService = recursosService;
    this.router = router;
    this.baseUrl = this.configService.config.servidor?.api_server;
    this.urlIntegra = this.configService.config.servidor?.api_integra;
    this.authLocalStorageData = 'data';
    this.authLocalStorageUser = 'user';
    this.authLocalStorageEmpleado = 'empleado'; //PM SINWEB-72
    this.authLocalStoragePermisos = 'grant'; //PM SINWEB-14
    this.authLocalStorageLicencia = 'auth'; //PM SINWEB-233
    this.authLocalStorageIntegra = 'authIntegra';
    this.showLoader = false;
    this.secretKey = '11oliver11';
  }
  login(usuario, pass, idSucursal) {
    //this.baseUrl = 'http://192.168.0.145:8084/api/v2';
    this.baseUrl = this.configService.config.servidor?.api_server;
    this.showLoader = true;
    const url = this.baseUrl + this.recursosService.core.LOGIN.VERSION + this.recursosService.core.LOGIN.PATH_BASE;
    const body = {
      usuario: usuario,
      clave: pass,
      idSucursal: idSucursal
    };
    return this.http.post(url, body, {
      context: new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContext().set(src_app_core_context_context__WEBPACK_IMPORTED_MODULE_2__.CONTEXT, {
        NO_SEND_HEADER: true
      })
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      if (resp.Succeeded) {
        this.showLoader = false;
        return resp;
      }
    }));
  }
  getUsuario(idUsuario) {
    this.baseUrl = this.configService.config.servidor?.api_server;
    const url = this.baseUrl + this.recursosService.core.LOGIN.GET_USUARIO.VERSION + this.recursosService.core.LOGIN.GET_USUARIO.PATH_REL.replace('{idUsuario}', idUsuario);
    const body = {};
    return this.http.get(url, body).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      if (resp.Succeeded) {
        return resp;
      }
    }));
  }
  //PM SINWEB-72 recuperamos el empleado asociado a un idUsuario
  getEmpleado(idUsuario) {
    this.baseUrl = this.configService.config.servidor?.api_server;
    const url = this.baseUrl + this.recursosService.core.EMPLEADO.VERSION + this.recursosService.core.EMPLEADO.PATH_BASE;
    const body = {
      params: {
        IdUsuario: idUsuario
      }
    };
    Object.assign(body, {
      context: new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContext().set(src_app_core_context_context__WEBPACK_IMPORTED_MODULE_2__.CONTEXT, {
        IGNORE_ERROR: true
      })
    });
    return this.http.get(url, body).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      return resp;
    }));
  }
  logout() {
    localStorage.removeItem(this.authLocalStorageData);
    localStorage.removeItem(this.authLocalStorageUser);
    localStorage.removeItem(this.authLocalStorageEmpleado);
    localStorage.removeItem(this.authLocalStoragePermisos);
    //localStorage.removeItem(this.authLocalStorageLicencia);
    this.permisosLocal = undefined; //PM SINWEB-108
    this.permisosModuloLocal = undefined; //PM SINWEB-233
    this.router.navigate(['/login/login-2'], {
      state: {
        skipExitConfirmation: true
      },
      queryParams: {}
    });
  }
  lockout() {
    this.deleteToken();
    this.router.navigate(['/login/lock-screen'], {
      state: {
        skipExitConfirmation: true
      },
      queryParams: {}
    });
  }
  deleteToken() {
    const data = localStorage.getItem(this.authLocalStorageData);
    let authData = JSON.parse(data);
    authData.Token = undefined;
    localStorage.setItem(this.authLocalStorageData, JSON.stringify(authData));
  }
  //PM SINWEB-14 Recuperamos de la API las funcionalidades asociadas a un usuario
  getPermisos(idUsuario, idSucursal) {
    this.baseUrl = this.configService.config.servidor?.api_server;
    const url = this.baseUrl + this.recursosService.core.LOGIN.GET_USUARIO.VERSION + this.recursosService.core.LOGIN.GET_FUNCIONALIDADES.PATH_REL.replace('{idUsuario}', idUsuario);
    const body = {
      params: {
        IdUsuario: idUsuario,
        IdSucursal: idSucursal,
        BajaLogicaGrupoUsuario: 'N'
        //SP SAD-261 se comenta temporalmente hasta que se implementen los cambios requeridos
        //EntornoFuncionalidad: 'SW'
      }
    };
    Object.assign(body);
    return this.http.get(url, body).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      return resp;
    }));
  }
  //PM SINWEB-108 Funcion que retorna un arreglo de permisos ya desencriptados
  getPermisosLocal() {
    if (!this.permisosLocal) {
      const data = localStorage.getItem(this.authLocalStoragePermisos);
      this.permisosLocal = JSON.parse(data);
      //desencriptamos el arreglo de permisos local
      for (let index = 0; index < this.permisosLocal.length; index++) {
        const decryptedBytes = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(this.permisosLocal[index], this.secretKey);
        const decrypted = parseInt(decryptedBytes.toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8), 10);
        this.permisosLocal[index] = decrypted;
      }
    }
    return this.permisosLocal;
  }
  getModulosLocal() {
    if (!this.permisosModuloLocal) {
      const data = localStorage.getItem(this.authLocalStorageLicencia);
      if (data !== undefined && data !== null && data) {
        this.permisosModuloLocal = JSON.parse(data).modulos;
        //desencriptamos el arreglo de permisos local
        for (let index = 0; index < this.permisosModuloLocal.length; index++) {
          const decryptedBytes = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(this.permisosModuloLocal[index], this.secretKey);
          const decrypted = parseInt(decryptedBytes.toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8), 10);
          this.permisosModuloLocal[index] = decrypted;
        }
      }
    }
    return this.permisosModuloLocal;
  }
  //PM SINWEB-14 Funcion que dado un array de permisos, los guarda en local storage
  setPermisos(permisos) {
    //let permisosArray: any = [];
    let permisosSet = new Set();
    permisos.forEach(p => {
      p.UsuarioGrupoUsuario.GrupoUsuario.AccesoAFuncionalidades.forEach(f => {
        //permisosSet.add(f.UsrFuncionalidad.Id);
        const encrypted = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.encrypt(f.UsrFuncionalidad.Id.toString(), this.secretKey).toString();
        permisosSet.add(encrypted);
      });
    });
    localStorage.setItem(this.authLocalStoragePermisos, JSON.stringify(Array.from(permisosSet)));
  }
  //PM SINWEB-233
  setLicencia(licencia) {
    let modulosSet = new Set();
    for (let index = 0; index < licencia.modulos.length; index++) {
      const encrypted = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.encrypt(licencia.modulos[index].toString(), this.secretKey).toString();
      licencia.modulos[index] = encrypted;
    }
    const data = localStorage.getItem(this.authLocalStorageLicencia);
    let hoy = new Date();
    licencia.validacion = !licencia.error ? crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.encrypt(hoy.toString(), this.secretKey).toString() : JSON.parse(data).validacion;
    licencia.modulos = !licencia.error || licencia.desarrollo ? licencia.modulos : JSON.parse(data).modulos;
    //licencia.validacion = new Date();
    //licencia.validacion.setDate(licencia.validacion.getDate() - 10);
    //delete licencia.error;
    delete licencia.activo;
    delete licencia.status;
    localStorage.setItem(this.authLocalStorageLicencia, JSON.stringify(licencia));
  }
  eliminarLicencia() {
    localStorage.removeItem(this.authLocalStorageLicencia);
  }
  //PM SINWEB-14 Funcion que dado un permiso, comprueba si el usuario tiene acceso a el
  hasPermiso(permiso) {
    //buscamos si el usuario tiene ese permiso
    let permisos = this.getPermisosLocal();
    if (permisos) {
      return permisos.some(p => {
        return p === permiso;
      });
    }
    return false;
  }
  //PM SINWEB-233 Funcion que dado un modulo, comprueba si el usuario tiene acceso a el
  hasModulo(modulo) {
    let modulos = this.getModulosLocal();
    if (modulos) {
      return modulos.some(m => {
        return m === modulo;
      });
    }
    return false;
  }
  encryptLicencia(licencia) {
    const encrypted = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.encrypt(licencia, this.secretKey).toString();
    return encrypted;
  }
  decryptLicencia(licencia) {
    return crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(licencia, this.secretKey).toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8);
  }
  //PM SINWEB-233
  checkLicencia(serial, modoDesarrollo) {
    this.baseUrl = !modoDesarrollo ? this.configService.config.servidor?.api_gpo : this.configService.config.servidor?.api_server;
    const url = this.baseUrl + this.recursosService.gpo.LICENCE.POST_VALIDAR_LICENCIA.VERSION + this.recursosService.gpo.LICENCE.PATH_BASE + this.recursosService.gpo.LICENCE.POST_VALIDAR_LICENCIA.PATH_REL;
    let serialDecrypt = this.decryptLicencia(serial);
    const body = {
      serial: serialDecrypt
    };
    return this.http.post(url, body, {
      context: new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContext().set(src_app_core_context_context__WEBPACK_IMPORTED_MODULE_2__.CONTEXT, {
        IGNORE_ERROR: true
      })
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      return {
        activo: resp.estado == 'A',
        licencia: serial,
        modulos: resp.modulo__licencia.map(m => m.modulo.codigo),
        error: false
      };
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.catchError)(error => {
      //creamos un array con los modulos activos sengun page.json
      console.log(error);
      let modulosActivos = [];
      for (let modulo in this.configService.config.modulos) {
        if (this.configService.config.modulos[modulo].activo) {
          modulosActivos.push(this.configService.config.modulos[modulo].id);
        }
      }
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)({
        activo: true,
        licencia: '',
        modulos: modulosActivos,
        error: modoDesarrollo ? false : true,
        status: error.status
      });
    }));
  }
  //PM SINWEB-337
  fechaLicenciaValida() {
    let hoy = new Date();
    let fechaLimite;
    const data = localStorage.getItem(this.authLocalStorageLicencia);
    if (data !== undefined && data !== null && data) {
      fechaLimite = JSON.parse(data).validacion;
      fechaLimite = new Date(crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(fechaLimite, this.secretKey).toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8));
      fechaLimite.setDate(fechaLimite.getDate() + 7);
    } else {
      return false;
    }
    return hoy < fechaLimite;
  }
  getFechaLicencia() {
    let fechaLimite;
    const data = localStorage.getItem(this.authLocalStorageLicencia);
    fechaLimite = JSON.parse(data).validacion;
    fechaLimite = new Date(crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(fechaLimite, this.secretKey).toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8));
    fechaLimite.setDate(fechaLimite.getDate() + 7);
    return fechaLimite.toLocaleDateString();
  }
  getLicenciaError() {
    const data = localStorage.getItem(this.authLocalStorageLicencia);
    return JSON.parse(data).error;
  }
  /**
   * Returns the current user
   */
  currentUser() {
    return (0,_authUtils__WEBPACK_IMPORTED_MODULE_0__.getFirebaseBackend)().getAuthenticatedUser();
  }
  /**
   * Performs the register
   * @param email email
   * @param password password
   */
  register(email, password) {
    return (0,_authUtils__WEBPACK_IMPORTED_MODULE_0__.getFirebaseBackend)().registerUser(email, password).then(response => {
      const user = response;
      return user;
    });
  }
  /**
   * Reset password
   * @param email email
   */
  resetPassword(email) {
    return (0,_authUtils__WEBPACK_IMPORTED_MODULE_0__.getFirebaseBackend)().forgetPassword(email).then(response => {
      const message = response.data;
      return message;
    });
  }
  encrypt(data) {
    const encrypted = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.encrypt(data, this.secretKey).toString();
    return encrypted;
  }
  decrypt(data) {
    const decryptedBytes = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(data, this.secretKey);
    const decrypted = parseInt(decryptedBytes.toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8), 10);
    return decrypted;
  }
  infoGPO(params, context) {
    let httpParams = {
      params: params
    };
    Object.assign(httpParams, {
      context: (0,src_app_core_context_context__WEBPACK_IMPORTED_MODULE_2__.checkContextAndCreate)(context)
    });
    let path = this.configService.config.servidor?.api_gpo + this.recursosService.gpo.INFO.VERSION + this.recursosService.gpo.INFO.PATH_BASE;
    return this.http.get(path, httpParams).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      return resp;
    }));
  }
  infoIntegra(params, context) {
    let httpParams = {
      params: params
    };
    Object.assign(httpParams, {
      context: (0,src_app_core_context_context__WEBPACK_IMPORTED_MODULE_2__.checkContextAndCreate)(context)
    });
    let path = this.configService.config.servidor?.api_integra + this.recursosService.integra.INFO.VERSION + this.recursosService.integra.INFO.PATH_BASE;
    return this.http.get(path, httpParams).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      return resp;
    }));
  }
  getIntegraClientCredentials() {
    let idIntegra = this.configService.config.cliente?.integra_credenciales_id;
    let path = this.baseUrl + this.recursosService.core.API_CLIENT_CREDENTIALS.VERSION + this.recursosService.core.API_CLIENT_CREDENTIALS.PATH_BASE + `/${idIntegra}`;
    return this.http.get(path);
  }
  authenticateIntegra(params) {
    this.urlIntegra = this.configService.config.servidor?.api_integra;
    let path = this.urlIntegra + this.recursosService.integra.AUTH.PATH_BASE;
    return this.http.post(path, params);
  }
  static #_ = this.ɵfac = function AuthService_Factory(t) {
    return new (t || AuthService)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_4__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__.Router));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjectable"]({
    token: AuthService,
    factory: AuthService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AuthfakeauthenticationService: () => (/* binding */ AuthfakeauthenticationService)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ 69862);




class AuthfakeauthenticationService {
  constructor(http) {
    this.http = http;
    this.currentUserSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(JSON.parse(localStorage.getItem('currentUser')));
    this.currentUser = this.currentUserSubject.asObservable();
  }
  get currentUserValue() {
    return this.currentUserSubject.value;
  }
  login(email, password) {
    return this.http.post(`/users/authenticate`, {
      email,
      password
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.map)(user => {
      // login successful if there's a jwt token in the response
      if (user && user.token) {
        // store user details and jwt token in local storage to keep user logged in between page refreshes
        localStorage.setItem('currentUser', JSON.stringify(user));
        this.currentUserSubject.next(user);
      }
      return user;
    }));
  }
  logout() {
    // remove user from local storage to log user out
    localStorage.removeItem('currentUser');
    this.currentUserSubject.next(null);
  }
  static #_ = this.ɵfac = function AuthfakeauthenticationService_Factory(t) {
    return new (t || AuthfakeauthenticationService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_3__.HttpClient));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
    token: AuthfakeauthenticationService,
    factory: AuthfakeauthenticationService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfigService: () => (/* binding */ ConfigService)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tauri-apps/api/path */ 38888);
/* harmony import */ var _tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tauri-apps/plugin-fs */ 21040);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ 13519);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);





class ConfigService {
  constructor() {
    this.config = {};
    this.cargada = false;
    this.cargarConfig();
  }
  cargarConfig() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.cargada = true;
      if (!window.isTauri) {
        return fetch('./assets/page.json').then(response => response.json()).then(config => {
          _this.cargada = true;
          _this.config = config;
        }).catch( /*#__PURE__*/function () {
          var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (error) {
            _this.openAlert();
          });
          return function (_x) {
            return _ref.apply(this, arguments);
          };
        }());
      } else {
        const resourcePath = yield (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_1__.resourceDir)();
        console.log('resourcePath', resourcePath);
        const configExterna = yield (0,_tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_2__.readTextFile)(`${resourcePath}\\resources\\page.json`).then(configExterna => {
          _this.cargada = true;
          _this.config = JSON.parse(configExterna);
        }).catch(error => {
          _this.openAlert();
        });
      }
    })();
  }
  openAlert() {
    this.alert = sweetalert2__WEBPACK_IMPORTED_MODULE_3___default().mixin({
      customClass: {
        confirmButton: 'btn btn-success ms-2',
        denyButton: 'btn btn-secondary'
      },
      buttonsStyling: false,
      reverseButtons: true
    });
    this.alert.fire({
      title: 'Error',
      text: 'Archivo de configuración no encontrado, comunicarse con el área de soporte',
      icon: 'error',
      width: 400,
      confirmButtonText: 'Aceptar',
      denyButtonText: 'Contacto',
      allowOutsideClick: false,
      allowEscapeKey: false,
      allowEnterKey: false,
      showConfirmButton: true,
      showCancelButton: false,
      showDenyButton: true,
      showCloseButton: false,
      showLoaderOnConfirm: true
    }).then(result => {
      console.log(result);
      if (result.isDenied) {
        window.open('https://wa.me/5493585091929', '_blank');
      }
    });
  }
  static #_ = this.ɵfac = function ConfigService_Factory(t) {
    return new (t || ConfigService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: ConfigService,
    factory: ConfigService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfigGeneralService: () => (/* binding */ ConfigGeneralService)
/* harmony export */ });
/* harmony import */ var _utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/metodos/metodos */ 38002);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 64716);
/* harmony import */ var _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/constantes/constantes-gen */ 14719);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config.service */ 56375);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./recursos.service */ 50657);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./auth.service */ 90304);
/* harmony import */ var _stateful_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./stateful.service */ 689);











class ConfigGeneralService {
  constructor(route, http, configService, recursosService, authService, sf) {
    this.route = route;
    this.http = http;
    this.configService = configService;
    this.recursosService = recursosService;
    this.authService = authService;
    this.sf = sf;
    this._config = {};
    //SP SINWEB-135 variable para controlar cookies consent
    this._cookieConsent$ = new rxjs__WEBPACK_IMPORTED_MODULE_6__.BehaviorSubject(window.localStorage.getItem('cookieConsent') == 'N' ? false : true);
    //SP SINWEB-88 se agrega un observable de carga para saber si ya cargo la configuracion
    this._isLoading$ = new rxjs__WEBPACK_IMPORTED_MODULE_6__.BehaviorSubject(false);
    this.modulosCargados = {
      produccion: true,
      otro: false
    };
  }
  get isLoading$() {
    return this._isLoading$.asObservable();
  }
  get cookieConsent$() {
    return this._cookieConsent$.asObservable();
  }
  getConfig(params, idOpcion, error) {
    const baseUrl = this.configService.config.servidor?.api_server;
    const path = baseUrl + this.recursosService.core.CONFIG_GENERAL.GET_CONFIG.VERSION + this.recursosService.core.CONFIG_GENERAL.PATH_BASE + (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.allReplace)(this.recursosService.core.CONFIG_GENERAL.GET_CONFIG.PATH_REL, {
      '{idOpcion}': idOpcion
    });
    return this.http.get(path, params);
  }
  getConfiguraciones(params, error) {
    const baseUrl = this.configService.config.servidor?.api_server;
    const path = baseUrl + this.recursosService.core.CONFIG_GENERAL.GET_CONFIGURACIONES.VERSION + this.recursosService.core.CONFIG_GENERAL.PATH_BASE + this.recursosService.core.CONFIG_GENERAL.GET_CONFIGURACIONES.PATH_REL;
    return this.http.get(path, {
      params: params
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.map)(resp => {
      this._isLoading$.next(false);
      return resp;
    }));
  }
  putConfiguraciones(params, error) {
    const baseUrl = this.configService.config.servidor?.api_server;
    const path = baseUrl + this.recursosService.core.CONFIG_GENERAL.PUT_CONFIGURACIONES_EMPRESAS.VERSION + this.recursosService.core.CONFIG_GENERAL.PATH_BASE + this.recursosService.core.CONFIG_GENERAL.PUT_CONFIGURACIONES_EMPRESAS.PATH_REL;
    return this.http.put(path, params).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.finalize)(() => this._isLoading$.next(false)));
  }
  /**
   * SP SINWEB-350 se unifico el metodo de carga de configuraciones para  realizar una sola llamada
   */
  cargarConfiguraciones() {
    this._isLoading$.next(true);
    const configRec = this.sf.getState(this.sf.pagenames.REC_EST) === 'S' ? true : false;
    this.sf.setControlStateConfig(configRec);
    this._config.RecordarEstado = this.sf.getState(this.sf.pagenames.REC_EST);
    this._config.MenuPosicion = this.sf.getState(this.sf.pagenames.MENU_POSICION);
    this._config.MenuOrden = this.sf.getState(this.sf.pagenames.MENU_ORDEN);
    this._config.DarkMode = this.sf.getState(this.sf.pagenames.DARK_MODE);
    this._config.NotifRealtime = this.sf.getState(this.sf.pagenames.NOTIF_REALTIME);
    this._config.WidgetsAUT = this.sf.getState(this.sf.pagenames.WIDGETS_AUT);
    this._config.WidgetsPRD = this.sf.getState(this.sf.pagenames.WIDGETS_PRD);
    this._config.WidgetsRMA = this.sf.getState(this.sf.pagenames.WIDGETS_RMA);
    this._config.WidgetsSRV = this.sf.getState(this.sf.pagenames.WIDGETS_SRV);
    this._config.WidgetsEST = this.sf.getState(this.sf.pagenames.WIDGETS_EST);
    //SP SINWEB-905
    this._config.ComprobanteSerie = this.sf.getState(this.sf.pagenames.COMPROBANTE_SERIE);
    //SP SAD-165
    this._config.ComprobanteNuevaPagina = this.sf.getState(this.sf.pagenames.COMPROBANTE_NUEVA_PAGINA);
    //SP SINWEB-949
    this._config.ComprobanteFilterVendZonaCliente = this.sf.getState(this.sf.pagenames.COMPROBANTE_FILTER_VEND_ZONA_CLIENTE);
    this._config.ComprobanteVendPred = this.sf.getState(this.sf.pagenames.COMPROBANTE_VEND_PRED);
    this._config.ComprobanteCanalPred = this.sf.getState(this.sf.pagenames.COMPROBANTE_CANAL_PRED);
    //SP SAD-113
    this._config.VerImagenArticulo = this.sf.getState(this.sf.pagenames.VER_IMAGEN_ARTICULO);
    /**
     * SP SINWEB-679
     */
    //SECCION CONFIG ESTADISTICA
    let configEst = JSON.parse(localStorage.getItem('configEstadistica'));
    this._config.OrdTipo = configEst?.OrdTipo ? configEst.OrdTipo : 'T';
    this._config.OrdValor = configEst?.OrdValor ? configEst.OrdValor : 'E';
    this._config.ModoVisualTablero = configEst?.ModoVisualTablero ? configEst.ModoVisualTablero : 'M';
    this._config.PosFiltroInd = configEst?.PosFiltroInd ? configEst.PosFiltroInd : 'I';
    let datos = {};
    datos.PageNumber = -1;
    datos.PageSize = 1000;
    datos.IdsConfGral = Object.values(_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL).join(',');
    datos.IdEmpresa = this.authService.usuario.IdEmpresa;
    datos.IdSucursal = this.authService.usuario.IdSucursal;
    const getConfigs = this.getConfiguraciones(datos).subscribe(data => {
      // MC SINWEB-953 Se refactoriza para hacerlo genérico
      //SECCION CONFIG URL IMAGEN
      let i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.DIR_IMAGEN);
      if (i !== -1) {
        this._config.UrlImg = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
        i = -1;
      }
      //SECCION CONFIG PRODUCCION
      //DEPOSITO ORIGEN
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.PRD_ID_DEPOSITO_ORIGEN);
      if (i !== -1) {
        this._config.DepositoO = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //DEPOSITO PRODUCCION
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.PRD_ID_DEPOSITO_PRODUCCION);
      if (i !== -1) {
        this._config.DepositoP = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //DEPOSITO DESTINO
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.PRD_ID_DEPOSITO_TERMINADOS);
      if (i !== -1) {
        this._config.DepositoD = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //SECCION FACT SERVICIOS
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.ID_FAMILIA_ART_SRV);
      if (i !== -1) {
        this._config.FamiliaArtSrv = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //SECCION ESTADISTICA
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.INF_MOSTRAR_TABLERO_FAVORITO);
      if (i !== -1) {
        this._config.VerFavoritos = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.INF_CONF_PAGINA_INICIO);
      if (i !== -1) {
        this._config.VerEnInicio = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      // SECCION COMPROBANTES
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.FORMATO_CODIGO_ARTICULO);
      if (i !== -1) {
        this._config.IdFormatoCodArt = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //SP SAD-160
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.FORMULA_STOCK_DISPONIBLE);
      if (i !== -1) {
        this._config.FormulaStockDisponible = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.DISPLAY_FORMAT_CODIGO_ARTICULO);
      if (i !== -1) {
        this._config.LongitudCodArt = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //SP SINWEB-948 se obtiene configuracion de cliente ocasional
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.ID_CLIENTE_OCASIONAL);
      if (i !== -1) {
        this._config.ClienteOcasional = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      /**
       * SP SAD-376 se obtiene configuracion de cliente consumidor final
       */
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.ID_CLIENTE_CONSUMIDOR_FINAL);
      if (i !== -1) {
        this._config.ClienteConsumidorFinal = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      //SP SAD-211
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.MOSTRAR_COMPROMETIDO);
      if (i !== -1) {
        this._config.OcultarComprometidoStockArticulo = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor === 'N' : data.Data[i].Valor === 'N';
      }
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.MOSTRAR_RESERVADO);
      if (i !== -1) {
        this._config.OcultarReservadoStockArticulo = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor === 'N' : data.Data[i].Valor === 'N';
      }
      //TODO CARGAR CONFIG 176 para inicializar cliente en carga de comprobantes
      i = data.Data.findIndex(c => c.Id === _utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.IDS_CONF_GRAL.CLIENTEINICIAFACTURACION);
      if (i !== -1) {
        this._config.ClienteIniciaFacturacion = data.Data[i].ConfiguracionesEmpresas.length > 0 ? data.Data[i].ConfiguracionesEmpresas[0].Valor : data.Data[i].Valor;
      }
      this._isLoading$.next(false);
    });
  }
  cargarConfig() {
    //SP SINWEB-88 controla que los json cargados en el service de recursos ya esten cargados
    this.recursosService.isLoading$.subscribe(resp => {
      if (!resp) {
        this.cargarConfiguraciones();
      }
    });
  }
  guardarConfigGral(config) {
    this.sf.changeState(this.sf.pagenames.REC_EST, config.RecordarEstado);
    this.sf.changeState(this.sf.pagenames.MENU_POSICION, config.MenuPosicion);
    this.sf.changeState(this.sf.pagenames.MENU_ORDEN, config.MenuOrden);
    this.sf.changeState(this.sf.pagenames.DARK_MODE, config.DarkMode);
    this.sf.changeState(this.sf.pagenames.NOTIF_REALTIME, config.NotifRealtime);
    this.sf.changeState(this.sf.pagenames.WIDGETS_AUT, config.WidgetsAUT);
    this.sf.changeState(this.sf.pagenames.WIDGETS_PRD, config.WidgetsPRD);
    this.sf.changeState(this.sf.pagenames.WIDGETS_RMA, config.WidgetsRMA);
    this.sf.changeState(this.sf.pagenames.WIDGETS_SRV, config.WidgetsSRV);
    this.sf.changeState(this.sf.pagenames.WIDGETS_EST, config.WidgetsEST);
    //SP SINWEB-905
    this.sf.changeState(this.sf.pagenames.COMPROBANTE_SERIE, config.ComprobanteSerie);
    //SP SAD-165
    this.sf.changeState(this.sf.pagenames.COMPROBANTE_NUEVA_PAGINA, config.ComprobanteNuevaPagina);
    this.sf.changeState(this.sf.pagenames.ID_FORMATO_COD_ART, config.IdFormatoCodArt);
    this.sf.changeState(this.sf.pagenames.LONG_COD_ART, config.LongitudCodArt);
    //this.sf.changeState(this.sf.pagenames.MASK_COD_ART, config.MaskCodArt);
    //SP SINWEB-949
    this.sf.changeState(this.sf.pagenames.COMPROBANTE_FILTER_VEND_ZONA_CLIENTE, config.ComprobanteFilterVendZonaCliente);
    this.sf.changeState(this.sf.pagenames.COMPROBANTE_VEND_PRED, config.ComprobanteVendPred);
    this.sf.changeState(this.sf.pagenames.COMPROBANTE_CANAL_PRED, config.ComprobanteCanalPred);
    //SP SAD-113
    this.sf.changeState(this.sf.pagenames.VER_IMAGEN_ARTICULO, config.VerImagenArticulo);
    this._config = config;
    return new rxjs__WEBPACK_IMPORTED_MODULE_6__.BehaviorSubject(true).asObservable();
    // let datos: any = [
    //   {
    //     IdConfGralOpciones: IDS_CONF_GRAL.FORMATO_CODIGO_ARTICULO,
    //     IdEmpresa: this.authService.usuario.IdEmpresa,
    //     Valor: config.IdFormatoCodArt
    //   }
    // ];
    // //SAD -114 ya no es necesario guardar la longitud del codigo de articulo condicionalmente, en caso de necesitar la longuitud numerica se creara otra variable de configuracion
    // if (config.IdFormatoCodArt === '1') {
    //   // Solo digitos
    //   datos.push({
    //     IdConfGralOpciones: IDS_CONF_GRAL.DISPLAY_FORMAT_CODIGO_ARTICULO,
    //     IdEmpresa: this.authService.usuario.IdEmpresa,
    //     Valor: config.LongitudCodArt
    //   });
    // }
    // return this.putConfiguraciones(datos).pipe(
    //   map((data: any) => {
    //     this._config = config;
    //     return true;
    //   })
    // );
  }
  guardarConfigProd(config) {
    let datos = [{
      IdConfGralOpciones: 187,
      IdEmpresa: this.authService.usuario.IdEmpresa,
      Valor: Number(config.DepositoO)
    }, {
      IdConfGralOpciones: 188,
      IdEmpresa: this.authService.usuario.IdEmpresa,
      Valor: Number(config.DepositoP)
    }, {
      IdConfGralOpciones: 189,
      IdEmpresa: this.authService.usuario.IdEmpresa,
      Valor: Number(config.DepositoD)
    }];
    //SINWEB-136 se modifico el observable para retornar valor booleando dependiendo si la api respondio bien o no
    return this.putConfiguraciones(datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.map)(data => {
      if (!data.Succeeded) {
        return false;
      } else {
        this._config.DepositoO = Number(data.Data[0].Valor);
        this._config.DepositoP = Number(data.Data[1].Valor);
        this._config.DepositoD = Number(data.Data[2].Valor);
        return true;
      }
    }));
  }
  guardarCondigSrv(config) {
    let datos = [{
      IdConfGralOpciones: 193,
      IdEmpresa: this.authService.usuario.IdEmpresa,
      Valor: Number(config.FamiliaArtSrv)
    }];
    return this.putConfiguraciones(datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.map)(data => {
      if (!data.Succeeded) {
        return false;
      } else {
        this._config.FamiliaArtSrv = Number(data.Data[0].Valor);
        return true;
      }
    }));
  }
  /**
   * SP SINWEB-679 metodo para guardar la configuracion de estadistica
   * @param config
   */
  guardarConfigEst(config) {
    let {
      OrdTipo,
      OrdValor,
      ModoVisualTablero,
      PosFiltroInd
    } = config;
    let configLocal = {
      OrdTipo,
      OrdValor,
      ModoVisualTablero,
      PosFiltroInd
    };
    localStorage.setItem('configEstadistica', JSON.stringify(configLocal));
    this._config.OrdTipo = configLocal.OrdTipo;
    this._config.OrdValor = configLocal.OrdValor;
    this._config.ModoVisualTablero = configLocal.ModoVisualTablero;
    this._config.PosFiltroInd = configLocal.PosFiltroInd;
    let datos = [{
      IdConfGralOpciones: 197,
      IdEmpresa: this.authService.usuario.IdEmpresa,
      Valor: config.VerFavoritos
    }, {
      IdConfGralOpciones: 198,
      IdEmpresa: this.authService.usuario.IdEmpresa,
      Valor: config.VerEnInicio
    }];
    return this.putConfiguraciones(datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.map)(data => {
      if (!data.Succeeded) {
        return false;
      } else {
        this._config.VerFavoritos = data.Data[0].Valor;
        this._config.VerEnInicio = data.Data[1].Valor;
        return true;
      }
    }));
  }
  static #_ = this.ɵfac = function ConfigGeneralService_Factory(t) {
    return new (t || ConfigGeneralService)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_11__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_2__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_4__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_stateful_service__WEBPACK_IMPORTED_MODULE_5__.StatefulService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjectable"]({
    token: ConfigGeneralService,
    factory: ConfigGeneralService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 78169:
/*!********************************************************!*\
  !*** ./src/app/core/services/core/api-base.service.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ApiBaseService: () => (/* binding */ ApiBaseService)
/* harmony export */ });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 64716);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 26306);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var _context_context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../auth.service */ 90304);








class ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    this.http = http;
    this.configService = configService;
    this.recursosService = recursosService;
    this.authService = authService;
    this.url = this.configService.config.servidor?.api_server;
    this.urlIntegra = this.configService.config.servidor?.api_integra; //SP SINWEB-364 url de api integra
    //SP SINWEB-47 variables correspondientes a los diccionarios de ruta , usadas en cada service
    this.core = this.recursosService.core;
    this.estadistica = this.recursosService.estadistica;
    this.produccion = this.recursosService.produccion;
    this.autorizacion = this.recursosService.autorizacion;
    this.rma = this.recursosService.rma; // PM SINWEB-141 Cargo las rutas del módulo de RMA
    this.web = this.recursosService.web;
    this.servicios = this.recursosService.servicios;
    this.integra = this.recursosService.integra; //SP SINWEB-364 rutas de api integra
    this.notificaciones = this.recursosService.notificaciones;
    this.plataformas = this.recursosService.plataformas;
    this.endpoint = '';
    this._isLoading$ = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(false);
    // MC SINWEB-189 Variables para el uso de mocking
    this.usaMock = this.configService.config.usar_mock;
  }
  get isLoading$() {
    return this._isLoading$.asObservable();
  }
  /**
   * MC SINWEB-189 - Método que llena el arreglo mockData con información falsa
   * @param {Function} createFunction Función que genera la información falsa
   * @param {number} cant Cantidad de registros a generar
   */
  fillMockData(createFunction, cant) {
    const cantidad = cant ? cant : 10;
    this.mockData = [];
    for (let i = 0; i < cantidad; i++) {
      this.mockData.push(createFunction());
    }
  }
  fetch(params, endpoint, context) {
    if (this.usaMock && this.mockData !== undefined) {
      let fakeResponse = {
        Data: this.mockData,
        PageNumber: 1,
        PageSiza: 10,
        TotalPages: 1,
        TotalRecords: 10
      };
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(fakeResponse).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
        // console.log(resp);
        return resp;
      }));
    }
    let httpParams = {
      params: params
    };
    if (!endpoint) {
      this._isLoading$.next(true);
      endpoint = this.endpoint;
    }
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpParams, {
          context: contextoToSend
        });
      }
    }
    return this.http.get(endpoint, httpParams).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      this._isLoading$.next(false);
      return resp;
    }));
  }
  nuevo(body, endpoint, context) {
    let httpContext = {};
    if (!endpoint) {
      this._isLoading$.next(true);
      endpoint = this.endpoint;
    }
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    body.Id = undefined;
    return this.http.post(endpoint, body, httpContext).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => this._isLoading$.next(false)));
  }
  editar(body, id, endpoint, context) {
    let httpContext = {};
    if (!endpoint) {
      this._isLoading$.next(true);
      endpoint = `${this.endpoint}/${id}`;
    }
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    body.Id = id;
    return this.http.put(endpoint, body, httpContext).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => this._isLoading$.next(false)));
  }
  eliminar(id, endpoint, context) {
    let httpContext = {};
    if (!endpoint) {
      this._isLoading$.next(true);
      endpoint = `${this.endpoint}/${id}`;
    }
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    return this.http.delete(endpoint, httpContext).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.catchError)(err => {
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(err);
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => this._isLoading$.next(false)));
  }
  SerchById(id, endpoint, context) {
    let httpContext = {};
    if (!endpoint) {
      endpoint = this.endpoint;
    }
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    return this.http.get(`${endpoint}/${id}`, httpContext).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(resp => {
      if (resp.Data) {
        return resp.Data;
      }
    }));
  }
  patch(body, id, context) {
    let httpContext = {};
    this._isLoading$.next(true);
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    body.Id = id;
    const urlPatch = `${this.endpoint}/${id}`;
    return this.http.patch(urlPatch, body, httpContext).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => this._isLoading$.next(false)));
  }
  eliminarSinId(body, endpoint, context) {
    let httpContext = {};
    if (!endpoint) {
      this._isLoading$.next(true);
      endpoint = this.endpoint;
    }
    let options = {};
    options.body = body;
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    return this.http.delete(endpoint, options).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.catchError)(err => {
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.of)(err);
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => {
      this._isLoading$.next(false);
    }));
  }
  editarSinId(body, endpoint, context) {
    let httpContext = {};
    if (!endpoint) {
      this._isLoading$.next(true);
      endpoint = `${this.endpoint}`;
    }
    //SP SINWEB-489 se agrega nueva logica para adaptarse a la nueva estructura del context
    //SP SINWEB-537 se paso la logica a un metodo reutilizable en core/contecxt/context.ts
    if (context) {
      let contextoToSend = (0,_context_context__WEBPACK_IMPORTED_MODULE_0__.checkContextAndCreate)(context);
      if (contextoToSend) {
        Object.assign(httpContext, {
          context: contextoToSend
        });
      }
    }
    return this.http.put(endpoint, body, httpContext).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.finalize)(() => this._isLoading$.next(false)));
  }
  static #_ = this.ɵfac = function ApiBaseService_Factory(t) {
    return new (t || ApiBaseService)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_10__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_1__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_2__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjectable"]({
    token: ApiBaseService,
    factory: ApiBaseService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ArticuloService: () => (/* binding */ ArticuloService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _api_base_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api-base.service */ 78169);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/metodos/metodos */ 38002);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);







class ArticuloService extends _api_base_service__WEBPACK_IMPORTED_MODULE_1__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.ARTICULO.VERSION + this.core.ARTICULO.PATH_BASE;
  }
  getComponentes(params, id, context) {
    let path = this.url + this.core.ARTICULO.GET_COMPONENTES.VERSION + this.core.ARTICULO.PATH_BASE + this.core.ARTICULO.GET_COMPONENTES.PATH_REL.replace('{id}', id);
    return this.fetch(params, path, context);
  }
  getComponentesWithStock(params, idArticulo, idDeposito, context) {
    let path = this.url + this.core.ARTICULO.GET_COMPONENTES_CON_STOCK.VERSION + this.core.ARTICULO.PATH_BASE + (0,_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.allReplace)(this.core.ARTICULO.GET_COMPONENTES_CON_STOCK.PATH_REL, {
      '{idArticulo}': idArticulo,
      '{idDeposito}': idDeposito
    });
    return this.fetch(params, path, context);
  }
  getFactoresConversion(params, idArticulo, context) {
    let path = this.url + this.core.ARTICULO.GET_FACTORES_CONVERSION.VERSION + this.core.ARTICULO.PATH_BASE + this.core.ARTICULO.GET_FACTORES_CONVERSION.PATH_REL.replace('{idArticulo}', idArticulo);
    return this.fetch(params, path, context);
  }
  getArticuloAtributos(params, idArticulo, context) {
    let path = this.url + this.core.ARTICULO.GET_ARTICULO_ATRIBUTOS.VERSION + this.core.ARTICULO.PATH_BASE + this.core.ARTICULO.GET_ARTICULO_ATRIBUTOS.PATH_REL.replace('{idArticulo}', idArticulo);
    return this.fetch(params, path, context);
  }
  putArticuloAtributos(params, idArticulo, context) {
    let path = this.url + this.core.ARTICULO.PUT_ARTICULO_ATRIBUTOS.VERSION + this.core.ARTICULO.PATH_BASE + this.core.ARTICULO.PUT_ARTICULO_ATRIBUTOS.PATH_REL.replace('{idArticulo}', idArticulo);
    return this.editar(params, idArticulo, path, context);
  }
  getArticuloPorAtributos(params, idAtributo, context) {
    let path = this.url + this.core.ARTICULO.GET_ARTICULO_POR_ATRIBUTOS.VERSION + this.core.ARTICULO.GET_ARTICULO_POR_ATRIBUTOS.PATH_REL.replace('{idAtributo}', idAtributo);
    return this.fetch(params, path, context);
  }
  putArticuloMedias(params, context) {
    let path = this.url + this.core.ARTICULO.PUT_ARTICULO_MEDIAS.VERSION + this.core.ARTICULO.PUT_ARTICULO_MEDIAS.PATH_REL;
    return this.editarSinId(params, path, context);
  }
  getArticulosPorCodigo(params, context) {
    let path = this.url + this.core.ARTICULO.GET_ARTICULO_CODIGO.VERSION + this.core.ARTICULO.PATH_BASE + this.core.ARTICULO.GET_ARTICULO_CODIGO.PATH_REL;
    return this.fetch(params, path, context);
  }
  getStockArticulo(params, context) {
    let path = this.url + this.core.ARTICULO.GET_STOCK_ARTICULO.VERSION + this.core.ARTICULO.PATH_BASE + this.core.ARTICULO.GET_STOCK_ARTICULO.PATH_REL.replace('{id}', params.Id);
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function ArticuloService_Factory(t) {
    return new (t || ArticuloService)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_4__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: ArticuloService,
    factory: ArticuloService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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

/***/ }),

/***/ 37475:
/*!****************************************************************!*\
  !*** ./src/app/core/services/core/check-for-update.service.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CheckForUpdateService: () => (/* binding */ CheckForUpdateService)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 91687);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 30034);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ 81374);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/service-worker */ 70040);





class CheckForUpdateService {
  constructor(appRef, updates) {
    console.log('Check for updates');
    const appIsStable$ = appRef.isStable.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.first)(isStable => isStable === true));
    const everySixHours$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_2__.interval)(60 * 60 * 1000); // intervalo 1h
    const everySixHoursOnceAppIsStable$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_3__.concat)(appIsStable$, everySixHours$);
    // everySixHoursOnceAppIsStable$.subscribe(() => {
    //   console.log('comprobar actualizacion');
    //   updates.checkForUpdate().then( e => { console.log("verifica una actualizacion "+e)});
    // });
    // MC SINWEB-293 Nueva forma de comprobacion de actualizacion disponible
    everySixHoursOnceAppIsStable$.subscribe( /*#__PURE__*/(0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      console.log('Comprobar actualizacion');
      try {
        const updateFound = yield updates.checkForUpdate();
        console.log(updateFound ? 'Nueva version disponible.' : 'Actualmente en la ultima version.');
      } catch (err) {
        console.error('Error al intentar buscar una nueva version:', err);
      }
    }));
  }
  static #_ = this.ɵfac = function CheckForUpdateService_Factory(t) {
    return new (t || CheckForUpdateService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.ApplicationRef), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_service_worker__WEBPACK_IMPORTED_MODULE_5__.SwUpdate));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjectable"]({
    token: CheckForUpdateService,
    factory: CheckForUpdateService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ClienteService: () => (/* binding */ ClienteService)
/* 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 ClienteService 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.core.CLIENTE.VERSION + this.core.CLIENTE.PATH_BASE;
  }
  SearchByIdCliente(params) {
    let path = this.url + this.core.CLIENTE.GET_CLIENTE.VERSION + this.core.CLIENTE.PATH_BASE + this.core.CLIENTE.GET_CLIENTE.PATH_REL.replace('{id}', params.Id);
    return this.fetch({
      incluirZona: params.IncluirZona
    }, path);
  }
  static #_ = this.ɵfac = function ClienteService_Factory(t) {
    return new (t || ClienteService)(_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: ClienteService,
    factory: ClienteService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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






class DescuentoEspecialService extends _api_base_service__WEBPACK_IMPORTED_MODULE_3__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.DESCUENTO_ESPECIAL.VERSION + this.core.DESCUENTO_ESPECIAL.PATH_BASE;
  }
  static #_ = this.ɵfac = function DescuentoEspecialService_Factory(t) {
    return new (t || DescuentoEspecialService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_2__.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: DescuentoEspecialService,
    factory: DescuentoEspecialService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

/***/ 38080:
/*!****************************************************************!*\
  !*** ./src/app/core/services/core/familia-articulo.service.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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






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

/***/ }),

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

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

/***/ }),

/***/ 48881:
/*!************************************************************!*\
  !*** ./src/app/core/services/core/lista-precio.service.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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






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

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

/***/ 72551:
/*!**************************************************************!*\
  !*** ./src/app/core/services/core/oferta-item-pt.service.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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






class OfertaItemPtService extends _api_base_service__WEBPACK_IMPORTED_MODULE_3__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.OFERTA_ITEM_PT.VERSION + this.core.OFERTA_ITEM_PT.PATH_BASE;
  }
  getPorArticulo(params, context) {
    const path = this.url + this.core.OFERTA_ITEM_PT.GET_POR_ARTICULO.VERSION + this.core.OFERTA_ITEM_PT.PATH_BASE + this.core.OFERTA_ITEM_PT.GET_POR_ARTICULO.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function OfertaItemPtService_Factory(t) {
    return new (t || OfertaItemPtService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_2__.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: OfertaItemPtService,
    factory: OfertaItemPtService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 67301:
/*!***********************************************************!*\
  !*** ./src/app/core/services/core/oferta-item.service.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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






class OfertaItemService extends _api_base_service__WEBPACK_IMPORTED_MODULE_3__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.OFERTA_ITEM_PT.VERSION + this.core.OFERTA_ITEM_PT.PATH_BASE;
  }
  getPorArticulo(params, context) {
    const path = this.url + this.core.OFERTA_ITEM.GET_POR_ARTICULO.VERSION + this.core.OFERTA_ITEM.PATH_BASE + this.core.OFERTA_ITEM.GET_POR_ARTICULO.PATH_REL;
    return this.fetch(params, path, context);
  }
  static #_ = this.ɵfac = function OfertaItemService_Factory(t) {
    return new (t || OfertaItemService)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_2__.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: OfertaItemService,
    factory: OfertaItemService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

/***/ 40329:
/*!*******************************************************************!*\
  !*** ./src/app/core/services/core/seleccionar-cliente.service.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


/**
 * SP SINWEB-435 Servicio para generalizar el componente de Seleccionar cliente.
 * Se encarga de comunicar el componente de Seleccionar cliente con el componente que lo invoca.
 */
class SeleccionarClienteService {
  constructor() {
    this.dataSource = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);
    this.data$ = this.dataSource.asObservable();
  }
  setData(data) {
    this.dataSource.next(data);
  }
  static #_ = this.ɵfac = function SeleccionarClienteService_Factory(t) {
    return new (t || SeleccionarClienteService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
    token: SeleccionarClienteService,
    factory: SeleccionarClienteService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 50571:
/*!*********************************************************************!*\
  !*** ./src/app/core/services/core/seleccionar-proveedor.service.ts ***!
  \*********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


/**
 * MC SINWEB-197 Servicio para generalizar el componente de Seleccionar Proveedor.
 * Se encarga de comunicar el componente de Seleccionar Proveedor con el componente que lo invoca.
 */
class SeleccionarProveedorService {
  constructor() {
    this.dataSource = new rxjs__WEBPACK_IMPORTED_MODULE_0__.ReplaySubject(1);
    this.data$ = this.dataSource.asObservable();
  }
  setData(data) {
    this.dataSource.next(data);
  }
  static #_ = this.ɵfac = function SeleccionarProveedorService_Factory(t) {
    return new (t || SeleccionarProveedorService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
    token: SeleccionarProveedorService,
    factory: SeleccionarProveedorService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

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

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






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

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   EventService: () => (/* binding */ EventService)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 32013);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ 32181);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);



class EventService {
  constructor() {
    this.handler = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();
  }
  /**
   * Broadcast the event
   * @param type type of event
   * @param payload payload
   */
  broadcast(type, payload = {}) {
    this.handler.next({
      type,
      payload
    });
  }
  /**
   * Subscribe to event
   * @param type type of event
   * @param callback call back function
   */
  subscribe(type, callback) {
    return this.handler.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_1__.filter)(event => event.type === type)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.map)(event => event.payload)).subscribe(callback);
  }
  static #_ = this.ɵfac = function EventService_Factory(t) {
    return new (t || EventService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
    token: EventService,
    factory: EventService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 83456:
/*!***************************************************************!*\
  !*** ./src/app/core/services/general/pedido-venta.service.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PedidoVentaService: () => (/* binding */ PedidoVentaService)
/* harmony export */ });
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);







class PedidoVentaService extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_3__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    this.endpoint = this.url + this.core.PEDIDO_VENTA.VERSION + this.core.PEDIDO_VENTA.PATH_BASE;
  }
  anularPedidoVenta(id) {
    let path = this.endpoint + this.core.PEDIDO_VENTA.PUT_ANULAR_PEDIDO_VENTA.PATH_REL.replace('{id}', id.toString());
    return this.editar({}, id, path);
  }
  getTrazabilidad(idComprobante, context) {
    let path = this.url + this.core.PEDIDO_VENTA.GET_TRAZABILIDAD.VERSION + this.core.PEDIDO_VENTA.PATH_BASE + this.core.PEDIDO_VENTA.GET_TRAZABILIDAD.PATH_REL.replace('{id}', idComprobante);
    return this.fetch(null, path, context);
  }
  getNumeroComprobante(context) {
    let path = this.url + this.core.GET_NUMERO_PEDIDO_VENTA.VERSION + this.core.GET_NUMERO_PEDIDO_VENTA.PATH_BASE;
    return this.fetch(null, path, context).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.map)(response => response?.Data?.Numero ?? ''));
  }
  static #_ = this.ɵfac = function PedidoVentaService_Factory(t) {
    return new (t || PedidoVentaService)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_1__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: PedidoVentaService,
    factory: PedidoVentaService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ImagenesService: () => (/* binding */ ImagenesService)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 26306);
/* harmony import */ var _context_context__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../context/context */ 5767);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config.service */ 56375);
/* harmony import */ var _configGeneral_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configGeneral.service */ 99757);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./recursos.service */ 50657);









class ImagenesService {
  constructor(http, configService, configGral, recursosService) {
    this.http = http;
    this.configService = configService;
    this.configGral = configGral;
    this.recursosService = recursosService;
    //SP SINWEB-
    this._isLoading$ = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(false);
  }
  getImagenesBlob(image, error) {
    //SP SINWEB-310 se quito la direccion hardcodeada y ahora se saca de la configuracion page.json
    let endpoint = `${this.configService.config.servidor.url_img}/${image}`;
    return this.http.get(endpoint, {
      responseType: 'blob',
      context: new _angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpContext().set(_context_context__WEBPACK_IMPORTED_MODULE_0__.CONTEXT, {
        NO_SEND_HEADER: true
      })
    }).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.map)(blob => {
      const reader = new FileReader();
      reader.readAsDataURL(blob);
      return new Promise((resolve, reject) => {
        reader.onloadend = () => {
          if (reader.result) {
            resolve(reader.result);
          } else {
            reject('');
          }
        };
      });
    }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.catchError)(error => {
      console.error('Error fetching image:', error);
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null); // Or handle the error differently
    }));
  }
  static #_ = this.ɵfac = function ImagenesService_Factory(t) {
    return new (t || ImagenesService)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_5__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_1__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_configGeneral_service__WEBPACK_IMPORTED_MODULE_2__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjectable"]({
    token: ImagenesService,
    factory: ImagenesService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LanguageService: () => (/* binding */ LanguageService)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config.service */ 56375);




class LanguageService {
  constructor(translate, sf, config) {
    this.translate = translate;
    this.sf = sf;
    this.config = config;
    this.languages = ['es', 'en'];
    let browserLang;
    this.translate.addLangs(this.languages);
    browserLang = sf.getState(sf.pagenames.LENGUAJE);
    /* if (!browserLang) {
      this.setLanguage('es');
      browserLang = translate.getBrowserLang();
    } */
    translate.use(browserLang.match(/en|es/) ? browserLang : 'es');
  }
  setLanguage(lang) {
    this.translate.use(lang);
    this.sf.changeState(this.sf.pagenames.LENGUAJE, lang);
  }
  static #_ = this.ɵfac = function LanguageService_Factory(t) {
    return new (t || LanguageService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_3__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_0__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_1__.ConfigService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
    token: LanguageService,
    factory: LanguageService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LoaderService: () => (/* binding */ LoaderService)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 32013);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);


class LoaderService {
  constructor() {
    this.message = new rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject();
    this._loading = new rxjs__WEBPACK_IMPORTED_MODULE_1__.BehaviorSubject(false);
    this.loading$ = this._loading.asObservable();
  }
  show() {
    this._loading.next(true);
  }
  hide() {
    this._loading.next(false);
  }
  //SP CAT-211 no permite pasarle al componente de carga un mensaje, de esta manera muestra el mensaje y no un icono de carga por defecto
  setMessage(text) {
    this.message.next(text);
  }
  static #_ = this.ɵfac = function LoaderService_Factory(t) {
    return new (t || LoaderService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
    token: LoaderService,
    factory: LoaderService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NotificacionHistorialServices: () => (/* binding */ NotificacionHistorialServices)
/* harmony export */ });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var _config_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config.service */ 56375);
/* harmony import */ var _auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../auth.service */ 90304);
/* harmony import */ var _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/api-base.service */ 78169);
/* harmony import */ var _recursos_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../recursos.service */ 50657);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);







class NotificacionHistorialServices extends _core_api_base_service__WEBPACK_IMPORTED_MODULE_2__.ApiBaseService {
  constructor(http, configService, recursosService, authService) {
    super(http, configService, recursosService, authService);
    // MC SINWEB-384 BehaviorSubject para refrescar el listado de notificaciones y mantenerlo actualizado
    this.refreshListado = new rxjs__WEBPACK_IMPORTED_MODULE_4__.BehaviorSubject(false);
    this.endpoint = this.url + this.notificaciones.NOTIFICACION_HISTORIAL.VERSION + this.notificaciones.NOTIFICACION_HISTORIAL.PATH_BASE;
  }
  /**
   * MC SINWEB-384 Método para obtener el historial de notificaciones
   * @param params Parámetros
   * @param context Contexto
   */
  getNotificacionesHistorial(params, context) {
    return this.fetch(params, this.endpoint, context);
  }
  /**
   * MC SINWEB-384 Método para modificar ciertos campos de una notificación
   */
  patchNotificacionHistorial(id, body, context) {
    return this.patch(body, id, context);
  }
  static #_ = this.ɵfac = function NotificacionHistorialServices_Factory(t) {
    return new (t || NotificacionHistorialServices)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_config_service__WEBPACK_IMPORTED_MODULE_0__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_recursos_service__WEBPACK_IMPORTED_MODULE_3__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵinject"](_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjectable"]({
    token: NotificacionHistorialServices,
    factory: NotificacionHistorialServices.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RecursosService: () => (/* binding */ RecursosService)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ 69862);




//SP SINWEB-47 service para cargar el diccionario de rutas
//Se carga cada modulo por separado, para mas adelante restringirlo por permisos
class RecursosService {
  constructor(http) {
    this.http = http;
    this.core = {};
    this.coreCargado = false;
    //SP SINWEB-328 se agrega un observable de carga para saber si ya cargo el estadistica.json
    this.estadistica = {};
    this.estadisticaCargado = false;
    this.produccion = {};
    this.produccionCargado = false;
    //SP SINWEB-88 se agrega un observable de carga para saber si ya cargo el core.json
    this._isLoading$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__.BehaviorSubject(false);
    // MC SINWEB-96 Agrego el modulo de autorizacion
    this.autorizacion = {};
    this.autorizacionCargado = false;
    this.rma = {};
    this.rmaCargado = false;
    this.web = {};
    this.webCargado = false;
    this.servicios = {};
    this.serviciosCargado = false;
    this.notificaciones = {};
    this.notificacionesCargado = false;
    this.plataformas = {};
    this.plataformasCargado = false;
    this.gpo = {};
    this.gpoCargado = false;
    //SP SINWEB-364 se agregan variables para rutas de api integra
    this.integra = {};
    this.integraCargado = false;
    this.cargarRecursos();
  }
  get isLoading$() {
    return this._isLoading$.asObservable();
  }
  cargarRecursos() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      yield _this.cargarCore(); //SIEMPRE DEBE IR PRIMERO
      yield _this.cargarGPO(); // PM SINWEB-233
      yield _this.cargarIntegra(); // SP SINWEB-364
      yield _this.cargarProduccion();
      yield _this.cargarAutorizacion(); // MC SINWEB-96
      yield _this.cargarEstadistica(); //SP SINWEB-328
      yield _this.cargarNotificaciones(); //PM SINWEB-382
      yield _this.cargarPlataformas(); // MC SINWEB-619
      yield _this.cargarRMA();
      yield _this.cargarWEB();
      _this.cargarSERVICIOS();
    })();
  }
  cargarCore() {
    this._isLoading$.next(true);
    this.coreCargado = false;
    return fetch('./assets/routes/core.json').then(response => response.json()).then(core => {
      this.coreCargado = true;
      this.core = core;
      this._isLoading$.next(false);
    });
  }
  cargarGPO() {
    this._isLoading$.next(true);
    this.gpoCargado = false;
    return fetch('./assets/routes/gpo.json').then(response => response.json()).then(gpo => {
      this.gpoCargado = true;
      this.gpo = gpo;
      this._isLoading$.next(false);
    });
  }
  /**
   * SP SINWEB-364 cargar rutas de api integra
   * @returns
   */
  cargarIntegra() {
    this._isLoading$.next(true);
    this.integraCargado = false;
    return fetch('./assets/routes/integra.json').then(response => response.json()).then(integra => {
      this.integraCargado = true;
      this.integra = integra;
      this._isLoading$.next(false);
    });
  }
  cargarProduccion() {
    this.produccionCargado = false;
    return fetch('./assets/routes/produccion.json').then(response => response.json()).then(produccion => {
      this.produccionCargado = true;
      this.produccion = produccion;
    });
  }
  // MC SINWEB-96 Cargar el modulo de autorizacion
  cargarAutorizacion() {
    this.autorizacionCargado = true;
    return fetch('./assets/routes/autorizacion.json').then(response => response.json()).then(autorizacion => {
      this.autorizacionCargado = true;
      this.autorizacion = autorizacion;
    });
  }
  /**
   * SP-SINWEB-328 cargar estadistica
   * @returns
   */
  cargarEstadistica() {
    this.estadisticaCargado = false;
    return fetch('./assets/routes/estadistica.json').then(response => response.json()).then(estadistica => {
      this.estadisticaCargado = true;
      this.estadistica = estadistica;
    });
  }
  /**
   * SP-SINWEB-382 cargar notificaciones
   * @returns
   */
  cargarNotificaciones() {
    this.notificacionesCargado = false;
    return fetch('./assets/routes/notificaciones.json').then(response => response.json()).then(notificaciones => {
      this.notificacionesCargado = true;
      this.notificaciones = notificaciones;
    });
  }
  /**
   * SP SINWEB-138 metodo que carga los endpoint del modulo rma
   */
  cargarRMA() {
    this.rmaCargado = true;
    return fetch('./assets/routes/rma.json').then(response => response.json()).then(rma => {
      this.rmaCargado = true;
      this.rma = rma;
    });
  }
  /**
   * SP SINWEB-221 metodo que carga los endpoint del modulo web
   */
  cargarWEB() {
    this.webCargado = true;
    return fetch('./assets/routes/web.json').then(response => response.json()).then(web => {
      this.webCargado = true;
      this.web = web;
    });
  }
  cargarSERVICIOS() {
    this.serviciosCargado = false;
    return fetch('./assets/routes/servicios.json').then(response => response.json()).then(servicios => {
      this.serviciosCargado = true;
      this.servicios = servicios;
    });
  }
  /**
   * MC SINWEB-619 metodo que carga los endpoint del modulo plataformas
   */
  cargarPlataformas() {
    this.plataformasCargado = false;
    return fetch('./assets/routes/plataformas.json').then(response => response.json()).then(plataformas => {
      this.plataformasCargado = true;
      this.plataformas = plataformas;
    });
  }
  static #_ = this.ɵfac = function RecursosService_Factory(t) {
    return new (t || RecursosService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_3__.HttpClient));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({
    token: RecursosService,
    factory: RecursosService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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


// MC SINWEB-583 Servicio para controlar la visibilidad del menú lateral
class SidemenuService {
  constructor() {
    this.sidemenuVisibleSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(false);
    this.sidemenuVisible$ = this.sidemenuVisibleSubject.asObservable();
  }
  show() {
    this.sidemenuVisibleSubject.next(true);
  }
  hide() {
    this.sidemenuVisibleSubject.next(false);
  }
  toggle() {
    this.sidemenuVisibleSubject.next(!this.sidemenuVisibleSubject.value);
  }
  static #_ = this.ɵfac = function SidemenuService_Factory(t) {
    return new (t || SidemenuService)();
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
    token: SidemenuService,
    factory: SidemenuService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

/***/ 46295:
/*!************************************************************!*\
  !*** ./src/app/core/services/socket-connection.service.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SocketConnectionService: () => (/* binding */ SocketConnectionService)
/* harmony export */ });
/* harmony import */ var ably__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ably */ 88549);
/* harmony import */ var ably__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ably__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ 20553);
/* harmony import */ var _utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _configGeneral_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./configGeneral.service */ 99757);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./notificaciones/notificacionHistorial.service */ 97504);









//PM CATFER-54 services para realizar la conexion y union al grupo en socket que se utilizara para las notificaciones en tiempo real.
class SocketConnectionService {
  constructor(configService, configGralService, authService, toast, notifHistService) {
    this.configService = configService;
    this.configGralService = configGralService;
    this.authService = authService;
    this.toast = toast;
    this.notifHistService = notifHistService;
    this.isInProcess = false;
    this.baseUrl = '';
    this.baseUrl = this.configService.config.servidor?.api_server;
  }
  /**
   * MC SINWEB-383 Método que inicializa la conexión con Ably y el canal de notificaciones
   */
  InicializarConnection() {
    // MC SINWEB-385 Se agrega comprobación previa a conectarse
    if (this.configGralService._config.NotifRealtime === _utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO) {
      const apiKey = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.ablyApiKey;
      const canal = 'US' + this.authService.usuario.IdUsrUsuario;
      this.ably = new ably__WEBPACK_IMPORTED_MODULE_0__.Realtime({
        key: apiKey
      });
      this.ably.connection.on('connected', () => {
        console.log('Connected to Ably!');
        this.channel = this.ably.channels.get(canal);
        this.channel.subscribe(message => {
          this.toast.info(message.data.mensaje || '-', message.data.titulo || '-', {
            timeOut: 20000
          });
          this.notifHistService.refreshListado.next(true);
        });
      });
    } else {
      console.log('La configuración de notificaciones realtime está desactivada.');
    }
  }
  GetConnection() {
    return this.ably.connection;
  }
  GetChannel() {
    return this.channel;
  }
  /**
   * MC SINWEB-383 Método que retorna si la conexión con Ably está establecida
   * @returns {boolean} True si la conexión está establecida, False en caso contrario
   */
  isConnected() {
    return this.ably !== undefined && this.GetConnection().state === 'connected';
  }
  ngOnDestroy() {
    this.desconectarConnection();
  }
  /**
   * MC SINWEB-383 Método que cierra la conexión con Ably
   */
  desconectarConnection() {
    if (this.isConnected()) {
      this.GetChannel().unsubscribe();
      this.ably.close();
      console.log('Closed the connection to Ably.');
    }
  }
  static #_ = this.ɵfac = function SocketConnectionService_Factory(t) {
    return new (t || SocketConnectionService)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](_configGeneral_service__WEBPACK_IMPORTED_MODULE_4__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵinject"](_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_6__.NotificacionHistorialServices));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjectable"]({
    token: SocketConnectionService,
    factory: SocketConnectionService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   StatefulService: () => (/* binding */ StatefulService)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes_sf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-sf */ 75573);
/* harmony import */ var src_app_core_utils_constantes_const_sf_autorizacion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-autorizacion */ 33963);
/* harmony import */ var src_app_core_utils_constantes_const_sf_produccion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-produccion */ 68517);
/* harmony import */ var src_app_core_utils_constantes_const_sf_rma__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-rma */ 76013);
/* harmony import */ var src_app_core_utils_constantes_const_sf_web__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-web */ 46127);
/* harmony import */ var src_app_core_utils_constantes_const_sf_general__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-general */ 93234);
/* harmony import */ var src_app_core_utils_constantes_const_sf_servicios__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-servicios */ 15069);
/* harmony import */ var src_app_core_utils_constantes_const_sf_notificaciones__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-notificaciones */ 33644);
/* harmony import */ var src_app_core_utils_constantes_const_sf_plataformas__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-plataformas */ 73429);
/* harmony import */ var src_app_core_utils_constantes_desarrollo_const_sf_desarrollo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/utils/constantes/desarrollo/const-sf-desarrollo */ 78071);
/* harmony import */ var src_app_core_utils_constantes_const_sf_estadistica__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/utils/constantes/const-sf-estadistica */ 91602);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_cookie_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-cookie-service */ 10459);













//PM SINWEB-93 Services para administrar estados de componentes por medio de valores almacenados en cookie
class StatefulService {
  setControlStateConfig(cond) {
    this.controlStateConfig = cond;
  }
  constructor(cookieService) {
    this.cookieService = cookieService;
    this.controlStateConfig = true;
    this.pagenames = src_app_core_utils_constantes_constantes_sf__WEBPACK_IMPORTED_MODULE_0__;
    this.states = {};
    this.pagenamesAUT = src_app_core_utils_constantes_const_sf_autorizacion__WEBPACK_IMPORTED_MODULE_1__;
    this.pagenamesPRD = src_app_core_utils_constantes_const_sf_produccion__WEBPACK_IMPORTED_MODULE_2__;
    this.pagenamesRMA = src_app_core_utils_constantes_const_sf_rma__WEBPACK_IMPORTED_MODULE_3__;
    this.pagenamesWEB = src_app_core_utils_constantes_const_sf_web__WEBPACK_IMPORTED_MODULE_4__;
    this.pagenamesGEN = src_app_core_utils_constantes_const_sf_general__WEBPACK_IMPORTED_MODULE_5__;
    this.pagenamesSERV = src_app_core_utils_constantes_const_sf_servicios__WEBPACK_IMPORTED_MODULE_6__;
    this.pagenamesNOTIF = src_app_core_utils_constantes_const_sf_notificaciones__WEBPACK_IMPORTED_MODULE_7__;
    this.pagenamesPLAT = src_app_core_utils_constantes_const_sf_plataformas__WEBPACK_IMPORTED_MODULE_8__;
    this.pagenamesDEV = src_app_core_utils_constantes_desarrollo_const_sf_desarrollo__WEBPACK_IMPORTED_MODULE_9__;
    this.pagenamesEST = src_app_core_utils_constantes_const_sf_estadistica__WEBPACK_IMPORTED_MODULE_10__;
  }
  //Metodo que retorno si se encuentra configurado el modo de control de estados
  getControlStateConfig() {
    return this.controlStateConfig;
  }
  //Metodo que dado un componente estado, retorna el valor almacenado del mismo
  getState(compState) {
    //verificar
    if (!compState.control || this.controlStateConfig) {
      if (this.cookieService.check(compState.state)) {
        return this.cookieService.get(compState.state);
      } else {
        this.changeState(compState, compState.default);
        return this.getState(compState);
      }
    } else {
      return compState.default;
    }
  }
  //Metodo que dado un componente estado y un valor, se almacena el mismo en dicho estado
  changeState(compState, value) {
    if (!compState.control || this.controlStateConfig) {
      this.cookieService.set(compState.state, value, 365);
    }
  }
  //Metodo que dado un componente estado se modifica el valor por defecto del mismo
  changeDefaultValue(compState, value) {
    compState.default = value;
  }
  //Metodo que elimina todos los estados
  deleteAllStates() {
    this.cookieService.deleteAll('/');
  }
  //Funcion que indica que un estado es igual a su valor por defecto
  stateEqualDefault(compState) {
    return this.getState(compState).toString() === compState.default.toString();
  }
  //Metodo que carga a todos los estados del pagename actual, sus valores por defecto
  cleanAllStates() {
    let statesKeys = Object.keys(this.states);
    for (let i = 0; i < statesKeys.length; i++) {
      let stateKey = statesKeys[i];
      this.changeState(this.states[stateKey], this.states[stateKey].default);
    }
  }
  getCantCustomStates() {
    let retorno = 0;
    let statesKeys = Object.keys(this.states);
    for (let i = 0; i < statesKeys.length; i++) {
      let stateKey = statesKeys[i];
      if (!this.stateEqualDefault(this.states[stateKey])) {
        retorno++;
      }
    }
    return retorno;
  }
  static #_ = this.ɵfac = function StatefulService_Factory(t) {
    return new (t || StatefulService)(_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵinject"](ngx_cookie_service__WEBPACK_IMPORTED_MODULE_12__.CookieService));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_11__["ɵɵdefineInjectable"]({
    token: StatefulService,
    factory: StatefulService.ɵfac,
    providedIn: 'root'
  });
}

/***/ }),

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

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

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

/***/ }),

/***/ 33963:
/*!****************************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-autorizacion.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AUT_COMP_STATES: () => (/* binding */ AUT_COMP_STATES),
/* harmony export */   CONFIG_COMP_STATES: () => (/* binding */ CONFIG_COMP_STATES),
/* harmony export */   RESP_AUT_STATES: () => (/* binding */ RESP_AUT_STATES)
/* harmony export */ });
// MC SINWEB-118 Constantes utilizadas para almacenar el estado de listado de configuraciones de autorización de comprobantes
const CONFIG_COMP_STATES = {
  CONFIG_COMP_F_TIPO_MONEDA: {
    state: 'CONFIG_COMP_F_TIPO_MONEDA',
    control: true,
    default: -1
  },
  CONFIG_COMP_F_TIPO_COMP: {
    state: 'CONFIG_COMP_F_TIPO_COMP',
    control: true,
    default: -1
  },
  CONFIG_COMP_F_MODO_AUT: {
    state: 'CONFIG_COMP_F_MODO_AUT',
    control: true,
    default: ''
  },
  CONFIG_COMP_F_ACTIVA: {
    state: 'CONFIG_COMP_F_ACTIVA',
    control: true,
    default: 'S'
  },
  CONFIG_COMP_S_NOMBRE: {
    state: 'CONFIG_COMP_S_NOMBRE',
    control: true,
    default: ''
  },
  CONFIG_COMP_L_PAGE: {
    state: 'CONFIG_COMP_L_PAGE',
    control: true,
    default: 1
  },
  CONFIG_COMP_L_ORDER: {
    state: 'CONFIG_COMP_L_ORDER',
    control: true,
    default: 2
  },
  CONFIG_COMP_L_SENTIDO: {
    state: 'CONFIG_COMP_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  CONFIG_COMP_L_PAGESIZE: {
    state: 'CONFIG_COMP_L_PAGESIZE',
    control: true,
    default: 10
  }
};
// MC SINWEB-118 Constantes utilizadas para almacenar el estado de listado de autorización de comprobantes
const AUT_COMP_STATES = {
  AUT_COMP_F_TIPO_COMP: {
    state: 'AUT_COMP_F_TIPO_COMP',
    control: true,
    default: -1
  },
  AUT_COMP_F_ESTADO_AUT: {
    state: 'AUT_COMP_F_ESTADO_AUT',
    control: true,
    default: 1
  },
  AUT_COMP_F_FECHA_DESDE: {
    state: 'AUT_COMP_F_FECHA_DESDE',
    control: true,
    default: ''
  },
  AUT_COMP_F_FECHA_HASTA: {
    state: 'AUT_COMP_F_FECHA_HASTA',
    control: true,
    default: ''
  },
  AUT_COMP_F_CONFIG_COMP: {
    state: 'AUT_COMP_F_CONFIG_COMP',
    control: true,
    default: ''
  },
  AUT_COMP_F_RESPONSABLE: {
    state: 'AUT_COMP_F_RESPONSABLE',
    control: true,
    default: ''
  },
  AUT_COMP_S_NUMERO_COMP: {
    state: 'AUT_COMP_S_NUMERO_COMP',
    control: true,
    default: ''
  },
  AUT_COMP_L_PAGE: {
    state: 'AUT_COMP_L_PAGE',
    control: true,
    default: 1
  },
  AUT_COMP_L_ORDER: {
    state: 'AUT_COMP_L_ORDER',
    control: true,
    default: 1
  },
  AUT_COMP_L_SENTIDO: {
    state: 'AUT_COMP_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  AUT_COMP_L_PAGESIZE: {
    state: 'AUT_COMP_L_PAGESIZE',
    control: true,
    default: 10
  }
};
// MC SINWEB-118 Constantes utilizadas para almacenar el estado de listado de responsables de autorización de comprobantes
const RESP_AUT_STATES = {
  RESP_AUT_F_TIPO_COMP: {
    state: 'RESP_AUT_F_TIPO_COMP',
    control: true,
    default: -1
  },
  RESP_AUT_F_TIPO_MONEDA: {
    state: 'RESP_AUT_F_TIPO_MONEDA',
    control: true,
    default: -1
  },
  RESP_AUT_F_MODO_AUT: {
    state: 'RESP_AUT_F_MODO_AUT',
    control: true,
    default: ''
  },
  RESP_AUT_F_ACTIVA: {
    state: 'RESP_AUT_F_ACTIVA',
    control: true,
    default: 'S'
  },
  RESP_AUT_F_SIN_RESP: {
    state: 'RESP_AUT_F_SIN_RESP',
    control: true,
    default: ''
  },
  RESP_AUT_S_NOMBRE_CONFIG: {
    state: 'RESP_AUT_S_NOMBRE_CONFIG',
    control: true,
    default: ''
  },
  RESP_AUT_S_NOMBRE_USUARIO: {
    state: 'RESP_AUT_S_NOMBRE_USUARIO',
    control: true,
    default: ''
  },
  RESP_AUT_L_PAGE: {
    state: 'RESP_AUT_L_PAGE',
    control: true,
    default: 1
  },
  RESP_AUT_L_ORDER: {
    state: 'RESP_AUT_L_ORDER',
    control: true,
    default: 2
  },
  RESP_AUT_L_SENTIDO: {
    state: 'RESP_AUT_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  RESP_AUT_L_PAGESIZE: {
    state: 'RESP_AUT_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

/***/ 91602:
/*!***************************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-estadistica.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TABLERO_STATES: () => (/* binding */ TABLERO_STATES),
/* harmony export */   WIDGET_STATES: () => (/* binding */ WIDGET_STATES)
/* harmony export */ });
const WIDGET_STATES = {
  WIDGET_F_VIEWMODE: {
    state: 'WIDGET_F_VIEWMODE',
    control: true,
    default: 'card'
  },
  WIDGET_S_NOMBRE: {
    state: 'WIDGET_S_NOMBRE',
    control: true,
    default: ''
  },
  WIDGET_F_COMP_VISUAL_IDS: {
    state: 'WIDGET_F_COMP_VISUAL_IDS',
    control: true,
    default: ''
  },
  WIDGET_F_FUENTE_DATOS_IDS: {
    state: 'WIDGET_F_FUENTE_DATOS_IDS',
    control: true,
    default: ''
  },
  WIDGET_F_CONFIGURABLE: {
    state: 'WIDGET_F_CONFIGURABLE',
    control: true,
    default: ''
  },
  WIDGET_F_TIPO_FUENTE_IDS: {
    state: 'WIDGET_F_TIPO_FUENTE_IDS',
    control: true,
    default: ''
  },
  WIDGET_L_PAGE: {
    state: 'WIDGET_L_PAGE',
    control: true,
    default: 1
  },
  WIDGET_L_ORDER: {
    state: 'WIDGET_L_ORDER',
    control: true,
    default: 2
  },
  WIDGET_L_SENTIDO: {
    state: 'WIDGET_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  WIDGET_L_PAGESIZE: {
    state: 'WIDGET_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const TABLERO_STATES = {
  TABLERO_S_NOMBRE: {
    state: 'TABLERO_S_NOMBRE',
    control: true,
    default: ''
  },
  TABLERO_L_ORDER: {
    state: 'TABLERO_L_ORDER',
    control: true,
    default: 2
  }
};

/***/ }),

/***/ 93234:
/*!***********************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-general.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ART_GENERAL_STATES: () => (/* binding */ ART_GENERAL_STATES),
/* harmony export */   ATRIBUTOS_GENERAL_STATES: () => (/* binding */ ATRIBUTOS_GENERAL_STATES),
/* harmony export */   ATRIBUTOS_RUBRO_GENERAL_STATES: () => (/* binding */ ATRIBUTOS_RUBRO_GENERAL_STATES),
/* harmony export */   NOTAS_PEDIDO_STATES: () => (/* binding */ NOTAS_PEDIDO_STATES)
/* harmony export */ });
const ART_GENERAL_STATES = {
  //CONFIG
  ART_GENERAL_F_CONFIG: {
    state: 'ART_GENERAL_F_CONFIG',
    control: true,
    default: 'true,true,false,true,true,true,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false,true,true,false,true,false,false,false,true,true'
  },
  //filtros
  ART_GENERAL_F_TIPOART: {
    state: 'ART_GENERAL_F_TIPOART',
    control: true,
    default: ''
  },
  ART_GENERAL_F_RUBRO: {
    state: 'ART_GENERAL_F_RUBRO',
    control: true,
    default: -1
  },
  ART_GENERAL_F_UNIDAD: {
    state: 'ART_GENERAL_F_UNIDAD',
    control: true,
    default: -1
  },
  ART_GENERAL_F_TIPOMONEDA: {
    state: 'ART_GENERAL_F_TIPOMONEDA',
    control: true,
    default: -1
  },
  ART_GENERAL_F_COMBO: {
    state: 'ART_GENERAL_F_COMBO',
    control: true,
    default: ''
  },
  ART_GENERAL_F_PROD: {
    state: 'ART_GENERAL_F_PROD',
    control: true,
    default: ''
  },
  ART_GENERAL_F_DISCONTINUO: {
    state: 'ART_GENERAL_F_DISCONTINUO',
    control: true,
    default: ''
  },
  ART_GENERAL_F_BAJA: {
    state: 'ART_GENERAL_F_BAJA',
    control: true,
    default: 'N'
  },
  ART_GENERAL_F_SUSPENDIDOS: {
    state: 'ART_GENERAL_F_SUSPENDIDOS',
    control: true,
    default: ''
  },
  //SP SINWEB-416 se agrega a cookies el filtro.
  ART_GENERAL_F_ATRIBUTOFILTRO: {
    state: 'ART_GENERAL_F_ATRIBUTOFILTRO',
    control: true,
    default: ''
  },
  //busqueda
  ART_GENERAL_S_NOMBRE: {
    state: 'ART_GENERAL_S_NOMBRE',
    control: true,
    default: ''
  },
  ART_GENERAL_S_CODIGO: {
    state: 'ART_GENERAL_S_CODIGO',
    control: true,
    default: ''
  },
  ART_GENERAL_S_MULTIPLE: {
    state: 'ART_GENERAL_S_MULTIPLE',
    control: true,
    default: ''
  },
  ART_GENERAL_S_TREEVIEW: {
    state: 'ART_GENERAL_S_TREEVIEW',
    control: true,
    default: 'S'
  },
  //select component
  ART_GENERAL_S_MARCAID: {
    state: 'ART_GENERAL_S_MARCAID',
    control: true,
    default: ''
  },
  ART_GENERAL_S_MARCA: {
    state: 'ART_GENERAL_S_MARCA',
    control: true,
    default: ''
  },
  ART_GENERAL_S_PROVEEDORID: {
    state: 'ART_GENERAL_S_PROVEEDORID',
    control: true,
    default: -1
  },
  ART_GENERAL_S_PROVEEDOR: {
    state: 'ART_GENERAL_S_PROVEEDOR',
    control: true,
    default: ''
  },
  ART_GENERAL_S_DEPOSITOID: {
    state: 'ART_GENERAL_S_DEPOSITOID',
    control: true,
    default: -1
  },
  ART_GENERAL_S_DEPOSITO: {
    state: 'ART_GENERAL_S_DEPOSITO',
    control: true,
    default: ''
  },
  //generales
  ART_GENERAL_L_PAGE: {
    state: 'ART_GENERAL_L_PAGE',
    control: true,
    default: 1
  },
  ART_GENERAL_L_ORDER: {
    state: 'ART_GENERAL_L_ORDER',
    control: true,
    default: 2
  },
  ART_GENERAL_L_SENTIDO: {
    state: 'ART_GENERAL_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ART_GENERAL_L_PAGESIZE: {
    state: 'ART_GENERAL_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ATRIBUTOS_GENERAL_STATES = {
  //filtros
  ATRIBUTOS_GENERAL_F_DOMINIO: {
    state: 'ATRIBUTOS_GENERAL_F_DOMINIO',
    control: true,
    default: ''
  },
  ATRIBUTOS_GENERAL_F_BAJA_LOGICA: {
    state: 'ATRIBUTOS_GENERAL_F_BAJA_LOGICA',
    control: true,
    default: ''
  },
  ATRIBUTOS_GENERAL_F_REQUERIDO: {
    state: 'ATRIBUTOS_GENERAL_F_REQUERIDO',
    control: true,
    default: ''
  },
  //busqueda
  ATRIBUTOS_GENERAL_S_NOMBRE: {
    state: 'ATRIBUTOS_GENERAL_S_NOMBRE',
    control: true,
    default: ''
  },
  //generales
  ATRIBUTOS_GENERAL_L_PAGE: {
    state: 'ATRIBUTOS_GENERAL_L_PAGE',
    control: true,
    default: 1
  },
  ATRIBUTOS_GENERAL_L_ORDER: {
    state: 'ATRIBUTOS_GENERAL_L_ORDER',
    control: true,
    default: 3
  },
  ATRIBUTOS_GENERAL_L_SENTIDO: {
    state: 'ATRIBUTOS_GENERAL_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ATRIBUTOS_GENERAL_L_PAGESIZE: {
    state: 'ATRIBUTOS_GENERAL_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ATRIBUTOS_RUBRO_GENERAL_STATES = {
  //filtros
  ATRIBUTOS_RUBRO_GENERAL_F_DOMINIO: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_F_DOMINIO',
    control: true,
    default: ''
  },
  ATRIBUTOS_RUBRO_GENERAL_F_RUBRO: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_F_RUBRO',
    control: true,
    default: -1
  },
  ATRIBUTOS_RUBRO_GENERAL_F_REQUERIDO: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_F_REQUERIDO',
    control: true,
    default: ''
  },
  //busqueda
  ATRIBUTOS_RUBRO_GENERAL_S_NOMBRE: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_S_NOMBRE',
    control: true,
    default: ''
  },
  //generales
  ATRIBUTOS_RUBRO_GENERAL_L_PAGE: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_L_PAGE',
    control: true,
    default: 1
  },
  ATRIBUTOS_RUBRO_GENERAL_L_ORDER: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_L_ORDER',
    control: true,
    default: 3
  },
  ATRIBUTOS_RUBRO_GENERAL_L_SENTIDO: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ATRIBUTOS_RUBRO_GENERAL_L_PAGESIZE: {
    state: 'ATRIBUTOS_RUBRO_GENERAL_L_PAGESIZE',
    control: true,
    default: 10
  }
};
//variables de filtros para NOTAS DE PEDIDO
const NOTAS_PEDIDO_STATES = {
  NOTAS_PEDIDO_F_CONFIG: {
    state: 'NOTAS_PEDIDO_F_CONFIG',
    control: true,
    default: 'true,true,true,true,true,true,true,true,true,true,true,true,true,true'
  },
  NOTAS_PEDIDO_F_VIEWMODE: {
    state: 'NOTAS_PEDIDO_F_VIEWMODE',
    control: true,
    default: 'card'
  },
  //filtros
  NOTAS_PEDIDO_F_FECHADESDE: {
    state: 'NOTAS_PEDIDO_F_FECHADESDE',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_F_FECHAHASTA: {
    state: 'NOTAS_PEDIDO_F_FECHAHASTA',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_F_IDS_CANALES: {
    state: 'NOTAS_PEDIDO_F_IDS_CANALES',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_F_ESTADO: {
    state: 'NOTAS_PEDIDO_F_ESTADO',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_F_ANULADOS: {
    state: 'NOTAS_PEDIDO_F_ANULADOS',
    control: true,
    default: 'N'
  },
  //busqueda
  NOTAS_PEDIDO_S_IDS_VENDEDORES: {
    state: 'NOTAS_PEDIDO_S_IDS_VENDEDORES',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_S_VENDEDORES: {
    state: 'NOTAS_PEDIDO_S_VENDEDORES',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_S_IDS_CLIENTES: {
    state: 'NOTAS_PEDIDO_S_IDS_CLIENTES',
    control: true,
    default: ''
  },
  NOTAS_PEDIDO_S_CLIENTES: {
    state: 'NOTAS_PEDIDO_S_CLIENTES',
    control: true,
    default: ''
  },
  //generales
  NOTAS_PEDIDO_L_PAGE: {
    state: 'NOTAS_PEDIDO_L_PAGE',
    control: true,
    default: 1
  },
  NOTAS_PEDIDO_L_ORDER: {
    state: 'NOTAS_PEDIDO_L_ORDER',
    control: true,
    default: 1
  },
  NOTAS_PEDIDO_L_SENTIDO: {
    state: 'NOTAS_PEDIDO_L_SENTIDO',
    control: true,
    default: 'Desc'
  },
  NOTAS_PEDIDO_L_PAGESIZE: {
    state: 'NOTAS_PEDIDO_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

/***/ 33644:
/*!******************************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-notificaciones.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NOTIF_CONFIG_RECEPTOR_STATES: () => (/* binding */ NOTIF_CONFIG_RECEPTOR_STATES),
/* harmony export */   NOTIF_CONFIG_STATES: () => (/* binding */ NOTIF_CONFIG_STATES),
/* harmony export */   NOTIF_LIST_STATES: () => (/* binding */ NOTIF_LIST_STATES)
/* harmony export */ });
const NOTIF_CONFIG_RECEPTOR_STATES = {
  //filtros
  NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR: {
    state: 'NOTIF_CONFIG_RECEPTOR_F_TIPORECEPTOR',
    control: true,
    default: 0
  },
  NOTIF_CONFIG_RECEPTOR_F_IDSCANALES: {
    state: 'NOTIF_CONFIG_RECEPTOR_F_IDSCANALES',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_RECEPTOR_F_IDSTIPONOTIF: {
    state: 'NOTIF_CONFIG_RECEPTOR_F_IDSTIPONOTIF',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_RECEPTOR_F_NOTIFCONFNOTIF: {
    state: 'NOTIF_CONFIG_RECEPTOR_F_NOTIFCONFNOTIF',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_RECEPTOR_F_MOSTRARNOCFG: {
    state: 'NOTIF_CONFIG_RECEPTOR_F_MOSTRARNOCFG',
    control: true,
    default: 'N'
  },
  //busqueda
  NOTIF_CONFIG_RECEPTOR_B_NOMBRE: {
    state: 'NOTIF_CONFIG_RECEPTOR_B_NOMBRE',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_RECEPTOR_B_CODIGO: {
    state: 'NOTIF_CONFIG_RECEPTOR_B_CODIGO',
    control: true,
    default: ''
  },
  //generales
  NOTIF_CONFIG_RECEPTOR_L_PAGE: {
    state: 'NOTIF_CONFIG_RECEPTOR_L_PAGE',
    control: true,
    default: 1
  },
  NOTIF_CONFIG_RECEPTOR_L_ORDER: {
    state: 'NOTIF_CONFIG_RECEPTOR_L_ORDER',
    control: true,
    default: 3
  },
  NOTIF_CONFIG_RECEPTOR_L_SENTIDO: {
    state: 'NOTIF_CONFIG_RECEPTOR_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  NOTIF_CONFIG_RECEPTOR_L_PAGESIZE: {
    state: 'NOTIF_CONFIG_RECEPTOR_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const NOTIF_LIST_STATES = {
  //CONFIG
  NOTIF_LIST_F_CONFIG: {
    state: 'NOTIF_LIST_F_CONFIG',
    control: true,
    default: 'true,true,true,true,true,true,true,true,true,true,true,true,true,true,false'
  },
  //filtros
  NOTIF_LIST_F_NOTIF_TIPOS: {
    state: 'NOTIF_LIST_F_NOTIF_TIPOS',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_NOTIF_CONF: {
    state: 'NOTIF_LIST_F_NOTIF_CONF',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_TIPOS_RECEPTORES: {
    state: 'NOTIF_LIST_F_TIPOS_RECEPTORES',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO: {
    state: 'NOTIF_LIST_F_IDS_RECEPTORES_CON_TIPO',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_RECEPTORES_CON_TIPO: {
    state: 'NOTIF_LIST_F_RECEPTORES_CON_TIPO',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_IDS_NOTIF_CANALES: {
    state: 'NOTIF_LIST_F_IDS_NOTIF_CANALES',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_IDS_NOTIF_DOMINIOS: {
    state: 'NOTIF_LIST_F_IDS_NOTIF_DOMINIOS',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_ESTADOS: {
    state: 'NOTIF_LIST_F_ESTADOS',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_FECHA_DESDE_REGISTRO: {
    state: 'NOTIF_LIST_F_FECHA_DESDE_REGISTRO',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_FECHA_HASTA_REGISTRO: {
    state: 'NOTIF_LIST_F_FECHA_HASTA_REGISTRO',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_FECHA_DESDE_NOTIFICACION: {
    state: 'NOTIF_LIST_F_FECHA_DESDE_NOTIFICACION',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_FECHA_HASTA_NOTIFICACION: {
    state: 'NOTIF_LIST_F_FECHA_HASTA_NOTIFICACION',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_FECHA_DESDE_NOTIFICADO: {
    state: 'NOTIF_LIST_F_FECHA_DESDE_NOTIFICADO',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_FECHA_HASTA_NOTIFICADO: {
    state: 'NOTIF_LIST_F_FECHA_HASTA_NOTIFICADO',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_MODO_VISTA: {
    state: 'NOTIF_LIST_F_MODO_VISTA',
    control: true,
    default: 'C'
  },
  NOTIF_LIST_F_IDS_REGISTROS: {
    state: 'NOTIF_LIST_F_IDS_REGISTROS',
    control: true,
    default: ''
  },
  NOTIF_LIST_F_REGISTROS: {
    state: 'NOTIF_LIST_F_REGISTROS',
    control: true,
    default: ''
  },
  //busqueda
  NOTIF_LIST_B_MODO: {
    state: 'NOTIF_LIST_B_MODO',
    control: true,
    default: 'H'
  },
  NOTIF_LIST_B_INFORMACION_CONTACTO: {
    state: 'NOTIF_LIST_B_INFORMACION_CONTACTO',
    control: true,
    default: ''
  },
  //generales
  NOTIF_LIST_L_PAGE: {
    state: 'NOTIF_LIST_L_PAGE',
    control: true,
    default: 1
  },
  NOTIF_LIST_L_ORDER: {
    state: 'NOTIF_LIST_L_ORDER',
    control: true,
    default: 6
  },
  NOTIF_LIST_L_SENTIDO: {
    state: 'NOTIF_LIST_L_SENTIDO',
    control: true,
    default: 'Desc'
  },
  NOTIF_LIST_L_PAGESIZE: {
    state: 'NOTIF_LIST_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const NOTIF_CONFIG_STATES = {
  //filtros
  NOTIF_CONFIG_F_FECHA_INICIO_DESDE: {
    state: 'NOTIF_CONFIG_F_FECHA_INICIO_DESDE',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_F_FECHA_INICIO_HASTA: {
    state: 'NOTIF_CONFIG_F_FECHA_INICIO_HASTA',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_F_ACTIVO: {
    state: 'NOTIF_CONFIG_F_ACTIVO',
    control: true,
    default: 'S'
  },
  NOTIF_CONFIG_F_IDS_CANALES: {
    state: 'NOTIF_CONFIG_F_IDS_CANALES',
    control: true,
    default: ''
  },
  //busqueda
  NOTIF_CONFIG_S_DESCRIP: {
    state: 'NOTIF_CONFIG_S_DESCRIP',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_S_NOTIF_TIPOS_IDS: {
    state: 'NOTIF_CONFIG_S_NOTIF_TIPOS_IDS',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_S_NOTIF_TIPOS: {
    state: 'NOTIF_CONFIG_S_NOTIF_TIPOS',
    control: true,
    default: ''
  },
  NOTIF_CONFIG_L_PAGE: {
    state: 'NOTIF_CONFIG_L_PAGE',
    control: true,
    default: 1
  },
  NOTIF_CONFIG_L_ORDER: {
    state: 'NOTIF_CONFIG_L_ORDER',
    control: true,
    default: 2
  },
  NOTIF_CONFIG_L_SENTIDO: {
    state: 'NOTIF_CONFIG_L_SENTIDO',
    control: true,
    default: 'Desc'
  },
  NOTIF_CONFIG_L_PAGESIZE: {
    state: 'NOTIF_CONFIG_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

/***/ 73429:
/*!***************************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-plataformas.ts ***!
  \***************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CONFIG_USUARIOS_STATES: () => (/* binding */ CONFIG_USUARIOS_STATES),
/* harmony export */   CUENTAS_STATES: () => (/* binding */ CUENTAS_STATES),
/* harmony export */   MPCAJAS_LIST_STATES: () => (/* binding */ MPCAJAS_LIST_STATES),
/* harmony export */   MPSUCURSALES_LIST_STATES: () => (/* binding */ MPSUCURSALES_LIST_STATES),
/* harmony export */   PLAT_LIST_STATES: () => (/* binding */ PLAT_LIST_STATES)
/* harmony export */ });
const MPCAJAS_LIST_STATES = {
  MPCAJAS_LIST_F_VIEWMODE: {
    state: 'MPCAJAS_LIST_F_VIEWMODE',
    control: true,
    default: 'card'
  },
  MPCAJAS_LIST_F_IDSUCURSAL: {
    state: 'MPCAJAS_LIST_F_IDSUCURSAL',
    control: true,
    default: ''
  },
  MPCAJAS_LIST_F_IDCUENTA: {
    state: 'MPCAJAS_LIST_F_IDCUENTA',
    control: true,
    default: ''
  },
  MPCAJAS_LIST_S_NOMBRE: {
    state: 'MPCAJAS_LIST_S_NOMBRE',
    control: true,
    default: ''
  },
  MPCAJAS_LIST_L_PAGE: {
    state: 'MPCAJAS_LIST_L_PAGE',
    control: true,
    default: 1
  },
  MPCAJAS_LIST_L_PAGESIZE: {
    state: 'MPCAJAS_LIST_L_PAGESIZE',
    control: true,
    default: 10
  },
  MPCAJAS_LIST_L_ORDER: {
    state: 'MPCAJAS_LIST_L_ORDER',
    control: true,
    default: 2
  },
  MPCAJAS_LIST_L_SENTIDO: {
    state: 'MPCAJAS_LIST_L_SENTIDO',
    control: true,
    default: 'Asc'
  }
};
const MPSUCURSALES_LIST_STATES = {
  MPSUCURSALES_LIST_F_VIEWMODE: {
    state: 'MPSUCURSALES_LIST_F_VIEWMODE',
    control: true,
    default: 'card'
  },
  MPSUCURSALES_LIST_F_IDSUCURSALEXT: {
    state: 'MPSUCURSALES_LIST_F_IDSUCURSALEXT',
    control: true,
    default: ''
  },
  MPSUCURSALES_LIST_F_IDCUENTA: {
    state: 'MPSUCURSALES_LIST_F_IDCUENTA',
    control: true,
    default: ''
  },
  MPSUCURSALES_LIST_S_NOMBRE: {
    state: 'MPSUCURSALES_LIST_S_NOMBRE',
    control: true,
    default: ''
  },
  MPSUCURSALES_LIST_L_PAGE: {
    state: 'MPSUCURSALES_LIST_L_PAGE',
    control: true,
    default: 1
  },
  MPSUCURSALES_LIST_L_PAGESIZE: {
    state: 'MPSUCURSALES_LIST_L_PAGESIZE',
    control: true,
    default: 10
  },
  MPSUCURSALES_LIST_L_ORDER: {
    state: 'MPSUCURSALES_LIST_L_ORDER',
    control: true,
    default: 6
  },
  MPSUCURSALES_LIST_L_SENTIDO: {
    state: 'MPSUCURSALES_LIST_L_SENTIDO',
    control: true,
    default: 'Asc'
  }
};
const PLAT_LIST_STATES = {
  PLAT_LIST_F_ACTIVO: {
    state: 'PLAT_LIST_F_ACTIVO',
    control: true,
    default: 'S'
  },
  PLAT_LIST_F_BANCO: {
    state: 'PLAT_LIST_F_BANCO',
    control: true,
    default: ''
  },
  PLAT_LIST_F_CREACION_DESDE: {
    state: 'PLAT_LIST_F_CREACION_DESDE',
    control: true,
    default: ''
  },
  PLAT_LIST_F_CREACION_HASTA: {
    state: 'PLAT_LIST_F_CREACION_HASTA',
    control: true,
    default: ''
  },
  PLAT_LIST_F_ACTUALIZACION_DESDE: {
    state: 'PLAT_LIST_F_ACTUALIZACION_DESDE',
    control: true,
    default: ''
  },
  PLAT_LIST_F_ACTUALIZACION_HASTA: {
    state: 'PLAT_LIST_F_ACTUALIZACION_HASTA',
    control: true,
    default: ''
  },
  PLAT_LIST_F_VIEWMODE: {
    state: 'PLAT_LIST_F_VIEWMODE',
    control: true,
    default: 'card'
  },
  PLAT_LIST_S_NOMBRE: {
    state: 'PLAT_LIST_S_NOMBRE',
    control: true,
    default: ''
  },
  PLAT_LIST_S_DESCRIPCION: {
    state: 'PLAT_LIST_S_DESCRIPCION',
    control: true,
    default: ''
  },
  PLAT_LIST_L_ORDER: {
    state: 'PLAT_LIST_L_ORDER',
    control: true,
    default: 'Nombre'
  },
  PLAT_LIST_L_SENTIDO: {
    state: 'PLAT_LIST_L_SENTIDO',
    control: true,
    default: 'Asc'
  }
};
const CUENTAS_STATES = {
  CUENTAS_F_ACTIVA: {
    state: 'CUENTAS_F_ACTIVA',
    control: true,
    default: 'S'
  },
  CUENTAS_F_VIEWMODE: {
    state: 'CUENTAS_F_VIEWMODE',
    control: true,
    default: 'card'
  },
  CUENTAS_L_PAGE: {
    state: 'CUENTAS_L_PAGE',
    control: true,
    default: 1
  },
  CUENTAS_L_PAGESIZE: {
    state: 'CUENTAS_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const CONFIG_USUARIOS_STATES = {
  CONFIG_USUARIOS_F_BAJALOGICA: {
    state: 'CONFIG_USUARIOS_F_BAJALOGICA',
    control: true,
    default: 'N'
  },
  CONFIG_USUARIOS_S_USUARIO: {
    state: 'CONFIG_USUARIOS_S_USUARIO',
    control: true,
    default: ''
  },
  CONFIG_USUARIOS_L_PAGE: {
    state: 'CONFIG_USUARIOS_L_PAGE',
    control: true,
    default: 1
  },
  CONFIG_USUARIOS_L_ORDER: {
    state: 'CONFIG_USUARIOS_L_ORDER',
    control: true,
    default: 5
  },
  CONFIG_USUARIOS_L_SENTIDO: {
    state: 'CONFIG_USUARIOS_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  CONFIG_USUARIOS_L_PAGESIZE: {
    state: 'CONFIG_USUARIOS_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ART_PROD_STATES: () => (/* binding */ ART_PROD_STATES),
/* harmony export */   ART_TER_STATES: () => (/* binding */ ART_TER_STATES),
/* harmony export */   MAQ_STATES: () => (/* binding */ MAQ_STATES),
/* harmony export */   OPER_STATES: () => (/* binding */ OPER_STATES),
/* harmony export */   OPN_STATES: () => (/* binding */ OPN_STATES),
/* harmony export */   OPN_TIEMPOS_STATES: () => (/* binding */ OPN_TIEMPOS_STATES),
/* harmony export */   TIPO_MAQ_STATES: () => (/* binding */ TIPO_MAQ_STATES)
/* harmony export */ });
//Constantes utilizadas para almacenar el estado de listado articulos de producción
const ART_PROD_STATES = {
  ART_PROD_F_UNIDADES: {
    state: 'ART_PROD_F_UNIDADES',
    control: true,
    default: -1
  },
  ART_PROD_F_MONEDA: {
    state: 'ART_PROD_F_MONEDA',
    control: true,
    default: -1
  },
  ART_PROD_S_NOMBRE: {
    state: 'ART_PROD_S_NOMBRE',
    control: true,
    default: ''
  },
  ART_PROD_L_PAGE: {
    state: 'ART_PROD_L_PAGE',
    control: true,
    default: 1
  },
  ART_PROD_L_ORDER: {
    state: 'ART_PROD_L_ORDER',
    control: true,
    default: 2
  },
  ART_PROD_L_SENTIDO: {
    state: 'ART_PROD_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ART_PROD_L_PAGESIZE: {
    state: 'ART_PROD_L_PAGESIZE',
    control: true,
    default: 10
  }
};
//Constantes utilizadas para almacenar el estado de listado de maquinas
const MAQ_STATES = {
  MAQ_F_TIPOMAQ: {
    state: 'MAQ_F_TIPOMAQ',
    control: true,
    default: -1
  },
  MAQ_S_NROSERIE: {
    state: 'MAQ_S_NROSERIE',
    control: true,
    default: ''
  },
  MAQ_L_PAGE: {
    state: 'MAQ_L_PAGE',
    control: true,
    default: 1
  },
  MAQ_L_ORDER: {
    state: 'MAQ_L_ORDER',
    control: true,
    default: 1
  },
  MAQ_L_SENTIDO: {
    state: 'MAQ_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  MAQ_L_PAGESIZE: {
    state: 'MAQ_L_PAGESIZE',
    control: true,
    default: 10
  }
};
//Constantes utilizadas para almacenar el estado de listado de maquinas
const TIPO_MAQ_STATES = {
  TIPO_MAQ_F_UNIDADES: {
    state: 'TIPO_MAQ_F_UNIDADES',
    control: true,
    default: -1
  },
  TIPO_MAQ_S_CODIGO: {
    state: 'TIPO_MAQ_S_CODIGO',
    control: true,
    default: ''
  },
  TIPO_MAQ_S_NOMBRE: {
    state: 'TIPO_MAQ_S_NOMBRE',
    control: true,
    default: ''
  },
  TIPO_MAQ_L_PAGE: {
    state: 'TIPO_MAQ_L_PAGE',
    control: true,
    default: 1
  },
  TIPO_MAQ_L_ORDER: {
    state: 'TIPO_MAQ_L_ORDER',
    control: true,
    default: 1
  },
  TIPO_MAQ_L_SENTIDO: {
    state: 'TIPO_MAQ_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  TIPO_MAQ_L_PAGESIZE: {
    state: 'TIPO_MAQ_L_PAGESIZE',
    control: true,
    default: 10
  }
};
//Constantes utilizadas para almacenar el estado de listado de maquinas
const OPER_STATES = {
  OPER_F_TIPO_MAQ: {
    state: 'OPER_F_TIPO_MAQ',
    control: true,
    default: 0
  },
  OPER_S_NOMBRE: {
    state: 'OPER_S_NOMBRE',
    control: true,
    default: ''
  },
  OPER_L_PAGE: {
    state: 'OPER_L_PAGE',
    control: true,
    default: 1
  },
  OPER_L_ORDER: {
    state: 'OPER_L_ORDER',
    control: true,
    default: 1
  },
  OPER_L_SENTIDO: {
    state: 'OPER_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  OPER_L_PAGESIZE: {
    state: 'OPER_L_PAGESIZE',
    control: true,
    default: 10
  }
};
//Constantes utilizadas para almacenar el estado de listado de maquinas
const OPN_STATES = {
  OPN_F_ESTADO: {
    state: 'OPN_F_ESTADO',
    control: true,
    default: ''
  },
  OPN_F_RESPONSABLE: {
    state: 'OPN_F_RESPONSABLE',
    control: true,
    default: -1
  },
  OPN_F_FECHA_SOL_DESDE: {
    state: 'OPN_F_FECHA_SOL_DESDE',
    control: true,
    default: ''
  },
  OPN_F_FECHA_SOL_HASTA: {
    state: 'OPN_F_FECHA_SOL_HASTA',
    control: true,
    default: ''
  },
  OPER_F_FECHA_EST_DESDE: {
    state: 'OPN_F_FECHA_EST_DESDE',
    control: true,
    default: ''
  },
  OPER_F_FECHA_EST_HASTA: {
    state: 'OPN_F_FECHA_EST_HASTA',
    control: true,
    default: ''
  },
  OPN_F_VISTA: {
    state: 'OPN_F_VISTA',
    control: true,
    default: false
  },
  OPN_F_MODO_VISTA: {
    state: 'OPN_F_MODO_VISTA',
    control: true,
    default: 'O'
  },
  OPN_F_RUBRO: {
    state: 'OPN_F_RUBRO',
    control: true,
    default: ''
  },
  OPN_S_NUMERO: {
    state: 'OPN_S_NUMERO',
    control: true,
    default: ''
  },
  OPN_S_ARTICULOID: {
    state: 'OPN_S_ARTICULOID',
    control: true,
    default: -1
  },
  OPN_S_ARTICULO: {
    state: 'OPN_S_ARTICULO',
    control: true,
    default: ''
  },
  OPN_L_PAGE: {
    state: 'OPN_L_PAGE',
    control: true,
    default: 1
  },
  OPN_L_ORDER: {
    state: 'OPN_L_ORDER',
    control: true,
    default: 3
  },
  OPN_L_SENTIDO: {
    state: 'OPN_L_SENTIDO',
    control: true,
    default: 'Desc'
  },
  OPN_L_PAGESIZE: {
    state: 'OPN_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ART_TER_STATES = {
  TER_TOT_NUMERO: {
    state: 'TER_TOT_NUMERO',
    control: true,
    default: ''
  },
  TER_TOT_ARTICULOID: {
    state: 'TER_TOT_ARTICULOID',
    control: true,
    default: -1
  },
  TER_TOT_ARTICULO: {
    state: 'TER_TOT_ARTICULO',
    control: true,
    default: ''
  },
  TER_TOT_PROVEEDORID: {
    state: 'TER_TOT_PROVEEDORID',
    control: true,
    default: -1
  },
  TER_TOT_PROVEEDOR: {
    state: 'TER_TOT_PROVEEDOR',
    control: true,
    default: ''
  },
  TER_TOT_PAGE: {
    state: 'TER_TOT_PAGE',
    control: true,
    default: 1
  },
  TER_TOT_ORDER: {
    state: 'TER_TOT_ORDER',
    control: true,
    default: 1
  },
  TER_TOT_SENTIDO: {
    state: 'TER_TOT_SENTIDO',
    control: true,
    default: 'Asc'
  },
  TER_TOT_PAGESIZE: {
    state: 'TER_TOT_PAGESIZE',
    control: true,
    default: 10
  }
};
const OPN_TIEMPOS_STATES = {
  OPN_T_F_FECHA_SOL_DESDE: {
    state: 'OPN_T_F_FECHA_SOL_DESDE',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_SOL_HASTA: {
    state: 'OPN_T_F_FECHA_SOL_HASTA',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_EST_DESDE: {
    state: 'OPN_T_F_FECHA_EST_DESDE',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_EST_HASTA: {
    state: 'OPN_T_F_FECHA_EST_HASTA',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_HORA_INI_DESDE: {
    state: 'OPN_T_F_FECHA_HORA_INI_DESDE',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_HORA_INI_HASTA: {
    state: 'OPN_T_F_FECHA_HORA_INI_HASTA',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_HORA_FIN_DESDE: {
    state: 'OPN_T_F_FECHA_HORA_FIN_DESDE',
    control: true,
    default: ''
  },
  OPN_T_F_FECHA_HORA_FIN_HASTA: {
    state: 'OPN_T_F_FECHA_HORA_FIN_HASTA',
    control: true,
    default: ''
  },
  OPN_T_C_PREP: {
    state: 'OPN_T_C_PREP',
    control: true,
    default: false
  },
  OPN_T_C_EJEC: {
    state: 'OPN_T_C_EJEC',
    control: true,
    default: true
  },
  OPN_T_C_ESP: {
    state: 'OPN_T_C_ESP',
    control: true,
    default: false
  },
  OPN_T_C_TPROCESO: {
    state: 'OPN_T_C_TPROCESO',
    control: true,
    default: true
  },
  OPN_T_C_PPROCESO: {
    state: 'OPN_T_C_PPROCESO',
    control: true,
    default: true
  },
  OPN_T_C_TAVANCE: {
    state: 'OPN_T_C_TAVANCE',
    control: true,
    default: true
  },
  OPN_T_C_PAVANCE: {
    state: 'OPN_T_C_PAVANCE',
    control: true,
    default: true
  },
  OPN_T_C_DTIEMPO: {
    state: 'OPN_T_C_DTIEMPO',
    control: true,
    default: false
  },
  OPN_T_C_DPROM: {
    state: 'OPN_T_C_DPROM',
    control: true,
    default: false
  },
  OPN_T_C_DPORCENTAJE: {
    state: 'OPN_T_C_DPORCENTAJE',
    control: true,
    default: false
  },
  OPN_T_S_ARTICULOSIDS: {
    state: 'OPN_T_S_ARTICULOSIDS',
    control: true,
    default: ''
  },
  OPN_T_S_ARTICULOS: {
    state: 'OPN_T_S_ARTICULOS',
    control: true,
    default: ''
  },
  OPN_T_L_PAGE: {
    state: 'OPN_T_L_PAGE',
    control: true,
    default: 0
  },
  OPN_T_L_ORDER: {
    state: 'OPN_T_L_ORDER',
    control: true,
    default: 'FechaFinalizacion'
  },
  OPN_T_L_SENTIDO: {
    state: 'OPN_T_L_SENTIDO',
    control: true,
    default: -1
  },
  OPN_T_L_PAGESIZE: {
    state: 'OPN_T_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

/***/ 76013:
/*!*******************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-rma.ts ***!
  \*******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ATRIBUTO_STATES: () => (/* binding */ ATRIBUTO_STATES),
/* harmony export */   DEF_STATES: () => (/* binding */ DEF_STATES),
/* harmony export */   RESOLUCION_STATES: () => (/* binding */ RESOLUCION_STATES),
/* harmony export */   SEGUIMIENTO_STATES: () => (/* binding */ SEGUIMIENTO_STATES),
/* harmony export */   TIPO_DEFECTO_STATES: () => (/* binding */ TIPO_DEFECTO_STATES)
/* harmony export */ });
/**
 * Defecto state variables
 */
const DEF_STATES = {
  DEF_F_TIPO_DEF: {
    state: 'DEF_F_',
    control: true,
    default: -1
  },
  DEF_S_NOMBRE: {
    state: 'DEF_S_NOMBRE',
    control: true,
    default: ''
  },
  DEF_L_PAGE: {
    state: 'DEF_L_PAGE',
    control: true,
    default: 1
  },
  DEF_L_ORDER: {
    state: 'DEF_L_ORDER',
    control: true,
    default: 2
  },
  DEF_L_SENTIDO: {
    state: 'DEF_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  DEF_L_PAGESIZE: {
    state: 'DEF_L_PAGESIZE',
    control: true,
    default: 10
  }
};
/**
 * Tipo de defecto state variables
 */
const TIPO_DEFECTO_STATES = {
  TIPO_DEFECTO_S_NOMBRE: {
    state: 'TIPO_DEFECTO_S_NOMBRE',
    control: true,
    default: ''
  },
  TIPO_DEFECTO_L_PAGE: {
    state: 'TIPO_DEFECTO_L_PAGE',
    control: true,
    default: 1
  },
  TIPO_DEFECTO_L_ORDER: {
    state: 'TIPO_DEFECTO_L_ORDER',
    control: true,
    default: 2
  },
  TIPO_DEFECTO_L_SENTIDO: {
    state: 'TIPO_DEFECTO_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  TIPO_DEFECTO_L_PAGESIZE: {
    state: 'TIPO_DEFECTO_L_PAGESIZE',
    control: true,
    default: 10
  }
};
/**
 * Resolucion state variables
 */
const RESOLUCION_STATES = {
  RESOLUCION_F_ESTADO: {
    state: 'RESOLUCION_F_ESTADO',
    control: true,
    default: ''
  },
  RESOLUCION_S_NOMBRE: {
    state: 'RESOLUCION_S_NOMBRE',
    control: true,
    default: ''
  },
  RESOLUCION_L_PAGE: {
    state: 'RESOLUCION_L_PAGE',
    control: true,
    default: 1
  },
  RESOLUCION_L_ORDER: {
    state: 'RESOLUCION_L_ORDER',
    control: true,
    default: 2
  },
  RESOLUCION_L_SENTIDO: {
    state: 'RESOLUCION_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  RESOLUCION_L_PAGESIZE: {
    state: 'RESOLUCION_L_PAGESIZE',
    control: true,
    default: 10
  }
};
/**
 * Atributo state variables
 */
const ATRIBUTO_STATES = {
  ATRIBUTO_F_DOMINIO: {
    state: 'ATRIBUTO_F_DOMINIO',
    control: true,
    default: ''
  },
  ATRIBUTO_F_REQUERIDO: {
    state: 'ATRIBUTO_F_REQUERIDO',
    control: true,
    default: ''
  },
  ATRIBUTO_S_NOMBRE: {
    state: 'ATRIBUTO_S_NOMBRE',
    control: true,
    default: ''
  },
  ATRIBUTO_L_PAGE: {
    state: 'ATRIBUTO_L_PAGE',
    control: true,
    default: 1
  },
  ATRIBUTO_L_ORDER: {
    state: 'ATRIBUTO_L_ORDER',
    control: true,
    default: 2
  },
  ATRIBUTO_L_SENTIDO: {
    state: 'ATRIBUTO_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ATRIBUTO_L_PAGESIZE: {
    state: 'ATRIBUTO_L_PAGESIZE',
    control: true,
    default: 10
  }
};
/**
 * Seguimiento state variables
 */
const SEGUIMIENTO_STATES = {
  SEGUIMIENTO_F_DEFECTO: {
    state: 'SEGUIMIENTO_F_DEFECTO',
    control: true,
    default: ''
  },
  SEGUIMIENTO_F_FECHARECEPCIONDESDE: {
    state: 'SEGUIMIENTO_F_FECHARECEPCIONDESDE',
    control: true,
    default: ''
  },
  SEGUIMIENTO_F_FECHARECEPCIONHASTA: {
    state: 'SEGUIMIENTO_F_FECHARECEPCIONHASTA',
    control: true,
    default: ''
  },
  SEGUIMIENTO_F_MOSTRAR_ATRIBUTOS: {
    state: 'SEGUIMIENTO_F_MOSTRAR_ATRIBUTOS',
    control: true,
    default: false
  },
  SEGUIMIENTO_S_NUMRECLAMO: {
    state: 'SEGUIMIENTO_S_NUMRECLAMO',
    control: true,
    default: ''
  },
  SEGUIMIENTO_S_ARTICULOID: {
    state: 'SEGUIMIENTO_S_ARTICULOID',
    control: true,
    default: ''
  },
  SEGUIMIENTO_S_ARTICULO: {
    state: 'SEGUIMIENTO_S_ARTICULO',
    control: true,
    default: ''
  },
  SEGUIMIENTO_S_PROVEEDORID: {
    state: 'SEGUIMIENTO_S_PROVEEDORID',
    control: true,
    default: -1
  },
  SEGUIMIENTO_S_PROVEEDOR: {
    state: 'SEGUIMIENTO_S_PROVEEDOR',
    control: true,
    default: ''
  },
  SEGUIMIENTO_S_CLIENTEID: {
    state: 'SEGUIMIENTO_S_CLIENTEID',
    control: true,
    default: -1
  },
  SEGUIMIENTO_S_CLIENTE: {
    state: 'SEGUIMIENTO_S_CLIENTE',
    control: true,
    default: ''
  },
  SEGUIMIENTO_S_SUCURSALID: {
    state: 'SEGUIMIENTO_S_SUCURSALID',
    control: true,
    default: -1
  },
  SEGUIMIENTO_S_SUCURSAL: {
    state: 'SEGUIMIENTO_S_SUCURSAL',
    control: true,
    default: ''
  },
  SEGUIMIENTO_L_PAGE: {
    state: 'SEGUIMIENTO_L_PAGE',
    control: true,
    default: 1
  },
  SEGUIMIENTO_L_ORDER: {
    state: 'SEGUIMIENTO_L_ORDER',
    control: true,
    default: 3
  },
  SEGUIMIENTO_L_SENTIDO: {
    state: 'SEGUIMIENTO_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  SEGUIMIENTO_L_PAGESIZE: {
    state: 'SEGUIMIENTO_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

/***/ 15069:
/*!*************************************************************!*\
  !*** ./src/app/core/utils/constantes/const-sf-servicios.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FACT_MASIVA_STATES: () => (/* binding */ FACT_MASIVA_STATES),
/* harmony export */   LOTE_FACTURACION_STATES: () => (/* binding */ LOTE_FACTURACION_STATES),
/* harmony export */   MOV_STATES: () => (/* binding */ MOV_STATES),
/* harmony export */   SRV_CONTRATADOS_STATES: () => (/* binding */ SRV_CONTRATADOS_STATES)
/* harmony export */ });
/**
 * Movimientos state variables
 */
const MOV_STATES = {
  //BUSQUEDA
  MOV_S_CANTIDAD: {
    state: 'MOV_S_CANTIDAD',
    control: true,
    default: -1
  },
  MOV_S_SERV_CONTRATADO: {
    state: 'MOV_S_SERV_CONTRATADO',
    control: true,
    default: ''
  },
  MOV_S_SERV_CONTRATADO_ID: {
    state: 'MOV_S_SERV_CONTRATADO_ID',
    control: true,
    default: -1
  },
  //FILTROS
  MOV_F_TIPO: {
    state: 'MOV_F_TIPO',
    control: true,
    default: ''
  },
  MOV_F_FACT_ACTIVA: {
    state: 'MOV_F_FACT_ACTIVA',
    control: true,
    default: ''
  },
  MOV_F_FECHA_DESDE: {
    state: 'MOV_F_FECHA_DESDE',
    control: true,
    default: ''
  },
  MOV_F_FECHA_HASTA: {
    state: 'MOV_F_FECHA_HASTA',
    control: true,
    default: ''
  },
  MOV_F_FECHA_INI_FACT_DESDE: {
    state: 'MOV_F_FECHA_INI_FACT_DESDE',
    control: true,
    default: ''
  },
  MOV_F_FECHA_INI_FACT_HASTA: {
    state: 'MOV_F_FECHA_INI_FACT_HASTA',
    control: true,
    default: ''
  },
  //LISTADO
  MOV_L_PAGE: {
    state: 'MOV_L_PAGE',
    control: true,
    default: 1
  },
  MOV_L_ORDER: {
    state: 'MOV_L_ORDER',
    control: true,
    default: 2
  },
  MOV_L_SENTIDO: {
    state: 'MOV_L_SENTIDO',
    control: true,
    default: 'Desc'
  },
  MOV_L_PAGESIZE: {
    state: 'MOV_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const SRV_CONTRATADOS_STATES = {
  //BUSQUEDA
  /**
   * SP SINWEB-318
   */
  SRV_CONTRATADO_S_OBSERVACION: {
    state: 'SRV_CONTRATADO_S_OBSERVACION',
    control: true,
    default: ''
  },
  // SRV_CONTRATADO_S_SUBCONCEPTO     : {state : 'SRV_CONTRATADO_S_SUBCONCEPTO', control : true, default : ''},
  SRV_CONTRATADO_S_NUMERO: {
    state: 'SRV_CONTRATADO_S_NUMERO',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_S_CLIENTEID: {
    state: 'SRV_CONTRATADO_S_CLIENTEID',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_S_CLIENTE: {
    state: 'SRV_CONTRATADO_S_CLIENTE',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_S_CLIENTEFACTID: {
    state: 'SRV_CONTRATADO_S_CLIENTEFACTID',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_S_CLIENTEFACT: {
    state: 'SRV_CONTRATADO_S_CLIENTEFACT',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_S_ARTICULO: {
    state: 'SRV_CONTRATADO_S_ARTICULO',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_S_ARTICULOID: {
    state: 'SRV_CONTRATADO_S_ARTICULOID',
    control: true,
    default: ''
  },
  //FILTROS
  SRV_CONTRATADO_F_FRECFACT: {
    state: 'SRV_CONTRATADO_F_FRECFACT',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_BONIF: {
    state: 'SRV_CONTRATADO_F_BONIF',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_VIGENTE: {
    state: 'SRV_CONTRATADO_F_VIGENTE',
    control: true,
    default: 'S'
  },
  SRV_CONTRATADO_F_PAUSADO: {
    state: 'SRV_CONTRATADO_F_PAUSADO',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_DEBITO_AUTOMATICO: {
    state: 'SRV_CONTRATADO_F_DEBITO_AUTOMATICO',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_MES_ADELANTADO: {
    state: 'SRV_CONTRATADO_F_MES_ADELANTADO',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_PERIODO_DESDE: {
    state: 'SRV_CONTRATADO_F_PERIODO_DESDE',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_PERIODO_HASTA: {
    state: 'SRV_CONTRATADO_F_PERIODO_HASTA',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_FECHA_ITEMS_HASTA: {
    state: 'SRV_CONTRATADO_F_FECHA_ITEMS_HASTA',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_FECHA_ALTA_DESDE: {
    state: 'SRV_CONTRATADO_F_FECHA_ALTA_DESDE',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_FECHA_ALTA_HASTA: {
    state: 'SRV_CONTRATADO_F_FECHA_ALTA_HASTA',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_FECHA_FIN_DESDE: {
    state: 'SRV_CONTRATADO_F_FECHA_FIN_DESDE',
    control: true,
    default: ''
  },
  SRV_CONTRATADO_F_FECHA_FIN_HASTA: {
    state: 'SRV_CONTRATADO_F_FECHA_FIN_HASTA',
    control: true,
    default: ''
  },
  //LISTADO
  SRV_CONTRATADO_L_PAGE: {
    state: 'SRV_CONTRATADO_L_PAGE',
    control: true,
    default: 1
  },
  SRV_CONTRATADO_L_ORDER: {
    state: 'SRV_CONTRATADO_L_ORDER',
    control: true,
    default: 10
  },
  SRV_CONTRATADO_L_SENTIDO: {
    state: 'SRV_CONTRATADO_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  SRV_CONTRATADO_L_PAGESIZE: {
    state: 'SRV_CONTRATADO_L_PAGESIZE',
    control: true,
    default: 10
  },
  //SP SINWEB-344 nueva cookie de config de columnas
  SRV_CONTRATADO_F_CONFIG: {
    state: 'SRV_CONTRATADO_F_CONFIG',
    control: true,
    default: 'true,true,false,true,true,true,true,true,true,true,true,true,true,false,false,false,false,true,true,true,true,true,true,false'
  }
};
const LOTE_FACTURACION_STATES = {
  //BUSQUEDA
  LOTE_FACTURACION_S_NUMERO: {
    state: 'LOTE_FACTURACION_S_NUMERO',
    control: true,
    default: ''
  },
  LOTE_FACTURACION_S_EMPLEADOID: {
    state: 'LOTE_FACTURACION_S_EMPLEADOID',
    control: true,
    default: -1
  },
  LOTE_FACTURACION_S_EMPLEADO: {
    state: 'LOTE_FACTURACION_S_EMPLEADO',
    control: true,
    default: ''
  },
  LOTE_FACTURACION_S_SUCURSALID: {
    state: 'LOTE_FACTURACION_S_SUCURSALID',
    control: true,
    default: -1
  },
  LOTE_FACTURACION_S_SUCURSAL: {
    state: 'LOTE_FACTURACION_S_SUCURSAL',
    control: true,
    default: ''
  },
  //FILTROS
  LOTE_FACTURACION_F_PERIODO_DESDE: {
    state: 'LOTE_FACTURACION_F_PERIODO_DESDE',
    control: true,
    default: ''
  },
  LOTE_FACTURACION_F_PERIODO_HASTA: {
    state: 'LOTE_FACTURACION_F_PERIODO_HASTA',
    control: true,
    default: ''
  },
  LOTE_FACTURACION_F_FECHA_DESDE: {
    state: 'LOTE_FACTURACION_F_FECHA_DESDE',
    control: true,
    default: ''
  },
  LOTE_FACTURACION_F_FECHA_HASTA: {
    state: 'LOTE_FACTURACION_F_FECHA_HASTA',
    control: true,
    default: ''
  },
  //LISTADO
  LOTE_FACTURACION_L_PAGE: {
    state: 'LOTE_FACTURACION_L_PAGE',
    control: true,
    default: 1
  },
  LOTE_FACTURACION_L_ORDER: {
    state: 'LOTE_FACTURACION_L_ORDER',
    control: true,
    default: 3
  },
  LOTE_FACTURACION_L_SENTIDO: {
    state: 'LOTE_FACTURACION_L_SENTIDO',
    control: true,
    default: 'Desc'
  },
  LOTE_FACTURACION_L_PAGESIZE: {
    state: 'LOTE_FACTURACION_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const FACT_MASIVA_STATES = {
  //CONFIG
  FACT_MASIVA_F_CONFIG: {
    state: 'FACT_MASIVA_F_CONFIG',
    control: true,
    default: 'true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,false,false,false,false,true,true,true,true,true,true,true,true'
  },
  //FILTROS
  FACT_MASIVA_F_PERIODO_VALIDO: {
    state: 'FACT_MASIVA_F_PERIODO_VALIDO',
    control: true,
    default: 'S'
  },
  FACT_MASIVA_F_PERIODO: {
    state: 'FACT_MASIVA_F_PERIODO',
    control: true,
    default: ''
  },
  FACT_MASIVA_F_FACT_ACTIVA: {
    state: 'FACT_MASIVA_F_FACT_ACTIVA',
    control: true,
    default: 'S'
  },
  FACT_MASIVA_F_DEB_AUTO: {
    state: 'FACT_MASIVA_F_DEB_AUTO',
    control: true,
    default: 'N'
  },
  FACT_MASIVA_F_PTO_VENTA: {
    state: 'FACT_MASIVA_F_PTO_VENTA',
    control: true,
    default: -1
  },
  //LISTADO
  FACT_MASIVA_L_PAGE: {
    state: 'FACT_MASIVA_L_PAGE',
    control: true,
    default: 1
  },
  FACT_MASIVA_L_PAGESIZE: {
    state: 'FACT_MASIVA_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ART_PUBLICADO_WEB_STATES: () => (/* binding */ ART_PUBLICADO_WEB_STATES),
/* harmony export */   FAMILIA_WEB_STATES: () => (/* binding */ FAMILIA_WEB_STATES),
/* harmony export */   ML_ART_PUBLICADO_WEB_STATES: () => (/* binding */ ML_ART_PUBLICADO_WEB_STATES),
/* harmony export */   ML_REGISTRO_ACTUALIZACION_STATES: () => (/* binding */ ML_REGISTRO_ACTUALIZACION_STATES),
/* harmony export */   ML_USUARIO_STATES: () => (/* binding */ ML_USUARIO_STATES),
/* harmony export */   PLATAFORMA_WEB_STATES: () => (/* binding */ PLATAFORMA_WEB_STATES),
/* harmony export */   USUARIO_WEB_STATES: () => (/* binding */ USUARIO_WEB_STATES)
/* harmony export */ });
/**
 * Resolucion state variables
 */
const FAMILIA_WEB_STATES = {
  FAMILIA_WEB_F_PLATAFORMA: {
    state: 'FAMILIA_WEB_F_PLATAFORMA',
    control: true,
    default: -1
  },
  //FAMILIA_WEB_S_NOMBRE      : {state : 'FAMILIA_WEB_S_NOMBRE', control : true, default : ''},
  //FAMILIA_WEB_L_PAGE        : {state : 'FAMILIA_WEB_L_PAGE', control : true, default : 1},
  FAMILIA_WEB_L_ORDER: {
    state: 'FAMILIA_WEB_L_ORDER',
    control: true,
    default: 3
  },
  FAMILIA_WEB_L_SENTIDO: {
    state: 'FAMILIA_WEB_L_SENTIDO',
    control: true,
    default: 'Asc'
  }
  //FAMILIA_WEB_L_PAGESIZE    : {state : 'FAMILIA_WEB_L_PAGESIZE', control : true, default : 10},
};
const PLATAFORMA_WEB_STATES = {
  //FILTERS
  PLATAFORMA_WEB_F_VENDEDOR: {
    state: 'PLATAFORMA_WEB_F_VENDEDOR',
    control: true,
    default: -1
  },
  PLATAFORMA_WEB_F_CANAL: {
    state: 'PLATAFORMA_WEB_F_CANAL',
    control: true,
    default: -1
  },
  //SEARCH
  PLATAFORMA_WEB_S_NOMBRE: {
    state: 'PLATAFORMA_WEB_S_NOMBRE',
    control: true,
    default: ''
  },
  PLATAFORMA_WEB_L_PAGE: {
    state: 'PLATAFORMA_WEB_L_PAGE',
    control: true,
    default: 1
  },
  PLATAFORMA_WEB_L_ORDER: {
    state: 'PLATAFORMA_WEB_L_ORDER',
    control: true,
    default: 2
  },
  PLATAFORMA_WEB_L_SENTIDO: {
    state: 'PLATAFORMA_WEB_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  PLATAFORMA_WEB_L_PAGESIZE: {
    state: 'PLATAFORMA_WEB_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ART_PUBLICADO_WEB_STATES = {
  ART_PUBLIC_WEB_F_PLATAFORMA: {
    state: 'ART_PUBLIC_WEB_F_PLATAFORMA',
    control: true,
    default: -1
  },
  ART_PUBLIC_WEB_F_PUBLICADO: {
    state: 'ART_PUBLIC_WEB_F_PUBLICADO',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_F_ACTIVO: {
    state: 'ART_PUBLIC_WEB_F_ACTIVO',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_F_INCLUIR_SUBFAMILIA: {
    state: 'ART_PUBLIC_WEB_F_INCLUIR_SUBFAMILIA',
    control: true,
    default: 'N'
  },
  ART_PUBLIC_WEB_F_IDS_RUBROS_ARTICULO: {
    state: 'ART_PUBLIC_WEB_F_IDS_RUBROS_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_F_CANT_IMAGENES: {
    state: 'ART_PUBLIC_WEB_F_CANT_IMAGENES',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_F_FECHA_PUBLIC_DESDE: {
    state: 'ART_PUBLIC_WEB_F_FECHA_PUBLIC_DESDE',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_F_FECHA_PUBLIC_HASTA: {
    state: 'ART_PUBLIC_WEB_F_FECHA_PUBLIC_HASTA',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_NOMBRE_ARTICULO: {
    state: 'ART_PUBLIC_WEB_S_NOMBRE_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_CODIGO_ARTICULO: {
    state: 'ART_PUBLIC_WEB_S_CODIGO_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_ARTICULOS: {
    state: 'ART_PUBLIC_WEB_S_ARTICULOS',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_IDS_ARTICULO: {
    state: 'ART_PUBLIC_WEB_S_IDS_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_PROVEEDORES: {
    state: 'ART_PUBLIC_WEB_S_PROVEEDORES',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_IDS_PROVEEDOR: {
    state: 'ART_PUBLIC_WEB_S_IDS_PROVEEDOR',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_MARCAS: {
    state: 'ART_PUBLIC_WEB_S_MARCAS',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_IDS_MARCA: {
    state: 'ART_PUBLIC_WEB_S_IDS_MARCA',
    control: true,
    default: ''
  },
  ART_PUBLIC_WEB_S_TREEVIEW: {
    state: 'ART_PUBLIC_WEB_S_TREEVIEW',
    control: true,
    default: 'S'
  },
  ART_PUBLIC_WEB_L_PAGE: {
    state: 'ART_PUBLIC_WEB_L_PAGE',
    control: true,
    default: 1
  },
  ART_PUBLIC_WEB_L_ORDER: {
    state: 'ART_PUBLIC_WEB_L_ORDER',
    control: true,
    default: 2
  },
  ART_PUBLIC_WEB_L_SENTIDO: {
    state: 'ART_PUBLIC_WEB_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ART_PUBLIC_WEB_L_PAGESIZE: {
    state: 'ART_PUBLIC_WEB_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ML_ART_PUBLICADO_WEB_STATES = {
  ART_PUBLIC_MELI_F_CONFIG: {
    state: 'ART_PUBLIC_MELI_F_CONFIG',
    control: true,
    default: 'true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true'
  },
  ART_PUBLIC_MELI_F_ESTADO_PUBLIC: {
    state: 'ART_PUBLIC_MELI_F_ESTADO_PUBLIC',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_TIPO_PUBLIC: {
    state: 'ART_PUBLIC_MELI_F_TIPO_PUBLIC',
    control: true,
    default: ''
  },
  //ART_PUBLIC_MELI_F_INCLUIR_SUBFAMILIA  : {state : 'ART_PUBLIC_MELI_F_INCLUIR_SUBFAMILIA', control : true, default : 'N'},
  ART_PUBLIC_MELI_F_IDS_RUBROS_ARTICULO: {
    state: 'ART_PUBLIC_MELI_F_IDS_RUBROS_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_FECHA_PUBLIC_DESDE: {
    state: 'ART_PUBLIC_MELI_F_FECHA_PUBLIC_DESDE',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_FECHA_PUBLIC_HASTA: {
    state: 'ART_PUBLIC_MELI_F_FECHA_PUBLIC_HASTA',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_FECHA_UPDATE_DESDE: {
    state: 'ART_PUBLIC_MELI_F_FECHA_UPDATE_DESDE',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_FECHA_UPDATE_HASTA: {
    state: 'ART_PUBLIC_MELI_F_FECHA_UPDATE_HASTA',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_FECHA_VENCIMIENTO_DESDE: {
    state: 'ART_PUBLIC_MELI_F_FECHA_VENCIMIENTO_DESDE',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_F_FECHA_VENCIMIENTO_HASTA: {
    state: 'ART_PUBLIC_MELI_F_FECHA_VENCIMIENTO_HASTA',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_NOMBRE_ARTICULO: {
    state: 'ART_PUBLIC_MELI_S_NOMBRE_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_CODIGO_ARTICULO: {
    state: 'ART_PUBLIC_MELI_S_CODIGO_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_ARTICULOS: {
    state: 'ART_PUBLIC_MELI_S_ARTICULOS',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_IDS_ARTICULO: {
    state: 'ART_PUBLIC_MELI_S_IDS_ARTICULO',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_PROVEEDORES: {
    state: 'ART_PUBLIC_MELI_S_PROVEEDORES',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_IDS_PROVEEDOR: {
    state: 'ART_PUBLIC_MELI_S_IDS_PROVEEDOR',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_MARCAS: {
    state: 'ART_PUBLIC_MELI_S_MARCAS',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_S_IDS_MARCA: {
    state: 'ART_PUBLIC_MELI_S_IDS_MARCA',
    control: true,
    default: ''
  },
  ART_PUBLIC_MELI_L_PAGE: {
    state: 'ART_PUBLIC_MELI_L_PAGE',
    control: true,
    default: 1
  },
  ART_PUBLIC_MELI_L_ORDER: {
    state: 'ART_PUBLIC_MELI_L_ORDER',
    control: true,
    default: 3
  },
  ART_PUBLIC_MELI_L_SENTIDO: {
    state: 'ART_PUBLIC_MELI_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ART_PUBLIC_MELI_L_PAGESIZE: {
    state: 'ART_PUBLIC_MELI_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ML_USUARIO_STATES = {
  //FILTERS
  ML_USUARIO_F_BAJALOGICA: {
    state: 'ML_USUARIO_F_BAJALOGICA',
    control: true,
    default: 'N'
  },
  //SEARCH
  ML_USUARIO_S_USUARIO: {
    state: 'ML_USUARIO_S_USUARIO',
    control: true,
    default: ''
  },
  ML_USUARIO_L_PAGE: {
    state: 'ML_USUARIO_L_PAGE',
    control: true,
    default: 1
  },
  ML_USUARIO_L_ORDER: {
    state: 'ML_USUARIO_L_ORDER',
    control: true,
    default: 5
  },
  ML_USUARIO_L_SENTIDO: {
    state: 'ML_USUARIO_L_SENTIDO',
    control: true,
    default: 'Asc'
  },
  ML_USUARIO_L_PAGESIZE: {
    state: 'ML_USUARIO_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const ML_REGISTRO_ACTUALIZACION_STATES = {
  //FILTERS
  ML_REG_F_BAJA_LOGICA_USER: {
    state: 'ML_REG_F_BAJA_LOGICA_USER',
    control: true,
    default: ''
  },
  ML_REG_F_FECHA_ACT_DESDE: {
    state: 'ML_REG_F_FECHA_ACT_DESDE',
    control: true,
    default: ''
  },
  ML_REG_F_FECHA_ACT_HASTA: {
    state: 'ML_REG_F_FECHA_ACT_HASTA',
    control: true,
    default: ''
  },
  ML_REG_F_ESTADO: {
    state: 'ML_REG_F_ESTADO',
    control: true,
    default: ''
  },
  ML_REG_F_TIPO_ACT: {
    state: 'ML_REG_F_TIPO_ACT',
    control: true,
    default: ''
  },
  //SEARCH
  ML_REG_S_COD_ART: {
    state: 'ML_REG_S_COD_ART',
    control: true,
    default: ''
  },
  ML_REG_S_NOMBRE_ART: {
    state: 'ML_REG_S_NOMBRE_ART',
    control: true,
    default: ''
  },
  ML_REG_S_NOMBRE_USER: {
    state: 'ML_REG_S_NOMBRE_USER',
    control: true,
    default: ''
  },
  ML_REG_L_PAGE: {
    state: 'ML_REG_L_PAGE',
    control: true,
    default: 1
  },
  ML_REG_L_ORDER: {
    state: 'ML_REG_L_ORDER',
    control: true,
    default: 5
  },
  ML_REG_L_SENTIDO: {
    state: 'ML_REG_L_SENTIDO',
    control: true,
    default: 'desc'
  },
  ML_REG_L_PAGESIZE: {
    state: 'ML_REG_L_PAGESIZE',
    control: true,
    default: 10
  }
};
const USUARIO_WEB_STATES = {
  //FILTERS
  USUARIO_WEB_F_PLATAFORMA: {
    state: 'USUARIO_WEB_F_PLATAFORMA',
    control: true,
    default: -1
  },
  USUARIO_WEB_F_ROLES: {
    state: 'USUARIO_WEB_F_ROLES',
    control: true,
    default: ''
  },
  USUARIO_WEB_F_BAJALOGICA: {
    state: 'USUARIO_WEB_F_BAJALOGICA',
    control: true,
    default: 'N'
  },
  //SEARCH
  USUARIO_WEB_S_USUARIO: {
    state: 'USUARIO_WEB_S_USUARIO',
    control: true,
    default: ''
  },
  USUARIO_WEB_S_EMAIL: {
    state: 'USUARIO_WEB_S_EMAIL',
    control: true,
    default: ''
  },
  USUARIO_WEB_L_PAGE: {
    state: 'USUARIO_WEB_L_PAGE',
    control: true,
    default: 1
  },
  USUARIO_WEB_L_ORDER: {
    state: 'USUARIO_WEB_L_ORDER',
    control: true,
    default: 5
  },
  USUARIO_WEB_L_SENTIDO: {
    state: 'USUARIO_WEB_L_SENTIDO',
    control: true,
    default: 'desc'
  },
  USUARIO_WEB_L_PAGESIZE: {
    state: 'USUARIO_WEB_L_PAGESIZE',
    control: true,
    default: 10
  }
};

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CAMBIAR_RUBRO_ARTICULO: () => (/* binding */ CAMBIAR_RUBRO_ARTICULO),
/* harmony export */   DICCIONARIO_ESTADO_COMPROBANTE: () => (/* binding */ DICCIONARIO_ESTADO_COMPROBANTE),
/* harmony export */   DICCIONARIO_GEN_SUSPENDIDO_ESTADO: () => (/* binding */ DICCIONARIO_GEN_SUSPENDIDO_ESTADO),
/* harmony export */   FORMATO_COD_ART: () => (/* binding */ FORMATO_COD_ART),
/* harmony export */   FormulaStockDisponible: () => (/* binding */ FormulaStockDisponible),
/* harmony export */   IDS_CONF_GRAL: () => (/* binding */ IDS_CONF_GRAL),
/* harmony export */   META_TABLA: () => (/* binding */ META_TABLA),
/* harmony export */   NOTA_PEDIDO_ID: () => (/* binding */ NOTA_PEDIDO_ID),
/* harmony export */   STOCK_DISPONIBLE_FISICO: () => (/* binding */ STOCK_DISPONIBLE_FISICO),
/* harmony export */   STOCK_DISPONIBLE_FISICO_COMPROMETIDO: () => (/* binding */ STOCK_DISPONIBLE_FISICO_COMPROMETIDO),
/* harmony export */   STOCK_DISPONIBLE_FISICO_COMPROMETIDO_RESERVADO: () => (/* binding */ STOCK_DISPONIBLE_FISICO_COMPROMETIDO_RESERVADO),
/* harmony export */   STOCK_DISPONIBLE_FISICO_RESERVADO: () => (/* binding */ STOCK_DISPONIBLE_FISICO_RESERVADO),
/* harmony export */   VISUALIZAR_ARTICULO: () => (/* binding */ VISUALIZAR_ARTICULO),
/* harmony export */   articulosHeader: () => (/* binding */ articulosHeader),
/* harmony export */   atributosHeader: () => (/* binding */ atributosHeader),
/* harmony export */   notasDePedidoAcciones: () => (/* binding */ notasDePedidoAcciones),
/* harmony export */   notasDePedidoHeader: () => (/* binding */ notasDePedidoHeader),
/* harmony export */   respIVAs: () => (/* binding */ respIVAs),
/* harmony export */   tipoDocConsumidorFinal: () => (/* binding */ tipoDocConsumidorFinal),
/* harmony export */   tipoDocumentos: () => (/* binding */ tipoDocumentos),
/* harmony export */   tiposArticulosHeader: () => (/* binding */ tiposArticulosHeader),
/* harmony export */   tiposDoc: () => (/* binding */ tiposDoc)
/* harmony export */ });
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_tipo_articulo_seleccionar_tipo_articulo_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-tipo-articulo/seleccionar-tipo-articulo.component */ 20271);
/* harmony import */ var _constantes_rma__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constantes-rma */ 79005);


//SP SINWEB-245
const VISUALIZAR_ARTICULO = 401;
const CAMBIAR_RUBRO_ARTICULO = 402;
// MC SINWEB-953 Ids de configuraciones generales
const IDS_CONF_GRAL = Object.freeze({
  FORMATO_CODIGO_ARTICULO: 8,
  DISPLAY_FORMAT_CODIGO_ARTICULO: 9,
  LONGITUD_CODIGO_ARTICULO: 10,
  DIR_IMAGEN: 11,
  ID_CLIENTE_OCASIONAL: 67,
  //SP SAD-376
  ID_CLIENTE_CONSUMIDOR_FINAL: 20,
  //SP SAD-211
  MOSTRAR_COMPROMETIDO: 113,
  MOSTRAR_RESERVADO: 114,
  //SP SAD
  CLIENTEINICIAFACTURACION: 176,
  PRD_ID_DEPOSITO_ORIGEN: 187,
  PRD_ID_DEPOSITO_PRODUCCION: 188,
  PRD_ID_DEPOSITO_TERMINADOS: 189,
  //SP SAD-160
  FORMULA_STOCK_DISPONIBLE: 190,
  ID_FAMILIA_ART_SRV: 193,
  INF_MOSTRAR_TABLERO_FAVORITO: 197,
  INF_CONF_PAGINA_INICIO: 198
});
// MC SINWEB-953 Valores posibles para la configuracion de formato de codigo de articulo
const FORMATO_COD_ART = Object.freeze({
  ALFANUMERICO: '0',
  SOLO_DIGITOS: '1'
});
const DICCIONARIO_GEN_SUSPENDIDO_ESTADO = [{
  Id: 'N',
  Nombre: 'No',
  Style: 'background:#A2B06D',
  Class: 'badge font-size-14'
}, {
  Id: 'V',
  Nombre: 'Venta',
  Style: 'background:#AD1C42',
  Class: 'badge font-size-14'
}, {
  Id: 'C',
  Nombre: 'Compra',
  Style: 'background:#FF0000',
  Class: 'badge font-size-14'
}, {
  Id: 'A',
  Nombre: 'Compra y Venta',
  Style: 'background:#00B7EB',
  Class: 'badge font-size-14'
}];
const articulosHeader = [{
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Nombre',
  Order: 3,
  Key: 'Nombre',
  WCol: '25%',
  Disabled: false
}, {
  Nombre: 'Nombre Corto',
  Key: 'NombreCorto',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Marca',
  Order: 4,
  Key: 'Marca.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Unidad',
  Key: 'Unidad.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Rubro',
  Order: 5,
  Key: 'Rubro.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Proveedor',
  Key: 'Proveedor.Nombre',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Pje. IVA',
  Key: 'PjeIVA',
  Type: 'number',
  Pipe: 'percent:1.2-5',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Costo Neto',
  Key: 'PrecioCosto',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'CostoFinal',
  Key: 'PrecioCostoFinal',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Precio Compra',
  Key: 'PrecioCompra',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'P. Comp. Final',
  Key: 'PrecioCompraFinal',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Coef. No Grav.',
  Type: 'number',
  Pipe: 'number:1.2-5',
  Key: 'CoeficienteNoGravado',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'No Gravado',
  Key: 'NoGravado',
  Type: 'number',
  Pipe: 'number:1.2-5',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Moneda',
  Key: 'Moneda.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Tipo de Artículo',
  Key: 'TipoArticulo.Nombre',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Fecha de Alta',
  Key: 'FechaAlta',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Fecha Act. P. Compra',
  Key: 'FechaUpdatePrecioCompra',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Fecha Act. P. Venta',
  Key: 'FechaUpdatePrecioVenta',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Pesable',
  Key: 'Pesable',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Cod. Fabricante',
  Key: 'CodigoFabricante',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Cant. por Unidad',
  Key: 'CantidadUnidad',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Unid. por Display',
  Key: 'CantidadDisplay',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Unid. por Bulto',
  Key: 'CantidadPaq',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Baja Lógica',
  Key: 'BajaLogica',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Fecha de Baja',
  Key: 'FechaBaja',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Discontinuado',
  Key: 'Discontinuo',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Suspendido',
  Type: 'dictionary',
  Diccionario: DICCIONARIO_GEN_SUSPENDIDO_ESTADO,
  Key: 'Suspendido',
  WCol: '6%'
}, {
  Nombre: 'Art. Producción',
  Key: 'EsProduccion',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Art. Combo',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  Key: 'EsCombo',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Fecha Discontinuado',
  Key: 'FechaDiscontinuo',
  WCol: '15%',
  Disabled: true
}, {
  Nombre: 'Nombre Atributos',
  Key: 'Atributos',
  WCol: '25%',
  Type: 'list',
  Class: 'd-flex gap-1',
  ArrayList: [{
    Type: 'badge',
    Class: 'col-sm-2'
  }, {
    Key: 'Nombre',
    Class: 'col-sm-10'
  }],
  Disabled: false
}, {
  Nombre: 'Valores Atributos',
  Key: 'Atributos',
  WCol: '25%',
  Type: 'list',
  Class: 'd-flex',
  ArrayList: [{
    Type: 'badge',
    Class: 'col-sm-2'
  }, {
    Type: 'list',
    Key: 'Valores',
    Func: valores => valores.map(valor => valor.Valor.Valor).join(' | '),
    Class: 'col-sm-10'
  }],
  Disabled: false
}, {
  Nombre: 'Descripción',
  Key: 'Descripcion',
  WCol: '40%',
  Disabled: false
}];
/**SP SINWEB-360 se agregar constante header y se saca del componente para mas claridad */
const atributosHeader = [{
  Nombre: 'Nombre',
  Order: 3,
  Key: 'Nombre',
  WCol: '40%',
  Disabled: false
}, {
  Nombre: 'Dominio',
  Order: 5,
  Type: 'dictionary',
  Key: 'Dominio',
  Diccionario: _constantes_rma__WEBPACK_IMPORTED_MODULE_1__.DICCIONARIO_RMA_ATRIBUTO_DOMINIO,
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Valores permitidos',
  Key: 'ValoresAtributo',
  WCol: '20%',
  Type: 'list',
  Class: 'col-12 d-flex flex-row gap-2',
  ArrayList: [{
    Type: 'badge',
    Class: 'col-auto'
  }, {
    Key: 'Valor',
    KeyIcon: 'Predeterminado',
    ShowIcon: 'S',
    Tooltip: 'Valor Predeterminado',
    Icon: 'mdi mdi-flag-triangle',
    Class: 'col-sm-10'
  }],
  Disabled: false
}, {
  Nombre: 'Baja Lógica',
  Key: 'BajaLogica',
  Order: 7,
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Requerido',
  Key: 'Requerido',
  Order: 9,
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '10%',
  Disabled: false
}];
const META_TABLA = [{
  Id: 1,
  Nombre: 'TIPO_ARTICULO',
  Componente: src_app_pages_dashboards_core_seleccionar_tipo_articulo_seleccionar_tipo_articulo_component__WEBPACK_IMPORTED_MODULE_0__.SeleccionarTipoArticuloComponent
}];
const tiposArticulosHeader = [{
  Nombre: 'Abreviatura',
  Order: 3,
  Key: 'Abreviatura',
  WCol: '40%',
  Disabled: false
}, {
  Nombre: 'Nombre',
  Order: 2,
  Key: 'Nombre',
  WCol: '50%',
  Disabled: false
}];
const DICCIONARIO_ESTADO_COMPROBANTE = [{
  Id: 'Facturado',
  Nombre: 'Facturado',
  Style: 'background:#c3d9c3; color:var(--bs-body-color)',
  Class: 'badge font-size-14'
}, {
  Id: 'No Facturado',
  Nombre: 'No Facturado',
  Style: 'background:#f7f7f7; color:var(--bs-body-color)',
  Class: 'badge font-size-14'
}, {
  Id: 'Parcialmente Facturado',
  Nombre: 'Parcialmente Facturado',
  Style: 'background:#fbd356 ; color:var(--bs-body-color)',
  Class: 'badge font-size-14'
}];
const notasDePedidoHeader = [{
  Nombre: 'Número',
  Order: 1,
  Key: 'Numero',
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Fecha',
  Order: 3,
  Type: 'date',
  Key: 'Fecha',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Hora',
  Key: 'Hora',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Cod. Cliente',
  Key: 'ClienteVenta.Codigo',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Cliente',
  Order: 2,
  Key: 'ClienteVenta.Nombre',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Estado',
  Type: 'dictionary',
  Diccionario: DICCIONARIO_ESTADO_COMPROBANTE,
  Key: 'EstadoPedido',
  WCol: '10%'
}, {
  Nombre: 'Anulada',
  Key: 'Anulada',
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '10%'
}, {
  Nombre: 'Importe',
  Key: 'Importe',
  Type: 'number',
  Pipe: 'currency:$:symbol:1.2-5:es-AR',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Forma de Pago',
  Key: 'FormaPago.Nombre',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Canal',
  Key: 'Canal.Nombre',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Cod. Vendedor',
  Key: 'Vendedor.Codigo',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Vendedor',
  Key: 'Vendedor.Nombre',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Cod. Sucursal',
  Key: 'Sucursal.Codigo',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Sucursal',
  Key: 'Sucursal.Nombre',
  WCol: '20%',
  Disabled: false
}];
const notasDePedidoAcciones = [{
  Title: 'Visualizar',
  Accion: 'ver'
}, {
  Title: 'Editar',
  Accion: 'editar',
  fieldsActivate: ['EstadoPedido', 'Anulada'],
  activate: (values, action) => {
    if (values[0] != 'Facturado' && values[0] != 'Parcialmente Facturado' && values[1] != 'S') {
      return 'dropdown-item';
    } else {
      return 'dropdown-item disabled';
    }
  }
}, {
  Title: 'Anular',
  Accion: 'anular',
  fieldsActivate: ['EstadoPedido', 'Anulada'],
  activate: (values, action) => {
    if (values[0] != 'Facturado' && values[0] != 'Parcialmente Facturado' && values[1] != 'S') {
      return 'dropdown-item';
    } else {
      return 'dropdown-item disabled';
    }
  }
}, {
  Type: 'divider',
  disabled: true
}, {
  Title: 'Trazabilidad',
  Accion: 'trazabilidad'
}, {
  Title: 'Imprimir comprobante',
  Accion: 'imprimir'
}];
const tipoDocumentos = [{
  Id: 1,
  Nombre: 'CUIT'
}, {
  Id: 2,
  Nombre: 'CUIL'
}, {
  Id: 3,
  Nombre: 'DNI'
}, {
  Id: 4,
  Nombre: 'LC'
}, {
  Id: 5,
  Nombre: 'LE'
}, {
  Id: 6,
  Nombre: 'OTRO'
}];
const tipoDocConsumidorFinal = [{
  Id: 3,
  Nombre: 'DNI'
}, {
  Id: 4,
  Nombre: 'LC'
}, {
  Id: 5,
  Nombre: 'LE'
}, {
  Id: 6,
  Nombre: 'Otro'
}];
const tiposDoc = [{
  Id: 1,
  Nombre: 'CUIT'
}, {
  Id: 2,
  Nombre: 'CUIL'
}];
const respIVAs = [{
  Id: 1,
  Nombre: 'Consumidor Final'
}, {
  Id: 2,
  Nombre: 'Monotributo'
}, {
  Id: 4,
  Nombre: 'Responsable Inscripto'
}, {
  Id: 5,
  Nombre: 'Exento'
}];
const STOCK_DISPONIBLE_FISICO = 0;
const STOCK_DISPONIBLE_FISICO_COMPROMETIDO = 1;
const STOCK_DISPONIBLE_FISICO_RESERVADO = 2;
const STOCK_DISPONIBLE_FISICO_COMPROMETIDO_RESERVADO = 3;
const FormulaStockDisponible = [{
  Id: 0,
  Nombre: 'S.Fisico'
}, {
  Id: 1,
  Nombre: 'S.Físico - S.Comprometido'
}, {
  Id: 2,
  Nombre: 'S.Físico - S.Reservado'
}, {
  Id: 3,
  Nombre: 'S.Físico - S.Comprometido - S.Reservado'
}];
const NOTA_PEDIDO_ID = 19;

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CANAL_EMAIL: () => (/* binding */ CANAL_EMAIL),
/* harmony export */   CANAL_SOCKET: () => (/* binding */ CANAL_SOCKET),
/* harmony export */   CompactNotifHistorialHeader: () => (/* binding */ CompactNotifHistorialHeader),
/* harmony export */   ConfigsNotifDropdownButtons: () => (/* binding */ ConfigsNotifDropdownButtons),
/* harmony export */   ConfigsNotifHeader: () => (/* binding */ ConfigsNotifHeader),
/* harmony export */   DICCIONARIO_NOTIF_ESTADO: () => (/* binding */ DICCIONARIO_NOTIF_ESTADO),
/* harmony export */   ESTADO_ERROR: () => (/* binding */ ESTADO_ERROR),
/* harmony export */   ESTADO_LEIDO: () => (/* binding */ ESTADO_LEIDO),
/* harmony export */   ESTADO_NOTIFICADO: () => (/* binding */ ESTADO_NOTIFICADO),
/* harmony export */   ESTADO_PEND_GENERAR: () => (/* binding */ ESTADO_PEND_GENERAR),
/* harmony export */   ESTADO_PEND_NOTIFICAR: () => (/* binding */ ESTADO_PEND_NOTIFICAR),
/* harmony export */   MODO_ELIMINACION: () => (/* binding */ MODO_ELIMINACION),
/* harmony export */   MODO_INSERCION: () => (/* binding */ MODO_INSERCION),
/* harmony export */   MODO_INSERCION_ELIMINACION: () => (/* binding */ MODO_INSERCION_ELIMINACION),
/* harmony export */   NOTIF_CONFIG_ADMIN_RECEP: () => (/* binding */ NOTIF_CONFIG_ADMIN_RECEP),
/* harmony export */   NOTIF_CONFIG_ADMIN_RECEP_EDIT: () => (/* binding */ NOTIF_CONFIG_ADMIN_RECEP_EDIT),
/* harmony export */   NOTIF_CONFIG_ADMIN_RECEP_ELIMINAR: () => (/* binding */ NOTIF_CONFIG_ADMIN_RECEP_ELIMINAR),
/* harmony export */   NOTIF_CONFIG_ADMIN_RECEP_NO_CONFIG: () => (/* binding */ NOTIF_CONFIG_ADMIN_RECEP_NO_CONFIG),
/* harmony export */   NOTIF_CONFIG_EDITAR: () => (/* binding */ NOTIF_CONFIG_EDITAR),
/* harmony export */   NOTIF_CONFIG_VISUALIZAR: () => (/* binding */ NOTIF_CONFIG_VISUALIZAR),
/* harmony export */   NotifHeader: () => (/* binding */ NotifHeader),
/* harmony export */   PLATAFORMA_MERCADO_LIBRE: () => (/* binding */ PLATAFORMA_MERCADO_LIBRE),
/* harmony export */   PLATAFORMA_VENDU: () => (/* binding */ PLATAFORMA_VENDU),
/* harmony export */   ReceptoresConfigDropdownButtons: () => (/* binding */ ReceptoresConfigDropdownButtons),
/* harmony export */   TIPO_RECEPTOR_CLIENTE: () => (/* binding */ TIPO_RECEPTOR_CLIENTE),
/* harmony export */   TIPO_RECEPTOR_CLIENTE_VENTA: () => (/* binding */ TIPO_RECEPTOR_CLIENTE_VENTA),
/* harmony export */   TIPO_RECEPTOR_EMPLEADO: () => (/* binding */ TIPO_RECEPTOR_EMPLEADO),
/* harmony export */   TIPO_RECEPTOR_OTRO: () => (/* binding */ TIPO_RECEPTOR_OTRO),
/* harmony export */   TIPO_RECEPTOR_PEDIDO_VENTA_MELI: () => (/* binding */ TIPO_RECEPTOR_PEDIDO_VENTA_MELI),
/* harmony export */   TIPO_RECEPTOR_PROVEEDOR: () => (/* binding */ TIPO_RECEPTOR_PROVEEDOR),
/* harmony export */   TIPO_RECEPTOR_PROVEEDOR_COMPRA: () => (/* binding */ TIPO_RECEPTOR_PROVEEDOR_COMPRA),
/* harmony export */   TIPO_RECEPTOR_USUARIO_MELI: () => (/* binding */ TIPO_RECEPTOR_USUARIO_MELI),
/* harmony export */   TIPO_RECEPTOR_USUARIO_SINERGIAL: () => (/* binding */ TIPO_RECEPTOR_USUARIO_SINERGIAL),
/* harmony export */   TIPO_RECEPTOR_USUARIO_WEB: () => (/* binding */ TIPO_RECEPTOR_USUARIO_WEB),
/* harmony export */   TIPO_RECEPTOR_USUARIO_WEB_ML: () => (/* binding */ TIPO_RECEPTOR_USUARIO_WEB_ML),
/* harmony export */   TIPO_RECEPTOR_USUARIO_WEB_VENDU: () => (/* binding */ TIPO_RECEPTOR_USUARIO_WEB_VENDU),
/* harmony export */   clienteRecepHeader: () => (/* binding */ clienteRecepHeader),
/* harmony export */   proveedorRecepHeader: () => (/* binding */ proveedorRecepHeader),
/* harmony export */   usuarioSinergialRecepHeader: () => (/* binding */ usuarioSinergialRecepHeader),
/* harmony export */   usuarioWebRecepHeader: () => (/* binding */ usuarioWebRecepHeader)
/* harmony export */ });
const TIPO_RECEPTOR_OTRO = 1;
const TIPO_RECEPTOR_EMPLEADO = 2;
const TIPO_RECEPTOR_CLIENTE = 3;
const TIPO_RECEPTOR_PROVEEDOR = 4;
const TIPO_RECEPTOR_USUARIO_WEB = 5;
const TIPO_RECEPTOR_USUARIO_WEB_VENDU = 11;
const TIPO_RECEPTOR_USUARIO_WEB_ML = 12;
const PLATAFORMA_MERCADO_LIBRE = 1;
const PLATAFORMA_VENDU = 2;
const TIPO_RECEPTOR_USUARIO_SINERGIAL = 6;
const TIPO_RECEPTOR_CLIENTE_VENTA = 7;
const TIPO_RECEPTOR_PROVEEDOR_COMPRA = 8;
const TIPO_RECEPTOR_USUARIO_MELI = 9;
const TIPO_RECEPTOR_PEDIDO_VENTA_MELI = 10;
const MODO_INSERCION_ELIMINACION = 0;
const MODO_INSERCION = 1;
const MODO_ELIMINACION = 2;
const CANAL_EMAIL = 2;
const CANAL_SOCKET = 3;
const NOTIF_CONFIG_EDITAR = 601;
const NOTIF_CONFIG_VISUALIZAR = 602;
const NOTIF_CONFIG_ADMIN_RECEP = 603;
//SP SINWEB-460 se agrega nueva accion para cargar receptores no configurados
const NOTIF_CONFIG_ADMIN_RECEP_NO_CONFIG = 606;
const NOTIF_CONFIG_ADMIN_RECEP_EDIT = 604;
const NOTIF_CONFIG_ADMIN_RECEP_ELIMINAR = 605;
const ESTADO_PEND_NOTIFICAR = 'PN';
const ESTADO_PEND_GENERAR = 'PG';
const ESTADO_NOTIFICADO = 'N';
const ESTADO_LEIDO = 'L';
const ESTADO_ERROR = 'E';
const getNombreReceptor = (parametros, receptor) => {
  if (parametros?.id_plataforma && receptor.Id == TIPO_RECEPTOR_USUARIO_WEB) {
    switch (+parametros.id_plataforma) {
      case PLATAFORMA_VENDU:
        return 'Usuario Web - Vendú';
      case PLATAFORMA_MERCADO_LIBRE:
        return 'Usuario Web - Mercado Libre';
      default:
        return receptor.Nombre;
    }
  } else {
    return receptor.Nombre;
  }
};
const ConfigsNotifHeader = [{
  Nombre: 'Descripción',
  Key: 'Descripcion',
  WCol: '25%',
  Disabled: false
}, {
  Nombre: '(Cod) Notif. Tipo',
  Order: 9,
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'NotificacionTipo.Codigo',
      b: 'NotificacionTipo.Nombre'
    }
  },
  WCol: '25%'
}, {
  Nombre: 'Dominio Notif. Tipo',
  Key: 'NotificacionTipo.NotifDominio.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Receptores Asociados',
  Key: 'NotificacionTipo.NotifTiposXReceptores',
  WCol: '25%',
  Type: 'list',
  Class: 'd-flex gap-1',
  ArrayList: [{
    Type: 'badge',
    Class: 'col-sm-2 text-center'
  }, {
    Key: 'NotifTipoReceptor',
    Type: 'list',
    Func: (valor, dato) => getNombreReceptor(dato.NotificacionTipo.Parametros, valor),
    Class: 'col-sm-10'
  }],
  Disabled: false
}, {
  Nombre: 'Canal',
  Key: 'NotifCanal.Nombre',
  Type: 'badge',
  Color: '#79857c',
  Order: 2,
  Wcol: '10%',
  Disabled: false
}, {
  Nombre: 'Activo',
  Key: 'Activo',
  Order: 3,
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '5%',
  Disabled: false
}, {
  Nombre: 'Fecha Inicio',
  Key: 'FechaDesde',
  Order: 4,
  Type: 'date',
  WCol: '5%',
  Disabled: false
}, {
  Nombre: 'Periodicidad',
  Key: 'CronTraslate',
  WCol: '15%'
}];
const ConfigsNotifDropdownButtons = [{
  Title: 'Visualizar',
  Accion: NOTIF_CONFIG_VISUALIZAR
}, {
  Title: 'Editar',
  Accion: NOTIF_CONFIG_EDITAR
}, {
  Type: 'divider',
  Disabled: true
}, {
  Title: 'Receptores No Asociados',
  Accion: NOTIF_CONFIG_ADMIN_RECEP_NO_CONFIG,
  fieldsActivate: ['NotificacionTipo.NotifDominio.Id', 'NotificacionTipo.NotifTiposXReceptores', 'Activo'],
  activate: (values, action) => {
    if (values[0] != 9 && values[0] != 1 && values[0] != 10 && values[1].length > 0 && values[2] == 'S') {
      return 'dropdown-item';
    } else {
      return 'dropdown-item disabled';
    }
  }
},
//SP SINWEB-460 se agrega nueva accion para cargar receptores no configurados
{
  Title: 'Administrar Receptores',
  Accion: NOTIF_CONFIG_ADMIN_RECEP,
  fieldsActivate: ['NotificacionTipo.NotifDominio.Id', 'NotificacionTipo.NotifTiposXReceptores', 'Activo'],
  activate: (values, action) => {
    if (values[0] != 9 && values[0] != 1 && values[0] != 10 && values[1].length > 0 && values[2] == 'S') {
      return 'dropdown-item';
    } else {
      return 'dropdown-item disabled';
    }
  }
}];
const DICCIONARIO_NOTIF_ESTADO = [{
  Id: 'E',
  Nombre: 'Error',
  Style: 'background:#f44336',
  Class: 'badge font-size-14'
}, {
  Id: 'L',
  Nombre: 'Leido',
  Style: 'background:#80B900',
  Class: 'badge font-size-14'
}, {
  Id: 'N',
  Nombre: 'Notificado',
  Style: 'background:#8fce00',
  Class: 'badge font-size-14'
}, {
  Id: 'PG',
  Nombre: 'Pendiente Generar',
  Style: 'background:#34c38f',
  Class: 'badge font-size-14'
}, {
  Id: 'PN',
  Nombre: 'Pendiente Notificar',
  Style: 'background:#f1b44c',
  Class: 'badge font-size-14'
}];
const ReceptoresConfigDropdownButtons = [{
  Title: 'Editar',
  Accion: NOTIF_CONFIG_ADMIN_RECEP_EDIT
}, {
  Title: 'Eliminar',
  Accion: NOTIF_CONFIG_ADMIN_RECEP_ELIMINAR
}];
// MC SINWEB-654
const NotifHeader = [{
  Nombre: 'Fecha Registro',
  Order: 5,
  Key: 'FechaRegistro',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Fecha Notificación',
  Order: 6,
  Key: 'FechaNotificacion',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Fecha Notificado',
  Order: 7,
  Key: 'FechaNotificado',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Inf. Contacto',
  Key: 'InformacionContacto.cc',
  WCol: '10%',
  Type: 'template',
  Data: {
    Template: 'x con copia a: y',
    ArrayKeys: {
      x: 'InformacionContacto.informacion_contacto',
      y: 'InformacionContacto.cc'
    }
  },
  Disabled: false
}, {
  Nombre: 'Estado',
  Order: 4,
  Key: 'Estado',
  Type: 'dictionary',
  Diccionario: DICCIONARIO_NOTIF_ESTADO,
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Obs. Estado',
  Key: 'ObservacionEstado',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Receptor',
  Order: 1,
  Key: 'Receptor',
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Tipo Receptor',
  Order: 11,
  Key: 'NotifTipoReceptor.Nombre',
  Type: 'badge',
  Color: '#aebfb3',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Configuración',
  Order: 8,
  Key: 'NotificacionConfiguracion.Descripcion',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Tipo',
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'NotificacionConfiguracion.NotificacionTipo.Codigo',
      b: 'NotificacionConfiguracion.NotificacionTipo.Nombre'
    }
  },
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Dominio Notif. Tipo',
  Key: 'NotifDominio.Nombre',
  Type: 'badge',
  Color: '#aebfb3',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Canal',
  Key: 'NotificacionConfiguracion.NotifCanal.Nombre',
  Type: 'badge',
  Color: '#79857c',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Periodicidad',
  Key: 'NotificacionConfiguracion.ExpresionCronNatural',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Intentos',
  Key: 'Intentos',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Observación',
  Key: 'ObservacionEstado',
  WCol: '10%',
  Disabled: true
}];
const CompactNotifHistorialHeader = [{
  Nombre: 'Fecha Notificación',
  Order: 6,
  Key: 'FechaNotificacion',
  WCol: '10%'
}, {
  Nombre: '(Cod) Receptor',
  Order: 1,
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'Receptor.Codigo',
      b: 'Receptor.Nombre'
    }
  },
  WCol: '30%'
}, {
  Nombre: 'Inf. Contacto',
  Key: 'InformacionContacto.informacion_contacto',
  WCol: '10%'
}, {
  Nombre: 'Estado',
  Order: 4,
  Key: 'Estado',
  Type: 'dictionary',
  Diccionario: DICCIONARIO_NOTIF_ESTADO,
  WCol: '10%'
}, {
  Nombre: 'Tipo',
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'NotificacionConfiguracion.NotificacionTipo.Codigo',
      b: 'NotificacionConfiguracion.NotificacionTipo.Nombre'
    }
  },
  WCol: '20%'
}, {
  Nombre: 'Dominio',
  Key: 'NotifDominio.Nombre',
  Type: 'badge',
  Color: '#aebfb3',
  WCol: '10%'
}, {
  Nombre: 'Canal',
  Key: 'NotificacionConfiguracion.NotifCanal.Nombre',
  Type: 'badge',
  Color: '#79857c',
  WCol: '10%'
}];
//SP SINWEB-810 nuevos header para nuevos tipos de receptores
const clienteRecepHeader = [{
  Nombre: 'Código',
  Key: 'Codigo',
  Order: 3,
  WCol: '20%'
}, {
  Nombre: 'Nombre',
  Key: 'Nombre',
  Order: 2,
  WCol: '60%'
}];
const proveedorRecepHeader = [{
  Nombre: 'Código',
  Key: 'Codigo',
  Order: 3,
  WCol: '20%'
}, {
  Nombre: 'Nombre',
  Key: 'Nombre',
  Order: 2,
  WCol: '60%'
}];
const usuarioSinergialRecepHeader = [{
  Nombre: 'Nombre',
  Key: 'Nombre',
  Order: 2,
  WCol: '80%'
}];
const usuarioWebRecepHeader = [{
  Nombre: 'Usuario',
  Key: 'Usuario',
  Order: 2,
  WCol: '40%'
}, {
  Nombre: 'Email',
  Key: 'Email',
  Order: 3,
  WCol: '40%'
}];

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   COLORES_ROW: () => (/* binding */ COLORES_ROW),
/* harmony export */   DICCIONARIO_RMA_ATRIBUTO_DOMINIO: () => (/* binding */ DICCIONARIO_RMA_ATRIBUTO_DOMINIO),
/* harmony export */   DICCIONARIO_RMA_ATRIBUTO_REQUERIDO: () => (/* binding */ DICCIONARIO_RMA_ATRIBUTO_REQUERIDO),
/* harmony export */   DICCIONARIO_RMA_RESOLUCION_ESTADO: () => (/* binding */ DICCIONARIO_RMA_RESOLUCION_ESTADO),
/* harmony export */   DICCIONARIO_RMA_SEGUIMIENTO_ESTADO: () => (/* binding */ DICCIONARIO_RMA_SEGUIMIENTO_ESTADO),
/* harmony export */   DICCIONARIO_RMA_TRAZABILIDAD_DOMINIO: () => (/* binding */ DICCIONARIO_RMA_TRAZABILIDAD_DOMINIO),
/* harmony export */   ESTADOS_RMA_SEGUIMIENTO: () => (/* binding */ ESTADOS_RMA_SEGUIMIENTO),
/* harmony export */   ORDENAMIENTOS_RMA_SEGUIMIENTO: () => (/* binding */ ORDENAMIENTOS_RMA_SEGUIMIENTO),
/* harmony export */   RMA_ATRIBUTO_BLOB: () => (/* binding */ RMA_ATRIBUTO_BLOB),
/* harmony export */   RMA_ATRIBUTO_DATE: () => (/* binding */ RMA_ATRIBUTO_DATE),
/* harmony export */   RMA_ATRIBUTO_INTEGER: () => (/* binding */ RMA_ATRIBUTO_INTEGER),
/* harmony export */   RMA_ATRIBUTO_LOGICO: () => (/* binding */ RMA_ATRIBUTO_LOGICO),
/* harmony export */   RMA_ATRIBUTO_REAL: () => (/* binding */ RMA_ATRIBUTO_REAL),
/* harmony export */   RMA_ATRIBUTO_STRING: () => (/* binding */ RMA_ATRIBUTO_STRING),
/* harmony export */   RMA_CLIENTE_EDITAR: () => (/* binding */ RMA_CLIENTE_EDITAR),
/* harmony export */   RMA_CLIENTE_ELIMINAR: () => (/* binding */ RMA_CLIENTE_ELIMINAR),
/* harmony export */   RMA_CLIENTE_NUEVA: () => (/* binding */ RMA_CLIENTE_NUEVA),
/* harmony export */   RMA_ENVIO_PROV_EDITAR: () => (/* binding */ RMA_ENVIO_PROV_EDITAR),
/* harmony export */   RMA_ENVIO_PROV_ELIMINAR: () => (/* binding */ RMA_ENVIO_PROV_ELIMINAR),
/* harmony export */   RMA_ENVIO_PROV_NUEVO: () => (/* binding */ RMA_ENVIO_PROV_NUEVO),
/* harmony export */   RMA_RECLAMO_ABRIR: () => (/* binding */ RMA_RECLAMO_ABRIR),
/* harmony export */   RMA_RECLAMO_ANULAR: () => (/* binding */ RMA_RECLAMO_ANULAR),
/* harmony export */   RMA_RECLAMO_CERRAR: () => (/* binding */ RMA_RECLAMO_CERRAR),
/* harmony export */   RMA_RECLAMO_EDITAR: () => (/* binding */ RMA_RECLAMO_EDITAR),
/* harmony export */   RMA_RECLAMO_EDITAR_ATRIBUTO: () => (/* binding */ RMA_RECLAMO_EDITAR_ATRIBUTO),
/* harmony export */   RMA_RECLAMO_ESTADO_ANULADO: () => (/* binding */ RMA_RECLAMO_ESTADO_ANULADO),
/* harmony export */   RMA_RECLAMO_ESTADO_CERRADO: () => (/* binding */ RMA_RECLAMO_ESTADO_CERRADO),
/* harmony export */   RMA_RECLAMO_ESTADO_CLIENTE: () => (/* binding */ RMA_RECLAMO_ESTADO_CLIENTE),
/* harmony export */   RMA_RECLAMO_ESTADO_INICIADO: () => (/* binding */ RMA_RECLAMO_ESTADO_INICIADO),
/* harmony export */   RMA_RECLAMO_ESTADO_PROVEEDOR: () => (/* binding */ RMA_RECLAMO_ESTADO_PROVEEDOR),
/* harmony export */   RMA_RECLAMO_VISUALIZAR: () => (/* binding */ RMA_RECLAMO_VISUALIZAR),
/* harmony export */   RMA_RESOLUCION_DICTAMINAR: () => (/* binding */ RMA_RESOLUCION_DICTAMINAR),
/* harmony export */   RMA_RESOLUCION_EDITAR: () => (/* binding */ RMA_RESOLUCION_EDITAR),
/* harmony export */   RMA_RESOLUCION_ELIMINAR: () => (/* binding */ RMA_RESOLUCION_ELIMINAR),
/* harmony export */   RMA_RESOLUCION_ESTADO_APROBADO: () => (/* binding */ RMA_RESOLUCION_ESTADO_APROBADO),
/* harmony export */   RMA_RESOLUCION_ESTADO_DICTAMINAR: () => (/* binding */ RMA_RESOLUCION_ESTADO_DICTAMINAR),
/* harmony export */   RMA_RESOLUCION_ESTADO_RECHAZADO: () => (/* binding */ RMA_RESOLUCION_ESTADO_RECHAZADO),
/* harmony export */   RMA_RESOLUCION_NUEVA: () => (/* binding */ RMA_RESOLUCION_NUEVA),
/* harmony export */   RMA_VER_LOG: () => (/* binding */ RMA_VER_LOG)
/* harmony export */ });
//PM SINWEB-141
const RMA_RECLAMO_EDITAR = 201;
const RMA_RECLAMO_ANULAR = 202;
const RMA_ENVIO_PROV_NUEVO = 203;
const RMA_ENVIO_PROV_EDITAR = 204;
const RMA_ENVIO_PROV_ELIMINAR = 205;
const RMA_RESOLUCION_NUEVA = 206;
const RMA_RESOLUCION_EDITAR = 207;
const RMA_RESOLUCION_ELIMINAR = 208;
const RMA_RECLAMO_VISUALIZAR = 209;
const RMA_CLIENTE_NUEVA = 210;
const RMA_CLIENTE_ELIMINAR = 211;
const RMA_CLIENTE_EDITAR = 212;
const RMA_RECLAMO_CERRAR = 213;
const RMA_RECLAMO_ABRIR = 214;
const RMA_VER_LOG = 215;
const RMA_RECLAMO_EDITAR_ATRIBUTO = 216;
const RMA_RECLAMO_ESTADO_INICIADO = 1;
const RMA_RECLAMO_ESTADO_PROVEEDOR = 2;
const RMA_RECLAMO_ESTADO_CLIENTE = 3;
const RMA_RECLAMO_ESTADO_CERRADO = 4;
const RMA_RECLAMO_ESTADO_ANULADO = 5;
const RMA_ATRIBUTO_STRING = 'S';
const RMA_ATRIBUTO_INTEGER = 'I';
const RMA_ATRIBUTO_REAL = 'R';
const RMA_ATRIBUTO_BLOB = 'B';
const RMA_ATRIBUTO_DATE = 'D';
const RMA_ATRIBUTO_LOGICO = 'L';
const RMA_RESOLUCION_DICTAMINAR = 1;
const RMA_RESOLUCION_ESTADO_DICTAMINAR = 'D';
const RMA_RESOLUCION_ESTADO_APROBADO = 'A';
const RMA_RESOLUCION_ESTADO_RECHAZADO = 'R';
const DICCIONARIO_RMA_RESOLUCION_ESTADO = [{
  Id: 'A',
  Nombre: 'Aprobado',
  Style: 'background:#34c38f',
  Class: 'badge font-size-14'
}, {
  Id: 'D',
  Nombre: 'Dictaminar',
  Style: 'background:#f1b44c',
  Class: 'badge font-size-14'
}, {
  Id: 'R',
  Nombre: 'Rechazado',
  Style: 'background:#FF0000',
  Class: 'badge font-size-14'
}];
const DICCIONARIO_RMA_ATRIBUTO_DOMINIO = [{
  Id: 'I',
  Nombre: 'Entero',
  Style: 'background:#A2B06D',
  Class: 'badge font-size-14'
}, {
  Id: 'R',
  Nombre: 'Real',
  Style: 'background:#AD1C42',
  Class: 'badge font-size-14'
}, {
  Id: 'S',
  Nombre: 'Texto',
  Style: 'background:#FF0000',
  Class: 'badge font-size-14'
}, {
  Id: 'B',
  Nombre: 'Texto largo',
  Style: 'background:#00B7EB',
  Class: 'badge font-size-14'
}, {
  Id: 'D',
  Nombre: 'Fecha',
  Style: 'background:#a89f8f',
  Class: 'badge font-size-14'
}, {
  Id: 'L',
  Nombre: 'Lógico (S/N)',
  Style: 'background:#aa00ff',
  Class: 'badge font-size-14'
}];
const DICCIONARIO_RMA_ATRIBUTO_REQUERIDO = [{
  Id: 'S',
  Nombre: 'Si',
  Style: 'background:#34c38f',
  Class: 'badge font-size-14'
}, {
  Id: 'N',
  Nombre: 'No',
  Style: 'background:#f1b44c',
  Class: 'badge font-size-14'
}];
const DICCIONARIO_RMA_TRAZABILIDAD_DOMINIO = [{
  Id: 'V',
  Nombre: 'Venta',
  Style: 'background:#34c38f',
  Class: 'badge font-size-14'
}, {
  Id: 'C',
  Nombre: 'Proveedor',
  Style: 'background:#f1b44c',
  Class: 'badge font-size-14'
}];
const DICCIONARIO_RMA_SEGUIMIENTO_ESTADO = [{
  Id: 'Iniciado',
  Nombre: 'Iniciado',
  Style: 'background:#50a5f1',
  Class: 'badge font-size-14'
}, {
  Id: 'Proveedor',
  Nombre: 'Proveedor',
  Style: 'background:#f1b44c',
  Class: 'badge font-size-14'
}, {
  Id: 'Cliente',
  Nombre: 'Cliente',
  Style: 'background:#673ab7',
  Class: 'badge font-size-14'
}, {
  Id: 'Cerrado',
  Nombre: 'Cerrado',
  Style: 'background:#34c38f',
  Class: 'badge font-size-14'
}, {
  Id: 'Anulado',
  Nombre: 'Anulado',
  Style: 'background:#ff0000',
  Class: 'badge font-size-14'
}];
const ESTADOS_RMA_SEGUIMIENTO = [{
  id: 1,
  status: 'Iniciado',
  icon: 'mdi mdi-file-send-outline font-size-20 text-white',
  color: '#50a5f1'
}, {
  id: 2,
  status: 'Proveedor',
  icon: 'mdi mdi-cube-send font-size-20 text-white',
  color: '#f1b44c'
}, {
  id: 3,
  status: 'Cliente',
  icon: 'mdi mdi-account-check-outline font-size-20 text-white',
  color: '#673ab7'
}, {
  id: 4,
  status: 'Cerrado',
  icon: 'mdi mdi-check-all font-size-20 text-white',
  color: '#34c38f'
}
//  MC SINWEB-168 No se agrega al arreglo para que no aparezca como icono en el timeline
// {id: 5, status: 'Anulado', icon: 'mdi mdi-cancel font-size-20 text-white', color: '#ff0000'},
];
const ORDENAMIENTOS_RMA_SEGUIMIENTO = [{
  Id: 1,
  Nombre: '🠋 Artículo',
  params: {
    ord: 12,
    sentido: 'Desc'
  }
}, {
  Id: 2,
  Nombre: '🠉 Artículo',
  params: {
    ord: 12,
    sentido: 'Asc'
  }
}, {
  Id: 3,
  Nombre: '🠋 Cliente',
  params: {
    ord: 9,
    sentido: 'Desc'
  }
}, {
  Id: 4,
  Nombre: '🠉 Cliente',
  params: {
    ord: 9,
    sentido: 'Asc'
  }
}, {
  Id: 5,
  Nombre: '🠋 Estado',
  params: {
    ord: 26,
    sentido: 'Desc'
  }
}, {
  Id: 6,
  Nombre: '🠉 Estado',
  params: {
    ord: 26,
    sentido: 'Asc'
  }
}, {
  Id: 7,
  Nombre: '🠋 Nro.Reclamo',
  params: {
    ord: 3,
    sentido: 'Desc'
  }
}, {
  Id: 8,
  Nombre: '🠉 Nro.Reclamo',
  params: {
    ord: 3,
    sentido: 'Asc'
  }
}, {
  Id: 9,
  Nombre: '🠋 Proveedor',
  params: {
    ord: 24,
    sentido: 'Desc'
  }
}, {
  Id: 10,
  Nombre: '🠉 Proveedor',
  params: {
    ord: 24,
    sentido: 'Asc'
  }
}, {
  Id: 10,
  Nombre: '🠋 Recepción',
  params: {
    ord: 2,
    sentido: 'Desc'
  }
}, {
  Id: 10,
  Nombre: '🠉 Recepción',
  params: {
    ord: 2,
    sentido: 'Asc'
  }
}];
const COLORES_ROW = [{
  registro: 'Creación',
  color: 'success'
}, {
  registro: 'Apertura',
  color: 'success'
}, {
  registro: 'Modificación',
  color: 'light'
}, {
  registro: 'Finalización',
  color: 'warning'
}, {
  registro: 'Confirmación',
  color: 'warning'
}, {
  registro: 'Carga',
  color: 'warning'
}, {
  registro: 'Eliminación',
  color: 'warning'
}, {
  registro: 'Anulación',
  color: 'danger'
}, {
  registro: 'Cierre',
  color: 'danger'
}, {
  registro: 'Entrega',
  color: 'info'
}, {
  registro: 'Devolución',
  color: 'info'
}];

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ArticulosHeader: () => (/* binding */ ArticulosHeader),
/* harmony export */   ClientesHeader: () => (/* binding */ ClientesHeader),
/* harmony export */   ComprobantesCompraHeader: () => (/* binding */ ComprobantesCompraHeader),
/* harmony export */   ComprobantesVentaHeader: () => (/* binding */ ComprobantesVentaHeader),
/* harmony export */   DepositosHeader: () => (/* binding */ DepositosHeader),
/* harmony export */   EmpleadosHeader: () => (/* binding */ EmpleadosHeader),
/* harmony export */   EmpresasHeader: () => (/* binding */ EmpresasHeader),
/* harmony export */   FormatosNotifHeader: () => (/* binding */ FormatosNotifHeader),
/* harmony export */   MarcasHeader: () => (/* binding */ MarcasHeader),
/* harmony export */   ProveedoresHeader: () => (/* binding */ ProveedoresHeader),
/* harmony export */   Publicaciones_usr_meliHeader: () => (/* binding */ Publicaciones_usr_meliHeader),
/* harmony export */   SrvContratadosHeader: () => (/* binding */ SrvContratadosHeader),
/* harmony export */   SucursalesHeader: () => (/* binding */ SucursalesHeader),
/* harmony export */   TiposNotifHeader: () => (/* binding */ TiposNotifHeader),
/* harmony export */   UsuariosHeader: () => (/* binding */ UsuariosHeader),
/* harmony export */   UsuariosWebHeader: () => (/* binding */ UsuariosWebHeader)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);

const ArticulosHeader = [{
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Nombre',
  Order: 3,
  Key: 'Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Fecha Alta',
  Key: 'FechaAlta',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Rubro',
  Order: 5,
  Key: 'Rubro.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Familias',
  Order: 5,
  Key: 'FamiliasArticulo',
  Type: 'list',
  Class: 'd-flex',
  ArrayList: [{
    Type: 'badge',
    Class: 'col-sm-2'
  }, {
    Key: 'Familia.Nombre',
    Class: 'col-sm-10'
  }],
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Tipo Art.',
  Key: 'TipoArticulo.Nombre',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Marca',
  Order: 4,
  Key: 'Marca.Nombre',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Moneda',
  Key: 'Moneda.Nombre',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Unidad',
  Key: 'Unidad.Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Cod. Proveedor',
  Key: 'Proveedor.Codigo',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Proveedor',
  Key: 'Proveedor.Nombre',
  WCol: '15%',
  Disabled: false
}];
const ClientesHeader = [{
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Cliente',
  Order: 3,
  Key: 'Nombre',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Razón Social',
  Order: 4,
  Key: 'NombreFiscal',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Tipo Doc.',
  Order: 8,
  Key: 'TipoDocumento.TipoDoc',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Nro. Doc.',
  Order: 5,
  Key: 'NroDoc',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Dirección',
  Key: 'DireccionTotal',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Cod. Postal',
  Type: 'condition',
  CondFunction: (dato, func) => {
    return (dato.Localidad.CodigoPostal?.trim() !== '' ? '(' + func(dato, 'Localidad.CodigoPostal') + ') ' : '') + func(dato, 'Localidad.Nombre');
  },
  Disabled: false
}];
const ProveedoresHeader = [{
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '40%',
  Disabled: false
}, {
  Nombre: 'Proveedor',
  Order: 3,
  Key: 'Nombre',
  WCol: '50%',
  Disabled: false
}];
const ComprobantesVentaHeader = [{
  Nombre: 'Número',
  Order: 1,
  Key: 'Numero',
  WCol: '30%',
  Disabled: false
}, {
  Nombre: '(Cod.) Cliente',
  Order: 2,
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'Cliente.Codigo',
      b: 'Cliente.Nombre'
    }
  },
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Fecha',
  Order: 3,
  Type: 'date',
  Key: 'Fecha',
  WCol: '30%',
  Disabled: false
}];
const DepositosHeader = [{
  Nombre: 'Número',
  Order: 2,
  Key: 'Numero',
  WCol: '20%'
}, {
  Nombre: 'Nombre',
  Order: 3,
  Key: 'Nombre',
  WCol: '30%'
}, {
  Nombre: 'Descripcion',
  Key: 'Descripcion',
  WCol: '40%'
}];
const MarcasHeader = [{
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '20%'
}, {
  Nombre: 'Nombre',
  Order: 3,
  Key: 'Nombre',
  WCol: '30%'
}, {
  Nombre: 'Descripcion',
  Key: 'Descripcion',
  WCol: '40%'
}];
const EmpleadosHeader = [{
  Nombre: 'Código',
  Order: 2,
  Key: 'Codigo',
  WCol: '20%'
}, {
  Nombre: 'Nombre',
  Order: 3,
  Key: 'Nombre',
  WCol: '30%'
}, {
  Nombre: 'Tipo Empleado',
  Order: 5,
  Key: 'TipoEmpleado.Nombre',
  WCol: '40%'
}];
const EmpresasHeader = [{
  Nombre: 'Razón Social',
  Order: 1,
  Key: 'RazonSocial',
  WCol: '20%'
}, {
  Nombre: 'Nombre Comercial',
  Order: 2,
  Key: 'NombreComercial',
  WCol: '30%'
}];
const SrvContratadosHeader = [{
  Nombre: 'Cod. Cliente',
  Order: 3,
  Key: 'Cliente.Codigo',
  WCol: '20%'
}, {
  Nombre: 'Nombre Cliente',
  Order: 4,
  Key: 'Cliente.Nombre',
  WCol: '30%'
}, {
  Nombre: 'Cod. Cliente Fact.',
  Key: 'ClienteFact.Codigo',
  WCol: '20%'
}, {
  Nombre: 'Nombre Cliente Fact.',
  Key: 'ClienteFact.Nombre',
  WCol: '30%'
}, {
  Nombre: 'Cod. Art.',
  Order: 6,
  Key: 'Articulo.Codigo',
  WCol: '20%'
}, {
  Nombre: 'Nombre Art.',
  Order: 7,
  Key: 'Articulo.Nombre',
  WCol: '30%'
}];
const SucursalesHeader = [{
  Nombre: 'Código',
  Key: 'Codigo',
  WCol: '20%'
}, {
  Nombre: 'Nombre',
  Key: 'Nombre',
  WCol: '30%'
}, {
  Nombre: 'Casa Central',
  Key: 'CasaCentral',
  WCol: '20%'
}, {
  Nombre: 'Descripción',
  Key: 'Descripcion',
  WCol: '30%'
}];
const ComprobantesCompraHeader = [
// <th style="width: 5px"></th>
// <th scope="col">Numero</th>
// <th scope="col">Proveedor</th>
// <th scope="col">Fecha</th>
// <th scope="col">Detalle</th>
{
  Nombre: 'Número',
  Order: 1,
  Key: 'Numero',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Proveedor',
  Order: 2,
  Key: 'Proveedor.Nombre',
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Fecha',
  Order: 3,
  Key: 'Fecha',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Detalle',
  Order: 4,
  Key: 'Detalle',
  WCol: '30%',
  Disabled: false
}];
const TiposNotifHeader = [{
  Nombre: 'Código',
  Key: 'Codigo',
  Order: 2,
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Nombre',
  Key: 'Nombre',
  Order: 3,
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Condicional',
  Key: 'EsCondicional',
  Order: 5,
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Req. Generación',
  Key: 'RequiereGeneracion',
  Order: 6,
  Type: 'checkbox',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '15%',
  Disabled: false
}, {
  Nombre: 'Notif. Dominio',
  Key: 'NotifDominio.Nombre',
  WCol: '30%'
}];
const FormatosNotifHeader = [{
  Nombre: 'Id',
  Key: 'Id',
  WCol: '10%',
  Disabled: false
}, {
  Nombre: 'Estructura',
  Type: 'condition',
  WCol: '40%',
  Style: 'white-space: pre-wrap;',
  CondFunction: (dato, func) => {
    let lista = lodash__WEBPACK_IMPORTED_MODULE_0__.map(dato.Estructura, (valor, clave) => `${clave}: ${valor}`);
    let listadoString = lista.join('\n');
    return listadoString;
  },
  Disabled: false
}, {
  Nombre: 'Template',
  Key: 'Template',
  WCol: '40%',
  Disabled: false
}];
const UsuariosHeader = [{
  Nombre: 'Nombre',
  Order: 2,
  Key: 'Nombre',
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Baja Lógica',
  Order: 5,
  Type: 'checkbox',
  Key: 'BajaLogica',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Sucursal de Creación',
  Order: 4,
  Type: 'template',
  Data: {
    Template: '(a) b',
    ArrayKeys: {
      a: 'SucursalDeCreacion.Codigo',
      b: 'SucursalDeCreacion.Nombre'
    }
  },
  WCol: '30%',
  Disabled: false
}];
const UsuariosWebHeader = [{
  Nombre: 'Usuario',
  Order: 2,
  Key: 'Usuario',
  WCol: '30%',
  Disabled: false
}, {
  Nombre: 'Email',
  Order: 3,
  Key: 'Email',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Observación',
  Key: 'Observacion',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Baja Lógica',
  Order: 6,
  Type: 'checkbox',
  Key: 'BajaLogica',
  TrueValue: 'S',
  FalseValue: 'N',
  WCol: '20%',
  Disabled: false
}, {
  Nombre: 'Rol',
  Order: 5,
  Key: 'RolUsrWeb.Nombre',
  WCol: '20%',
  Disabled: false
}];
const Publicaciones_usr_meliHeader = [{
  Nombre: 'Titulo',
  Order: 2,
  Key: 'titulo',
  WCol: '30%',
  Disabled: false
}];

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BTN_VOLVER: () => (/* binding */ BTN_VOLVER),
/* harmony export */   COMPROBANTE_CANAL_PRED: () => (/* binding */ COMPROBANTE_CANAL_PRED),
/* harmony export */   COMPROBANTE_FILTER_VEND_ZONA_CLIENTE: () => (/* binding */ COMPROBANTE_FILTER_VEND_ZONA_CLIENTE),
/* harmony export */   COMPROBANTE_NUEVA_PAGINA: () => (/* binding */ COMPROBANTE_NUEVA_PAGINA),
/* harmony export */   COMPROBANTE_SERIE: () => (/* binding */ COMPROBANTE_SERIE),
/* harmony export */   COMPROBANTE_VEND_PRED: () => (/* binding */ COMPROBANTE_VEND_PRED),
/* harmony export */   DARK_MODE: () => (/* binding */ DARK_MODE),
/* harmony export */   ID_FORMATO_COD_ART: () => (/* binding */ ID_FORMATO_COD_ART),
/* harmony export */   LENGUAJE: () => (/* binding */ LENGUAJE),
/* harmony export */   LONG_COD_ART: () => (/* binding */ LONG_COD_ART),
/* harmony export */   MASK_COD_ART: () => (/* binding */ MASK_COD_ART),
/* harmony export */   MENU_ORDEN: () => (/* binding */ MENU_ORDEN),
/* harmony export */   MENU_POSICION: () => (/* binding */ MENU_POSICION),
/* harmony export */   NOTIF_REALTIME: () => (/* binding */ NOTIF_REALTIME),
/* harmony export */   REC_EST: () => (/* binding */ REC_EST),
/* harmony export */   TOGGLE_MOBILE_MENU: () => (/* binding */ TOGGLE_MOBILE_MENU),
/* harmony export */   USUARIO: () => (/* binding */ USUARIO),
/* harmony export */   USUARIO_RECUERDAME: () => (/* binding */ USUARIO_RECUERDAME),
/* harmony export */   VER_IMAGEN_ARTICULO: () => (/* binding */ VER_IMAGEN_ARTICULO),
/* harmony export */   WIDGETS_AUT: () => (/* binding */ WIDGETS_AUT),
/* harmony export */   WIDGETS_EST: () => (/* binding */ WIDGETS_EST),
/* harmony export */   WIDGETS_PRD: () => (/* binding */ WIDGETS_PRD),
/* harmony export */   WIDGETS_RMA: () => (/* binding */ WIDGETS_RMA),
/* harmony export */   WIDGETS_SRV: () => (/* binding */ WIDGETS_SRV)
/* harmony export */ });
//Constantes utilizadas para almacenar el estado del lenguaje
const USUARIO = {
  state: 'USR',
  control: false,
  default: -1
};
//Constantes utilizadas para almacenar el estado del lenguaje
const LENGUAJE = {
  state: 'LENGUAJE',
  control: false,
  default: 'es'
};
//Constantes utilizadas para almacenar el estado de botones 'Volver'
const BTN_VOLVER = {
  state: 'BTN_VOLVER',
  control: true,
  default: ''
};
//Constantes utilizadas para almacenar el estado de la web general.
const TOGGLE_MOBILE_MENU = {
  state: 'TOGGLE_MOBILE_MENU',
  control: true,
  default: false
};
const REC_EST = {
  state: 'REC_EST',
  control: false,
  default: 'S'
};
const MENU_POSICION = {
  state: 'MENU_POSICION',
  control: false,
  default: 'N'
};
const MENU_ORDEN = {
  state: 'MENU_ORDEN',
  control: false,
  default: 'N'
};
const DARK_MODE = {
  state: 'DARK_MODE',
  control: false,
  default: 'N'
};
const NOTIF_REALTIME = {
  state: 'NOTIF_REALTIME',
  control: false,
  default: 'N'
};
const WIDGETS_AUT = {
  state: 'WIDGETS_AUT',
  control: false,
  default: 'N'
};
const WIDGETS_PRD = {
  state: 'WIDGETS_PRD',
  control: false,
  default: 'N'
};
const WIDGETS_RMA = {
  state: 'WIDGETS_RMA',
  control: false,
  default: 'N'
};
const WIDGETS_SRV = {
  state: 'WIDGETS_SRV',
  control: false,
  default: 'N'
};
const WIDGETS_EST = {
  state: 'WIDGETS_EST',
  control: false,
  default: 'N'
};
//Constantes utilizadas para almacenar el estado del usuario recordado
const USUARIO_RECUERDAME = {
  state: 'USUARIO_RECUERDAME',
  control: false,
  default: ''
};
//SP SINWEB-905
const COMPROBANTE_SERIE = {
  state: 'COMPROBANTE_SERIE',
  control: false,
  default: 'S'
};
//SP SAD-165
const COMPROBANTE_NUEVA_PAGINA = {
  state: 'COMPROBANTE_NUEVA_PAGINA',
  control: false,
  default: 'N'
};
//SP SINWEB-949
const COMPROBANTE_FILTER_VEND_ZONA_CLIENTE = {
  state: 'COMPROBANTE_FILTER_VEND_ZONA_CLIENTE',
  control: false,
  default: 'N'
};
const COMPROBANTE_VEND_PRED = {
  state: 'COMPROBANTE_VEND_PRED',
  control: false,
  default: -1
};
const COMPROBANTE_CANAL_PRED = {
  state: 'COMPROBANTE_CANAL_PRED',
  control: false,
  default: -1
};
// MC SINWEB-953
const ID_FORMATO_COD_ART = {
  state: 'ID_FORMATO_COD_ART',
  control: false,
  default: ''
};
const LONG_COD_ART = {
  state: 'LONG_COD_ART',
  control: false,
  default: '000000'
};
const MASK_COD_ART = {
  state: 'MASK_COD_ART',
  control: false,
  default: ''
};
//SP SAD-113
const VER_IMAGEN_ARTICULO = {
  state: 'VER_IMAGEN_ARTICULO',
  control: false,
  default: 'N'
};

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ATRIBUTOS_EDITAR: () => (/* binding */ ATRIBUTOS_EDITAR),
/* harmony export */   ATRIBUTOS_ELIMINAR: () => (/* binding */ ATRIBUTOS_ELIMINAR),
/* harmony export */   ATRIBUTOS_VALORES: () => (/* binding */ ATRIBUTOS_VALORES),
/* harmony export */   CANT_SEARCH: () => (/* binding */ CANT_SEARCH),
/* harmony export */   ESTADO_ACTIVO: () => (/* binding */ ESTADO_ACTIVO),
/* harmony export */   ESTADO_BAJA: () => (/* binding */ ESTADO_BAJA),
/* harmony export */   ESTADO_INACTIVO: () => (/* binding */ ESTADO_INACTIVO),
/* harmony export */   FALSO: () => (/* binding */ FALSO),
/* harmony export */   INIT_ORDER: () => (/* binding */ INIT_ORDER),
/* harmony export */   INIT_SENTIDO: () => (/* binding */ INIT_SENTIDO),
/* harmony export */   INIT_SENTIDO_DESC: () => (/* binding */ INIT_SENTIDO_DESC),
/* harmony export */   MENU_ID_MODULO_AUTORIZACION: () => (/* binding */ MENU_ID_MODULO_AUTORIZACION),
/* harmony export */   MENU_ID_MODULO_DESARROLLO: () => (/* binding */ MENU_ID_MODULO_DESARROLLO),
/* harmony export */   MENU_ID_MODULO_ESTADISTICA: () => (/* binding */ MENU_ID_MODULO_ESTADISTICA),
/* harmony export */   MENU_ID_MODULO_INACTIVOS: () => (/* binding */ MENU_ID_MODULO_INACTIVOS),
/* harmony export */   MENU_ID_MODULO_NOTIFICACIONES: () => (/* binding */ MENU_ID_MODULO_NOTIFICACIONES),
/* harmony export */   MENU_ID_MODULO_PLATAFORMAS: () => (/* binding */ MENU_ID_MODULO_PLATAFORMAS),
/* harmony export */   MENU_ID_MODULO_PRODUCCION: () => (/* binding */ MENU_ID_MODULO_PRODUCCION),
/* harmony export */   MENU_ID_MODULO_RMA: () => (/* binding */ MENU_ID_MODULO_RMA),
/* harmony export */   MENU_ID_MODULO_SERVICIOS: () => (/* binding */ MENU_ID_MODULO_SERVICIOS),
/* harmony export */   MENU_ID_MODULO_WEB: () => (/* binding */ MENU_ID_MODULO_WEB),
/* harmony export */   PAGE_OPTIONS: () => (/* binding */ PAGE_OPTIONS),
/* harmony export */   VERDADERO: () => (/* binding */ VERDADERO)
/* harmony export */ });
const PAGE_OPTIONS = [10, 20, 50, 100, 200];
const INIT_SENTIDO = 'Asc';
const INIT_SENTIDO_DESC = 'Desc';
const INIT_ORDER = 3;
const CANT_SEARCH = 10;
const VERDADERO = 'S';
const FALSO = 'N';
const ESTADO_ACTIVO = 'A';
const ESTADO_INACTIVO = 'I';
const ESTADO_BAJA = 'B';
/* Constantes Paginas de modulo general */
const ATRIBUTOS_VALORES = 1;
const ATRIBUTOS_EDITAR = 2;
const ATRIBUTOS_ELIMINAR = 3;
/* Constantes Modulos existentes menu */
const MENU_ID_MODULO_PRODUCCION = 1;
const MENU_ID_MODULO_AUTORIZACION = 100;
const MENU_ID_MODULO_RMA = 50;
const MENU_ID_MODULO_WEB = 200;
const MENU_ID_MODULO_SERVICIOS = 300;
const MENU_ID_MODULO_ESTADISTICA = 400;
const MENU_ID_MODULO_NOTIFICACIONES = 500;
const MENU_ID_MODULO_PLATAFORMAS = 600;
const MENU_ID_MODULO_DESARROLLO = 997;
const MENU_ID_MODULO_INACTIVOS = 999;

/***/ }),

/***/ 78071:
/*!*************************************************************************!*\
  !*** ./src/app/core/utils/constantes/desarrollo/const-sf-desarrollo.ts ***!
  \*************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ART_DESARROLLO_STATES: () => (/* binding */ ART_DESARROLLO_STATES)
/* harmony export */ });
const ART_DESARROLLO_STATES = {
  //CONFIG
  ART_DESARROLLO_F_CONFIG: {
    state: 'ART_DESARROLLO_F_CONFIG',
    control: true,
    default: 'true,true,false,true,true,true,false,false,false,false,false,false,false,false,true,false,false,false,false,false,false,false,false,false,true,true,false,true,false,false,false,true,true'
  }
};

/***/ }),

/***/ 36575:
/*!****************************************************!*\
  !*** ./src/app/core/utils/metodos/comprobantes.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AplicarDescuento: () => (/* binding */ AplicarDescuento),
/* harmony export */   FiltrarOfertasAplicables: () => (/* binding */ FiltrarOfertasAplicables),
/* harmony export */   GetIExento: () => (/* binding */ GetIExento),
/* harmony export */   GetINoGravado: () => (/* binding */ GetINoGravado),
/* harmony export */   GetIVASobreNeto: () => (/* binding */ GetIVASobreNeto),
/* harmony export */   GetImpuestoInterno: () => (/* binding */ GetImpuestoInterno),
/* harmony export */   GetPjeDescuento: () => (/* binding */ GetPjeDescuento),
/* harmony export */   GetPrecioFinal: () => (/* binding */ GetPrecioFinal),
/* harmony export */   GetPrecioFinalFromLista: () => (/* binding */ GetPrecioFinalFromLista),
/* harmony export */   GetPrecioGravado: () => (/* binding */ GetPrecioGravado),
/* harmony export */   GetPrecioNeto: () => (/* binding */ GetPrecioNeto),
/* harmony export */   GetPrecioNetoFromLista: () => (/* binding */ GetPrecioNetoFromLista),
/* harmony export */   GetStockDisponible: () => (/* binding */ GetStockDisponible),
/* harmony export */   totalDescuentoGral: () => (/* binding */ totalDescuentoGral)
/* harmony export */ });
/* harmony import */ var _constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constantes/constantes-gen */ 14719);

function totalDescuentoGral(dataDescuentos) {
  return (dataDescuentos.Subtotal || 0) * GetPjeDescuento(GetPjeDescuento(dataDescuentos.Desc1, dataDescuentos.Desc2), dataDescuentos.Desc3) / 100;
}
function GetPjeDescuento(pPje1, pPje2) {
  return ((1 - pPje1 / 100) * (1 - pPje2 / 100) - 1) * -100 + 0;
}
function AplicarDescuento(value, pjeDescuento) {
  return value * (1 - pjeDescuento / 100);
}
function GetPrecioGravado(final, montoNoGravado, pjeIVA) {
  return (final - montoNoGravado) / (1 + pjeIVA / 100);
}
function GetPrecioNeto(final, montoNoGravado, pjeIVA) {
  let lneto = GetPrecioGravado(final, montoNoGravado, pjeIVA); //  + monto_no_gr; sacado por David 2006 01 26
  if (lneto > 0) {
    return lneto;
  } else {
    return 0;
  }
}
function GetIVASobreNeto(neto, pjeIVA) {
  return neto * (pjeIVA / 100);
}
function GetPrecioFinal(neto, pjeIVA, montoNoGravado) {
  return GetIVASobreNeto(neto, pjeIVA) + neto + montoNoGravado;
}
function GetPrecioNetoFromLista(art, idLista) {
  if (!art) return 0;
  switch (idLista) {
    case 1:
      return art.PrecioV1 ?? 0;
    case 2:
      return art.PrecioV2 ?? 0;
    case 3:
      return art.PrecioV3 ?? 0;
    case 4:
      return art.PrecioV4 ?? 0;
    default:
      const precio = art.PreciosAlternativos.find(item => item.NombrePrecio.Id === idLista);
      return precio ? precio.PrecioNeto : art.PrecioV1 ?? 0;
  }
}
function GetPrecioFinalFromLista(art, idLista) {
  if (!art) return 0;
  switch (idLista) {
    case 1:
      return art.PrecioV1Final ?? 0;
    case 2:
      return art.PrecioV2Final ?? 0;
    case 3:
      return art.PrecioV3Final ?? 0;
    case 4:
      return art.PrecioV4Final ?? 0;
    default:
      const precio = art.PreciosAlternativos.find(item => item.NombrePrecio.Id === idLista);
      return precio ? precio.PrecioFinal : art.PrecioV1Final ?? 0;
  }
}
function GetImpuestoInterno(noGravado, cotizacion) {
  return noGravado * cotizacion;
}
function GetIExento(neto, cantidad, pjeDescuento) {
  return AplicarDescuento(neto, pjeDescuento) * cantidad;
}
function GetINoGravado(neto, cantidad, pjeDescuento, impInterno) {
  return AplicarDescuento(neto, pjeDescuento) * cantidad + impInterno * cantidad;
}
function GetStockDisponible(stockFisico = 0, stockComprometido = 0, stockReservado = 0, configuracion = 0) {
  switch (+configuracion) {
    case _constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.STOCK_DISPONIBLE_FISICO:
      // SF
      return stockFisico;
    case _constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.STOCK_DISPONIBLE_FISICO_COMPROMETIDO:
      // S.Físico - S.Comprometido
      return stockFisico - (stockComprometido < 0 ? 0 : stockComprometido);
    case _constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.STOCK_DISPONIBLE_FISICO_RESERVADO:
      // S.Físico - S.Reservado
      return stockFisico - (stockReservado < 0 ? 0 : stockReservado);
    case _constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.STOCK_DISPONIBLE_FISICO_COMPROMETIDO_RESERVADO:
      // S.Físico - S.Comprometido - S.Reservado
      return stockFisico - (stockComprometido < 0 ? 0 : stockComprometido) - (stockReservado < 0 ? 0 : stockReservado);
    default:
      return stockFisico;
    // Por defecto, solo el stock físico
  }
}
function FiltrarOfertasAplicables(ofertas, articulos) {
  // Crear mapa de artículos para acceso eficiente
  const articulosMap = new Map(articulos.map(art => [art.IdArticulo, art]));
  // Crear sets de ofertas aplicadas (separar normal de PT si tienen diferentes claves)
  const ofertasAplicadasSet = new Set();
  const ofertasPTAplicadasSet = new Set();
  // Extraer ofertas aplicadas de los artículos
  for (const articulo of articulos) {
    if (articulo.IdOferta && articulo.IdOfertaItem) {
      ofertasAplicadasSet.add(`${articulo.IdOferta}-${articulo.IdOfertaItem}`);
    }
    // Si las ofertas PT tienen diferentes IDs, manejarlas por separado
    if (articulo.IdOferta && articulo.IdOfertaItem) {
      ofertasPTAplicadasSet.add(`${articulo.IdOferta}-${articulo.IdOfertaItem}`);
    }
  }
  return ofertas.map(ofertaXArticulo => {
    const articulo = articulosMap.get(ofertaXArticulo.IdArticulo);
    if (!articulo) return null;
    // Filtrar cada tipo de oferta
    //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
    // const ofertasFiltradas =
    //   ofertaXArticulo.Ofertas?.filter((oferta) =>
    //     ofertasAplicadasSet.has(`${oferta.IdOferta}-${oferta.IdOfertaItem}`)
    //   ) ?? [];
    const ofertasPTFiltradas = ofertaXArticulo.OfertasPT?.filter(ofertaPT => ofertasPTAplicadasSet.has(`${ofertaPT.IdOferta}-${ofertaPT.IdOfertaItemPT}`)) ?? [];
    //TODO SP SAD-315 ORIGINAL se oculta temporalmente para version 6.0 BETA
    // const descuentosEspecialesFiltrados =
    //   ofertasFiltradas.length === 0 && ofertasPTFiltradas.length === 0
    //     ? (ofertaXArticulo.DescuentosEspeciales?.filter(
    //         (descuento) =>
    //           descuento.PjeDescuento === articulo.PjeDescuento &&
    //           descuento.AplicarSiempre === 'S'
    //       ) ?? [])
    //     : [];
    const descuentosEspecialesFiltrados = ofertasPTFiltradas.length === 0 ? ofertaXArticulo.DescuentosEspeciales?.filter(descuento => descuento.PjeDescuento === articulo.PjeDescuento && descuento.AplicarSiempre === 'S') ?? [] : [];
    // Solo retornar si hay contenido relevante
    //TODO SP SAD-315 ORIGINAL se oculta temporalmente para version 6.0 BETA
    // const tieneContenido =
    //   ofertasFiltradas.length > 0 ||
    //   ofertasPTFiltradas.length > 0 ||
    //   descuentosEspecialesFiltrados.length > 0;
    const tieneContenido = ofertasPTFiltradas.length > 0 || descuentosEspecialesFiltrados.length > 0;
    return tieneContenido ? {
      IdArticulo: ofertaXArticulo.IdArticulo,
      CodigoArticulo: ofertaXArticulo.CodigoArticulo,
      Articulo: ofertaXArticulo.Articulo,
      //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
      //Ofertas: ofertasFiltradas,
      OfertasPT: ofertasPTFiltradas,
      DescuentosEspeciales: descuentosEspecialesFiltrados
    } : null;
  }).filter(Boolean);
}

/***/ }),

/***/ 38002:
/*!***********************************************!*\
  !*** ./src/app/core/utils/metodos/metodos.ts ***!
  \***********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   JSONtoFormData: () => (/* binding */ JSONtoFormData),
/* harmony export */   MMYYYYYActual: () => (/* binding */ MMYYYYYActual),
/* harmony export */   YYYYActual: () => (/* binding */ YYYYActual),
/* harmony export */   YYYYMMActual: () => (/* binding */ YYYYMMActual),
/* harmony export */   agregarMesAFechaYYYYMM: () => (/* binding */ agregarMesAFechaYYYYMM),
/* harmony export */   allReplace: () => (/* binding */ allReplace),
/* harmony export */   arbolEsHijo: () => (/* binding */ arbolEsHijo),
/* harmony export */   armarArbol: () => (/* binding */ armarArbol),
/* harmony export */   buscarEnArbol: () => (/* binding */ buscarEnArbol),
/* harmony export */   buscarValor: () => (/* binding */ buscarValor),
/* harmony export */   calcularDiferenciaMeses: () => (/* binding */ calcularDiferenciaMeses),
/* harmony export */   compareFechasDDMMYYYY: () => (/* binding */ compareFechasDDMMYYYY),
/* harmony export */   compareToFecha: () => (/* binding */ compareToFecha),
/* harmony export */   convertirAOracion: () => (/* binding */ convertirAOracion),
/* harmony export */   copiarObjeto: () => (/* binding */ copiarObjeto),
/* harmony export */   ddMMyyyToObject: () => (/* binding */ ddMMyyyToObject),
/* harmony export */   fechaActual: () => (/* binding */ fechaActual),
/* harmony export */   fechaActualMenosXMeses: () => (/* binding */ fechaActualMenosXMeses),
/* harmony export */   fechaHoraAFechaDDMMYYYY: () => (/* binding */ fechaHoraAFechaDDMMYYYY),
/* harmony export */   fechaHoraActual: () => (/* binding */ fechaHoraActual),
/* harmony export */   fechaHoraActualMenosMeses: () => (/* binding */ fechaHoraActualMenosMeses),
/* harmony export */   "fechaHoraActualmenosAños": () => (/* binding */ fechaHoraActualmenosAños),
/* harmony export */   fechaHoraSinAmPm: () => (/* binding */ fechaHoraSinAmPm),
/* harmony export */   fechaIncompleta: () => (/* binding */ fechaIncompleta),
/* harmony export */   formatFecha: () => (/* binding */ formatFecha),
/* harmony export */   formatFechaComp: () => (/* binding */ formatFechaComp),
/* harmony export */   formatFechaHora: () => (/* binding */ formatFechaHora),
/* harmony export */   formatFechaHoraComp: () => (/* binding */ formatFechaHoraComp),
/* harmony export */   formatFechaToMMDDYYYY: () => (/* binding */ formatFechaToMMDDYYYY),
/* harmony export */   formatFechaToPipe: () => (/* binding */ formatFechaToPipe),
/* harmony export */   formatHora: () => (/* binding */ formatHora),
/* harmony export */   formatHoraComp: () => (/* binding */ formatHoraComp),
/* harmony export */   formatMMYYYY: () => (/* binding */ formatMMYYYY),
/* harmony export */   formatMMYYYYComp: () => (/* binding */ formatMMYYYYComp),
/* harmony export */   formatMMYYYYCompActual: () => (/* binding */ formatMMYYYYCompActual),
/* harmony export */   formatearFecha: () => (/* binding */ formatearFecha),
/* harmony export */   getOptionsModal: () => (/* binding */ getOptionsModal),
/* harmony export */   getUltimoDiaDelMes: () => (/* binding */ getUltimoDiaDelMes),
/* harmony export */   imgToFile: () => (/* binding */ imgToFile),
/* harmony export */   inicializarTiempos: () => (/* binding */ inicializarTiempos),
/* harmony export */   isValidId: () => (/* binding */ isValidId),
/* harmony export */   normalizeZero: () => (/* binding */ normalizeZero),
/* harmony export */   ordenar: () => (/* binding */ ordenar),
/* harmony export */   periodoActual: () => (/* binding */ periodoActual),
/* harmony export */   restarMesesAFechaActual: () => (/* binding */ restarMesesAFechaActual),
/* harmony export */   secondsToDHMS: () => (/* binding */ secondsToDHMS),
/* harmony export */   secondsToHMS: () => (/* binding */ secondsToHMS),
/* harmony export */   separarPipe: () => (/* binding */ separarPipe),
/* harmony export */   separarPipeFecha: () => (/* binding */ separarPipeFecha),
/* harmony export */   setFechaHoraReactivo: () => (/* binding */ setFechaHoraReactivo),
/* harmony export */   toTitleCase: () => (/* binding */ toTitleCase),
/* harmony export */   verLocalStorageSize: () => (/* binding */ verLocalStorageSize)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);

/* Funcion que dado un tiempo, realiza una inicilizacion de los datos */
function inicializarTiempos(tiempos) {
  if (!tiempos) {
    tiempos = {
      Dias: 0,
      Horas: 0,
      Minutos: 0,
      Segundos: 0
    };
  }
  return tiempos;
}
//SP Permite formatear una full date al formato necesario para un input de fecha
function formatearFecha(fecha) {
  const año = fecha.getFullYear();
  const mes = fecha.getMonth() + 1; // Los meses en JavaScript van de 0 a 11, por lo que hay que agregar 1
  const dia = fecha.getDate();
  // Completar con ceros a la izquierda si es necesario
  const strAño = año.toString().padStart(4, '0');
  const strMes = mes.toString().padStart(2, '0');
  const strDia = dia.toString().padStart(2, '0');
  const fechaFormateada = `${strAño}-${strMes}-${strDia}`;
  return fechaFormateada;
}
function formatFecha(fecha) {
  if (fecha === '') {
    return '';
  }
  var day = fecha.substring(8, 10);
  var month = fecha.substring(5, 7);
  var year = fecha.substring(0, 4);
  return day + '/' + month + '/' + year;
}
function formatFechaHora(fecha) {
  if (fecha === '') {
    return '';
  }
  var day = fecha.substring(8, 10);
  var month = fecha.substring(5, 7);
  var year = fecha.substring(0, 4);
  var hour = fecha.substring(11, 13);
  var min = fecha.substring(14, 16);
  return day + '/' + month + '/' + year + ' ' + hour + ':' + min;
}
function formatFechaComp(fecha) {
  if (fecha === '') {
    return '';
  }
  var day = fecha.substring(0, 2);
  var month = fecha.substring(3, 5);
  var year = fecha.substring(6, 10);
  return year + '-' + month + '-' + day;
}
//SP SINWEB-257
function formatFechaToMMDDYYYY(fecha) {
  if (fecha === '') {
    return '';
  }
  var day = fecha.substring(0, 2);
  var month = fecha.substring(3, 5);
  var year = fecha.substring(6, 10);
  return month + '/' + day + '/' + year;
}
//SP SINWEB-257
function formatDateTime(dateTime, seg) {
  // Convertir la fecha y hora a un objeto Date
  const d = new Date(dateTime);
  // Obtener el día, el mes, el año, la hora, los minutos y los segundos de la fecha y hora
  const day = d.getDate();
  const month = d.getMonth() + 1; // Los meses en JavaScript son 0-indexados
  const year = d.getFullYear();
  const hours = d.getHours();
  const minutes = d.getMinutes();
  let seconds;
  if (seg) {
    seconds = d.getSeconds();
  }
  // Formatear la fecha y hora a mm/dd/yyyy hh:mm:ss
  if (seg) {
    return `${month}/${day}/${year} ${hours}:${minutes}':'${seconds}`;
  } else {
    return `${month}/${day}/${year} ${hours}:${minutes}`;
  }
}
function formatFechaHoraComp(fecha) {
  var day = fecha.substring(0, 2);
  var month = fecha.substring(3, 5);
  var year = fecha.substring(6, 10);
  var hour = fecha.substring(11, 13);
  var min = fecha.substring(14, 16);
  return year + '-' + month + '-' + day + 'T' + hour + ':' + min;
}
function formatFechaToPipe(fecha) {
  const normalRegex = /^([0-2]?[0-9]|(3)[0-1])\/(0?[0-9]|1[0-2])\/\d{4}$/; // dd/mm/yyyy Sin necesidad de completar con 0 en month y day
  const normalDateTimeRegex = /^([0-2]?[0-9]|(3)[0-1])\/((0?[0-9])|((1)[0-2]))\/\d{4} \d{2}:\d{2}:\d{2}$/; // dd/mm/yyyy hh:mm:ss  Sin necesidad de completar con 0 en month y day
  const normalDateMinRegex = /^([0-2]?[0-9]|(3)[0-1])\/((0?[0-9])|((1)[0-2]))\/\d{4} \d{2}:\d{2}$/; // dd/mm/yyyy hh:mm Sin necesidad de completar con 0 en month y day
  if (normalRegex.test(fecha)) {
    return formatFechaToMMDDYYYY(fecha);
  }
  if (normalDateTimeRegex.test(fecha)) {
    return formatDateTime(fecha, true);
  }
  if (normalDateMinRegex.test(fecha)) {
    return formatDateTime(fecha, false);
  }
  return fecha;
}
function allReplace(str, obj) {
  for (const x in obj) {
    str = str.replace(new RegExp(x, 'g'), obj[x]);
  }
  return str;
}
function convertirAOracion(palabra) {
  let primeraLetra = palabra.charAt(0).toUpperCase();
  let restoPalabra = palabra.slice(1).toLowerCase();
  let oracion = primeraLetra + restoPalabra;
  return oracion;
}
function fechaHoraSinAmPm(date) {
  if (!date) {
    return '';
  }
  const fechaMatch = date.match(/(\d{2}\/\d{2}\/\d{4} \d{2}:\d{2})/g);
  return fechaMatch ? fechaMatch[0] : '';
}
function fechaActual() {
  var now = new Date();
  var day = ('0' + now.getDate()).slice(-2);
  var month = ('0' + (now.getMonth() + 1)).slice(-2);
  var today = now.getFullYear() + '-' + month + '-' + day;
  return today;
}
function periodoActual() {
  var now = new Date();
  var month = ('0' + (now.getMonth() + 1)).slice(-2);
  var today = now.getFullYear() + '-' + month;
  return today;
}
function YYYYMMActual() {
  var now = new Date();
  var month = ('0' + (now.getMonth() + 1)).slice(-2);
  var today = now.getFullYear() + '-' + month;
  return today;
}
function MMYYYYYActual() {
  var now = new Date();
  var month = ('0' + (now.getMonth() + 1)).slice(-2);
  var today = month + '-' + now.getFullYear();
  return today;
}
function YYYYActual() {
  var now = new Date();
  var today = now.getFullYear();
  return today;
}
function calcularDiferenciaMeses(fecha1, fecha2) {
  const [mes1, anio1] = fecha1.split('-');
  const [mes2, anio2] = fecha2.split('-');
  // const diffAnios = (parseInt(anio2) - parseInt(anio1)) * 12;
  // const diffMeses = parseInt(mes2) - parseInt(mes1);
  // return diffAnios - diffMeses;
  const fullDate1 = new Date(mes1 + '-' + '01' + '-' + anio1);
  const fullDate2 = new Date(mes2 + '-' + '01' + '-' + anio2);
  // Get timestamps in milliseconds
  const timestamp1 = fullDate1.getTime();
  const timestamp2 = fullDate2.getTime();
  // Calculate difference in milliseconds
  const differenceInMs = timestamp1 > timestamp2 ? timestamp1 - timestamp2 : timestamp2 - timestamp1;
  // Convert difference to months (consider 30 days per month for simplicity)
  const monthsDifference = Math.round(differenceInMs / (1000 * 60 * 60 * 24 * 30));
  return monthsDifference;
}
function agregarMesAFechaYYYYMM(fecha) {
  let partesFecha = fecha.split('-');
  let year = parseInt(partesFecha[0]);
  let month = parseInt(partesFecha[1]);
  if (month === 12) {
    year++;
    month = 1;
  } else {
    month++;
  }
  let nuevoMes = month.toString().padStart(2, '0');
  return `${year}-${nuevoMes}`;
}
function restarMesesAFechaActual(meses) {
  // Obtener la fecha actual
  const fechaActual = new Date();
  // Calcular el número de años completos a restar
  const aniosCompletos = Math.floor(meses / 12);
  // Calcular el número de meses restantes después de restar años completos
  const mesesRestantes = meses % 12;
  // Restar los años completos a la fecha actual
  fechaActual.setFullYear(fechaActual.getFullYear() - aniosCompletos);
  // Restar los meses restantes a la fecha actual
  fechaActual.setMonth(fechaActual.getMonth() - mesesRestantes);
  // Ajustar la fecha si es necesario (por ejemplo, si el día 31 de enero se resta un mes, se convierte en el 28/29 de febrero)
  while (fechaActual.getDate() < 1) {
    fechaActual.setDate(fechaActual.getDate() + 1);
    fechaActual.setMonth(fechaActual.getMonth() - 1);
  }
  // Devolver la fecha modificada
  return formatearFecha(fechaActual);
}
function fechaActualMenosXMeses(cant) {
  // Obtenemos la fecha actual
  const fechaActual = new Date();
  // Obtenemos el mes actual
  const mesActual = fechaActual.getMonth();
  // Calculamos el mes de la fecha que queremos obtener
  const mes = mesActual - (cant >= 12 ? 1 : cant);
  // Creamos una nueva fecha con el mes y año especificados
  const fecha = new Date(fechaActual.getFullYear(), mes, 1);
  // Validamos si se debe ajustar el año
  var day = ('0' + fecha.getDate()).slice(-2);
  var month = ('0' + (fecha.getMonth() + 1)).slice(-2);
  var resultDate = fecha.getFullYear() + '-' + month + '-' + day;
  // Devolvemos la fecha
  return resultDate;
}
function fechaHoraAFechaDDMMYYYY(date) {
  return date.split(' ')[0];
}
function fechaHoraActual() {
  var now = new Date();
  var today = new Date(now.getTime() - now.getTimezoneOffset() * 60000).toISOString().substring(0, 16);
  return today;
}
function fechaHoraActualmenosAños(años) {
  var now = new Date();
  var dateCopy = new Date(now.getTime());
  dateCopy.setFullYear(now.getFullYear() - años);
  var today = new Date(dateCopy.getTime() - dateCopy.getTimezoneOffset() * 60000).toISOString().substring(0, 16);
  return today;
}
function fechaHoraActualMenosMeses(meses) {
  var now = new Date();
  var dateCopy = new Date(now.getTime());
  dateCopy.setMonth(now.getMonth() - meses);
  var today = new Date(dateCopy.getTime() - dateCopy.getTimezoneOffset() * 60000).toISOString().substring(0, 16);
  return today;
}
function formatMMYYYY(fecha) {
  if (fecha === '') {
    return '';
  }
  var month = fecha.substring(5, 7);
  var year = fecha.substring(0, 4);
  return month + '/' + year;
}
function formatMMYYYYComp(fecha) {
  if (fecha === '') {
    return '';
  }
  var month = fecha.substring(0, 2);
  var year = fecha.substring(3, 7);
  return year + '-' + month;
}
function formatMMYYYYCompActual() {
  const now = new Date();
  const actualM = now.getMonth() + 1;
  const month = now.getMonth() + 1 < 10 ? '0'.concat(actualM.toString()) : actualM.toString();
  const dateString = now.getFullYear() + '-' + month;
  return dateString;
}
function getUltimoDiaDelMes(fecha) {
  // Split the date string into month and year
  const [mes, anio] = fecha.split('/');
  // Convert month string to a number (0-based indexing)
  const mesNumero = parseInt(mes);
  // Create a new Date object with the year and month (adjusted for 0-based indexing)
  const fechaObj = new Date(anio, mesNumero);
  // Set the date to the last day of the month
  //fechaObj.setDate(0); // 0 represents the last day of the previous month
  // Get the actual last day of the current month
  return new Date(fechaObj.getFullYear(), fechaObj.getMonth(), 0).getDate();
}
function buscarValor(objeto, camino) {
  const partesCamino = camino.split('.');
  let valor = objeto;
  for (let i = 0; i < partesCamino.length; i++) {
    if (valor) {
      const parteActual = partesCamino[i];
      if (parteActual.includes('[') && parteActual.includes(']')) {
        // Si la parte actual incluye corchetes, se trata de un acceso a un array
        const nombrePropiedad = parteActual.substring(0, parteActual.indexOf('['));
        const indice = parseInt(parteActual.substring(parteActual.indexOf('[') + 1, parteActual.indexOf(']')));
        valor = valor[nombrePropiedad][indice];
      } else {
        // Si la parte actual no incluye corchetes, se trata de un acceso a una propiedad de objeto
        valor = valor[partesCamino[i]];
      }
    } else {
      return '';
    }
  }
  return valor;
}
function formatHoraComp(hora) {
  if (hora == '') {
    return '';
  }
  const hour = hora.substring(0, 2);
  const minute = hora.substring(3, 5);
  return hour + ':' + minute;
}
function formatHora(hora) {
  if (hora == '') {
    return '';
  }
  return hora + ':00';
}
function secondsToDHMS(seconds) {
  // Convertir los segundos a días
  const days = Math.floor(seconds / 86400);
  // Convertir los segundos restantes a horas
  let remainingSeconds = seconds % 86400;
  const hours = Math.floor(remainingSeconds / 3600);
  // Convertir los segundos restantes a minutos
  remainingSeconds = remainingSeconds % 3600;
  const minutes = Math.floor(remainingSeconds / 60);
  // Convertir los segundos restantes a segundos
  const secondsAux = remainingSeconds % 60;
  // Devolver el string con la representación de los días, horas, minutos y segundos
  return `${days} días ${hours}h:${minutes}m:${Math.round(secondsAux)}s`;
}
function secondsToHMS(seconds) {
  const hours = Math.floor(seconds / 3600);
  // Convertir los segundos restantes a minutos
  let remainingSeconds = seconds % 3600;
  const minutes = Math.floor(remainingSeconds / 60);
  // Convertir los segundos restantes a segundos
  const secondsAux = remainingSeconds % 60;
  return `${hours}h:${minutes}m:${Math.round(secondsAux)}s`;
}
function compareToFecha(fecha1, fecha2, type = 'dia') {
  // Función auxiliar para convertir una cadena a un objeto Date
  function convertirAFecha(fechaStr) {
    if (fechaStr == '' || fechaStr == null) {
      return null;
    }
    const haySlash = fechaStr.includes('/');
    const partes = haySlash ? fechaStr.split('/') : fechaStr.split('-');
    if (partes.length === 2) {
      if (haySlash) {
        // Formato mm/aaaa
        return new Date(partes[1], partes[0] - 1, 1);
      } else {
        // Formato aaaa-mm
        return new Date(partes[0], partes[1] - 1, 1);
      }
    } else if (partes.length === 3) {
      if (haySlash) {
        // Formato dd/mm/aaaa
        return type == 'año' ? new Date(partes[2], 0, 1) : type == 'mes' ? new Date(partes[2], partes[1] - 1, 1) : new Date(partes[2], partes[1] - 1, partes[0]);
      } else {
        // Formato aaaa-mm-dd
        return type == 'año' ? new Date(partes[0], 0, partes[2]) : type == 'mes' ? new Date(partes[0], partes[1] - 1, 1) : new Date(partes[0], partes[1] - 1, partes[2]);
      }
    } else {
      throw new Error('Formato de fecha inválido');
    }
  }
  // Convertir las fechas a objetos Date
  const fecha1Obj = convertirAFecha(fecha1);
  const fecha2Obj = convertirAFecha(fecha2);
  // Comparar las fechas y devolver un número
  if (fecha1Obj < fecha2Obj) {
    return -1; // fecha1 es menor que fecha2
  } else if (fecha1Obj > fecha2Obj) {
    return 1; // fecha1 es mayor que fecha2
  } else {
    return 0; // fecha1 es igual a fecha2
  }
}
// Función para comparar dos fechas en formato dd/MM/yyyy
function compareFechasDDMMYYYY(fecha1, fecha2) {
  const [dia1, mes1, anio1] = fecha1.split('/');
  const [dia2, mes2, anio2] = fecha2.split('/');
  const fecha1Obj = new Date(anio1, mes1 - 1, dia1);
  const fecha2Obj = new Date(anio2, mes2 - 1, dia2);
  if (fecha1Obj < fecha2Obj) {
    return -1;
  } else if (fecha1Obj > fecha2Obj) {
    return 1;
  } else {
    return 0;
  }
}
function ddMMyyyToObject(fecha) {
  const [dateString, timeString] = fecha.split(' ');
  const [day, month, year] = dateString.split('/');
  const [hour, minute] = timeString.split(':');
  return new Date(+year, +month - 1, +day, +hour, +minute);
}
function armarArbol(datos, filtro, expanded, forId, noRaiz) {
  // Create a map to store references to each element using their Id as the key
  const map = {};
  // Iterate over the array to populate the map and initialize the tree nodes
  datos.forEach(element => {
    map[element.Id] = {
      data: element,
      children: [],
      expanded: expanded
    };
    if (filtro) {
      Object.assign(map[element.Id], {
        label: element.Nombre
      });
      Object.assign(map[element.Id], {
        id: element.Id
      });
      //Object.assign(map[element.Id], {key: element.Nombre});
      Object.assign(map[element.Id], {
        key: element.Id
      });
    }
  });
  // Iterate over the array again to link the parent-child relationships
  datos.forEach(element => {
    const parentId = forId ? element.IdPadre : element.Padre?.Id;
    //if (parentId !== 0) {
    const parent = map[parentId];
    const child = map[element.Id];
    // Add the current element as a child to its parent
    if (parent) {
      parent.children.push(child);
      //parent.leaf = false;
    }
    // parent.children.push(child);
    // // Update leaf property of the parent
    // parent.leaf = false;
    //}
  });
  // Find and return the root elements (elements without a parent)
  const result = Object.values(map).filter(node => forId ? node.data.IdPadre == -1 : !node.data.Padre);
  return noRaiz ? result[0].children : result;
}
function buscarEnArbol(arbol, id) {
  if (arbol.id === id) {
    return arbol;
  }
  for (let i = 0; i < arbol.children.length; i++) {
    const nodoEncontrado = buscarEnArbol(arbol.children[i], id);
    if (nodoEncontrado) {
      return nodoEncontrado;
    }
  }
  return null;
}
function arbolEsHijo(arbol, hijo, padre) {
  const nodo1 = buscarEnArbol(arbol, hijo);
  if (nodo1) {
    const nodo2 = buscarEnArbol(nodo1, padre);
    return nodo2 !== null;
  }
  return false;
}
function ordenar(sortEvent) {
  const REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
  const comparator = (a, b) => {
    let valueA = buscarValor(a, sortEvent.field);
    let valueB = buscarValor(b, sortEvent.field);
    let result;
    // Si el tipo de datos es una fecha, use la función `Date.getTime()` para obtener el valor de tiempo.
    if (typeof valueA != 'boolean' && isNaN(valueA) && valueA.match(REGEX) && typeof valueB != 'boolean' && isNaN(valueB) && valueB.match(REGEX)) {
      var aa = valueA?.split('/').reverse().join(),
        bb = valueB?.split('/').reverse().join();
      result = sortEvent.order > 0;
      return aa < bb ? -1 * sortEvent.order : aa > bb ? 1 * sortEvent.order : 0 * sortEvent.order;
    } else {
      let value1 = buscarValor(a, sortEvent.field);
      let value2 = buscarValor(b, sortEvent.field);
      if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
      return sortEvent.order * result;
    }
  };
  return sortEvent.data.sort(comparator);
}
const separarPipeFecha = cadena => {
  // Se obtiene la posición del primer y último ':'.
  const posPrimerDosPuntos = cadena.indexOf(':');
  const posUltimoDosPuntos = cadena.lastIndexOf(':');
  let partes = [];
  if (posPrimerDosPuntos === -1 || posUltimoDosPuntos === -1) {
    partes.push(cadena);
    return partes;
  }
  if (posPrimerDosPuntos === posUltimoDosPuntos) {
    partes.push(cadena.substring(0, posPrimerDosPuntos));
    partes.push(cadena.substring(posPrimerDosPuntos + 1));
  } else {
    partes.push(cadena.substring(0, posPrimerDosPuntos));
    partes.push(cadena.substring(posPrimerDosPuntos + 1, posUltimoDosPuntos));
    partes.push(cadena.substring(posUltimoDosPuntos + 1));
  }
  // Se devuelve una lista con las partes separadas de la cadena.
  return partes;
};
const separarPipe = cadena => {
  // Se obtiene la posición del primer y último ':'.
  let partes = cadena.split(':');
  // Se devuelve una lista con las partes separadas de la cadena.
  return partes;
};
function copiarObjeto(objeto) {
  return JSON.parse(JSON.stringify(objeto));
}
function JSONtoFormData(obj, formData = new FormData(), arrayKey = '') {
  formData = formData || new FormData();
  for (let key in obj) {
    if (obj.hasOwnProperty(key)) {
      const newKey = arrayKey ? `${arrayKey}.${key}` : key;
      if (typeof obj[key] === 'object' && !Array.isArray(obj[key]) && !isFile(obj[key])) {
        if (obj[key] instanceof File) {
          JSONtoFormData(obj[key], formData, newKey);
        } else {
          JSONtoFormData(obj[key], formData, newKey);
        }
      } else if (Array.isArray(obj[key])) {
        obj[key].forEach((item, index) => {
          if (typeof item === 'object') {
            JSONtoFormData(item, formData, `${newKey}[${index}]`);
          } else {
            formData.append(`${newKey}[${index}]`, item);
          }
        });
      } else {
        formData.append(newKey, obj[key]);
      }
    }
  }
  return formData;
}
function isFile(data) {
  return data instanceof File;
}
function imgToFile(img) {
  const base64Data = img;
  const byteCharacters = atob(base64Data.split(',')[1]);
  const byteNumbers = new Array(byteCharacters.length);
  for (let i = 0; i < byteCharacters.length; i++) {
    byteNumbers[i] = byteCharacters.charCodeAt(i);
  }
  const byteArray = new Uint8Array(byteNumbers);
  // Crear un objeto Blob
  const blob = new Blob([byteArray], {
    type: 'image/jpeg'
  });
  return blob;
}
function toTitleCase(str) {
  if (!str) return str;
  return str.split(/\s+/).map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
}
function fechaIncompleta(fecha) {
  const caracteresIncompleto = ['d', 'm', 'a', 'h'];
  return caracteresIncompleto.some(caracter => lodash__WEBPACK_IMPORTED_MODULE_0__.includes(fecha, caracter));
}
function setFechaHoraReactivo(date, formDate) {
  if (!date && !formDate) {
    return false; // Si ambas están vacías, retornamos false
  }
  if (fechaIncompleta(date)) {
    return false;
  }
  return true;
}
// Retorna verdadero si una cadena representa un número entero
function isValidId(id) {
  const isNum = /^\d+$/.test(id);
  return isNum;
}
function verLocalStorageSize() {
  var _lsTotal = 0,
    _xLen,
    _x;
  for (_x in localStorage) {
    if (!localStorage.hasOwnProperty(_x)) {
      continue;
    }
    _xLen = (localStorage[_x].length + _x.length) * 2;
    _lsTotal += _xLen;
    console.log(_x.substr(0, 50) + ' = ' + (_xLen / 1024).toFixed(2) + ' KB');
  }
  console.log('Total = ' + (_lsTotal / 1024).toFixed(2) + ' KB');
}
//SP Metodo para obtener opciones de modal
function getOptionsModal(size = 'md', backdropClass = 'back-z-index', windowClass = 'modal-z-index', scrollable = true) {
  let windowSize = window.innerWidth;
  let modalOptions = {
    centered: true,
    scrollable,
    backdrop: 'static',
    keyboard: false,
    backdropClass: backdropClass,
    windowClass: windowClass
  };
  if (windowSize < 992) {
    modalOptions.fullscreen = true;
  } else {
    if (size === 'fullscreen') {
      modalOptions.fullscreen = true;
    } else {
      modalOptions.size = size;
    }
  }
  if (scrollable) {
    modalOptions.scrollable = true;
  }
  return modalOptions;
}
/**
 * MC SINWEB-953 Retorna la máscara de acuerdo al formato y longitud
 * @param {string} formato "0" Alfanumérico, "1" Solo dígitos
 * @param {number} longitud Cantidad de caracteres
 */
// export function getMaskByFormat(formato: string, longitud: number): string {
//   if (formato === FORMATO_COD_ART.ALFANUMERICO) {
//     return "";
//   } else if (formato === FORMATO_COD_ART.SOLO_DIGITOS) {
//     return "0".repeat(longitud);
//   }
// }
/**
 * Normaliza un número para evitar devolver -0.
 * @param value Número a normalizar
 * @returns Número sin -0 (devuelve 0 en lugar de -0)
 */
function normalizeZero(value) {
  return Object.is(value, -0) ? 0 : value;
}

/***/ }),

/***/ 92558:
/*!**************************************************************!*\
  !*** ./src/app/core/utils/permisos/permisos-autorizacion.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_ELIM_CONFIG_AUT: () => (/* binding */ PERMISO_ELIM_CONFIG_AUT),
/* harmony export */   PERMISO_ELIM_RESP_AUT: () => (/* binding */ PERMISO_ELIM_RESP_AUT),
/* harmony export */   PERMISO_INS_CONFIG_AUT: () => (/* binding */ PERMISO_INS_CONFIG_AUT),
/* harmony export */   PERMISO_INS_RESP_AUT: () => (/* binding */ PERMISO_INS_RESP_AUT),
/* harmony export */   PERMISO_LIS_AUT_COMP: () => (/* binding */ PERMISO_LIS_AUT_COMP),
/* harmony export */   PERMISO_LIS_CONFIG_AUT: () => (/* binding */ PERMISO_LIS_CONFIG_AUT),
/* harmony export */   PERMISO_LIS_RESP_AUT: () => (/* binding */ PERMISO_LIS_RESP_AUT),
/* harmony export */   PERMISO_MODIF_AUT_COMP: () => (/* binding */ PERMISO_MODIF_AUT_COMP),
/* harmony export */   PERMISO_MODIF_CONFIG_AUT: () => (/* binding */ PERMISO_MODIF_CONFIG_AUT),
/* harmony export */   PERMISO_MODIF_RESP_AUT: () => (/* binding */ PERMISO_MODIF_RESP_AUT)
/* harmony export */ });
// MC SINWEB-105 Permisos del módulo Autorización
/*
    Id          : 1048
    Nombre      : Inserción de configuración de autorización de comprobantes
    Descripción : Agregar nueva configuración de autorización de comprobantes
*/
const PERMISO_INS_CONFIG_AUT = 1048;
/*
    Id          : 1049
    Nombre      : Modificación de configuración de autorización de comprobantes
    Descripción : Realizar cambios en la configuración de autorización de comprobantes
*/
const PERMISO_MODIF_CONFIG_AUT = 1049;
/*
    Id          : 1050
    Nombre      : Eliminación de configuración de autorización de comprobantes
    Descripción : Eliminar una configuración de autorización de comprobantes
*/
const PERMISO_ELIM_CONFIG_AUT = 1050;
/*
    Id          : 1051
    Nombre      : Listado de configuración de autorización de comprobantes
    Descripción : Ver listado de configuración de autorización de comprobantes
*/
const PERMISO_LIS_CONFIG_AUT = 1051;
/*
    Id          : 1052
    Nombre      : Inserción de responsable de autorización
    Descripción : Agregar nuevo responsable de autorización
*/
const PERMISO_INS_RESP_AUT = 1052;
/*
    Id          : 1053
    Nombre      : Modificación de responsable de autorización
    Descripción : Realizar cambios en responsable de autorización
*/
const PERMISO_MODIF_RESP_AUT = 1053;
/*
    Id          : 1054
    Nombre      : Eliminación de responsable de autorización
    Descripción : Eliminar un responsable de autorización
*/
const PERMISO_ELIM_RESP_AUT = 1054;
/*
    Id          : 1055
    Nombre      : Listado de responsables de autorización
    Descripción : Ver listado de responsables de autorización
*/
const PERMISO_LIS_RESP_AUT = 1055;
/*
    Id          : 1056
    Nombre      : Modificación de autorización de comprobantes
    Descripción : Realizar cambios en autorización de comprobantes
*/
const PERMISO_MODIF_AUT_COMP = 1056;
/*
    Id          : 1057
    Nombre      : Listado de autorización de comprobantes
    Descripción : Ver listado de autorización de comprobantes
*/
const PERMISO_LIS_AUT_COMP = 1057;

/***/ }),

/***/ 28196:
/*!**************************************************************!*\
  !*** ./src/app/core/utils/permisos/permisos-comprobantes.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_ANUL_COMPROBANTE: () => (/* binding */ PERMISO_ANUL_COMPROBANTE),
/* harmony export */   PERMISO_APLICAR_DESCUENTO_ARTICULO_COMPROBANTE: () => (/* binding */ PERMISO_APLICAR_DESCUENTO_ARTICULO_COMPROBANTE),
/* harmony export */   PERMISO_APLICAR_DESCUENTO_GENERAL_COMPROBANTE: () => (/* binding */ PERMISO_APLICAR_DESCUENTO_GENERAL_COMPROBANTE),
/* harmony export */   PERMISO_CAMBIAR_CANTIDAD_ARTICULO_COMPROBANTE: () => (/* binding */ PERMISO_CAMBIAR_CANTIDAD_ARTICULO_COMPROBANTE),
/* harmony export */   PERMISO_CAMBIAR_PRECIO_ARTICULO_COMPROBANTE: () => (/* binding */ PERMISO_CAMBIAR_PRECIO_ARTICULO_COMPROBANTE),
/* harmony export */   PERMISO_DUPLICAR_COMPROBANTE: () => (/* binding */ PERMISO_DUPLICAR_COMPROBANTE),
/* harmony export */   PERMISO_EMITIR_COMPROBANTE_CONTADO: () => (/* binding */ PERMISO_EMITIR_COMPROBANTE_CONTADO),
/* harmony export */   PERMISO_EMITIR_COMPROBANTE_CTA_CTE: () => (/* binding */ PERMISO_EMITIR_COMPROBANTE_CTA_CTE),
/* harmony export */   PERMISO_INS_COMPROBANTE: () => (/* binding */ PERMISO_INS_COMPROBANTE),
/* harmony export */   PERMISO_LIS_COMPROBANTE: () => (/* binding */ PERMISO_LIS_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_CANAL_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_CANAL_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_FECHA_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_FECHA_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_FECHA_LISTA_PRECIOS_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_FECHA_LISTA_PRECIOS_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_LISTA_PRECIOS_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_LISTA_PRECIOS_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_SUCURSAL_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_SUCURSAL_COMPROBANTE),
/* harmony export */   PERMISO_MODIF_VENDEDOR_COMPROBANTE: () => (/* binding */ PERMISO_MODIF_VENDEDOR_COMPROBANTE),
/* harmony export */   PERMISO_VER_COMPROBANTES_VENDEDOR: () => (/* binding */ PERMISO_VER_COMPROBANTES_VENDEDOR),
/* harmony export */   PERMISO_VER_TRAZ_COMPROBANTE: () => (/* binding */ PERMISO_VER_TRAZ_COMPROBANTE)
/* harmony export */ });
//Constantes para indicar el id de los permisos de los usuarios
/*
    Id          : 1166
    Nombre      : Listado de notas de pedidos
    Descripción : Obtener el listado completo de notas de pedidos disponibles en el sistema
*/
const PERMISO_LIS_COMPROBANTE = 1166;
/*
    Id          : 1167
    Nombre      : Inserción de Nota de pedido
    Descripción : Permitir la creación de una nueva nota de pedido
*/
const PERMISO_INS_COMPROBANTE = 1167;
/*
    Id          : 1168
    Nombre      : Edición de nota de pedido
    Descripción : Permitir la modificación de una nota de pedido existente
*/
const PERMISO_MODIF_COMPROBANTE = 1168;
// /*
//     Id          : 1127
//     Nombre      : Ver comprobante
//     Descripción : Obtener los detalles de un comprobante específico
// */
// export const PERMISO_VER_COMPROBANTE = 1169;
/*
    Id          : 1170
    Nombre      : Visualizar notas de pedido del vendedor logueado
    Descripción : Ver solo notas de pedido asociadas al vendedor del usuario logueado
*/
const PERMISO_VER_COMPROBANTES_VENDEDOR = 1170;
/*
    Id          : 1169
    Nombre      : Anulación de nota de pedido
    Descripción : Permitir la anulación de una nota de pedido existente
*/
const PERMISO_ANUL_COMPROBANTE = 1169;
/*
    Id          : 44
    Nombre      : Ver trazabilidad
    Descripción : Activar visualización de trazabilidad de comprobantes
*/
const PERMISO_VER_TRAZ_COMPROBANTE = 44;
// /*
//     Id          : 1129
//     Nombre      : Modificar Cliente
//     Descripción : Modificar cliente de comprobante de facturación
// */
// export const PERMISO_MODIF_CLIENTE_COMPROBANTE = 1129;
/*
    Id          : 38
    Nombre      : Modificar Fecha
    Descripción : Modificar fecha de comprobante de facturación
*/
const PERMISO_MODIF_FECHA_COMPROBANTE = 38;
/*
    Id          : 1171
    Nombre      : Modificar Sucursal asociada a nota de pedido
    Descripción : Modificar la sucursal asociada a una nota de pedido
*/
const PERMISO_MODIF_SUCURSAL_COMPROBANTE = 1171;
/*
    Id          : 84
    Nombre      : Modificar Lista Precios
    Descripción : Permitir modificar la lista de precios al momento de facturar
*/
const PERMISO_MODIF_LISTA_PRECIOS_COMPROBANTE = 84;
/*
    Id          : 53
    Nombre      : Modificar Fecha Lista Precio
    Descripción : Modificar la fecha de lista de precios en facturación
*/
const PERMISO_MODIF_FECHA_LISTA_PRECIOS_COMPROBANTE = 53;
/*
    Id          : 1172
    Nombre      : Modificar Vendedor
    Descripción : Modificar el vendedor de una nota de pedido en facturación
*/
const PERMISO_MODIF_VENDEDOR_COMPROBANTE = 1172;
/*
    Id          : 46
    Nombre      : Modificar Canal
    Descripción : Modificar canal de venta en comprobante de venta
*/
const PERMISO_MODIF_CANAL_COMPROBANTE = 46;
/*
    Id          : 3
    Nombre      : Permite emitir comprobante en cuenta corriente
    Descripción : Emitir comprobante en cuenta corriente
*/
const PERMISO_EMITIR_COMPROBANTE_CTA_CTE = 3;
/*
    Id          : 26
    Nombre      : Permite emitir comprobante de contado
    Descripción : Emitir comprobante de contado
*/
const PERMISO_EMITIR_COMPROBANTE_CONTADO = 26;
/*
    Id          : 6
    Nombre      : Aplicar Descuento General
    Descripción : Aplicar descuento general en facturación
*/
const PERMISO_APLICAR_DESCUENTO_GENERAL_COMPROBANTE = 6;
/*
    Id          : 7
    Nombre      : Cambiar Precio Artículo
    Descripción : Cambiar precio de artículo en facturación
*/
const PERMISO_CAMBIAR_PRECIO_ARTICULO_COMPROBANTE = 7;
/*
    Id          : 5
    Nombre      : Aplicar Descuento a Artículo
    Descripción : Aplicar descuento a artículo en facturación
*/
const PERMISO_APLICAR_DESCUENTO_ARTICULO_COMPROBANTE = 5;
/*
    Id          : 101
    Nombre      : Cambiar Cantidad a Artículo
    Descripción : Cambiar cantidad de artículo en facturación
*/
const PERMISO_CAMBIAR_CANTIDAD_ARTICULO_COMPROBANTE = 101;
/*
    Id          : 1332
    Nombre      : Inserción de nota de pedido en otra sucursal
    Descripción : Permitir la creación de una nueva nota de pedido en otra sucursal
*/
const PERMISO_DUPLICAR_COMPROBANTE = 1173;
// /*
//     Id          : 1133
//     Nombre      : Consulta Stock
//     Descripción : Consultar el stock disponible de un artículo
// */
// export const PERMISO_CONSULTA_STOCK_ARTICULO_COMPROBANTE = 1133;
// /*
//     Id          : 1134
//     Nombre      : Consulta Ofertas
//     Descripción : Consultar las ofertas disponibles de un artículo
// */
// export const PERMISO_CONSULTA_OFERTAS_ARTICULO_COMPROBANTE = 1134;
// /*
//     Id          : 1135
//     Nombre      : Consulta de Articulo
//     Descripción : Consultar  datos de un artículo
// */
// export const PERMISO_CONSULTA_ARTICULO_COMPROBANTE = 1135;

/***/ }),

/***/ 48214:
/*!*************************************************************!*\
  !*** ./src/app/core/utils/permisos/permisos-estadistica.ts ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_EDIT_INDICADORES: () => (/* binding */ PERMISO_EDIT_INDICADORES),
/* harmony export */   PERMISO_ELIM_COLECCION: () => (/* binding */ PERMISO_ELIM_COLECCION),
/* harmony export */   PERMISO_ELIM_INDICADORES: () => (/* binding */ PERMISO_ELIM_INDICADORES),
/* harmony export */   PERMISO_ELIM_INSTANCIA_INDICADORES: () => (/* binding */ PERMISO_ELIM_INSTANCIA_INDICADORES),
/* harmony export */   PERMISO_ELIM_TABLEROS: () => (/* binding */ PERMISO_ELIM_TABLEROS),
/* harmony export */   PERMISO_INS_COLECCION: () => (/* binding */ PERMISO_INS_COLECCION),
/* harmony export */   PERMISO_INS_INDICADORES: () => (/* binding */ PERMISO_INS_INDICADORES),
/* harmony export */   PERMISO_INS_INSTANCIA_INDICADORES: () => (/* binding */ PERMISO_INS_INSTANCIA_INDICADORES),
/* harmony export */   PERMISO_INS_TABLEROS: () => (/* binding */ PERMISO_INS_TABLEROS),
/* harmony export */   PERMISO_LIS_COLECCION: () => (/* binding */ PERMISO_LIS_COLECCION),
/* harmony export */   PERMISO_LIS_INDICADORES: () => (/* binding */ PERMISO_LIS_INDICADORES),
/* harmony export */   PERMISO_LIS_INSTANCIA_INDICADORES: () => (/* binding */ PERMISO_LIS_INSTANCIA_INDICADORES),
/* harmony export */   PERMISO_MODIF_TABLEROS: () => (/* binding */ PERMISO_MODIF_TABLEROS),
/* harmony export */   PERMISO_MOD_COLECCION: () => (/* binding */ PERMISO_MOD_COLECCION),
/* harmony export */   PERMISO_MOD_INSTANCIA_INDICADORES: () => (/* binding */ PERMISO_MOD_INSTANCIA_INDICADORES),
/* harmony export */   PERMISO_OBT_INDICADOR: () => (/* binding */ PERMISO_OBT_INDICADOR)
/* harmony export */ });
//PERMISOS COLECCIONES
/**
 *  Id          : 1150
 *  Nombre      : Obtención de datos de indicadores
 *  Descripción : Obtener datos de indicador
 */
const PERMISO_OBT_INDICADOR = 1150;
/**
 *  Id          : 1151
 *  Nombre      : Listado de colecciones de tableros
 *  Descripción : Obtener las colecciones de tableros
 */
const PERMISO_LIS_COLECCION = 1151;
/**
 *  Id          : 1152
 *  Nombre      : Inserción de colecciones de tableros
 *  Descripción : Agregar una colección de tableros
 */
const PERMISO_INS_COLECCION = 1152;
/**
 *  Id          : 1153
 *  Nombre      : Modificación de colección de tableros
 *  Descripción : Editar información de una colección de tableros
 */
const PERMISO_MOD_COLECCION = 1153;
/**
 *  Id          : 1154
 *  Nombre      : Eliminación de colección de tableros
 *  Descripción : Eliminar una colección de tableros
 */
const PERMISO_ELIM_COLECCION = 1154;
//PERMISOS TABLEROS
/**
 *  Id          : 1155
 *  Nombre      : Inserción de tableros
 *  Descripción : Agregar un tablero
 */
const PERMISO_INS_TABLEROS = 1155;
/**
 *  Id          : 1156
 *  Nombre      : Modificación de tableros
 *  Descripción : Editar información de un tablero
 */
const PERMISO_MODIF_TABLEROS = 1156;
/**
 *  Id          : 1157
 *  Nombre      : Eliminación de tableros
 *  Descripción : Eliminar un tablero
 */
const PERMISO_ELIM_TABLEROS = 1157;
//PERMISOS INDICADORES
/**
 *  Id          : 1158
 *  Nombre      : Listado de indicadores
 *  Descripción : Obtener los indicadores
 */
const PERMISO_LIS_INDICADORES = 1158;
/**
 *  Id          : 1159
 *  Nombre      : Inserción de indicadores
 *  Descripción : Agregar un indicador
 */
const PERMISO_INS_INDICADORES = 1159;
/**
 *  Id          : 1160
 *  Nombre      : Modificación de indicadores
 *  Descripción : Editar información de un indicador
 */
const PERMISO_EDIT_INDICADORES = 1160;
/**
 *  Id          : 1161
 *  Nombre      : Eliminación de indicadores
 *  Descripción : Eliminar un indicador
 */
const PERMISO_ELIM_INDICADORES = 1161;
//PERMISOS DE INSTANCIAS DE INDICADORES
/**
 *  Id          : 1162
 *  Nombre      : Listado de instancias de indicadores
 *  Descripción : Obtener las instancias de indicadores
 */
const PERMISO_LIS_INSTANCIA_INDICADORES = 1162;
/**
 *  Id          : 1163
 *  Nombre      : Inserción de instancias de indicadores
 *  Descripción : Agregar instancias de indicadores
 */
const PERMISO_INS_INSTANCIA_INDICADORES = 1163;
/**
 *  Id          : 1164
 *  Nombre      : Modificación de instancias de indicadores
 *  Descripción : Editar información de instancias de indicadores
 */
const PERMISO_MOD_INSTANCIA_INDICADORES = 1164;
/**
 *  Id          : 1165
 *  Nombre      : Eliminación de instancias de indicadores
 *  Descripción : Eliminar una instancia de indicador
 */
const PERMISO_ELIM_INSTANCIA_INDICADORES = 1165;

/***/ }),

/***/ 15372:
/*!*********************************************************!*\
  !*** ./src/app/core/utils/permisos/permisos-general.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_ADMIN_ATRIBUTOS_ARTICULOS: () => (/* binding */ PERMISO_ADMIN_ATRIBUTOS_ARTICULOS),
/* harmony export */   PERMISO_ADMIN_ATRIBUTOS_RUBROS: () => (/* binding */ PERMISO_ADMIN_ATRIBUTOS_RUBROS),
/* harmony export */   PERMISO_ELIM_ATRIBUTOS_ART: () => (/* binding */ PERMISO_ELIM_ATRIBUTOS_ART),
/* harmony export */   PERMISO_INS_ATRIBUTOS_ART: () => (/* binding */ PERMISO_INS_ATRIBUTOS_ART),
/* harmony export */   PERMISO_LIS_ARTICULOS: () => (/* binding */ PERMISO_LIS_ARTICULOS),
/* harmony export */   PERMISO_LIS_ATRIBUTOS_ART: () => (/* binding */ PERMISO_LIS_ATRIBUTOS_ART),
/* harmony export */   PERMISO_LIS_ATRIBUTOS_RUBROS: () => (/* binding */ PERMISO_LIS_ATRIBUTOS_RUBROS),
/* harmony export */   PERMISO_MODIF_ATRIBUTOS_ART: () => (/* binding */ PERMISO_MODIF_ATRIBUTOS_ART),
/* harmony export */   PERMISO_MOD_CANAL_COMPROBANTE: () => (/* binding */ PERMISO_MOD_CANAL_COMPROBANTE),
/* harmony export */   PERMISO_MOD_LISTA_PRECIO_COMPROBANTE: () => (/* binding */ PERMISO_MOD_LISTA_PRECIO_COMPROBANTE)
/* harmony export */ });
/** PERMISOS DE COMPROBANTES */
/**
 *  Id          : 84
 *  Nombre      : Modificar lista precio en comprobantes
 *  Descripción : Permitir modificar lista de precios en comprobantes
 */
const PERMISO_MOD_LISTA_PRECIO_COMPROBANTE = 1001;
/** PERMISOS DE COMPROBANTES */
/**
 *  Id          : 84
 *  Nombre      : Modificar canal en comprobantes
 *  Descripción : Permitir modificar canal en comprobantes
 */
const PERMISO_MOD_CANAL_COMPROBANTE = 1001;
/**
 *  Id          : 1001
 *  Nombre      : Listado de articulos
 *  Descripción : Ver listado de articulos modulo general
 */
const PERMISO_LIS_ARTICULOS = 1001;
/**
 *  Id          : 1095
 *  Nombre      : Listado de atributos de articulos modulo general
 *  Descripción : Ver listado de atributos de articulos modulo general
 */
const PERMISO_LIS_ATRIBUTOS_ART = 1095;
/**
 *  Id          : 1096
 *  Nombre      : Insercion
 *  Descripción : Insercion de atributos de articulos
 */
const PERMISO_INS_ATRIBUTOS_ART = 1096;
/**
 *  Id          : 1097
 *  Nombre      : Modificacion
 *  Descripción : Modificacion de atributos de articulos
 */
const PERMISO_MODIF_ATRIBUTOS_ART = 1097;
/**
 *  Id          : 1098
 *  Nombre      : Eliminacion
 *  Descripción : Eliminacion de atributos de articulos
 */
const PERMISO_ELIM_ATRIBUTOS_ART = 1098;
/**
 *  Id          : 1099
 *  Nombre      : Listado atributos rubros
 *  Descripción : Listado atributos rubros
 */
const PERMISO_LIS_ATRIBUTOS_RUBROS = 1099;
/**
 *  Id          : 1100
 *  Nombre      : Admin / elim atributos rubros
 *  Descripción : Permiso para administrar o eliminar atributos asociados a un rubro
 */
const PERMISO_ADMIN_ATRIBUTOS_RUBROS = 1100;
/**
 *  Id          : 1102
 *  Nombre      : Permiso administracion de atributos articulos
 *  Descripción : Permite adminsitras los atributos de articulos de manera simple o masiva
 */
const PERMISO_ADMIN_ATRIBUTOS_ARTICULOS = 1102;

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_ACC_OPN_ACT: () => (/* binding */ PERMISO_ACC_OPN_ACT),
/* harmony export */   PERMISO_ACC_OPN_APER: () => (/* binding */ PERMISO_ACC_OPN_APER),
/* harmony export */   PERMISO_ACC_OPN_CONF: () => (/* binding */ PERMISO_ACC_OPN_CONF),
/* harmony export */   PERMISO_ACC_OPN_FIN: () => (/* binding */ PERMISO_ACC_OPN_FIN),
/* harmony export */   PERMISO_ACC_OPN_SUSP: () => (/* binding */ PERMISO_ACC_OPN_SUSP),
/* harmony export */   PERMISO_ANUL_OPN: () => (/* binding */ PERMISO_ANUL_OPN),
/* harmony export */   PERMISO_DEV_MP_OPN: () => (/* binding */ PERMISO_DEV_MP_OPN),
/* harmony export */   PERMISO_DUPL_RUTA: () => (/* binding */ PERMISO_DUPL_RUTA),
/* harmony export */   PERMISO_ELIM_AV: () => (/* binding */ PERMISO_ELIM_AV),
/* harmony export */   PERMISO_ELIM_MAQ: () => (/* binding */ PERMISO_ELIM_MAQ),
/* harmony export */   PERMISO_ELIM_OPER: () => (/* binding */ PERMISO_ELIM_OPER),
/* harmony export */   PERMISO_ELIM_RUTA: () => (/* binding */ PERMISO_ELIM_RUTA),
/* harmony export */   PERMISO_ELIM_TIPO_MAQ: () => (/* binding */ PERMISO_ELIM_TIPO_MAQ),
/* harmony export */   PERMISO_ENT_MP_OPN: () => (/* binding */ PERMISO_ENT_MP_OPN),
/* harmony export */   PERMISO_INS_AV: () => (/* binding */ PERMISO_INS_AV),
/* harmony export */   PERMISO_INS_AV_TERC_IN: () => (/* binding */ PERMISO_INS_AV_TERC_IN),
/* harmony export */   PERMISO_INS_MAQ: () => (/* binding */ PERMISO_INS_MAQ),
/* harmony export */   PERMISO_INS_OPER: () => (/* binding */ PERMISO_INS_OPER),
/* harmony export */   PERMISO_INS_OPN: () => (/* binding */ PERMISO_INS_OPN),
/* harmony export */   PERMISO_INS_OPN_PRED: () => (/* binding */ PERMISO_INS_OPN_PRED),
/* harmony export */   PERMISO_INS_RUTA: () => (/* binding */ PERMISO_INS_RUTA),
/* harmony export */   PERMISO_INS_TERC_EG: () => (/* binding */ PERMISO_INS_TERC_EG),
/* harmony export */   PERMISO_INS_TIPO_MAQ: () => (/* binding */ PERMISO_INS_TIPO_MAQ),
/* harmony export */   PERMISO_LIS_ART: () => (/* binding */ PERMISO_LIS_ART),
/* harmony export */   PERMISO_LIS_AV: () => (/* binding */ PERMISO_LIS_AV),
/* harmony export */   PERMISO_LIS_CONS: () => (/* binding */ PERMISO_LIS_CONS),
/* harmony export */   PERMISO_LIS_MAQ: () => (/* binding */ PERMISO_LIS_MAQ),
/* harmony export */   PERMISO_LIS_OPER: () => (/* binding */ PERMISO_LIS_OPER),
/* harmony export */   PERMISO_LIS_OPN_DET: () => (/* binding */ PERMISO_LIS_OPN_DET),
/* harmony export */   PERMISO_LIS_OPN_EXT: () => (/* binding */ PERMISO_LIS_OPN_EXT),
/* harmony export */   PERMISO_LIS_OPN_OPER: () => (/* binding */ PERMISO_LIS_OPN_OPER),
/* harmony export */   PERMISO_LIS_RUTA: () => (/* binding */ PERMISO_LIS_RUTA),
/* harmony export */   PERMISO_LIS_TERC: () => (/* binding */ PERMISO_LIS_TERC),
/* harmony export */   PERMISO_LIS_TIMES: () => (/* binding */ PERMISO_LIS_TIMES),
/* harmony export */   PERMISO_LIS_TIPO_MAQ: () => (/* binding */ PERMISO_LIS_TIPO_MAQ),
/* harmony export */   PERMISO_MODIF_AV: () => (/* binding */ PERMISO_MODIF_AV),
/* harmony export */   PERMISO_MODIF_AV_TERC_EG: () => (/* binding */ PERMISO_MODIF_AV_TERC_EG),
/* harmony export */   PERMISO_MODIF_AV_TERC_IN: () => (/* binding */ PERMISO_MODIF_AV_TERC_IN),
/* harmony export */   PERMISO_MODIF_MAQ: () => (/* binding */ PERMISO_MODIF_MAQ),
/* harmony export */   PERMISO_MODIF_OPER: () => (/* binding */ PERMISO_MODIF_OPER),
/* harmony export */   PERMISO_MODIF_OPN: () => (/* binding */ PERMISO_MODIF_OPN),
/* harmony export */   PERMISO_MODIF_RUTA: () => (/* binding */ PERMISO_MODIF_RUTA),
/* harmony export */   PERMISO_MODIF_TIPO_MAQ: () => (/* binding */ PERMISO_MODIF_TIPO_MAQ),
/* harmony export */   PERMISO_MOV_FALL_OPN: () => (/* binding */ PERMISO_MOV_FALL_OPN),
/* harmony export */   PERMISO_VER_ART: () => (/* binding */ PERMISO_VER_ART),
/* harmony export */   PERMISO_VIS_LOG_OPN: () => (/* binding */ PERMISO_VIS_LOG_OPN),
/* harmony export */   PERMISO_VIS_MP_OPN: () => (/* binding */ PERMISO_VIS_MP_OPN),
/* harmony export */   PERMISO_VIS_OPN: () => (/* binding */ PERMISO_VIS_OPN)
/* harmony export */ });
//Constantes para indicar el id de los permisos de los usuarios
/*
    Id          : 1001
    Nombre      : Listado de artículos
    Descripción : Obtener el listado completo de artículos disponibles en el sistema
*/
const PERMISO_LIS_ART = 1001;
/*
    Id          : 1002
    Nombre      : Visualización detallada de un artículo
    Descripción : Ver los detalles específicos de un artículo en particular
*/
const PERMISO_VER_ART = 1002;
/*
    Id          : 1007
    Nombre      : Listado de maquinarias
    Descripción : Ver una lista de todas las maquinarias registradas en el sistema
*/
const PERMISO_LIS_MAQ = 1007;
/*
    Id          : 1008
    Nombre      : Inserción de maquinarias
    Descripción : Agregar nuevas maquinarias al sistema
*/
const PERMISO_INS_MAQ = 1008;
/*
    Id          : 1009
    Nombre      : Modificación de maquinarias
    Descripción : Realizar modificaciones en la información de una maquinaria existente
*/
const PERMISO_MODIF_MAQ = 1009;
/*
    Id          : 1010
    Nombre      : Eliminación de maquinarias
    Descripción : Eliminar una maquinaria del sistema
*/
const PERMISO_ELIM_MAQ = 1010;
/*
    Id          : 1003
    Nombre      : Listado de tipos de maquinarias
    Descripción : Obtener una lista de los diferentes tipos de maquinarias disponibles
*/
const PERMISO_LIS_TIPO_MAQ = 1003;
/*
    Id          : 1004
    Nombre      : Inserción de tipos de maquinaria
    Descripción : Agregar nuevos tipos de maquinarias al sistema
*/
const PERMISO_INS_TIPO_MAQ = 1004;
/*
    Id          : 1005
    Nombre      : Modificación de tipos de maquinaria
    Descripción : Realizar cambios o actualizaciones en los tipos de maquinarias existentes
*/
const PERMISO_MODIF_TIPO_MAQ = 1005;
/*
    Id          : 1006
    Nombre      : Eliminación de tipos de maquinaria
    Descripción : Eliminar un tipo de maquinaria del sistema
*/
const PERMISO_ELIM_TIPO_MAQ = 1006;
/*
    Id          : 1011
    Nombre      : Listado de operaciones
    Descripción : Ver un listado completo de todas las operaciones disponibles
*/
const PERMISO_LIS_OPER = 1011;
/*
    Id          : 1004
    Nombre      : Inserción de tipos de maquinaria
    Descripción : Agregar nuevos tipos de maquinarias al sistema
*/
const PERMISO_INS_OPER = 1012;
/*
    Id          : 1005
    Nombre      : Modificación de tipos de maquinaria
    Descripción : Realizar cambios o actualizaciones en los tipos de maquinarias existentes
*/
const PERMISO_MODIF_OPER = 1013;
/*
    Id          : 1006
    Nombre      : Eliminación de tipos de maquinaria
    Descripción : Eliminar un tipo de maquinaria del sistema
*/
const PERMISO_ELIM_OPER = 1014;
/*
    Id          : 1020
    Nombre      : Listado detallado de órdenes de producción
    Descripción : Ver un listado completo y detallado de todas las órdenes de producción registradas
*/
const PERMISO_LIS_OPN_DET = 1020;
/*
    Id          : 1021
    Nombre      : Listado operativo de órdenes de producción
    Descripción : Ver un listado de las órdenes de producción en curso y su estado actual
*/
const PERMISO_LIS_OPN_OPER = 1021;
/*
    Id          : 1022
    Nombre      : Visualización de órdenes de producción
    Descripción : Ver los detalles específicos de una orden de producción en particular
*/
const PERMISO_VIS_OPN = 1022;
/*
    Id          : 1023
    Nombre      : Listado consolidado de órdenes de producción
    Descripción : Ver un resumen consolidado de todas las órdenes de producción, incluyendo su estado y progreso
*/
const PERMISO_LIS_CONS = 1023;
/*
    Id          : 1024
    Nombre      : Inserción de órdenes de producción
    Descripción : Agregar nuevas órdenes de producción al sistema
*/
const PERMISO_INS_OPN = 1024;
/*
    Id          : 1025
    Nombre      : Inserción de órdenes de producción predeterminadas
    Descripción : Agregar nuevas órdenes de producción predeterminadas
*/
const PERMISO_INS_OPN_PRED = 1025;
/*
    Id          : 1026
    Nombre      : Modificación de órdenes de producción
    Descripción : Realizar cambios en la información de una orden de producción existente
*/
const PERMISO_MODIF_OPN = 1026;
/*
    Id          : 1027
    Nombre      : Anulación de órdenes de producción
    Descripción : Anular una orden de producción y marcarla como cancelada
*/
const PERMISO_ANUL_OPN = 1027;
/*
    Id          : 1028
    Nombre      : Confirmación de órdenes de producción
    Descripción : Confirmación de órdenes de producción
*/
const PERMISO_ACC_OPN_CONF = 1028;
/*
    Id          : 1029
    Nombre      : Apertura de órdenes de producción
    Descripción : Abrir una orden de producción
*/
const PERMISO_ACC_OPN_APER = 1029;
/*
    Id          : 1030
    Nombre      : Suspensión de órdenes de producción
    Descripción : Suspender temporalmente una orden de producción en curso sin cancelarla por completo
*/
const PERMISO_ACC_OPN_SUSP = 1030;
/*
    Id          : 1031
    Nombre      : Activación de órdenes de producción suspendidas
    Descripción : Reactivar una orden de producción que previamente había sido suspendida
*/
const PERMISO_ACC_OPN_ACT = 1031;
/*
    Id          : 1032
    Nombre      : Finalización de órdenes de producción en proceso
    Descripción : Finalizar una orden de producción en proceso
*/
const PERMISO_ACC_OPN_FIN = 1032;
/*
    Id          : 1033
    Nombre      : Ver LOG de órdenes de producción
    Descripción : Ver un registro detallado de todas las acciones y eventos relacionados con una orden de producción en particular
*/
const PERMISO_VIS_LOG_OPN = 1033;
/*
    Id          : 1034
    Nombre      : Entrega de materia en órdenes de producción
    Descripción : Registrar la entrega de materia prima para su uso en una orden de producción específica
*/
const PERMISO_ENT_MP_OPN = 1034;
/*
    Id          : 1035
    Nombre      : Devolución de materia prima en órdenes de producción
    Descripción : Registrar la devolución de materia prima que no fue utilizada en una orden de producción
*/
const PERMISO_DEV_MP_OPN = 1035;
/*
    Id          : 1036
    Nombre      : Ver movimientos de una orden de producción
    Descripción : Visualizar los movimientos de stock asociados a una orden de producción, incluyendo entregas y devoluciones
*/
const PERMISO_VIS_MP_OPN = 1036;
/*
    Id          : 1037
    Nombre      : Realizar movimientos de stock por fallas en el proceso de producción
    Descripción : Agregar movimientos de stock por falla de artículo a producir
*/
const PERMISO_MOV_FALL_OPN = 1037;
/*
    Id          : 1038
    Nombre      : Listado consolidado de tercerizado
    Descripción : Ver un resumen consolidado de los tercerizados a los distintos proveedores
*/
const PERMISO_LIS_TERC = 1038;
/*
    Id          : 1039
    Nombre      : Inserción de avance estándar
    Descripción : Agregar un avance estándar para un proceso o etapa en la producción de un artículo
*/
const PERMISO_INS_AV = 1039;
/*
    Id          : 1040
    Nombre      : Modificación de avances estándar
    Descripción : Realizar cambios en la información de un avance estándar existente
*/
const PERMISO_MODIF_AV = 1040;
/*
    Id          : 1041
    Nombre      : Modificación de avances estándar
    Descripción : Realizar cambios en la información de un avance estándar existente
*/
const PERMISO_INS_TERC_EG = 1041;
/*
    Id          : 1042
    Nombre      : Modificación de avances tercerizado de egreso
    Descripción : Realizar cambios en la información de un avance tercerizado de egreso existente
*/
const PERMISO_MODIF_AV_TERC_EG = 1042;
/*
    Id          : 1043
    Nombre      : Inserción de avances tercerizado de ingreso
    Descripción : Agregar avances tercerizados de ingreso, es decir, etapas de producción que son realizadas por un proveedor externo y se integran en el proceso interno
*/
const PERMISO_INS_AV_TERC_IN = 1043;
/*
    Id          : 1044
    Nombre      : Modificación de avances tercerizado de egreso
    Descripción : Realizar cambios en la información de un avance tercerizado de ingreso existente
*/
const PERMISO_MODIF_AV_TERC_IN = 1044;
/*
    Id          : 1045
    Nombre      : Eliminación de avance de producción
    Descripción : Eliminar un avance del sistema
*/
const PERMISO_ELIM_AV = 1045;
/*
    Id          : 1046
    Nombre      : Listado de avances
    Descripción : Ver listado de avances según filtros
*/
const PERMISO_LIS_AV = 1046;
/*
    Id          : 1015
    Nombre      : Inserción de avances tercerizado de egreso
    Descripción : Agregar avances tercerizados de egreso, es decir, etapas de producción que son realizadas por un proveedor externo
*/
const PERMISO_LIS_RUTA = 1015;
/*
    Id          : 1016
    Nombre      : Inserción de ruta de producción de un artículo
    Descripción : Agregar una nueva ruta de producción para un artículo específico
*/
const PERMISO_INS_RUTA = 1016;
/*
    Id          : 1019
    Nombre      : Duplicación de ruta de producción de un artículo
    Descripción : Duplicar una ruta de producción existente para un artículo
*/
const PERMISO_DUPL_RUTA = 1019;
/*
    Id          : 1017
    Nombre      : Modificación de ruta de producción de un artículo
    Descripción : Realizar cambios en la ruta de producción de un artículo existente
*/
const PERMISO_MODIF_RUTA = 1017;
/*
    Id          : 1018
    Nombre      : Eliminación de ruta de producción de un artículo
    Descripción : Eliminar una ruta de producción de un artículo específico
*/
const PERMISO_ELIM_RUTA = 1018;
/*
    Id          : 1093
    Nombre      : Listado de ordenes de producción extendido
    Descripción : Ver listado de ordenes dep producción extendido
*/
const PERMISO_LIS_OPN_EXT = 1093;
/*
    Id          : 1094
    Nombre      : Listado de tiempos de produccion
    Descripción : Ver listado tiempos de produccion
*/
const PERMISO_LIS_TIMES = 1094;

/***/ }),

/***/ 79076:
/*!*****************************************************!*\
  !*** ./src/app/core/utils/permisos/permisos-rma.ts ***!
  \*****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_ABRIR_RECLAMOS: () => (/* binding */ PERMISO_ABRIR_RECLAMOS),
/* harmony export */   PERMISO_ANUL_RECLAMOS: () => (/* binding */ PERMISO_ANUL_RECLAMOS),
/* harmony export */   PERMISO_CERRAR_RECLAMOS: () => (/* binding */ PERMISO_CERRAR_RECLAMOS),
/* harmony export */   PERMISO_ELIM_ATRIBUTO: () => (/* binding */ PERMISO_ELIM_ATRIBUTO),
/* harmony export */   PERMISO_ELIM_CLIENTE_RECLAMOS: () => (/* binding */ PERMISO_ELIM_CLIENTE_RECLAMOS),
/* harmony export */   PERMISO_ELIM_DEFECTOS: () => (/* binding */ PERMISO_ELIM_DEFECTOS),
/* harmony export */   PERMISO_ELIM_ENV_PROV_RECLAMOS: () => (/* binding */ PERMISO_ELIM_ENV_PROV_RECLAMOS),
/* harmony export */   PERMISO_ELIM_RECLAMOS: () => (/* binding */ PERMISO_ELIM_RECLAMOS),
/* harmony export */   PERMISO_ELIM_RESOLUCION: () => (/* binding */ PERMISO_ELIM_RESOLUCION),
/* harmony export */   PERMISO_ELIM_RES_RECLAMOS: () => (/* binding */ PERMISO_ELIM_RES_RECLAMOS),
/* harmony export */   PERMISO_ELIM_TIPO_DEFECTOS: () => (/* binding */ PERMISO_ELIM_TIPO_DEFECTOS),
/* harmony export */   PERMISO_INDICADORES_RECLAMO: () => (/* binding */ PERMISO_INDICADORES_RECLAMO),
/* harmony export */   PERMISO_INS_ATRIBUTO: () => (/* binding */ PERMISO_INS_ATRIBUTO),
/* harmony export */   PERMISO_INS_CLIENTE_RECLAMOS: () => (/* binding */ PERMISO_INS_CLIENTE_RECLAMOS),
/* harmony export */   PERMISO_INS_DEFECTOS: () => (/* binding */ PERMISO_INS_DEFECTOS),
/* harmony export */   PERMISO_INS_ENV_PROV_RECLAMOS: () => (/* binding */ PERMISO_INS_ENV_PROV_RECLAMOS),
/* harmony export */   PERMISO_INS_RECLAMOS: () => (/* binding */ PERMISO_INS_RECLAMOS),
/* harmony export */   PERMISO_INS_RESOLUCION: () => (/* binding */ PERMISO_INS_RESOLUCION),
/* harmony export */   PERMISO_INS_RES_RECLAMOS: () => (/* binding */ PERMISO_INS_RES_RECLAMOS),
/* harmony export */   PERMISO_INS_TIPO_DEFECTOS: () => (/* binding */ PERMISO_INS_TIPO_DEFECTOS),
/* harmony export */   PERMISO_LIS_ATRIBUTO: () => (/* binding */ PERMISO_LIS_ATRIBUTO),
/* harmony export */   PERMISO_LIS_DEFECTOS: () => (/* binding */ PERMISO_LIS_DEFECTOS),
/* harmony export */   PERMISO_LIS_RECLAMOS: () => (/* binding */ PERMISO_LIS_RECLAMOS),
/* harmony export */   PERMISO_LIS_REC_FILT_ATRIBUTOS: () => (/* binding */ PERMISO_LIS_REC_FILT_ATRIBUTOS),
/* harmony export */   PERMISO_LIS_RESOLUCION: () => (/* binding */ PERMISO_LIS_RESOLUCION),
/* harmony export */   PERMISO_LIS_TIPO_DEFECTOS: () => (/* binding */ PERMISO_LIS_TIPO_DEFECTOS),
/* harmony export */   PERMISO_MODIF_ATRIBUTO: () => (/* binding */ PERMISO_MODIF_ATRIBUTO),
/* harmony export */   PERMISO_MODIF_CLIENTE_RECLAMOS: () => (/* binding */ PERMISO_MODIF_CLIENTE_RECLAMOS),
/* harmony export */   PERMISO_MODIF_DEFECTOS: () => (/* binding */ PERMISO_MODIF_DEFECTOS),
/* harmony export */   PERMISO_MODIF_ENV_PROV_RECLAMOS: () => (/* binding */ PERMISO_MODIF_ENV_PROV_RECLAMOS),
/* harmony export */   PERMISO_MODIF_RECLAMOS: () => (/* binding */ PERMISO_MODIF_RECLAMOS),
/* harmony export */   PERMISO_MODIF_RESOLUCION: () => (/* binding */ PERMISO_MODIF_RESOLUCION),
/* harmony export */   PERMISO_MODIF_TIPO_DEFECTOS: () => (/* binding */ PERMISO_MODIF_TIPO_DEFECTOS)
/* harmony export */ });
/**
 *  Id          : 1058
 *  Nombre      : Listado de tipos  defectos
 *  Descripción : Ver listado de tipos de defectos de RMA
 */
const PERMISO_LIS_TIPO_DEFECTOS = 1058;
/**
 *  Id          : 1059
 *  Nombre      : Insercion tipos  de defectos
 *  Descripción : Agregar un nuevo tipo de defecto
 */
const PERMISO_INS_TIPO_DEFECTOS = 1059;
/**
 *   Id          : 1060
 *   Nombre      : Modificacion tipos de defectos
 *   Descripción : Modificar un tipo de defecto
 */
const PERMISO_MODIF_TIPO_DEFECTOS = 1060;
/**
 *   Id         : 1061
 *   Nombre      : Elimacion de tipos de defectos
 *   Descripción : Eliminar un tipo de defecto
 */
const PERMISO_ELIM_TIPO_DEFECTOS = 1061;
/**
 *  Id          : 1062
 *  Nombre      : Listado de defectos
 *  Descripción : Ver listado de defectos de RMA
 */
const PERMISO_LIS_DEFECTOS = 1062;
/**
 *  Id          : 1063
 *  Nombre      : Insercion de defectos
 *  Descripción : Agregar un nuevo defecto
 */
const PERMISO_INS_DEFECTOS = 1063;
/**
 *   Id          : 1064
 *   Nombre      : Modificacion de defectos
 *   Descripción : Modificar un defecto
 */
const PERMISO_MODIF_DEFECTOS = 1064;
/**
 *   Id         : 1065
 *   Nombre      : Elimacion de defectos
 *   Descripción : Eliminar un defecto
 */
const PERMISO_ELIM_DEFECTOS = 1065;
/**
 *  Id          : 1066
 *  Nombre      : Listado de atributo
 *  Descripción : Ver listado de atributo de RMA
 */
const PERMISO_LIS_ATRIBUTO = 1066;
/**
 *  Id          : 1067
 *  Nombre      : Insercion de atributo
 *  Descripción : Agregar un nuevo atributo
 */
const PERMISO_INS_ATRIBUTO = 1067;
/**
 *   Id          : 1068
 *   Nombre      : Modificacion de atributo
 *   Descripción : Modificar un atributo
 */
const PERMISO_MODIF_ATRIBUTO = 1068;
/**
 *   Id         : 1069
 *   Nombre      : Elimacion de atributo
 *   Descripción : Eliminar un atributo
 */
const PERMISO_ELIM_ATRIBUTO = 1069;
/**
 *   Id         : 1071
 *   Nombre      : Listado de reclamos
 *   Descripción : Ver listados de los diferentes tipos de reclamos RMA
 */
const PERMISO_LIS_RECLAMOS = 1071;
/**
 *   Id         : 1072
 *   Nombre      : Insercion de reclamos
 *   Descripción : Agregar un nuevo reclamo RMA
 */
const PERMISO_INS_RECLAMOS = 1072;
/**
 *   Id         : 1073
 *   Nombre      : Modificacion de reclamos
 *   Descripción : Modificar un reclamo RMA
 */
const PERMISO_MODIF_RECLAMOS = 1073;
/**
 *   Id         : 1074
 *   Nombre      : Eliminacion de reclamos
 *   Descripción : Eliminar un reclamo RMA
 */
const PERMISO_ELIM_RECLAMOS = 1074;
/**
 *   Id         : 1075
 *   Nombre      : Insertar informacion del proveedor de un reclamo
 *   Descripción : Envio a proveedor de  un reclamo RMA
 */
const PERMISO_INS_ENV_PROV_RECLAMOS = 1075;
/**
 *   Id         : 1076
 *   Nombre      : Modificar informacion del proveedor de un reclamo
 *   Descripción : Modif Envio a proveedor de  un reclamo RMA
 */
const PERMISO_MODIF_ENV_PROV_RECLAMOS = 1076;
/**
 *   Id         : 1077
 *   Nombre      : Eliminar informacion del proveedor de un reclamo
 *   Descripción : Elim Envio a proveedor de  un reclamo RMA
 */
const PERMISO_ELIM_ENV_PROV_RECLAMOS = 1077;
/**
 *   Id         : 1078
 *   Nombre      : Insercion de  informacion del cliente de un reclamo
 *   Descripción : Cliente insercion  de  un reclamo RMA
 */
const PERMISO_INS_CLIENTE_RECLAMOS = 1078;
/**
 *   Id         : 1079
 *   Nombre      : Modificacion de  informacion del cliente de un reclamo
 *   Descripción : Cliente Modif info de  un reclamo RMA
 */
const PERMISO_MODIF_CLIENTE_RECLAMOS = 1079;
/**
 *   Id         : 1080
 *   Nombre      : Eliminacion de  informacion del cliente de un reclamo
 *   Descripción : Cliente elim info reclamo RMA
 */
const PERMISO_ELIM_CLIENTE_RECLAMOS = 1080;
/**
 *  Id          : 1081
 *  Nombre      : Listado de resolución
 *  Descripción : Ver listado de resolución de RMA
 */
const PERMISO_LIS_RESOLUCION = 1081;
/**
 *  Id          : 1082
 *  Nombre      : Insercion de resolución
 *  Descripción : Agregar una nueva resolución
 */
const PERMISO_INS_RESOLUCION = 1082;
/**
 *   Id          : 1083
 *   Nombre      : Modificacion de resolución
 *   Descripción : Modificar una resolución
 */
const PERMISO_MODIF_RESOLUCION = 1083;
/**
 *   Id         : 1084
 *   Nombre      : Elimacion de resolución
 *   Descripción : Eliminar una resolución
 */
const PERMISO_ELIM_RESOLUCION = 1084;
/**
 *   Id         : 1085
 *   Nombre      : Insercion de resolucion de reclamo
 *   Descripción : Ins Resolucion reclamo
 */
const PERMISO_INS_RES_RECLAMOS = 1085;
/**
 *   Id         : 1085
 *   Nombre      : Eliminacion de resolucion de reclamo
 *   Descripción : Elim Resolucion reclamo
 */
const PERMISO_ELIM_RES_RECLAMOS = 1086;
/**
 *   Id         : 1088
 *   Nombre      : Indicadores de reclamo
 *   Descripción : Indicadores de reclamo
 */
const PERMISO_INDICADORES_RECLAMO = 1088;
/**
 *   Id         : 1089
 *   Nombre      : Listado de reclamos filtrando por Atributos
 *   Descripción : Obtener listado de reclamos filtrando por Atributos
 */
const PERMISO_LIS_REC_FILT_ATRIBUTOS = 1089;
/**
 *   Id         : 1090
 *   Nombre      : Anulación de reclamo
 *   Descripción : Anular un reclamo
 */
const PERMISO_ANUL_RECLAMOS = 1090;
/**
 *   Id         : 1091
 *   Nombre      : Cierre de reclamo
 *   Descripción : Cerrar un reclamo
 */
const PERMISO_CERRAR_RECLAMOS = 1091;
/**
 *   Id         : 1092
 *   Nombre      : Apertura de un reclamo cerrado
 *   Descripción : Abrir un reclamo cerrado
 */
const PERMISO_ABRIR_RECLAMOS = 1092;

/***/ }),

/***/ 52788:
/*!***********************************************************!*\
  !*** ./src/app/core/utils/permisos/permisos-servicios.ts ***!
  \***********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_BAJA_SRV_CONTRATADOS: () => (/* binding */ PERMISO_BAJA_SRV_CONTRATADOS),
/* harmony export */   PERMISO_ELIM_BONIF_SRV_CONTRATADO: () => (/* binding */ PERMISO_ELIM_BONIF_SRV_CONTRATADO),
/* harmony export */   PERMISO_ELIM_MOV: () => (/* binding */ PERMISO_ELIM_MOV),
/* harmony export */   PERMISO_INS_BONIF_SRV_CONTRATADO: () => (/* binding */ PERMISO_INS_BONIF_SRV_CONTRATADO),
/* harmony export */   PERMISO_INS_FACT_MASIVA: () => (/* binding */ PERMISO_INS_FACT_MASIVA),
/* harmony export */   PERMISO_INS_MOV: () => (/* binding */ PERMISO_INS_MOV),
/* harmony export */   PERMISO_INS_SRV_CONTRATADOS: () => (/* binding */ PERMISO_INS_SRV_CONTRATADOS),
/* harmony export */   PERMISO_LIS_FACT_MASIVA: () => (/* binding */ PERMISO_LIS_FACT_MASIVA),
/* harmony export */   PERMISO_LIS_LOTE_FACTURACION: () => (/* binding */ PERMISO_LIS_LOTE_FACTURACION),
/* harmony export */   PERMISO_LIS_MOVIMIENTOS: () => (/* binding */ PERMISO_LIS_MOVIMIENTOS),
/* harmony export */   PERMISO_LIS_SRV_CONTRATADOS: () => (/* binding */ PERMISO_LIS_SRV_CONTRATADOS),
/* harmony export */   PERMISO_MODIF_BONIF_SRV_CONTRATADO: () => (/* binding */ PERMISO_MODIF_BONIF_SRV_CONTRATADO),
/* harmony export */   PERMISO_MODIF_MOV: () => (/* binding */ PERMISO_MODIF_MOV),
/* harmony export */   PERMISO_MODIF_SRV_CONTRATADOS: () => (/* binding */ PERMISO_MODIF_SRV_CONTRATADOS),
/* harmony export */   PERMISO_POST_MASIVO_SRV_CONTRATADOS: () => (/* binding */ PERMISO_POST_MASIVO_SRV_CONTRATADOS),
/* harmony export */   PERMISO_VIS_LOTE_FACTURACION: () => (/* binding */ PERMISO_VIS_LOTE_FACTURACION)
/* harmony export */ });
/**
 *  Id          : 1124
 *  Nombre      : Listado de movimientos
 *  Descripción : Ver listado de movimientos de modulo SERVICIOS
 */
const PERMISO_LIS_MOVIMIENTOS = 1124;
/**
 *  Id          : 1125
 *  Nombre      : Insertar movimiento
 *  Descripción : Insertar un movimiento del modulo SERVICIOS
 */
const PERMISO_INS_MOV = 1125;
/**
 *  Id          : 1126
 *  Nombre      : Modificar movimiento
 *  Descripción : Modificar un  movimiento del modulo SERVICIOS
 */
const PERMISO_MODIF_MOV = 1126;
/**
 *  Id          : 1127
 *  Nombre      : Eliminar movimiento
 *  Descripción : Eliminar un  movimiento del modulo SERVICIOS
 */
const PERMISO_ELIM_MOV = 1127;
/**
 *  Id          : 1129
 *  Nombre      : Listado de servicios contratados
 *  Descripción : Ver listado de servicios contratados del modulo SERVICIOS
 */
const PERMISO_LIS_SRV_CONTRATADOS = 1129;
/**
 *  Id          : 1130
 *  Nombre      : Insertar servicio
 *  Descripción : Insertar un servicios contratados del modulo SERVICIOS
 */
const PERMISO_INS_SRV_CONTRATADOS = 1130;
/**
 *  Id          : 1131
 *  Nombre      : Modificar servicio
 *  Descripción : Modificar un  servicios del modulo SERVICIOS
 */
const PERMISO_MODIF_SRV_CONTRATADOS = 1131;
/**
 *  Id          : 1131
 *  Nombre      : Baja de servicio
 *  Descripción : Dar de baja  un  servicio del modulo SERVICIOS
 */
const PERMISO_BAJA_SRV_CONTRATADOS = 1131;
/**
 *  Id          : 1132
 *  Nombre      : Listado de lotes de facturación
 *  Descripción : Ver listado de lotes de facturación del modulo SERVICIOS
 */
const PERMISO_LIS_LOTE_FACTURACION = 1132;
/**
 *  Id          : 1133
 *  Nombre      : Visualizar detalle de lote
 *  Descripción : Ver detalle  de lote de facturación del modulo SERVICIOS
 */
const PERMISO_VIS_LOTE_FACTURACION = 1133;
/**
 * Id          : 1134
 * Nombre      : Insertar bonificación
 * Descripción : Insertar un bonificación de servicio del modulo SERVICIOS
 */
const PERMISO_INS_BONIF_SRV_CONTRATADO = 1134;
/**
 * Id          : 1135
 * Nombre      : Modificar bonificación
 * Descripción : Modificar un bonificación de servicio del modulo SERVICIOS
 */
const PERMISO_MODIF_BONIF_SRV_CONTRATADO = 1135;
/**
 * Id          : 1136
 * Nombre      : Eliminar bonificación
 * Descripción : Eliminar un bonificación de servicio del modulo SERVICIOS
 */
const PERMISO_ELIM_BONIF_SRV_CONTRATADO = 1136;
/**
 *  Id          : 1058
 *  Nombre      : Listado de servicios a facturar
 *  Descripción : Ver listados de servicios a facturar en el modulo de SERVICIOS
 */
const PERMISO_LIS_FACT_MASIVA = 1137;
/**
 *  Id          : 1058
 *  Nombre      : Insertar Facturacion masiva
 *  Descripción : Realizar envio de servicios a facturar
 */
const PERMISO_INS_FACT_MASIVA = 1138;
const PERMISO_POST_MASIVO_SRV_CONTRATADOS = 1138;

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PERMISO_ELIM_FAMILIA_WEB: () => (/* binding */ PERMISO_ELIM_FAMILIA_WEB),
/* harmony export */   PERMISO_ELIM_USUARIO_WEB: () => (/* binding */ PERMISO_ELIM_USUARIO_WEB),
/* harmony export */   PERMISO_INS_FAMILIA_WEB: () => (/* binding */ PERMISO_INS_FAMILIA_WEB),
/* harmony export */   PERMISO_INS_USUARIO_WEB: () => (/* binding */ PERMISO_INS_USUARIO_WEB),
/* harmony export */   PERMISO_LIS_FAMILIA_WEB: () => (/* binding */ PERMISO_LIS_FAMILIA_WEB),
/* harmony export */   PERMISO_LIS_PLATAFORMA_WEB: () => (/* binding */ PERMISO_LIS_PLATAFORMA_WEB),
/* harmony export */   PERMISO_LIS_PUBLIC_ART_PLAT: () => (/* binding */ PERMISO_LIS_PUBLIC_ART_PLAT),
/* harmony export */   PERMISO_LIS_USUARIO_WEB: () => (/* binding */ PERMISO_LIS_USUARIO_WEB),
/* harmony export */   PERMISO_MODIF_FAMILIA_WEB: () => (/* binding */ PERMISO_MODIF_FAMILIA_WEB),
/* harmony export */   PERMISO_MODIF_USUARIO_WEB: () => (/* binding */ PERMISO_MODIF_USUARIO_WEB)
/* harmony export */ });
/**
 *  Id          : 1109
 *  Nombre      : Listado de familias web
 *  Descripción : Ver listado de familias web de modulo WEB
 */
const PERMISO_LIS_FAMILIA_WEB = 1109;
/**
 *  Id          : 1110
 *  Nombre      : Creacion familia web
 *  Descripción : Creacion familia web
 */
const PERMISO_INS_FAMILIA_WEB = 1110;
/**
 *  Id          : 1111
 *  Nombre      : Edicion familia web
 *  Descripción : Edicion familia web
 */
const PERMISO_MODIF_FAMILIA_WEB = 1111;
/**
 *  Id          : 1112
 *  Nombre      : Eliminacion familia web de modulo WEB
 *  Descripción : Eliminacion familia web de modulo WEB
 */
const PERMISO_ELIM_FAMILIA_WEB = 1112;
/**
 *  Id          : 1105
 *  Nombre      : Listado plataforma web de modulo WEB
 *  Descripción : Listado plataforma web de modulo WEB
 */
const PERMISO_LIS_PLATAFORMA_WEB = 1105;
/**
 *  Id          : 1113
 *  Nombre      : Listado de usuarios web
 *  Descripción : Listado de usuarios web
 */
const PERMISO_LIS_USUARIO_WEB = 1113;
/**
 *  Id          : 1114
 *  Nombre      : Listado de usuarios web
 *  Descripción : Listado de usuarios web
 */
const PERMISO_INS_USUARIO_WEB = 1114;
/**
 *  Id          : 1115
 *  Nombre      : Edicion de usuarios web
 *  Descripción : Edicion de usuarios web
 */
const PERMISO_MODIF_USUARIO_WEB = 1115;
/**
 *  Id          : 1116
 *  Nombre      : Eliminacion de usuarios web
 *  Descripción : Eliminacion de usuarios web
 */
const PERMISO_ELIM_USUARIO_WEB = 1116;
/**
 *  Id          : 1118
 *  Nombre      : Listado de publicaciones de artículos en una plataforma
 *  Descripción : Listado de publicaciones de artículos en una plataforma
 */
const PERMISO_LIS_PUBLIC_ART_PLAT = 1118;

/***/ }),

/***/ 32173:
/*!*****************************************************************************!*\
  !*** ./src/app/extrapages/external-entrance/external-entrance.component.ts ***!
  \*****************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ExternalEntranceComponent: () => (/* binding */ ExternalEntranceComponent)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 94664);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var crypto_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! crypto-js */ 77874);
/* harmony import */ var crypto_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_account_auth_acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/account/auth/acerca-de/acerca-de.component */ 43989);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* 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_stateful_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);













class ExternalEntranceComponent {
  constructor(config, configGralService, route, authService, toastr, alert, modalService, router, sf) {
    this.config = config;
    this.configGralService = configGralService;
    this.route = route;
    this.authService = authService;
    this.toastr = toastr;
    this.alert = alert;
    this.modalService = modalService;
    this.router = router;
    this.sf = sf;
    this.LICENCIA_INHABILITADA = 'Su número de licencia está inhabilitado, por favor contáctese con nuestras oficinas';
    this.LICENCIA_INVALIDA = 'El número de licencia ingresado no es válido, por favor verifique que sea correcto.';
    this.LICENCIA_ERROR = 'Se produjo un error de conexión al intentar validar el número de licencia.';
    this.REGISTRO_SERIAL_EXITO = 'La licencia del cliente es la siguiente: ';
    this.LICENCIA_NULL = 'No se ha abtenido el número de licencia';
    this.accessToken = '';
    this.usuario = '';
    this.password = '';
    this.sucursal = {
      Id: 0,
      Nombre: ''
    };
    this.empresa = {};
    this.url = '';
    this.unsubscribe = [];
  }
  ngOnInit() {
    this.route.queryParams.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(params => {
      let token = decodeURIComponent(params['token']);
      if (token) {
        const decrypted = this.decrypt(token);
        this.usuario = decrypted?.Usuario;
        this.password = decrypted?.Password;
        this.sucursal.Id = decrypted?.IdSucursal;
        this.sucursal.Nombre = decrypted?.Sucursal;
        this.empresa.Id = decrypted?.IdEmpresa;
        this.empresa.Nombre = decrypted?.Empresa;
        this.url = decrypted?.Url;
        this.config.cargarConfig();
        this.verificarLicencia();
      }
      return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)('exito');
    })).subscribe();
  }
  encrypt() {
    let data = {
      Usuario: 'admin',
      Password: 'admin',
      IdSucursal: 1,
      Sucursal: 'Sucursal 1',
      IdEmpresa: 1,
      Empresa: 'Empresa 1',
      Url: '/inicio'
    };
    const ivKey = crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8.parse('MOBA2021');
    const utf8Key = crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8.parse('i02Bi02Bi02Bi02B');
    const encrypted = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.encrypt(JSON.stringify(data), utf8Key, {
      keySize: 128 / 8,
      mode: crypto_js__WEBPACK_IMPORTED_MODULE_1__.mode.CBC,
      iv: ivKey
    });
    return encrypted.toString();
  }
  decrypt(token) {
    // const data = token.replace(/ /g,'+');
    // console.log("TOKEN",data);
    const ivKey = crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8.parse('MOBA2021');
    const utf8Key = crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8.parse('i02Bi02Bi02Bi02B');
    const decrypted = crypto_js__WEBPACK_IMPORTED_MODULE_1__.AES.decrypt(token, utf8Key, {
      keySize: 128 / 8,
      mode: crypto_js__WEBPACK_IMPORTED_MODULE_1__.mode.CBC,
      iv: ivKey
    });
    console.log('DECRYTED', decrypted);
    const utf8Descrypted = decrypted.toString(crypto_js__WEBPACK_IMPORTED_MODULE_1__.enc.Utf8);
    console.log('UTF8DECRYTED', utf8Descrypted);
    console.log('JSON', JSON.parse(utf8Descrypted));
    return decrypted ? JSON.parse(utf8Descrypted) : undefined;
  }
  verificarLicencia() {
    let modoDesarrollo = this.config.config.cliente.validacion.includes('i02B');
    if (this.config.config.cliente.serial == '') {
      this.abrirModalAcercaDe(modoDesarrollo);
    } else {
      this.validarLicencia(modoDesarrollo);
    }
  }
  abrirModalAcercaDe(modoDesarrollo) {
    const modalRef = this.modalService.open(src_app_account_auth_acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_2__.AcercaDeComponent, {
      size: 'md',
      scrollable: true
    });
    modalRef.componentInstance.modoAcercaDe = false;
    modalRef.result.then(data => {
      if (data.licencia != '') {
        this.registrarLicencia(data.licencia);
        this.validarLicencia(modoDesarrollo, data);
      } else {
        this.toastr.error(this.LICENCIA_NULL);
      }
    }, () => {});
  }
  validarLicencia(modoDesarrollo, dataModal) {
    const LicenciaSub = this.authService.checkLicencia(this.config.config.cliente.serial, modoDesarrollo).subscribe(licencia => {
      if (!licencia.activo) {
        this.toastr.error(this.LICENCIA_INHABILITADA);
      } else {
        if (licencia.error && (!this.authService.fechaLicenciaValida() || dataModal !== undefined)) {
          switch (licencia.status) {
            case 400:
              this.toastr.error(this.LICENCIA_INVALIDA);
              break;
            case 404:
              this.toastr.error(this.LICENCIA_ERROR);
              break;
            case 0:
              this.toastr.error(this.LICENCIA_ERROR);
              break;
            default:
              this.toastr.error(this.LICENCIA_ERROR);
              break;
          }
          this.eliminarLicencia();
        } else {
          if (!dataModal) {
            licencia.desarrollo = modoDesarrollo;
            this.authService.setLicencia(licencia);
            this.loginAPI();
          } else {
            let detalle = '<strong>Serial: </strong><br>' + this.config.config.cliente.serial + '<br>' + '<strong>Validación: </strong><br>' + dataModal.validacion;
            this.alert.showDetails(this.REGISTRO_SERIAL_EXITO, detalle);
          }
        }
      }
    });
    this.unsubscribe.push(LicenciaSub);
  }
  registrarLicencia(licencia) {
    //cambiar valor de page.json de cliente.serial por el valor de licencia
    this.config.config.cliente.serial = this.authService.encryptLicencia(licencia);
  }
  eliminarLicencia() {
    this.config.config.cliente.serial = '';
    this.authService.eliminarLicencia();
  }
  loginAPI() {
    // MC Sprint 28 Se aplican cambios para obtener token de API Integra
    this.authService.login(this.usuario, this.password, this.sucursal.Id).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(resp => {
      if (resp.Succeeded) {
        this.accessToken = resp.Data.Token;
        //Guardamos sucursal y empresa
        resp.Data.Sucursal = this.sucursal.Nombre;
        resp.Data.Empresa = this.empresa.Nombre; //this.getValue(this.empresas,formData.empresa);
        //guardamos en localstorage
        this.authService.setAuthFromLocalStorageData(resp.Data);
        //PM SINWEB-54
        // this.socketConn.InicializarConnection();
        //buscamos los datos del usuario
        this.getUsuario(resp.Data.IdUsrUsuario);
        //SP SINWEB-88 se carga la configuracion.
        this.configGralService.cargarConfig();
        return this.authService.getIntegraClientCredentials();
      } else {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null);
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(respApiClientCred => {
      if (respApiClientCred.Succeeded) {
        const body = {
          client_id: respApiClientCred.Data.ClientId,
          secret_key: respApiClientCred.Data.SecretKey
        };
        return this.authService.authenticateIntegra(body);
      } else {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)(null);
      }
    })).subscribe(respAuthInt => {
      if (respAuthInt) {
        const authInt = {
          token: respAuthInt.token,
          expiracion: respAuthInt.expiracion
        };
        this.authService.setAuthFromLocalStorageIntegra(authInt);
      }
    });
  }
  getUsuario(IdUsrUsuario) {
    const loginUsuario = this.authService.getUsuario(IdUsrUsuario).subscribe(user => {
      if (user.Succeeded) {
        //guardamos en localstorage
        this.authService.setAuthFromLocalStorageUser(user.Data);
        //SINWEB-72 Buscamos el empleado
        if (user.Data.length !== 0) {
          //PM SINWEB-93 verificamos el id del usuario en las cookies
          this.checkStateful(user.Data.Id);
          this.getEmpleado(user.Data.Id);
        } else {
          this.toastr.error('Error');
        }
      }
    });
    this.unsubscribe.push(loginUsuario);
  }
  getEmpleado(userId) {
    const loginEmpleado = this.authService.getEmpleado(userId).subscribe(empleado => {
      if (empleado.Succeeded) {
        if (empleado.Data.length !== 0) {
          this.authService.setAuthFromLocalStorageEmpleado(empleado.Data[0]);
        } else {
          this.toastr.warning('El usuario no tiene empleado asignado');
        }
        //SINWEB-14 Buscamos los permisos de usuario
        this.getPermisos(userId);
      }
    }, error => {
      this.getPermisos(userId);
    });
    this.unsubscribe.push(loginEmpleado);
  }
  getPermisos(userId) {
    const loginPermiso = this.authService.getPermisos(userId, this.sucursal.Id).subscribe(permisos => {
      if (permisos.Succeeded) {
        this.authService.setPermisos(permisos.Data);
        this.router.navigateByUrl(this.url != '' ? this.url : '/inicio');
      }
    }, error => {
      this.router.navigateByUrl('/inicio');
      //SINWEB-14 Buscamos los permisos de usuario
    });
    this.unsubscribe.push(loginPermiso);
  }
  getValue(conjunto, idValue) {
    return conjunto.find(s => s.Id == idValue);
  }
  checkStateful(idUsr) {
    this.sf.changeDefaultValue(this.sf.pagenames.USUARIO, idUsr);
    const usrState = this.sf.getState(this.sf.pagenames.USUARIO);
    //Si el usuario es diferente al almacenado en cookie
    if (idUsr !== Number(usrState)) {
      //eliminamos estados almacenados en cookie
      this.sf.deleteAllStates();
      this.sf.changeState(this.sf.pagenames.USUARIO, idUsr);
    }
  }
  static #_ = this.ɵfac = function ExternalEntranceComponent_Factory(t) {
    return new (t || ExternalEntranceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_3__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_4__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_11__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__.StatefulService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: ExternalEntranceComponent,
    selectors: [["app-external-entrance"]],
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService])],
    decls: 10,
    vars: 0,
    consts: [[1, "extern-container"], [1, "text-center"], ["href", "https://sinergial.com.ar/", "target", "_blank", "rel", "noopener noreferrer", 1, "d-flex", "auth-logo", "justify-content-center"], ["src", "assets/images/logo-dark.png", "alt", "", "height", "70", 1, "auth-logo-dark"], ["src", "assets/images/logo-light.png", "alt", "", "height", "70", 1, "auth-logo-light"], [1, "mt-3", "text-muted"], ["role", "status", 1, "spinner-border", "text-primary", "m-1"], [1, "sr-only"]],
    template: function ExternalEntranceComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "a", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "img", 3)(4, "img", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](5, "p", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](6, "Accediendo de manera externa...");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "div", 6)(8, "span", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9, "Cargando...");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
      }
    },
    styles: [".extern-container[_ngcontent-%COMP%] {\n  min-height: 100vh;\n  height: 100vh;\n  background: var(--bs-ligth);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}"]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ExtrapagesRoutingModule: () => (/* binding */ ExtrapagesRoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _page404_page404_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./page404/page404.component */ 69722);
/* harmony import */ var _page500_page500_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./page500/page500.component */ 44579);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);





const routes = [{
  path: '404',
  component: _page404_page404_component__WEBPACK_IMPORTED_MODULE_0__.Page404Component
}, {
  path: '500',
  component: _page500_page500_component__WEBPACK_IMPORTED_MODULE_1__.Page500Component
}];
class ExtrapagesRoutingModule {
  static #_ = this.ɵfac = function ExtrapagesRoutingModule_Factory(t) {
    return new (t || ExtrapagesRoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
    type: ExtrapagesRoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](ExtrapagesRoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule]
  });
})();

/***/ }),

/***/ 53415:
/*!*************************************************!*\
  !*** ./src/app/extrapages/extrapages.module.ts ***!
  \*************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ExtrapagesModule: () => (/* binding */ ExtrapagesModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ng_otp_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ng-otp-input */ 66642);
/* harmony import */ var _extrapages_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extrapages-routing.module */ 77895);
/* harmony import */ var _page404_page404_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./page404/page404.component */ 69722);
/* harmony import */ var _page500_page500_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./page500/page500.component */ 44579);
/* harmony import */ var _steptwoverification2_steptwoverification2_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./steptwoverification2/steptwoverification2.component */ 44935);
/* harmony import */ var _external_entrance_external_entrance_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./external-entrance/external-entrance.component */ 32173);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);








class ExtrapagesModule {
  static #_ = this.ɵfac = function ExtrapagesModule_Factory(t) {
    return new (t || ExtrapagesModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
    type: ExtrapagesModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _extrapages_routing_module__WEBPACK_IMPORTED_MODULE_0__.ExtrapagesRoutingModule, ng_otp_input__WEBPACK_IMPORTED_MODULE_7__.NgOtpInputModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](ExtrapagesModule, {
    declarations: [_page404_page404_component__WEBPACK_IMPORTED_MODULE_1__.Page404Component, _page500_page500_component__WEBPACK_IMPORTED_MODULE_2__.Page500Component, _steptwoverification2_steptwoverification2_component__WEBPACK_IMPORTED_MODULE_3__.Steptwoverification2Component, _external_entrance_external_entrance_component__WEBPACK_IMPORTED_MODULE_4__.ExternalEntranceComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _extrapages_routing_module__WEBPACK_IMPORTED_MODULE_0__.ExtrapagesRoutingModule, ng_otp_input__WEBPACK_IMPORTED_MODULE_7__.NgOtpInputModule]
  });
})();

/***/ }),

/***/ 69722:
/*!*********************************************************!*\
  !*** ./src/app/extrapages/page404/page404.component.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


/**
 * PAges-404 component
 */
class Page404Component {
  constructor() {
    this.year = new Date().getFullYear();
  }
  ngOnInit() {}
  static #_ = this.ɵfac = function Page404Component_Factory(t) {
    return new (t || Page404Component)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: Page404Component,
    selectors: [["app-page404"]],
    decls: 45,
    vars: 1,
    consts: [[1, "row", "mb-5", "mb-lg-3", "mt-3", "mx-0", "px-0"], [1, "col-lg-12", "text-center"], ["src", "assets/images/logo-dark.png", "alt", "Sinergial logo", 1, "img-fluid", "mb-lg-5", 2, "max-width", "170px"], [1, "account-pages", 2, "overflow", "hidden"], [1, "container"], [1, "row", "mb-5"], [1, "col-lg-12"], [1, "text-center"], [1, "display-1", "fw-medium"], [1, "text-uppercase"], [1, "mt-3", "mt-lg-4", "text-center"], ["routerLink", "/inicio", 1, "btn", "btn-primary"], [1, "row"], [1, "text-center", "px-3", "pt-4"], [1, "mb-3"], [1, "d-flex", "flex-column", "justify-content-center", "mt-3", "mt-md-4", "text-center"], [1, "col"], ["href", "https://www.facebook.com/Oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-facebook", "font-size-24", "text-primary"], ["href", "https://www.instagram.com/oliverinformatica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-instagram", "font-size-24", "text-primary"], ["href", "https://www.linkedin.com/company/oliver-inform%C3%A1tica/", "target", "_blank", "rel", "noopener noreferrer"], [1, "mdi", "mdi-linkedin", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585175140", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mdi", "mdi-whatsapp", "font-size-24", "text-primary"], ["href", "https://wa.me/5493585091929", "target", "_blank", "rel", "noopener noreferrer", 1, "text-muted"], [1, "mb-0"], ["href", "https://www.oliver.ar/", "target", "_blank", "rel", "noopener noreferrer"], [1, "bg-404"], ["src", "assets/images/bg-auth-overlay2.png", "alt", "", 1, "img-fluid"]],
    template: function Page404Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "div", 4)(5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "h1", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "4");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "0");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "4");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "h4", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "P\u00E1gina no encontrada");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 10)(16, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Volver al Inicio");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 12)(19, "div", 6)(20, "div", 13)(21, "h5", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "\u00BFNecesita ayuda?");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 15)(24, "div", 16)(25, "a", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "i", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "i", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "a", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "i", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 16)(32, "a", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "i", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, " Comercial");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "a", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "i", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, " HelpDesk");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "p", 26)(40, "a", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "www.oliver.ar");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](44, "img", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](42);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" | \u00A9 ", ctx.year, ". ");
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterLink],
    styles: [".bg-404[_ngcontent-%COMP%] {\n  position: fixed;\n  z-index: -1;\n  bottom: 0;\n  right: 0;\n  transform: rotate(180deg);\n}"]
  });
}

/***/ }),

/***/ 44579:
/*!*********************************************************!*\
  !*** ./src/app/extrapages/page500/page500.component.ts ***!
  \*********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


/**
 * Pages-500 component
 */
class Page500Component {
  constructor() {}
  ngOnInit() {}
  static #_ = this.ɵfac = function Page500Component_Factory(t) {
    return new (t || Page500Component)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: Page500Component,
    selectors: [["app-page500"]],
    decls: 16,
    vars: 0,
    consts: [[1, "account-pages", "my-5", "pt-5"], [1, "container"], [1, "row"], [1, "col-lg-12"], [1, "text-center", "mb-5"], [1, "display-2", "fw-medium"], [1, "bx", "bx-buoy", "bx-spin", "text-primary", "display-3"], [1, "text-uppercase"], [1, "mt-5", "text-center"], ["routerLink", "/", 1, "btn", "btn-primary"], [1, "row", "justify-content-center"], [1, "col-md-8", "col-xl-6"]],
    template: function Page500Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "h1", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " 5");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "i", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "h4", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Internal Server Error");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 8)(12, "a", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Back to Dashboard");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterLink]
  });
}

/***/ }),

/***/ 44935:
/*!***********************************************************************************!*\
  !*** ./src/app/extrapages/steptwoverification2/steptwoverification2.component.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Steptwoverification2Component: () => (/* binding */ Steptwoverification2Component)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var ng_otp_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ng-otp-input */ 66642);



class Steptwoverification2Component {
  constructor() {
    // set the currenr year
    this.year = new Date().getFullYear();
    this.config = {
      allowNumbersOnly: true,
      length: 4,
      isPasswordInput: false,
      disableAutoFocus: false,
      placeholder: '',
      inputStyles: {
        width: '80px',
        height: '50px'
      }
    };
  }
  ngOnInit() {}
  static #_ = this.ɵfac = function Steptwoverification2Component_Factory(t) {
    return new (t || Steptwoverification2Component)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: Steptwoverification2Component,
    selectors: [["app-steptwoverification2"]],
    decls: 47,
    vars: 2,
    consts: [[1, "container-fluid", "p-0"], [1, "row", "g-0"], [1, "col-xl-9"], [1, "auth-full-bg", "pt-lg-5", "p-4"], [1, "w-100"], [1, "bg-overlay"], [1, "d-flex", "h-100", "flex-column"], [1, "p-4", "mt-auto"], [1, "row", "justify-content-center"], [1, "col-lg-7"], [1, "text-center"], [1, "mb-3"], [1, "bx", "bxs-quote-alt-left", "text-primary", "h1", "align-middle", "me-3"], [1, "text-primary"], ["dir", "ltr"], [1, "col-xl-3"], [1, "auth-full-page-content", "p-md-5", "p-4"], [1, "d-flex", "flex-column", "h-100"], [1, "mb-4", "mb-md-5"], ["routerLink", "/", 1, "d-block", "auth-logo"], ["src", "assets/images/logo-dark.png", "alt", "", "height", "18", 1, "auth-logo-dark"], ["src", "assets/images/logo-light.png", "alt", "", "height", "18", 1, "auth-logo-light"], [1, "my-auto"], [1, "avatar-md", "mx-auto"], [1, "avatar-title", "rounded-circle", "bg-light"], [1, "bx", "bxs-envelope", "h1", "mb-0", "text-primary"], [1, "p-2", "mt-4"], [1, "mb-5"], [1, "fw-semibold"], [3, "config"], [1, "mt-4"], ["routerLink", "/", 1, "btn", "btn-success", "w-md"], [1, "mt-4", "mt-md-5", "text-center"], [1, "mb-0"], [1, "mdi", "mdi-heart", "text-danger"]],
    template: function Steptwoverification2Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "div", 10)(11, "h4", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "5k");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "+ Satisfied clients ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 15)(18, "div", 16)(19, "div", 4)(20, "div", 17)(21, "div", 18)(22, "a", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "img", 20)(24, "img", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 22)(26, "div", 10)(27, "div", 23)(28, "div", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "i", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 26)(31, "h4");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Verify your email");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "p", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, " Please enter the 4 digit code sent to ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "span", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "example@.com");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "form");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "ng-otp-input", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 30)(40, "a", 31);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Confirm");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 32)(43, "p", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "i", 34);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, " by Themesbrand ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](38);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("config", ctx.config);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" \u00A9 ", ctx.year, " Skote. Crafted with ");
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterLink, ng_otp_input__WEBPACK_IMPORTED_MODULE_2__.NgOtpInputComponent]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Layout2RoutingModule: () => (/* binding */ Layout2RoutingModule)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __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 _shared_comprobantes_cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../shared/comprobantes/cargar-comprobante/cargar-comprobante.component */ 27254);
/* harmony import */ var _core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var _core_guards_pending_changes_guard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/guards/pending-changes.guard */ 95180);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);







const routes = [{
  path: '',
  redirectTo: '/inicio',
  pathMatch: 'full'
}, {
  path: 'cargarComprobante/:tipoComprob',
  children: [{
    path: '',
    component: _shared_comprobantes_cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_1__.CargarComprobanteComponent,
    canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
    canDeactivate: [_core_guards_pending_changes_guard__WEBPACK_IMPORTED_MODULE_3__.PendingChangesGuard],
    data: {
      permiso: _core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.PERMISO_INS_COMPROBANTE
    }
  }, {
    path: 'visualizar/:idComprob',
    component: _shared_comprobantes_cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_1__.CargarComprobanteComponent,
    canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard]
    //data: {permiso: PERMISO_VER_COMPROBANTE}
  }, {
    path: ':idComprob',
    component: _shared_comprobantes_cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_1__.CargarComprobanteComponent,
    canActivate: [_core_guards_auth_guard__WEBPACK_IMPORTED_MODULE_0__.AuthGuard],
    canDeactivate: [_core_guards_pending_changes_guard__WEBPACK_IMPORTED_MODULE_3__.PendingChangesGuard],
    data: {
      permiso: _core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.PERMISO_MODIF_COMPROBANTE
    }
  }]
}];
class Layout2RoutingModule {
  static #_ = this.ɵfac = function Layout2RoutingModule_Factory(t) {
    return new (t || Layout2RoutingModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({
    type: Layout2RoutingModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](Layout2RoutingModule, {
    imports: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterModule],
    exports: [_angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterModule]
  });
})();

/***/ }),

/***/ 57895:
/*!************************************************!*\
  !*** ./src/app/layouts2/layouts2.component.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


class Layouts2Component {
  static #_ = this.ɵfac = function Layouts2Component_Factory(t) {
    return new (t || Layouts2Component)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: Layouts2Component,
    selectors: [["app-layouts2"]],
    decls: 2,
    vars: 0,
    template: function Layouts2Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "router-outlet");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterOutlet],
    styles: ["[_nghost-%COMP%] {\n  display: block;\n  width: 100%;\n  height: 100vh;\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n}\n\nrouter-outlet[_ngcontent-%COMP%] {\n  display: block;\n  width: 100%;\n  height: 100%;\n}"]
  });
}

/***/ }),

/***/ 72252:
/*!*********************************************!*\
  !*** ./src/app/layouts2/layouts2.module.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Layouts2Module: () => (/* binding */ Layouts2Module)
/* harmony export */ });
/* harmony import */ var _core_services_language_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/services/language.service */ 62948);
/* harmony import */ var ng_click_outside__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ng-click-outside */ 85321);
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/shared.module */ 56208);
/* harmony import */ var _layouts2_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layouts2.component */ 57895);
/* harmony import */ var _layouts2_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layouts2-routing.module */ 58743);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);






class Layouts2Module {
  static #_ = this.ɵfac = function Layouts2Module_Factory(t) {
    return new (t || Layouts2Module)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
    type: Layouts2Module
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
    providers: [_core_services_language_service__WEBPACK_IMPORTED_MODULE_0__.LanguageService],
    imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, ng_click_outside__WEBPACK_IMPORTED_MODULE_1__.ClickOutsideModule, _layouts2_routing_module__WEBPACK_IMPORTED_MODULE_4__.Layout2RoutingModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](Layouts2Module, {
    declarations: [_layouts2_component__WEBPACK_IMPORTED_MODULE_3__.Layouts2Component],
    imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_2__.SharedModule, ng_click_outside__WEBPACK_IMPORTED_MODULE_1__.ClickOutsideModule, _layouts2_routing_module__WEBPACK_IMPORTED_MODULE_4__.Layout2RoutingModule]
  });
})();

/***/ }),

/***/ 67584:
/*!****************************************************!*\
  !*** ./src/app/layouts/footer/footer.component.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FooterComponent: () => (/* binding */ FooterComponent)
/* harmony export */ });
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../environments/environment */ 20553);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_infoAPI_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/core/infoAPI.service */ 63384);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);




/**
 * Footer component
 */
class FooterComponent {
  constructor(infoApiService, authService) {
    this.infoApiService = infoApiService;
    this.authService = authService;
    // set the currenr year
    this.year = new Date().getFullYear();
    this.version = _environments_environment__WEBPACK_IMPORTED_MODULE_0__.environment.version;
    this.versionApi = "0.0";
    this.mensajeAlerta = "";
    this.licencia_msj = "";
  }
  ngOnInit() {
    let data = {};
    this.infoApiService.fetch(data).subscribe(data => {
      this.versionApi = data.Data.Version.split(".").slice(0, 2).join(".");
    }, error => {
      this.versionApi = "ERROR";
    });
    if (this.authService.getLicenciaError()) {
      this.licencia_msj = "Sucedió un error con la validación de la licencia. Se permite el acceso hasta el " + this.authService.getFechaLicencia() + ".";
    }
  }
  static #_ = this.ɵfac = function FooterComponent_Factory(t) {
    return new (t || FooterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_core_infoAPI_service__WEBPACK_IMPORTED_MODULE_1__.InfoAPIService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: FooterComponent,
    selectors: [["app-footer"]],
    decls: 10,
    vars: 4,
    consts: [[1, "footer"], [1, "container-fluid"], [1, "row"], [1, "col-sm-6"], [1, "text-danger", "fw-bold"], [1, "text-sm-end", "d-none", "d-sm-block"]],
    template: function FooterComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "footer", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "span", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 3)(8, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9);
        _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"](" ", ctx.year, " \u00A9 Oliver. ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.licencia_msj);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate2"](" Versi\u00F3n ", ctx.version, " - API ", ctx.versionApi, " ");
      }
    }
  });
}

/***/ }),

/***/ 52844:
/*!************************************************************!*\
  !*** ./src/app/layouts/horizontal/horizontal.component.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HorizontalComponent: () => (/* binding */ HorizontalComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../core/services/event.service */ 42608);
/* harmony import */ var src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionHistorial.service */ 97504);
/* harmony import */ var src_app_core_services_sidemenu_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/sidemenu.service */ 91137);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../topbar/topbar.component */ 25407);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../footer/footer.component */ 67584);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rightsidebar/rightsidebar.component */ 95802);
/* harmony import */ var _horizontaltopbar_horizontaltopbar_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../horizontaltopbar/horizontaltopbar.component */ 77636);
/* harmony import */ var _sidemenu_sidemenu_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../sidemenu/sidemenu.component */ 1317);










/**
 * Horizontal-layout component
 */
class HorizontalComponent {
  constructor(eventService, notifHistService, sidemenuService) {
    this.eventService = eventService;
    this.notifHistService = notifHistService;
    this.sidemenuService = sidemenuService;
  }
  ngOnInit() {
    this.eventService.subscribe("changeTopbar", topbar => {
      this.topbar = topbar;
      this.changeTopbar(this.topbar);
    });
    document.body.setAttribute("data-layout", "horizontal");
    document.body.removeAttribute("data-sidebar");
    document.body.removeAttribute("data-layout-size");
    document.body.removeAttribute("data-keep-enlarged");
    document.body.removeAttribute("data-sidebar-small");
    this.changeTopbar(this.topbar);
  }
  ngAfterViewInit() {}
  /**
   * on settings button clicked from topbar
   */
  onBotonNotificacionesClic() {
    document.body.classList.toggle("right-bar-enabled");
    this.notifHistService.refreshListado.next(true);
  }
  changeTopbar(topbar) {
    switch (topbar) {
      case "light":
        document.body.setAttribute("data-topbar", "light");
        break;
      case "dark":
        document.body.setAttribute("data-topbar", "dark");
        break;
      case "colored":
        document.body.setAttribute("data-topbar", "colored");
        break;
      default:
        document.body.setAttribute("data-topbar", "dark");
        break;
    }
  }
  /**
   * On mobile toggle button clicked
   */
  onToggleMobileMenu() {
    this.isCondensed = !this.isCondensed;
    document.body;
    // MC SINWEB-279 Toggle del menú desplegable en modo móvil
    const element = document.getElementById("topnav-menu-content");
    element.classList.toggle("show");
    if (window.screen.width <= 768) {
      document.body.classList.remove("vertical-collpsed");
    }
  }
  /**
   * MC SINWEB-583
   */
  openSidemenu() {
    this.sidemenuService.toggle();
  }
  static #_ = this.ɵfac = function HorizontalComponent_Factory(t) {
    return new (t || HorizontalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_0__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_1__.NotificacionHistorialServices), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_sidemenu_service__WEBPACK_IMPORTED_MODULE_2__.SidemenuService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
    type: HorizontalComponent,
    selectors: [["app-horizontal"]],
    decls: 9,
    vars: 0,
    consts: [["id", "layout-wrapper"], [3, "botonNotificacionesClic", "mobileMenuButtonClicked"], [1, "main-content"], [1, "page-content"]],
    template: function HorizontalComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "app-horizontaltopbar");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](2, "app-topbar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("botonNotificacionesClic", function HorizontalComponent_Template_app_topbar_botonNotificacionesClic_2_listener() {
          return ctx.onBotonNotificacionesClic();
        })("mobileMenuButtonClicked", function HorizontalComponent_Template_app_topbar_mobileMenuButtonClicked_2_listener() {
          return ctx.openSidemenu();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "app-sidemenu");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 2)(5, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](6, "router-outlet");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "app-footer");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](8, "app-rightsidebar");
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterOutlet, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_3__.TopbarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_4__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_5__.RightsidebarComponent, _horizontaltopbar_horizontaltopbar_component__WEBPACK_IMPORTED_MODULE_6__.HorizontaltopbarComponent, _sidemenu_sidemenu_component__WEBPACK_IMPORTED_MODULE_7__.SidemenuComponent]
  });
}

/***/ }),

/***/ 77636:
/*!************************************************************************!*\
  !*** ./src/app/layouts/horizontaltopbar/horizontaltopbar.component.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HorizontaltopbarComponent: () => (/* binding */ HorizontaltopbarComponent)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var metismenujs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! metismenujs */ 49420);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _sidebar_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../sidebar/menu */ 19526);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../environments/environment */ 20553);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../core/services/event.service */ 42608);
/* 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 _core_services_authfake_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../core/services/authfake.service */ 39634);
/* harmony import */ var _core_services_language_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../core/services/language.service */ 62948);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var ngx_cookie_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-cookie-service */ 10459);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ngx-translate/core */ 89515);


















const _c0 = ["componentRef"];
const _c1 = ["sideMenu"];
function HorizontaltopbarComponent_For_6_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_2_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r11);
      const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r9.onMenuClick(item_r1.parentId, item_r1));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassMapInterpolate1"]("bx ", item_r1.icon, " me-1");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 4, item_r1.label), " ");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_3_a_0_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](0, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "div", 8);
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassMapInterpolate1"]("bx ", item_r1.icon, " me-2");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 4, item_r1.label), " ");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_3_a_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, HorizontaltopbarComponent_For_6_Conditional_3_a_0_Conditional_1_Template, 4, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", item_r1.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](1, ctx_r13.hasItems(item_r1) ? 1 : -1);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_3_a_1_i_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassMapInterpolate1"]("bx ", item_r1.icon, "");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_3_a_1_span_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵclassMapInterpolate1"]("badge rounded-pill bg-", item_r1.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 4, item_r1.badge.text));
  }
}
function HorizontaltopbarComponent_For_6_Conditional_3_a_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, HorizontaltopbarComponent_For_6_Conditional_3_a_1_i_1_Template, 1, 3, "i", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](5, HorizontaltopbarComponent_For_6_Conditional_3_a_1_span_5_Template, 3, 6, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", item_r1.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", item_r1.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](4, 4, item_r1.label), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", item_r1.badge);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, HorizontaltopbarComponent_For_6_Conditional_3_a_0_Template, 2, 2, "a", 9)(1, HorizontaltopbarComponent_For_6_Conditional_3_a_1_Template, 6, 6, "a", 10);
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r7.hasItems(item_r1));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx_r7.hasItems(item_r1));
  }
}
const _c2 = () => ({
  exact: true
});
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subitem_r28.link)("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](5, _c2));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 3, subitem_r28.label), " ");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div")(1, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_1_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r36);
      const subitem_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r34.onMenuClick(subitem_r28.parentId, subitem_r28));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subitem_r28.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 2, subitem_r28.label), " ");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 23)(6, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](8, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "div", 23)(10, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](12, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    const subitem_r28 = ctx_r39.$implicit;
    const i_r27 = ctx_r39.index;
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subitem_r28.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](4, 6, item_r1.subItems[i_r27].label));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", item_r1.subItems[i_r27 + 1] == null ? null : item_r1.subItems[i_r27 + 1].link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](8, 8, item_r1.subItems[i_r27 + 1] == null ? null : item_r1.subItems[i_r27 + 1].label));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", item_r1.subItems[i_r27 + 2] == null ? null : item_r1.subItems[i_r27 + 2].link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](12, 10, item_r1.subItems[i_r27 + 2] == null ? null : item_r1.subItems[i_r27 + 2].label));
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_2_Conditional_1_Template, 13, 12, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](1, i_r27 % 3 == 0 ? 1 : -1);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_0_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubSubitem_r48 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subSubSubitem_r48.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 2, subSubSubitem_r48.label));
  }
}
const _c3 = a0 => ({
  show: a0
});
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 25)(1, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_0_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r51);
      const subSubitem_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r49.onMenuClick(subSubitem_r44.parentId, subSubitem_r44));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_0_ng_template_6_Template, 3, 4, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 3, subSubitem_r44.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](5, _c3, subSubitem_r44.isCollapsed));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", subSubitem_r44.subItems);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subSubitem_r44.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 2, subSubitem_r44.label));
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_0_Template, 7, 7, "div", 18)(1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Conditional_1_Template, 3, 4);
  }
  if (rf & 2) {
    const subSubitem_r44 = ctx.$implicit;
    const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](0, ctx_r42.hasItems(subSubitem_r44) ? 0 : 1);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 25)(1, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r56);
      const subitem_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r54.onMenuClick(subitem_r28.parentId, subitem_r28));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_ng_template_6_Template, 2, 1, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 3, subitem_r28.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](5, _c3, subitem_r28.isCollapsed));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", subitem_r28.subItems);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_0_Template, 3, 6, "a", 17)(1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_1_Template, 5, 4)(2, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_2_Template, 2, 1)(3, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Conditional_3_Template, 7, 7, "div", 18);
  }
  if (rf & 2) {
    const subitem_r28 = ctx.$implicit;
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](0, item_r1.subItems.length < 11 && !ctx_r26.hasItems(subitem_r28) ? 0 : item_r1.subItems.length == 11 && !ctx_r26.hasItems(subitem_r28) ? 1 : item_r1.subItems.length > 11 ? 2 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](3, ctx_r26.hasItems(subitem_r28) ? 3 : -1);
  }
}
const _c4 = (a0, a1) => ({
  "dropdown-mega-menu-xl px-2": a0,
  show: a1
});
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_ng_template_1_Template, 4, 2, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction2"](2, _c4, item_r1.subItems.length > 11, item_r1.isCollapsed));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", item_r1.subItems);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subitem_r62.link)("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction0"](5, _c2));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 3, subitem_r62.label), " ");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r70 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div")(1, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_1_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r70);
      const subitem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r68.onMenuClick(subitem_r62.parentId, subitem_r62));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subitem_r62.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 2, subitem_r62.label), " ");
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 22)(1, "div", 23)(2, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 23)(6, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](8, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "div", 23)(10, "a", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](12, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    const subitem_r62 = ctx_r73.$implicit;
    const i_r61 = ctx_r73.index;
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subitem_r62.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](4, 6, item_r1.subItems[i_r61].label));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", item_r1.subItems[i_r61 + 1] == null ? null : item_r1.subItems[i_r61 + 1].link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](8, 8, item_r1.subItems[i_r61 + 1] == null ? null : item_r1.subItems[i_r61 + 1].label));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", item_r1.subItems[i_r61 + 2] == null ? null : item_r1.subItems[i_r61 + 2].link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](12, 10, item_r1.subItems[i_r61 + 2] == null ? null : item_r1.subItems[i_r61 + 2].label));
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_2_Conditional_1_Template, 13, 12, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](1, i_r61 % 3 == 0 ? 1 : -1);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_0_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubSubitem_r82 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subSubSubitem_r82.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 2, subSubSubitem_r82.label));
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 25)(1, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_0_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r85);
      const subSubitem_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r83.onMenuClick(subSubitem_r78.parentId, subSubitem_r78));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_0_ng_template_6_Template, 3, 4, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 3, subSubitem_r78.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](5, _c3, subSubitem_r78.isCollapsed));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", subSubitem_r78.subItems);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subSubitem_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("routerLink", subSubitem_r78.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 2, subSubitem_r78.label));
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_0_Template, 7, 7, "div", 18)(1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Conditional_1_Template, 3, 4);
  }
  if (rf & 2) {
    const subSubitem_r78 = ctx.$implicit;
    const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](0, ctx_r76.hasItems(subSubitem_r78) ? 0 : 1);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 25)(1, "a", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r90);
      const subitem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
      const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r88.onMenuClick(subitem_r62.parentId, subitem_r62));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_ng_template_6_Template, 2, 1, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subitem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 3, subitem_r62.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](5, _c3, subitem_r62.isCollapsed));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", subitem_r62.subItems);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_0_Template, 3, 6, "a", 17)(1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_1_Template, 5, 4)(2, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_2_Template, 2, 1)(3, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Conditional_3_Template, 7, 7, "div", 18);
  }
  if (rf & 2) {
    const subitem_r62 = ctx.$implicit;
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
    const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](0, item_r1.subItems.length < 11 && !ctx_r60.hasItems(subitem_r62) ? 0 : item_r1.subItems.length == 11 && !ctx_r60.hasItems(subitem_r62) ? 1 : item_r1.subItems.length > 11 ? 2 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](3, ctx_r60.hasItems(subitem_r62) ? 3 : -1);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_ng_template_1_Template, 4, 2, "ng-template", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction2"](2, _c4, item_r1.subItems.length > 11, item_r1.isCollapsed));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", item_r1.subItems);
  }
}
function HorizontaltopbarComponent_For_6_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_0_Template, 2, 5, "div", 14)(1, HorizontaltopbarComponent_For_6_Conditional_4_Conditional_1_Template, 2, 5);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](0, !ctx_r8.usingMobile ? 0 : 1);
  }
}
function HorizontaltopbarComponent_For_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "li", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, HorizontaltopbarComponent_For_6_Conditional_2_Template, 5, 6, "a", 6)(3, HorizontaltopbarComponent_For_6_Conditional_3_Template, 2, 2)(4, HorizontaltopbarComponent_For_6_Conditional_4_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r1 = ctx.$implicit;
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](2, item_r1.subItems ? 2 : 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](4, ctx_r0.hasItems(item_r1) ? 4 : -1);
  }
}
/**
 * Horizontal Topbar and navbar specified
 */
class HorizontaltopbarComponent {
  // tslint:disable-next-line: max-line-length
  constructor(document, router, eventService, authService, authFackservice, languageService, sf,
  // tslint:disable-next-line: variable-name
  _cookiesService) {
    this.document = document;
    this.router = router;
    this.eventService = eventService;
    this.authService = authService;
    this.authFackservice = authFackservice;
    this.languageService = languageService;
    this.sf = sf;
    this._cookiesService = _cookiesService;
    this.isCondensed = false;
    this.menuItems = [];
    this.listLang = [{
      text: "English",
      flag: "assets/images/flags/us.jpg",
      lang: "en"
    }, {
      text: "Spanish",
      flag: "assets/images/flags/spain.jpg",
      lang: "es"
    }];
    router.events.subscribe(event => {
      if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_11__.NavigationEnd) {
        this.activateMenu();
        this.menuItems.forEach(element => {
          element.isCollapsed = false;
        });
      }
    });
  }
  ngOnInit() {
    this.element = document.documentElement;
    this.usingMobile = window.innerWidth < 992;
    this.initialize();
    this.cookieValue = this._cookiesService.get("lang");
    const val = this.listLang.filter(x => x.lang === this.cookieValue);
    this.countryName = val.map(element => element.text);
    if (val.length === 0) {
      if (this.flagvalue === undefined) {
        this.valueset = "assets/images/flags/us.jpg";
      }
    } else {
      this.flagvalue = val.map(element => element.flag);
    }
  }
  setLanguage(text, lang, flag) {
    this.countryName = text;
    this.flagvalue = flag;
    this.cookieValue = lang;
    this.languageService.setLanguage(lang);
  }
  /**
   * Logout the user
   */
  logout() {
    if (_environments_environment__WEBPACK_IMPORTED_MODULE_2__.environment.defaultauth === "firebase") {
      this.authService.logout();
    } else {
      this.authFackservice.logout();
    }
    this.router.navigate(["/auth/login"]);
  }
  /**
   * On menu click
   */
  onMenuClick(parentIndex, item) {
    if (!parentIndex) {
      this.menuItems.forEach(element => {
        if (item == element) {
          // Toggle the clicked item
          element.isCollapsed = !element.isCollapsed;
        } else {
          // Close all other items of other parent items
          element.isCollapsed = false;
        }
      });
    }
  }
  ngAfterViewInit() {
    // this.menu = new MetisMenu(this.sideMenu.nativeElement);
    this._activateMenuDropdown();
  }
  ngOnChanges() {
    if (!this.isCondensed && this.sideMenu || this.isCondensed) {
      setTimeout(() => {
        this.menu = new metismenujs__WEBPACK_IMPORTED_MODULE_0__["default"](this.sideMenu.nativeElement);
      });
    } else if (this.menu) {
      this.menu.dispose();
    }
  }
  /**
   * remove active and mm-active class
   */
  _removeAllClass(className) {
    const els = document.getElementsByClassName(className);
    while (els[0]) {
      els[0].classList.remove(className);
    }
  }
  /**
   * Togglemenu bar
   */
  toggleMenubar() {
    const element = document.getElementById("topnav-menu-content");
    element.classList.toggle("show");
  }
  /**
   * Activates the menu
   */
  activateMenu() {
    const resetParent = el => {
      const parent = el.parentElement;
      if (parent) {
        parent.classList.remove("active");
        const parent2 = parent.parentElement;
        this._removeAllClass("mm-active");
        this._removeAllClass("mm-show");
        if (parent2) {
          parent2.classList.remove("active");
          const parent3 = parent2.parentElement;
          if (parent3) {
            parent3.classList.remove("active");
            const parent4 = parent3.parentElement;
            if (parent4) {
              parent4.classList.remove("active");
              const parent5 = parent4.parentElement;
              if (parent5) {
                parent5.classList.remove("active");
                const menuelement = document.getElementById("topnav-menu-content");
                if (menuelement !== null) {
                  if (menuelement.classList.contains("show")) document.getElementById("topnav-menu-content").classList.remove("show");
                }
              }
            }
          }
        }
      }
    };
    // activate menu item based on location
    const links = document.getElementsByClassName("side-nav-link-ref");
    let matchingMenuItem = null;
    // tslint:disable-next-line: prefer-for-of
    for (let i = 0; i < links.length; i++) {
      // reset menu
      resetParent(links[i]);
    }
    // tslint:disable-next-line: prefer-for-of
    for (let i = 0; i < links.length; i++) {
      // tslint:disable-next-line: no-string-literal
      if (location.pathname === links[i]["pathname"]) {
        matchingMenuItem = links[i];
        break;
      }
    }
    if (matchingMenuItem) {
      const parent = matchingMenuItem.parentElement;
      /**
       * TODO: This is hard coded way of expading/activating parent menu dropdown and working till level 3.
       * We should come up with non hard coded approach
       */
      if (parent) {
        parent.classList.add("active");
        const parent2 = parent.parentElement;
        if (parent2) {
          parent2.classList.add("active");
          const parent3 = parent2.parentElement;
          if (parent3) {
            parent3.classList.add("active");
            const parent4 = parent3.parentElement;
            if (parent4) {
              parent4.classList.add("active");
              const parent5 = parent4.parentElement;
              if (parent5) {
                parent5.classList.add("active");
                const parent6 = parent5.parentElement;
                if (parent6) {
                  parent6.classList.add("active");
                }
              }
            }
          }
        }
      }
    }
  }
  /**
   * on settings button clicked from topbar
   */
  onSettingsButtonClicked() {
    document.body.classList.toggle("right-bar-enabled");
  }
  /**
   * Fullscreen method
   */
  fullscreen() {
    document.body.classList.toggle("fullscreen-enable");
    if (!document.fullscreenElement && !this.element.mozFullScreenElement && !this.element.webkitFullscreenElement) {
      if (this.element.requestFullscreen) {
        this.element.requestFullscreen();
      } else if (this.element.mozRequestFullScreen) {
        /* Firefox */
        this.element.mozRequestFullScreen();
      } else if (this.element.webkitRequestFullscreen) {
        /* Chrome, Safari and Opera */
        this.element.webkitRequestFullscreen();
      } else if (this.element.msRequestFullscreen) {
        /* IE/Edge */
        this.element.msRequestFullscreen();
      }
    } else {
      if (this.document.exitFullscreen) {
        this.document.exitFullscreen();
      } else if (this.document.mozCancelFullScreen) {
        /* Firefox */
        this.document.mozCancelFullScreen();
      } else if (this.document.webkitExitFullscreen) {
        /* Chrome, Safari and Opera */
        this.document.webkitExitFullscreen();
      } else if (this.document.msExitFullscreen) {
        /* IE/Edge */
        this.document.msExitFullscreen();
      }
    }
  }
  /**
   * Initialize
   */
  initialize() {
    const menuFormatModules = this.formatearModulos(_sidebar_menu__WEBPACK_IMPORTED_MODULE_1__.MENU);
    const menuCopy = JSON.stringify(menuFormatModules);
    const menuItemCopy = JSON.parse(menuCopy);
    this.menuItems = this.formatConPermisos(menuItemCopy);
  }
  formatearModulos(menu) {
    let i = 0;
    let menuRes = JSON.parse(JSON.stringify(menu));
    let hayInactivos = false;
    //Modulo Estadistica
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_ESTADISTICA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_ESTADISTICA);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Produccion
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_PRODUCCION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_PRODUCCION);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Autorizacion
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_AUTORIZACION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_AUTORIZACION);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo RMA
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_RMA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_RMA);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Web
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_WEB)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_WEB);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Servicios
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_SERVICIOS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_SERVICIOS);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Notificaciones
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_NOTIFICACIONES)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_NOTIFICACIONES);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Plataformas de pago
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_PLATAFORMAS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_PLATAFORMAS);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //SP SINWEB-257 se agrega nuevo objeto de del menu correspondiente a desarrollo
    if (!this.authService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_DESARROLLO)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_DESARROLLO);
      menuRes.splice(i, 1);
    }
    //Menu inactivos
    if (!hayInactivos) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.MENU_ID_MODULO_INACTIVOS);
      menuRes.splice(i, 1);
    }
    if (this.sf.getState(this.sf.pagenames.MENU_ORDEN) === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.VERDADERO) {
      //Ordenar subItems
      menuRes.forEach(element => {
        if (element.subItems) {
          element.subItems = lodash__WEBPACK_IMPORTED_MODULE_3__.orderBy(element.subItems, ["priority"], ["asc"]);
        }
      });
    }
    return menuRes;
  }
  formatConPermisos(menu) {
    let menuPermisos = [];
    menu.forEach(element => {
      if (!element.permisoId || this.authService.hasPermiso(element.permisoId)) {
        let menuElement = element;
        if (this.hasItems(menuElement)) {
          let submenu = this.formatConPermisos(menuElement.subItems);
          if (submenu.length > 0) {
            menuElement.subItems = submenu;
            menuPermisos.push(menuElement);
          }
        } else {
          menuPermisos.push(menuElement);
        }
      }
    });
    return menuPermisos;
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.subItems !== undefined ? item.subItems.length > 0 : false;
  }
  _activateMenuDropdown() {
    this._removeAllClass("mm-active");
    this._removeAllClass("mm-show");
    const links = document.getElementsByClassName("side-nav-link-ref");
    let menuItemEl = null;
    // tslint:disable-next-line: prefer-for-of
    const paths = [];
    for (let i = 0; i < links.length; i++) {
      paths.push(links[i]["pathname"]);
    }
    var itemIndex = paths.indexOf(window.location.pathname);
    if (itemIndex === -1) {
      const strIndex = window.location.pathname.lastIndexOf("/");
      const item = window.location.pathname.substr(0, strIndex).toString();
      menuItemEl = links[paths.indexOf(item)];
    } else {
      menuItemEl = links[itemIndex];
    }
    if (menuItemEl) {
      menuItemEl.classList.add("active");
      const parentEl = menuItemEl.parentElement;
      if (parentEl) {
        parentEl.classList.add("mm-active");
        const parent2El = parentEl.parentElement.closest("ul");
        if (parent2El && parent2El.id !== "side-menu") {
          parent2El.classList.add("mm-show");
          const parent3El = parent2El.parentElement;
          if (parent3El && parent3El.id !== "side-menu") {
            parent3El.classList.add("mm-active");
            const childAnchor = parent3El.querySelector(".has-arrow");
            const childDropdown = parent3El.querySelector(".has-dropdown");
            if (childAnchor) {
              childAnchor.classList.add("mm-active");
            }
            if (childDropdown) {
              childDropdown.classList.add("mm-active");
            }
            const parent4El = parent3El.parentElement;
            if (parent4El && parent4El.id !== "side-menu") {
              parent4El.classList.add("mm-show");
              const parent5El = parent4El.parentElement;
              if (parent5El && parent5El.id !== "side-menu") {
                parent5El.classList.add("mm-active");
                const childanchor = parent5El.querySelector(".is-parent");
                if (childanchor && parent5El.id !== "side-menu") {
                  childanchor.classList.add("mm-active");
                }
              }
            }
          }
        }
      }
    }
  }
  static #_ = this.ɵfac = function HorizontaltopbarComponent_Factory(t) {
    return new (t || HorizontaltopbarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_12__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_11__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_5__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_core_services_authfake_service__WEBPACK_IMPORTED_MODULE_7__.AuthfakeauthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_core_services_language_service__WEBPACK_IMPORTED_MODULE_8__.LanguageService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_9__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](ngx_cookie_service__WEBPACK_IMPORTED_MODULE_13__.CookieService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: HorizontaltopbarComponent,
    selectors: [["app-horizontaltopbar"]],
    viewQuery: function HorizontaltopbarComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵviewQuery"](_c1, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵloadQuery"]()) && (ctx.scrollRef = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵloadQuery"]()) && (ctx.sideMenu = _t.first);
      }
    },
    inputs: {
      isCondensed: "isCondensed"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵNgOnChangesFeature"]],
    decls: 7,
    vars: 0,
    consts: [[1, "topnav"], [1, "container-fluid"], [1, "navbar", "navbar-light", "navbar-expand-lg", "topnav-menu", "active"], ["id", "topnav-menu-content", 1, "collapse", "navbar-collapse", "active"], [1, "navbar-nav"], ["ngbDropdown", "", 1, "nav-item", "dropdown"], ["class", "nav-link dropdown-toggle arrow-none", "href", "javascript: void(0);", "id", "topnav-components", "role", "button", "ngbDropdownToggle", ""], ["href", "javascript: void(0);", "id", "topnav-components", "role", "button", "ngbDropdownToggle", "", 1, "nav-link", "dropdown-toggle", "arrow-none", 3, "click"], [1, "arrow-down"], ["class", "nav-link dropdown-toggle arrow-none", "href", "javascript: void(0);", "id", "topnav-components", "role", "button", "ngbDropdownToggle", "", 3, "routerLink", 4, "ngIf"], ["class", "nav-link dropdown-toggle arrow-none", "routerLinkActive", "active", "ngbDropdownToggle", "", 3, "routerLink", 4, "ngIf"], ["href", "javascript: void(0);", "id", "topnav-components", "role", "button", "ngbDropdownToggle", "", 1, "nav-link", "dropdown-toggle", "arrow-none", 3, "routerLink"], ["routerLinkActive", "active", "ngbDropdownToggle", "", 1, "nav-link", "dropdown-toggle", "arrow-none", 3, "routerLink"], [3, "class", 4, "ngIf"], ["class", "dropdown-menu", "aria-labelledby", "topnav-dashboard", "ngbDropdownMenu", "", 3, "ngClass"], ["aria-labelledby", "topnav-dashboard", "ngbDropdownMenu", "", 1, "dropdown-menu", 3, "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "col dropdown-item side-nav-link-ref", "routerLinkActive", "active", 3, "routerLink", "routerLinkActiveOptions"], ["class", "dropdown", "ngbDropdown", ""], ["routerLinkActive", "active", 1, "col", "dropdown-item", "side-nav-link-ref", 3, "routerLink", "routerLinkActiveOptions"], ["href", "javascript: void(0);", "routerLinkActive", "active", "ngbDropdownToggle", "", 1, "dropdown-item", "dropdown-toggle", 3, "routerLink", "click"], ["class", "row"], [1, "row"], [1, "col-lg-4"], ["routerLinkActive", "active", 1, "dropdown-item", "side-nav-link-ref", 3, "routerLink"], ["ngbDropdown", "", 1, "dropdown"], ["href", "javascript: void(0);", "ngbDropdownToggle", "", 1, "dropdown-item", "dropdown-toggle", 3, "click"], ["ngbDropdownMenu", "", 1, "dropdown-menu", 3, "ngClass"], ["href", "javascript: void(0);", "routerLinkActive", "active", 1, "dropdown-item", "side-nav-link-ref", 3, "routerLink"], ["aria-labelledby", "topnav-dashboard", 1, "dropdown-menu", 3, "ngClass"]],
    template: function HorizontaltopbarComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "nav", 2)(3, "div", 3)(4, "ul", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrepeaterCreate"](5, HorizontaltopbarComponent_For_6_Template, 5, 2, "ng-container", null, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrepeaterTrackByIndex"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrepeater"](ctx.menuItems);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_11__.RouterLink, _angular_router__WEBPACK_IMPORTED_MODULE_11__.RouterLinkActive, _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, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_15__.TranslatePipe]
  });
}

/***/ }),

/***/ 76151:
/*!************************************************************************************!*\
  !*** ./src/app/layouts/internal-search-engine/internal-search-engine.component.ts ***!
  \************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InternalSearchEngineComponent: () => (/* binding */ InternalSearchEngineComponent)
/* harmony export */ });
/* harmony import */ var _sidebar_menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../sidebar/menu */ 19526);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 96814);









function InternalSearchEngineComponent_div_4_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InternalSearchEngineComponent_div_4_a_1_Template_a_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r4);
      const ruta_r2 = restoredCtx.$implicit;
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r3.navegar(ruta_r2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "p", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "p", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "i", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ruta_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ruta_r2.label);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ruta_r2.path);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ruta_r2.icon + " font-size-24");
  }
}
function InternalSearchEngineComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, InternalSearchEngineComponent_div_4_a_1_Template, 6, 3, "a", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r0.rutasFiltradas);
  }
}
class InternalSearchEngineComponent {
  clickout(event) {
    if (!this.eRef.nativeElement.contains(event.target)) {
      this.mostrar = false;
    }
  }
  constructor(router, translate, fb, eRef, configService, authenticationService) {
    this.router = router;
    this.translate = translate;
    this.fb = fb;
    this.eRef = eRef;
    this.configService = configService;
    this.authenticationService = authenticationService;
    this.mobile = false;
    this.rutasFinales = [];
    this.rutasFiltradas = [];
    this.mostrar = false;
    this.searchForm = this.fb.group({
      busqueda: [""]
    });
  }
  ngOnInit() {
    this.initialize();
  }
  //SP SINWEB se agrego el filtrado por permisos a la busqueda de rutas.
  initialize() {
    const menuFormatModules = this.formatearModulos(_sidebar_menu__WEBPACK_IMPORTED_MODULE_0__.MENU);
    const menuCopy = JSON.stringify(menuFormatModules);
    const menuItemCopy = JSON.parse(menuCopy);
    this.rutasFinales = this.cargarRutas(this.formatConPermisos(menuItemCopy));
  }
  formatearModulos(menu) {
    let i = 0;
    let menuRes = JSON.parse(JSON.stringify(menu));
    //SP SINWEB-328 se agrego el filtrado por permisos a la busqueda de rutas.
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES);
      menuRes.splice(i, 1);
    }
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS);
      menuRes.splice(i, 1);
    }
    //SP SINWEB-257 se agrega nuevo objeto de del menu correspondiente a desarrollo
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO);
      menuRes.splice(i, 1);
    }
    return menuRes;
  }
  formatConPermisos(menu) {
    let menuPermisos = [];
    menu.forEach(element => {
      if (!element.permisoId || this.authenticationService.hasPermiso(element.permisoId)) {
        let menuElement = element;
        if (this.hasItems(menuElement)) {
          let submenu = this.formatConPermisos(menuElement.subItems);
          if (submenu.length > 0) {
            menuElement.subItems = submenu;
            menuPermisos.push(menuElement);
          }
        } else {
          menuPermisos.push(menuElement);
        }
      }
    });
    return menuPermisos;
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.subItems !== undefined ? item.subItems.length > 0 : false;
  }
  cargarRutas(menu, currentPath = []) {
    let rutasAux = [];
    for (let i = 0; i < menu.length; i++) {
      let ruta = menu[i];
      if (!ruta.subItems || ruta.subItems.length === 0) {
        rutasAux.push(this.transformRuta(ruta, currentPath));
      } else {
        let subPaths = this.cargarRutas(ruta.subItems, [...currentPath, ruta.label]);
        rutasAux = rutasAux.concat(subPaths);
      }
    }
    return rutasAux;
  }
  transformRuta(ruta, currentPath) {
    const rutaTransformada = {
      path: ""
    };
    //SP SINWEB se agrego para el caso del prime nivel del menu.
    if (currentPath.length === 0) {
      rutaTransformada.icon = ruta.icon;
      rutaTransformada.path = "";
    } else {
      currentPath.forEach((path, index) => {
        if (index == 0) {
          rutaTransformada.icon = _sidebar_menu__WEBPACK_IMPORTED_MODULE_0__.MENU.find(el => el.label == path).icon;
        }
        this.translate.get(path).toPromise().then(text => {
          rutaTransformada.path = (rutaTransformada.path.length != 0 ? rutaTransformada.path + " - " : rutaTransformada.path) + text;
        });
      });
    }
    this.translate.get(ruta.label).toPromise().then(text => {
      rutaTransformada.label = text;
    });
    rutaTransformada.link = ruta.link;
    return rutaTransformada;
  }
  navegar(event) {
    this.setBusqueda(event.label);
    this.router.navigate([event.link]);
    this.mostrar = false;
  }
  getBusqueda() {
    return this.searchForm.get("busqueda").value;
  }
  setBusqueda(valor) {
    this.searchForm.get("busqueda").setValue(valor);
  }
  setMostrar() {
    this.mostrar = true;
  }
  filtrarRutas() {
    if (this.getBusqueda().trim().length > 2) {
      this.rutasFiltradas = this.rutasFinales.filter(ruta => ruta.label.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/ de | y | o | con | para | por | en /g, " ").trim().replace(/\s+/g, " ").trim().includes(this.getBusqueda().normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/ de | y | o | con | para | por | en /g, " ").replace(/\s+/g, " ").trim()) || ruta.path.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/ de | y | o | con | para | por | en /g, " ").includes(this.getBusqueda().normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/ de | y | o | con | para | por | en /g, " ")));
      this.mostrar = true;
    } else {
      this.rutasFiltradas = [];
      this.mostrar = false;
    }
  }
  limpiar() {
    this.setBusqueda("");
    this.rutasFiltradas = [];
    this.mostrar = false;
  }
  static #_ = this.ɵfac = function InternalSearchEngineComponent_Factory(t) {
    return new (t || InternalSearchEngineComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_2__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
    type: InternalSearchEngineComponent,
    selectors: [["app-internal-search-engine"]],
    hostBindings: function InternalSearchEngineComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InternalSearchEngineComponent_click_HostBindingHandler($event) {
          return ctx.clickout($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresolveDocument"]);
      }
    },
    inputs: {
      mobile: "mobile"
    },
    decls: 6,
    vars: 7,
    consts: [[3, "ngClass"], [1, "position-relative", 3, "formGroup"], ["type", "text", "formControlName", "busqueda", 1, "form-control", 3, "placeholder", "keyup", "click"], ["class", "position-absolute w-100 d-flex flex-column bg-light shadow", 4, "ngIf"], [3, "ngClass", "click"], [1, "position-absolute", "w-100", "d-flex", "flex-column", "bg-light", "shadow"], ["class", "text-muted font-size-14 hover w-100 box-search position-relative", "href", "javascript:void(0)", 3, "click", 4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "text-muted", "font-size-14", "hover", "w-100", "box-search", "position-relative", 3, "click"], [1, "mx-3", "mb-0", "mt-1"], [1, "mx-3", "mb-1", 2, "font-size", "10px"], [2, "position", "absolute", "top", "30%", "right", "3%", 3, "ngClass"]],
    template: function InternalSearchEngineComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "form", 0)(1, "div", 1)(2, "input", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keyup", function InternalSearchEngineComponent_Template_input_keyup_2_listener() {
          return ctx.filtrarRutas();
        })("click", function InternalSearchEngineComponent_Template_input_click_2_listener() {
          return ctx.setMostrar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, InternalSearchEngineComponent_div_4_Template, 2, 1, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "span", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InternalSearchEngineComponent_Template_span_click_5_listener() {
          return ctx.getBusqueda().length > 0 ? ctx.limpiar() : null;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", "app-search " + (ctx.mobile ? "" : "d-none d-lg-block"));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.searchForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("placeholder", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 5, "HEADER.SEARCH"));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.rutasFiltradas.length > 0 && ctx.mostrar);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", "bx " + (ctx.getBusqueda().length > 0 ? "bx-x pointer" : "bx-search-alt"));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgForm, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_6__.TranslatePipe],
    styles: [".app-search[_ngcontent-%COMP%] {\n  width: 400px;\n}\n.app-search[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%] {\n  padding-left: 20px;\n}\n.app-search[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  left: 90%;\n}\n@media (max-width: 991.98px) {\n  .app-search[_ngcontent-%COMP%] {\n    width: 100%;\n    padding-left: 8px;\n    padding-right: 8px;\n  }\n}\n.app-search[_ngcontent-%COMP%]   .box-search[_ngcontent-%COMP%]:hover {\n  background-color: #eff2f7 !important;\n  color: #0070af !important;\n}\n\n\n"]
  });
}

/***/ }),

/***/ 62653:
/*!*********************************************!*\
  !*** ./src/app/layouts/layout.component.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LayoutComponent: () => (/* binding */ LayoutComponent)
/* harmony export */ });
/* harmony import */ var _layouts_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layouts.model */ 45660);
/* 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 _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/services/event.service */ 42608);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./horizontal/horizontal.component */ 52844);
/* harmony import */ var _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./vertical/vertical.component */ 57324);








function LayoutComponent_app_vertical_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "app-vertical");
  }
}
function LayoutComponent_app_horizontal_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "app-horizontal");
  }
}
class LayoutComponent {
  constructor(eventService, sf) {
    this.eventService = eventService;
    this.sf = sf;
  }
  ngOnInit() {
    // default settings
    this.layoutType = this.sf.getState(this.sf.pagenames.MENU_POSICION) === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO ? _layouts_model__WEBPACK_IMPORTED_MODULE_0__.LAYOUT_VERTICAL : _layouts_model__WEBPACK_IMPORTED_MODULE_0__.LAYOUT_HORIZONTAL;
    this.layoutwidth = _layouts_model__WEBPACK_IMPORTED_MODULE_0__.LAYOUT_WIDTH;
    this.topbar = _layouts_model__WEBPACK_IMPORTED_MODULE_0__.TOPBAR;
    // listen to event and change the layout, theme, etc
    this.eventService.subscribe("changeLayout", layout => {
      this.layoutType = layout;
    });
    this.LayoutWidth(this.layoutwidth);
    this.eventService.subscribe("changeWidth", width => {
      this.layoutwidth = width;
      this.LayoutWidth(this.layoutwidth);
    });
  }
  ngAfterViewInit() {}
  LayoutWidth(width) {
    switch (width) {
      case "fluid":
        document.body.setAttribute("data-layout-size", "fluid");
        document.body.classList.remove("vertical-collpsed");
        document.body.removeAttribute("data-layout-scrollable");
        break;
      case "boxed":
        document.body.setAttribute("data-layout-size", "boxed");
        document.body.classList.add("vertical-collpsed");
        document.body.removeAttribute("data-layout-scrollable");
        break;
      case "scrollable":
        document.body.removeAttribute("data-layout-size");
        document.body.setAttribute("data-layout-scrollable", "true");
        document.body.setAttribute("data-layout-size", "fluid");
        document.body.classList.remove("right-bar-enabled", "vertical-collpsed");
      default:
        document.body.setAttribute("data-layout-size", "fluid");
        break;
    }
  }
  /**
   * Check if the vertical layout is requested
   */
  isVerticalLayoutRequested() {
    return this.layoutType === _layouts_model__WEBPACK_IMPORTED_MODULE_0__.LAYOUT_VERTICAL;
  }
  /**
   * Check if the horizontal layout is requested
   */
  isHorizontalLayoutRequested() {
    return this.layoutType === _layouts_model__WEBPACK_IMPORTED_MODULE_0__.LAYOUT_HORIZONTAL;
  }
  static #_ = this.ɵfac = function LayoutComponent_Factory(t) {
    return new (t || LayoutComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_2__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_3__.StatefulService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: LayoutComponent,
    selectors: [["app-layout"]],
    decls: 2,
    vars: 2,
    consts: [[4, "ngIf"]],
    template: function LayoutComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](0, LayoutComponent_app_vertical_0_Template, 1, 0, "app-vertical", 0)(1, LayoutComponent_app_horizontal_1_Template, 1, 0, "app-horizontal", 0);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.isVerticalLayoutRequested());
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.isHorizontalLayoutRequested());
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_4__.HorizontalComponent, _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_5__.VerticalComponent]
  });
}

/***/ }),

/***/ 45660:
/*!******************************************!*\
  !*** ./src/app/layouts/layouts.model.ts ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LAYOUT_HORIZONTAL: () => (/* binding */ LAYOUT_HORIZONTAL),
/* harmony export */   LAYOUT_VERTICAL: () => (/* binding */ LAYOUT_VERTICAL),
/* harmony export */   LAYOUT_WIDTH: () => (/* binding */ LAYOUT_WIDTH),
/* harmony export */   SIDEBAR_TYPE: () => (/* binding */ SIDEBAR_TYPE),
/* harmony export */   THEME_DARK: () => (/* binding */ THEME_DARK),
/* harmony export */   THEME_DARK_PRIMENG: () => (/* binding */ THEME_DARK_PRIMENG),
/* harmony export */   THEME_LIGHT: () => (/* binding */ THEME_LIGHT),
/* harmony export */   THEME_LIGHT_PRIMENG: () => (/* binding */ THEME_LIGHT_PRIMENG),
/* harmony export */   TOPBAR: () => (/* binding */ TOPBAR)
/* harmony export */ });
// export layout related constants
const LAYOUT_VERTICAL = "vertical";
const LAYOUT_HORIZONTAL = "horizontal";
const LAYOUT_WIDTH = "fluid";
const SIDEBAR_TYPE = "icon";
const TOPBAR = "dark";
const THEME_LIGHT = "light";
const THEME_DARK = "dark";
const THEME_LIGHT_PRIMENG = "lara-light-blue";
const THEME_DARK_PRIMENG = "lara-dark-blue";

/***/ }),

/***/ 55922:
/*!*******************************************!*\
  !*** ./src/app/layouts/layouts.module.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LayoutsModule: () => (/* binding */ LayoutsModule)
/* harmony export */ });
/* harmony import */ var _layout_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout.component */ 62653);
/* harmony import */ var _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sidebar/sidebar.component */ 11281);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./topbar/topbar.component */ 25407);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./footer/footer.component */ 67584);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rightsidebar/rightsidebar.component */ 95802);
/* harmony import */ var _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./horizontal/horizontal.component */ 52844);
/* harmony import */ var _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./vertical/vertical.component */ 57324);
/* harmony import */ var _horizontaltopbar_horizontaltopbar_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./horizontaltopbar/horizontaltopbar.component */ 77636);
/* harmony import */ var _core_services_language_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/services/language.service */ 62948);
/* harmony import */ var _internal_search_engine_internal_search_engine_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./internal-search-engine/internal-search-engine.component */ 76151);
/* harmony import */ var _topbar_select_accesos_select_accesos_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./topbar/select-accesos/select-accesos.component */ 23970);
/* harmony import */ var _topbar_previa_notificacion_previa_notificacion_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./topbar/previa-notificacion/previa-notificacion.component */ 24798);
/* harmony import */ var ng_click_outside__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ng-click-outside */ 85321);
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../shared/shared.module */ 56208);
/* harmony import */ var _sidemenu_sidemenu_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./sidemenu/sidemenu.component */ 1317);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/core */ 65879);
















class LayoutsModule {
  static #_ = this.ɵfac = function LayoutsModule_Factory(t) {
    return new (t || LayoutsModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineNgModule"]({
    type: LayoutsModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵdefineInjector"]({
    providers: [_core_services_language_service__WEBPACK_IMPORTED_MODULE_8__.LanguageService],
    imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_13__.SharedModule, ng_click_outside__WEBPACK_IMPORTED_MODULE_12__.ClickOutsideModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_15__["ɵɵsetNgModuleScope"](LayoutsModule, {
    declarations: [_layout_component__WEBPACK_IMPORTED_MODULE_0__.LayoutComponent, _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_1__.SidebarComponent, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_2__.TopbarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_3__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_4__.RightsidebarComponent, _horizontal_horizontal_component__WEBPACK_IMPORTED_MODULE_5__.HorizontalComponent, _vertical_vertical_component__WEBPACK_IMPORTED_MODULE_6__.VerticalComponent, _horizontaltopbar_horizontaltopbar_component__WEBPACK_IMPORTED_MODULE_7__.HorizontaltopbarComponent, _internal_search_engine_internal_search_engine_component__WEBPACK_IMPORTED_MODULE_9__.InternalSearchEngineComponent, _topbar_select_accesos_select_accesos_component__WEBPACK_IMPORTED_MODULE_10__.SelectAccesosComponent, _topbar_previa_notificacion_previa_notificacion_component__WEBPACK_IMPORTED_MODULE_11__.PreviaNotificacionComponent, _sidemenu_sidemenu_component__WEBPACK_IMPORTED_MODULE_14__.SidemenuComponent],
    imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_13__.SharedModule, ng_click_outside__WEBPACK_IMPORTED_MODULE_12__.ClickOutsideModule]
  });
})();

/***/ }),

/***/ 95802:
/*!****************************************************************!*\
  !*** ./src/app/layouts/rightsidebar/rightsidebar.component.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   RightsidebarComponent: () => (/* binding */ RightsidebarComponent)
/* harmony export */ });
/* harmony import */ var _layouts_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../layouts.model */ 45660);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../core/services/event.service */ 42608);
/* harmony import */ var src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionHistorial.service */ 97504);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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 simplebar_angular__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! simplebar-angular */ 63744);
/* harmony import */ var _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../shared/ui/pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../shared/ui/pagination/pagination.component */ 74813);
/* harmony import */ var ng_click_outside__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ng-click-outside */ 85321);














function RightsidebarComponent_ng_container_0_ng_container_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 15)(2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "No se encuentran notificaciones para mostrar.");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
}
function RightsidebarComponent_ng_container_0_ng_container_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
}
function RightsidebarComponent_ng_container_0_ng_container_21_a_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
const _c0 = a0 => ({
  "reset-cursor-style": a0
});
function RightsidebarComponent_ng_container_0_ng_container_21_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function RightsidebarComponent_ng_container_0_ng_container_21_a_1_Template_a_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r8);
      const notif_r5 = restoredCtx.$implicit;
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r7.marcarComoLeida(notif_r5.Id, notif_r5.Estado));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, RightsidebarComponent_ng_container_0_ng_container_21_a_1_div_2_Template, 2, 0, "div", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 26)(4, "h6", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "div", 28)(7, "p", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "p", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](10, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const notif_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](5, _c0, notif_r5.Estado === "L"));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", notif_r5.Estado === "N");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](notif_r5.Observacion.titulo || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](notif_r5.Observacion.mensaje || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", notif_r5.FechaNotificado || notif_r5.FechaNotificacion, " ");
  }
}
function RightsidebarComponent_ng_container_0_ng_container_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, RightsidebarComponent_ng_container_0_ng_container_21_a_1_Template, 12, 7, "a", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "div", 19)(3, "div", 20)(4, "app-page-info", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valueSelect", function RightsidebarComponent_ng_container_0_ng_container_21_Template_app_page_info_valueSelect_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r9.setPage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "div", 20)(6, "app-pagination", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("pageChanges", function RightsidebarComponent_ng_container_0_ng_container_21_Template_app_pagination_pageChanges_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r10);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r11.pageChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r3.Notificaciones);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("page", ctx_r3.page)("totalItems", ctx_r3.totalItems)("items", ctx_r3.pageOptions)("valueSelected", ctx_r3.cant_search);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("currentPage", ctx_r3.page)("limit", ctx_r3.cant_search)("total", ctx_r3.totalItems);
  }
}
function RightsidebarComponent_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "div", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("clickOutside", function RightsidebarComponent_ng_container_0_Template_div_clickOutside_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r12.hide(false));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "ngx-simplebar", 2)(3, "div", 3)(4, "a", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function RightsidebarComponent_ng_container_0_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r13);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r14.hide(false));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](5, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "h5", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7, "Notificaciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "hr");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "div", 7)(10, "div", 8)(11, "select", 9)(12, "option", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](13, "Todas");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](14, "option", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](15, "Le\u00EDdas");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](16, "option", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](17, "No le\u00EDdas");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](18, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](19, RightsidebarComponent_ng_container_0_ng_container_19_Template, 4, 0, "ng-container", 0)(20, RightsidebarComponent_ng_container_0_ng_container_20_Template, 3, 0, "ng-container", 0)(21, RightsidebarComponent_ng_container_0_ng_container_21_Template, 7, 8, "ng-container", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](22, "div", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
  }
  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"]("exclude", ".right-bar-toggle");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx_r0.filterForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.Notificaciones !== undefined && ctx_r0.Notificaciones.length == 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.Notificaciones == undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.Notificaciones !== undefined && ctx_r0.Notificaciones.length > 0);
  }
}
/**
 * Rightsidebar component
 */
class RightsidebarComponent {
  constructor(eventService, notifHistService, authService, fb, configGralService) {
    this.eventService = eventService;
    this.notifHistService = notifHistService;
    this.authService = authService;
    this.fb = fb;
    this.configGralService = configGralService;
    this.isVisible = this.configGralService._config.NotifRealtime === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.VERDADERO;
    this.page = 1;
    this.totalItems = 0;
    this.cant_search = 5;
    this.pageOptions = [5, 10, 15, 20];
    this.markedAtLeastOneAsRead = false;
    this.subscriptions = [];
    this.filterForm = this.fb.group({
      estado: ["N,L"]
    });
  }
  ngOnInit() {
    this.subscriptions.push(this.notifHistService.refreshListado.subscribe(v => {
      if (v && !this.markedAtLeastOneAsRead) {
        this.loadPage();
      }
    }));
    this.subscriptions.push(this.filterForm.controls.estado.valueChanges.subscribe(estado => {
      this.page = 1;
      this.loadPage();
    }));
    this.width = _layouts_model__WEBPACK_IMPORTED_MODULE_0__.LAYOUT_WIDTH;
    this.sidebartype = _layouts_model__WEBPACK_IMPORTED_MODULE_0__.SIDEBAR_TYPE;
    this.topbar = _layouts_model__WEBPACK_IMPORTED_MODULE_0__.TOPBAR;
    /**
     * horizontal-vertical layput set
     */
    this.attribute = document.body.getAttribute("data-layout");
    const vertical = document.getElementById("is-layout");
    if (vertical != null) {
      vertical.setAttribute("checked", "true");
    }
    if (this.attribute == "horizontal" && vertical != null) {
      vertical.removeAttribute("checked");
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  /**
   * Hide the sidebar
   */
  hide(triggerRefresh) {
    document.body.classList.remove("right-bar-enabled");
    // MC SINWEB-384 Decide si refrescar el listado de notificaciones
    // (se agregó el parámetro también)
    this.notifHistService.refreshListado.next(triggerRefresh || this.markedAtLeastOneAsRead);
    this.markedAtLeastOneAsRead = false;
  }
  /**
   * Change Topbar
   */
  changeTopbar(topbar) {
    this.topbar = topbar;
    this.eventService.broadcast("changeTopbar", topbar);
  }
  /**
   * Change the layout onclick
   * @param layout Change the layout
   */
  changeLayout(layout) {
    if (layout.target.checked == true) this.eventService.broadcast("changeLayout", "vertical");else this.eventService.broadcast("changeLayout", "horizontal");
  }
  changeWidth(width) {
    this.width = width;
    this.eventService.broadcast("changeWidth", width);
  }
  changeSidebartype(sidebar) {
    this.sidebartype = sidebar;
    this.eventService.broadcast("changeSidebartype", sidebar);
  }
  cargarFiltros(page) {
    const params = {};
    params.PageNumber = page;
    params.PageSize = this.cant_search;
    params.Orden = 7;
    params.SentidoOrden = "desc";
    params.Estados = this.filterForm.controls.estado.value;
    params.IdsNotifCanales = src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.CANAL_SOCKET;
    params.IdsReceptoresConTipos = `[${this.authService.usuario.IdUsrUsuario}|${src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_1__.TIPO_RECEPTOR_USUARIO_SINERGIAL}]`;
    return params;
  }
  /**
   * MC SINWEB-384 Método para obtener el historial de notificaciones
   * del menú desplegable
   */
  cargarHistorial(params) {
    this.subscriptions.push(this.notifHistService.getNotificacionesHistorial(params).subscribe(notifs => {
      if (notifs.Succeeded) {
        this.Notificaciones = notifs.Data;
        this.totalItems = notifs.TotalRecords;
      }
    }));
  }
  loadPage() {
    this.cargarHistorial(this.cargarFiltros(this.page));
  }
  /**
   * MC SINWEB-384 Método para marcar una notificación como leída
   */
  marcarComoLeida(idNotif, estado) {
    if (estado === "L") return;
    const body = [{
      op: "replace",
      path: "/Estado",
      value: "L"
    }];
    this.subscriptions.push(this.notifHistService.patchNotificacionHistorial(idNotif, body).subscribe(resp => {
      if (resp.Succeeded) {
        this.loadPage();
        this.markedAtLeastOneAsRead = true;
      }
    }));
  }
  pageChange(event) {
    this.page = event;
    this.loadPage();
  }
  setPage(event) {
    this.page = 1;
    this.cant_search = event;
    this.loadPage();
  }
  static #_ = this.ɵfac = function RightsidebarComponent_Factory(t) {
    return new (t || RightsidebarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_3__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_4__.NotificacionHistorialServices), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _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_configGeneral_service__WEBPACK_IMPORTED_MODULE_6__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: RightsidebarComponent,
    selectors: [["app-rightsidebar"]],
    decls: 1,
    vars: 1,
    consts: [[4, "ngIf"], [1, "right-bar", 3, "exclude", "clickOutside"], [1, "h-100"], [1, "rightbar-title", "px-3", "py-4"], ["href", "javascript:void(0);", 1, "right-bar-toggle", "float-end", 3, "click"], [1, "mdi", "mdi-close", "noti-icon"], [1, "m-0"], [1, "row"], [1, "col-md-12", 3, "formGroup"], ["formControlName", "estado", 1, "form-control"], ["value", "N,L", "selected", ""], ["value", "L", "selected", ""], ["value", "N", "selected", ""], [1, "col-md-12", "pt-3"], [1, "rightbar-overlay"], [1, "text-center", "p-5"], [1, "text-center", "mt-4"], [1, "spinner-border", "text-dark"], ["href", "javascript: void(0);", "class", "text-reset notification-item", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "row", "justify-content-center", "align-items-center", "pt-4", "gap-2"], [1, "col-12", "d-flex", "justify-content-center"], [3, "page", "totalItems", "items", "valueSelected", "valueSelect"], [3, "currentPage", "limit", "total", "pageChanges"], ["href", "javascript: void(0);", 1, "text-reset", "notification-item", 3, "ngClass", "click"], [1, "d-flex", "border-top"], ["class", "d-flex justify-content-center align-items-center text-info ps-0", 4, "ngIf"], [1, "flex-grow-1"], [1, "mb-1"], [1, "font-size-12", "text-muted", "text-wrap"], [1, "mb-0"], [1, "mdi", "mdi-clock-outline"], [1, "d-flex", "justify-content-center", "align-items-center", "text-info", "ps-0"], [1, "bx", "bxs-circle"]],
    template: function RightsidebarComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](0, RightsidebarComponent_ng_container_0_Template, 23, 5, "ng-container", 0);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.isVisible);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_12__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_12__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName, simplebar_angular__WEBPACK_IMPORTED_MODULE_13__.SimplebarAngularComponent, _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_7__.PageInfoComponent, _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_8__.PaginationComponent, ng_click_outside__WEBPACK_IMPORTED_MODULE_9__.ClickOutsideDirective],
    styles: [".reset-cursor-style[_ngcontent-%COMP%] {\n  cursor: default !important;\n}"]
  });
}

/***/ }),

/***/ 19526:
/*!*****************************************!*\
  !*** ./src/app/layouts/sidebar/menu.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MENU: () => (/* binding */ MENU)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-autorizacion */ 92558);
/* harmony import */ var src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-produccion */ 59896);
/* 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_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-web */ 73487);
/* harmony import */ var src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-general */ 15372);
/* harmony import */ var src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-servicios */ 52788);
/* harmony import */ var src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-estadistica */ 48214);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);








const MENU = [{
  id: 0,
  label: "MENUITEMS.HOME.TEXT",
  icon: "bx bx-home-circle",
  subItems: [{
    id: 151,
    label: "MENUITEMS.HOME.LIST.HOME",
    link: "/dashboards/inicio",
    parentId: 0,
    Priority: 0
  }, {
    id: 152,
    label: "MENUITEMS.HOME.LIST.ITEMS",
    link: "/dashboards/articulos",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ARTICULOS,
    Priority: 1
  }, {
    id: 153,
    label: "MENUITEMS.HOME.LIST.ATRIBUTES",
    link: "/dashboards/atributos",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ATRIBUTOS_ART,
    Priority: 2
  },
  //Notas de pedido
  {
    id: 154,
    label: "MENUITEMS.HOME.LIST.ATRIBUTOS_RUBROS",
    link: "/dashboards/atributos-rubros",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ATRIBUTOS_RUBROS,
    Priority: 3
  }, {
    id: 155,
    label: "MENUITEMS.HOME.LIST.ORDER_NOTES",
    link: "/dashboards/notas-de-pedido",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_7__.PERMISO_LIS_COMPROBANTE,
    Priority: 4
  }]
},
// {
//     id: 2,
//     label: 'MENUITEMS.MODULES.TEXT',
//     isTitle: true
// },
// Rango de Ids para los items del módulo Autorización: 100 - 199
{
  id: 100,
  label: "MENUITEMS.AUTHORIZATION.TEXT",
  icon: "bx bx-lock-open",
  subItems: [{
    id: 101,
    label: "MENUITEMS.AUTHORIZATION.LIST.HOME",
    parentId: 100,
    link: "/autorizacion/inicio",
    priority: 0
  }, {
    id: 104,
    label: "MENUITEMS.AUTHORIZATION.LIST.AUTHORIZE",
    link: "/autorizacion/autorizar-comprobantes",
    parentId: 100,
    permisoId: src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__.PERMISO_LIS_AUT_COMP,
    priority: 1
  }, {
    id: 102,
    label: "MENUITEMS.AUTHORIZATION.LIST.CONFIGURATION",
    link: "/autorizacion/config-comprobantes",
    parentId: 100,
    permisoId: src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__.PERMISO_LIS_CONFIG_AUT,
    priority: 3
  }, {
    id: 103,
    label: "MENUITEMS.AUTHORIZATION.LIST.RESPONSIBLE",
    link: "/autorizacion/responsables-comprobantes",
    parentId: 100,
    permisoId: src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__.PERMISO_LIS_RESP_AUT,
    priority: 2
  }]
}, {
  id: 400,
  label: "MENUITEMS.STATISTICS.TEXT",
  icon: "bx bx-line-chart",
  subItems: [{
    id: 401,
    label: "MENUITEMS.STATISTICS.LIST.HOME",
    link: "/estadistica/inicio",
    parentId: 400,
    permisoId: src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_COLECCION,
    priority: 0
  }, {
    id: 402,
    label: "MENUITEMS.STATISTICS.LIST.COLLECTIONS",
    link: "/estadistica/colecciones",
    permisoId: src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_COLECCION,
    parentId: 400,
    priority: 1
  }, {
    id: 403,
    label: "MENUITEMS.STATISTICS.LIST.WIDGETS",
    link: "/estadistica/widgets",
    parentId: 400,
    permisoId: src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_INDICADORES,
    priority: 2
  }]
}, {
  id: 500,
  label: "MENUITEMS.NOTIFICATIONS.TEXT",
  icon: "bx bx-bell",
  subItems: [{
    id: 501,
    label: "MENUITEMS.NOTIFICATIONS.LIST.HOME",
    link: "/notificaciones/inicio",
    parentId: 500,
    priority: 0
  }, {
    id: 503,
    label: "MENUITEMS.NOTIFICATIONS.LIST.CONFIG_NOTIF",
    link: "/notificaciones/configNotif",
    parentId: 500,
    priority: 2
  }, {
    id: 502,
    label: "MENUITEMS.NOTIFICATIONS.LIST.CONFIG_NOTIF_RECEIVER",
    link: "/notificaciones/configNotifReceptor",
    parentId: 500,
    priority: 3
  }, {
    id: 504,
    label: "MENUITEMS.NOTIFICATIONS.LIST.LIST_NOTIF",
    link: "/notificaciones/listadoNotificaciones",
    parentId: 500,
    priority: 1
  }]
}, {
  id: 600,
  label: "MENUITEMS.PLATFORMS.TEXT",
  icon: "bx bx-dollar-circle",
  subItems: [{
    id: 601,
    label: "MENUITEMS.PLATFORMS.LIST.HOME",
    link: "/plataformas/inicio",
    parentId: 600,
    priority: 0
  }, {
    id: 610,
    label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.TEXT",
    parentId: 600,
    priority: 2,
    subItems: [{
      id: 611,
      label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.LIST_CHECKOUT",
      link: "/plataformas/mercadopago/cajas",
      parentId: 610
    }, {
      id: 612,
      label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.LIST_USER_CONFIG",
      link: "/plataformas/mercadopago/config-usuarios",
      parentId: 610
    }, {
      id: 613,
      label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.LIST_POINTS_OF_SALE",
      link: "/plataformas/mercadopago/sucursales",
      parentId: 610
    }]
  }, {
    id: 602,
    label: "MENUITEMS.PLATFORMS.LIST.LIST_PLATFORMS",
    link: "/plataformas/listado",
    parentId: 600,
    priority: 1
  }]
}, {
  id: 1,
  label: "MENUITEMS.PRODUCTION.TEXT",
  icon: "bx bx-wrench",
  subItems: [{
    id: 2,
    label: "MENUITEMS.PRODUCTION.LIST.HOME",
    link: "/produccion/inicio",
    parentId: 1,
    priority: 0
  }, {
    id: 3,
    label: "MENUITEMS.PRODUCTION.LIST.ITEMS",
    link: "/produccion/articulos-produccion",
    parentId: 1,
    priority: 2,
    subItems: [{
      id: 4,
      label: "MENUITEMS.PRODUCTION.LIST.ITEMS",
      link: "/produccion/articulos-produccion",
      parentId: 3,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_ART
    }, {
      id: 5,
      label: "MENUITEMS.PRODUCTION.LIST.TERCERIZADOS",
      link: "/produccion/articulos-tercerizados",
      parentId: 3,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TERC
    }]
  }, {
    id: 6,
    label: "MENUITEMS.PRODUCTION.LIST.MACHINE",
    parentId: 1,
    priority: 5,
    subItems: [{
      id: 7,
      label: "MENUITEMS.PRODUCTION.LIST.MACHINE",
      link: "/produccion/maquina",
      parentId: 6,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_MAQ
    }, {
      id: 8,
      label: "MENUITEMS.PRODUCTION.LIST.MACHINE_TYPE",
      link: "/produccion/tipos-maquina",
      parentId: 6,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TIPO_MAQ
    }]
  }, {
    id: 9,
    label: "MENUITEMS.PRODUCTION.LIST.OPERATION",
    link: "/produccion/operacion",
    parentId: 1,
    priority: 4,
    permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_OPER
  }, {
    id: 10,
    label: "MENUITEMS.PRODUCTION.LIST.PRODUCTION_ORDER.TEXT",
    link: "/produccion/ordenProduccion",
    permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_OPN_OPER,
    parentId: 1,
    priority: 1
  }, {
    id: 14,
    label: "MENUITEMS.PRODUCTION.LIST.TIMES",
    link: "/produccion/tiempos",
    parentId: 1,
    permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TIMES,
    priority: 3
  }]
},
/**
 * SP SINWEB-151 se agrega nuevo objeto de del menu correspondiente a rma
 */
{
  id: 50,
  label: "MENUITEMS.RMA.TEXT",
  icon: "mdi mdi-certificate-outline",
  subItems: [{
    id: 51,
    label: "MENUITEMS.RMA.LIST.HOME",
    link: "/rma/inicio",
    parentId: 50,
    priority: 0
  }, {
    id: 52,
    label: "MENUITEMS.RMA.LIST.SETTINGS",
    parentId: 50,
    priority: 2,
    subItems: [{
      id: 53,
      label: "MENUITEMS.RMA.LIST.ATTRIBUTE",
      link: "/rma/atributos",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_ATRIBUTO
    }, {
      id: 54,
      label: "MENUITEMS.RMA.LIST.DEFECT",
      link: "/rma/defectos",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_DEFECTOS
    }, {
      id: 55,
      label: "MENUITEMS.RMA.LIST.RESOLUTION",
      link: "/rma/resolucion",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_RESOLUCION
    }, {
      id: 56,
      label: "MENUITEMS.RMA.LIST.DEFECT_TYPE",
      link: "/rma/tipos-defecto",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_TIPO_DEFECTOS
    }]
  }, {
    id: 57,
    label: "MENUITEMS.RMA.LIST.FOLLOW_UP",
    link: "/rma/seguimiento",
    parentId: 50,
    permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_RECLAMOS,
    priority: 1
  }]
}, {
  id: 300,
  label: "MENUITEMS.SERVICES.TEXT",
  icon: "bx bx-briefcase-alt-2",
  subItems: [{
    id: 301,
    label: "MENUITEMS.SERVICES.LIST.HOME",
    parentId: 300,
    link: "/servicios/inicio",
    priority: 0
  }, {
    id: 302,
    label: "MENUITEMS.SERVICES.LIST.FACTMASIVA",
    parentId: 300,
    link: "/servicios/facturacion-masiva",
    permisoId: src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_FACT_MASIVA,
    priority: 1
  }, {
    id: 303,
    label: "MENUITEMS.SERVICES.LIST.BILLINGLOTS",
    parentId: 300,
    link: "/servicios/lotes-facturacion",
    permisoId: src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_LOTE_FACTURACION,
    priority: 2
  },
  // {
  //     id:304,
  //     label: 'MENUITEMS.SERVICES.LIST.MOVEMENTS',
  //     parentId: 300,
  //     link: '/servicios/movimientos',
  //     permisoId: PERMISOSSERVICE.PERMISO_LIS_MOVIMIENTOS
  // },
  {
    id: 305,
    label: "MENUITEMS.SERVICES.LIST.SRV_CONTRATADOS",
    parentId: 300,
    link: "/servicios/serviciosContratados",
    permisoId: src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_SRV_CONTRATADOS,
    priority: 3
  }]
},
/**
 * PM SINWEB-223 se agrega nuevo objeto de del menu correspondiente a web
 */
{
  id: 200,
  label: "MENUITEMS.WEB.TEXT",
  icon: "bx bx bx-cloud",
  subItems: [{
    id: 201,
    label: "MENUITEMS.WEB.LIST.HOME",
    parentId: 200,
    link: "/web/inicio",
    priority: 0
  },
  /**
   * SP SINWEB-221 se agrega nuevo objeto de del menu correspondiente a web/familias-web
   */
  {
    id: 204,
    label: "MENUITEMS.WEB.LIST.WEB_PUBLIC_ITEMS",
    parentId: 200,
    link: "/web/articulos-publicados",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_PUBLIC_ART_PLAT,
    priority: 2
  }, {
    id: 202,
    label: "MENUITEMS.WEB.LIST.WEB_FAMILIES",
    parentId: 200,
    link: "/web/familias-web",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_FAMILIA_WEB,
    priority: 4
  }, {
    id: 205,
    label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.TEXT",
    parentId: 200,
    priority: 5,
    subItems: [{
      id: 209,
      label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.PUBLIC_ITEMS",
      link: "/web/ml-articulos-publicados",
      parentId: 205
    }, {
      id: 206,
      label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.USER",
      link: "/web/ml-configuracion-usuario",
      parentId: 205
    }, {
      id: 207,
      label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.UPDATE_LOG",
      link: "/web/ml-registro-actualizaciones",
      parentId: 205
    }]
  }, {
    id: 203,
    label: "MENUITEMS.WEB.LIST.WEB_PLATFORMS",
    parentId: 200,
    link: "/web/plataformas-web",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_PLATAFORMA_WEB,
    priority: 1
  }, {
    id: 208,
    label: "MENUITEMS.WEB.LIST.WEB_USERS",
    parentId: 200,
    link: "/web/usuario-web",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_USUARIO_WEB,
    priority: 3
  }]
}, {
  id: 997,
  label: "MENUITEMS.DEV.TEXT",
  icon: "bx bx-joystick",
  subItems: [{
    id: 998,
    label: "MENUITEMS.DEV.LIST.HOME",
    parentId: 997,
    link: "/desarrollo/inicio",
    priority: 0
  }]
}, {
  id: 999,
  label: "MENUITEMS.MODULOS_ADICIONALES.TEXT",
  icon: "bx bx bx-star bx-tada",
  link: "dashboards/modulo-adicional"
}];

/***/ }),

/***/ 11281:
/*!******************************************************!*\
  !*** ./src/app/layouts/sidebar/sidebar.component.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SidebarComponent: () => (/* binding */ SidebarComponent)
/* harmony export */ });
/* harmony import */ var metismenujs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! metismenujs */ 49420);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./menu */ 19526);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../core/services/event.service */ 42608);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! simplebar-angular */ 63744);














const _c0 = ["componentRef"];
const _c1 = ["sideMenu"];
function SidebarComponent_ng_template_0_ng_container_3_li_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 1, item_r7.label), " ");
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_a_1_i_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("bx ", item_r7.icon, "");
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_a_1_span_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("badge rounded-pill float-end bg-", item_r7.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, item_r7.badge.text));
  }
}
const _c2 = (a0, a1) => ({
  "has-arrow": a0,
  "has-dropdown": a1
});
function SidebarComponent_ng_template_0_ng_container_3_li_2_a_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_2_a_1_i_1_Template, 1, 3, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SidebarComponent_ng_template_0_ng_container_3_li_2_a_1_span_5_Template, 3, 6, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](6, _c2, !item_r7.badge, item_r7.badge));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", item_r7.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 4, item_r7.label), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", item_r7.badge);
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_a_2_i_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("bx ", item_r7.icon, "");
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_a_2_span_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("badge rounded-pill bg-", item_r7.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, item_r7.badge.text));
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_a_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_2_a_2_i_1_Template, 1, 3, "i", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SidebarComponent_ng_template_0_ng_container_3_li_2_a_2_span_5_Template, 3, 6, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("routerLink", item_r7.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", item_r7.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 4, item_r7.label), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", item_r7.badge);
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_a_1_span_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("badge rounded-pill bg-", subitem_r25.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, subitem_r25.badge.text));
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_a_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_a_1_span_3_Template, 3, 6, "span", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("routerLink", subitem_r25.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵattribute"]("data-parent", subitem_r25.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, subitem_r25.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", subitem_r25.badge);
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_a_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵattribute"]("data-parent", subitem_r25.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 2, subitem_r25.label), " ");
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_ul_3_li_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li")(1, "a", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r34 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("routerLink", subSubitem_r34.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵattribute"]("data-parent", subSubitem_r34.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](3, 3, subSubitem_r34.label), " ");
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_ul_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "ul", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_ul_3_li_1_Template, 4, 5, "li", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", subitem_r25.subItems);
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_a_1_Template, 4, 6, "a", 12)(2, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_a_2_Template, 3, 4, "a", 18)(3, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_ul_3_Template, 2, 1, "ul", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = ctx.$implicit;
    const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx_r24.hasItems(subitem_r25));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r24.hasItems(subitem_r25));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r24.hasItems(subitem_r25));
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "ul", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_li_1_Template, 4, 3, "li", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", item_r7.subItems);
  }
}
function SidebarComponent_ng_template_0_ng_container_3_li_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_2_a_1_Template, 6, 9, "a", 11)(2, SidebarComponent_ng_template_0_ng_container_3_li_2_a_2_Template, 6, 6, "a", 12)(3, SidebarComponent_ng_template_0_ng_container_3_li_2_ul_3_Template, 2, 1, "ul", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r9.hasItems(item_r7));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx_r9.hasItems(item_r7));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r9.hasItems(item_r7));
  }
}
function SidebarComponent_ng_template_0_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_ng_template_0_ng_container_3_li_1_Template, 3, 3, "li", 9)(2, SidebarComponent_ng_template_0_ng_container_3_li_2_Template, 4, 3, "li", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", item_r7.isTitle);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !item_r7.isTitle && !item_r7.isLayout);
  }
}
function SidebarComponent_ng_template_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 5)(1, "ul", 6, 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, SidebarComponent_ng_template_0_ng_container_3_Template, 3, 2, "ng-container", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r0.menuItems);
  }
}
function SidebarComponent_div_5_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainer"](0);
  }
}
function SidebarComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_div_5_ng_container_1_Template, 1, 0, "ng-container", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngTemplateOutlet", _r1);
  }
}
function SidebarComponent_div_6_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainer"](0);
  }
}
function SidebarComponent_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidebarComponent_div_6_ng_container_1_Template, 1, 0, "ng-container", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngTemplateOutlet", _r1);
  }
}
/**
 * Sidebar component
 */
class SidebarComponent {
  constructor(eventService, router, translate, http, authenticationService, sf) {
    this.eventService = eventService;
    this.router = router;
    this.translate = translate;
    this.http = http;
    this.authenticationService = authenticationService;
    this.sf = sf;
    this.isCondensed = false;
    this.menuItems = [];
    router.events.forEach(event => {
      if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_8__.NavigationEnd) {
        this._activateMenuDropdown();
        this._scrollElement();
      }
    });
  }
  ngOnInit() {
    this.initialize();
    this._scrollElement();
  }
  ngAfterViewInit() {
    this.menu = new metismenujs__WEBPACK_IMPORTED_MODULE_0__["default"](this.sideMenu.nativeElement);
    this._activateMenuDropdown();
  }
  toggleMenu(event) {
    event.currentTarget.nextElementSibling.classList.toggle("mm-show");
  }
  ngOnChanges() {
    if (!this.isCondensed && this.sideMenu || this.isCondensed) {
      setTimeout(() => {
        this.menu = new metismenujs__WEBPACK_IMPORTED_MODULE_0__["default"](this.sideMenu.nativeElement);
      });
    } else if (this.menu) {
      this.menu.dispose();
    }
  }
  _scrollElement() {
    setTimeout(() => {
      if (document.getElementsByClassName("mm-active").length > 0) {
        const currentPosition = document.getElementsByClassName("mm-active")[0]["offsetTop"];
        if (currentPosition > 500) if (this.scrollRef.SimpleBar !== null) this.scrollRef.SimpleBar.getScrollElement().scrollTop = currentPosition + 300;
      }
    }, 300);
  }
  /**
   * remove active and mm-active class
   */
  _removeAllClass(className) {
    const els = document.getElementsByClassName(className);
    while (els[0]) {
      els[0].classList.remove(className);
    }
  }
  /**
   * Activate the parent dropdown
   */
  _activateMenuDropdown() {
    this._removeAllClass("mm-active");
    this._removeAllClass("mm-show");
    const links = document.getElementsByClassName("side-nav-link-ref");
    let menuItemEl = null;
    // tslint:disable-next-line: prefer-for-of
    const paths = [];
    for (let i = 0; i < links.length; i++) {
      paths.push(links[i]["pathname"]);
    }
    var itemIndex = paths.indexOf(window.location.pathname);
    if (itemIndex === -1) {
      const strIndex = window.location.pathname.lastIndexOf("/");
      const item = window.location.pathname.substr(0, strIndex).toString();
      menuItemEl = links[paths.indexOf(item)];
    } else {
      menuItemEl = links[itemIndex];
    }
    if (menuItemEl && itemIndex !== 0) {
      menuItemEl.classList.add("active");
      const parentEl = menuItemEl.parentElement;
      if (parentEl) {
        parentEl.classList.add("mm-active");
        const parent2El = parentEl.parentElement.closest("ul");
        if (parent2El && parent2El.id !== "side-menu") {
          parent2El.classList.add("mm-show");
          const parent3El = parent2El.parentElement;
          if (parent3El && parent3El.id !== "side-menu") {
            parent3El.classList.add("mm-active");
            const childAnchor = parent3El.querySelector(".has-arrow");
            const childDropdown = parent3El.querySelector(".has-dropdown");
            if (childAnchor) {
              childAnchor.classList.add("mm-active");
            }
            if (childDropdown) {
              childDropdown.classList.add("mm-active");
            }
            const parent4El = parent3El.parentElement;
            if (parent4El && parent4El.id !== "side-menu") {
              parent4El.classList.add("mm-show");
              const parent5El = parent4El.parentElement;
              if (parent5El && parent5El.id !== "side-menu") {
                parent5El.classList.add("mm-active");
                const childanchor = parent5El.querySelector(".is-parent");
                if (childanchor && parent5El.id !== "side-menu") {
                  childanchor.classList.add("mm-active");
                }
              }
            }
          }
        }
      }
    }
  }
  /**
   * Initialize
   */
  initialize() {
    const menuFormatModules = this.formatearModulos(_menu__WEBPACK_IMPORTED_MODULE_1__.MENU);
    const menuCopy = JSON.stringify(menuFormatModules);
    const menuItemCopy = JSON.parse(menuCopy);
    this.menuItems = this.formatConPermisos(menuItemCopy);
  }
  formatearModulos(menu) {
    let i = 0;
    let menuRes = JSON.parse(JSON.stringify(menu));
    let hayInactivos = false;
    //Modulo Estadistica
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_ESTADISTICA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_ESTADISTICA);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Produccion
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_PRODUCCION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_PRODUCCION);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Autorizacion
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_AUTORIZACION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_AUTORIZACION);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo RMA
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_RMA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_RMA);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Web
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_WEB)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_WEB);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Servicios
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_SERVICIOS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_SERVICIOS);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Notificaciones
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_NOTIFICACIONES)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_NOTIFICACIONES);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Plataformas de pago
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_PLATAFORMAS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_PLATAFORMAS);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //SP SINWEB-257 se agrega nuevo objeto de del menu correspondiente a desarrollo
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_DESARROLLO)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_DESARROLLO);
      menuRes.splice(i, 1);
    }
    //Menu inactivos
    if (!hayInactivos) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.MENU_ID_MODULO_INACTIVOS);
      menuRes.splice(i, 1);
    }
    if (this.sf.getState(this.sf.pagenames.MENU_ORDEN) === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_3__.VERDADERO) {
      //Ordenar subItems
      menuRes.forEach(element => {
        if (element.subItems) {
          element.subItems = lodash__WEBPACK_IMPORTED_MODULE_2__.orderBy(element.subItems, ["priority"], ["asc"]);
        }
      });
    }
    return menuRes;
  }
  formatConPermisos(menu) {
    let menuPermisos = [];
    menu.forEach(element => {
      if (!element.permisoId || this.authenticationService.hasPermiso(element.permisoId)) {
        let menuElement = element;
        if (this.hasItems(menuElement)) {
          let submenu = this.formatConPermisos(menuElement.subItems);
          if (submenu.length > 0) {
            menuElement.subItems = submenu;
            menuPermisos.push(menuElement);
          }
        } else {
          menuPermisos.push(menuElement);
        }
      }
    });
    return menuPermisos;
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.subItems !== undefined ? item.subItems.length > 0 : false;
  }
  static #_ = this.ɵfac = function SidebarComponent_Factory(t) {
    return new (t || SidebarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_4__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_8__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_10__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__.StatefulService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: SidebarComponent,
    selectors: [["app-sidebar"]],
    viewQuery: function SidebarComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c1, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.scrollRef = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.sideMenu = _t.first);
      }
    },
    inputs: {
      isCondensed: "isCondensed"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵNgOnChangesFeature"]],
    decls: 7,
    vars: 2,
    consts: [["contentTemplate", ""], [1, "vertical-menu"], [1, "h-100"], ["componentRef", ""], [4, "ngIf"], ["id", "sidebar-menu"], ["id", "side-menu", 1, "metismenu", "list-unstyled"], ["sideMenu", ""], [4, "ngFor", "ngForOf"], ["class", "menu-title", 4, "ngIf"], [1, "menu-title"], ["href", "javascript:void(0);", "class", "is-parent", 3, "ngClass", 4, "ngIf"], ["class", "side-nav-link-ref", "routerLinkActive", "active", 3, "routerLink", 4, "ngIf"], ["class", "sub-menu", "aria-expanded", "false", 4, "ngIf"], ["href", "javascript:void(0);", 1, "is-parent", 3, "ngClass"], [3, "class", 4, "ngIf"], ["routerLinkActive", "active", 1, "side-nav-link-ref", 3, "routerLink"], ["aria-expanded", "false", 1, "sub-menu"], ["class", "side-nav-link-a-ref has-arrow", "href", "javascript:void(0);", 4, "ngIf"], ["class", "sub-menu mm-collapse", "aria-expanded", "false", 4, "ngIf"], ["href", "javascript:void(0);", 1, "side-nav-link-a-ref", "has-arrow"], ["aria-expanded", "false", 1, "sub-menu", "mm-collapse"], [4, "ngTemplateOutlet"]],
    template: function SidebarComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, SidebarComponent_ng_template_0_Template, 4, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "div", 1)(3, "ngx-simplebar", 2, 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SidebarComponent_div_5_Template, 2, 1, "div", 4)(6, SidebarComponent_div_6_Template, 2, 1, "div", 4);
        _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.isCondensed);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.isCondensed);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLink, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLinkActive, simplebar_angular__WEBPACK_IMPORTED_MODULE_12__.SimplebarAngularComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslatePipe]
  });
}

/***/ }),

/***/ 32898:
/*!******************************************!*\
  !*** ./src/app/layouts/sidemenu/menu.ts ***!
  \******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   MENU: () => (/* binding */ MENU)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-autorizacion */ 92558);
/* harmony import */ var src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-produccion */ 59896);
/* 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_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-web */ 73487);
/* harmony import */ var src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-general */ 15372);
/* harmony import */ var src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-servicios */ 52788);
/* harmony import */ var src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-estadistica */ 48214);







const MENU = [{
  id: 0,
  label: "MENUITEMS.HOME.TEXT",
  icon: "bx bx-home-circle",
  subItems: [{
    id: 151,
    label: "MENUITEMS.HOME.LIST.HOME",
    link: "/dashboards/inicio",
    parentId: 0,
    Priority: 0
  }, {
    id: 152,
    label: "MENUITEMS.HOME.LIST.ITEMS",
    link: "/dashboards/articulos",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ARTICULOS,
    Priority: 1
  }, {
    id: 153,
    label: "MENUITEMS.HOME.LIST.ATRIBUTES",
    link: "/dashboards/atributos",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ATRIBUTOS_ART,
    Priority: 2
  }, {
    id: 154,
    label: "MENUITEMS.HOME.LIST.ATRIBUTOS_RUBROS",
    link: "/dashboards/atributos-rubros",
    parentId: 0,
    permisoId: src_app_core_utils_permisos_permisos_general__WEBPACK_IMPORTED_MODULE_4__.PERMISO_LIS_ATRIBUTOS_RUBROS,
    Priority: 3
  }, {
    id: 155,
    label: "MENUITEMS.HOME.LIST.ORDER_NOTES",
    link: "/dashboards/notas-de-pedido",
    parentId: 0,
    //permisoId: PERMISOSGEN.PERMISO_LIS_NOTAS_PEDIDO,
    Priority: 4
  }]
},
// {
//     id: 2,
//     label: 'MENUITEMS.MODULES.TEXT',
//     isTitle: true
// },
// Rango de Ids para los items del módulo Autorización: 100 - 199
{
  id: 100,
  label: "MENUITEMS.AUTHORIZATION.TEXT",
  icon: "bx bx-lock-open",
  subItems: [{
    id: 101,
    label: "MENUITEMS.AUTHORIZATION.LIST.HOME",
    parentId: 100,
    link: "/autorizacion/inicio",
    priority: 0
  }, {
    id: 104,
    label: "MENUITEMS.AUTHORIZATION.LIST.AUTHORIZE",
    link: "/autorizacion/autorizar-comprobantes",
    parentId: 100,
    permisoId: src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__.PERMISO_LIS_AUT_COMP,
    priority: 1
  }, {
    id: 102,
    label: "MENUITEMS.AUTHORIZATION.LIST.CONFIGURATION",
    link: "/autorizacion/config-comprobantes",
    parentId: 100,
    permisoId: src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__.PERMISO_LIS_CONFIG_AUT,
    priority: 3
  }, {
    id: 103,
    label: "MENUITEMS.AUTHORIZATION.LIST.RESPONSIBLE",
    link: "/autorizacion/responsables-comprobantes",
    parentId: 100,
    permisoId: src_app_core_utils_permisos_permisos_autorizacion__WEBPACK_IMPORTED_MODULE_0__.PERMISO_LIS_RESP_AUT,
    priority: 2
  }]
}, {
  id: 400,
  label: "MENUITEMS.STATISTICS.TEXT",
  icon: "bx bx-line-chart",
  subItems: [{
    id: 401,
    label: "MENUITEMS.STATISTICS.LIST.HOME",
    link: "/estadistica/inicio",
    parentId: 400,
    permisoId: src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_COLECCION,
    priority: 0
  }, {
    id: 402,
    label: "MENUITEMS.STATISTICS.LIST.COLLECTIONS",
    link: "/estadistica/colecciones",
    parentId: 400,
    permisoId: src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_COLECCION,
    priority: 1
  }, {
    id: 403,
    label: "MENUITEMS.STATISTICS.LIST.WIDGETS",
    link: "/estadistica/widgets",
    parentId: 400,
    permisoId: src_app_core_utils_permisos_permisos_estadistica__WEBPACK_IMPORTED_MODULE_6__.PERMISO_LIS_INDICADORES,
    priority: 2
  }]
}, {
  id: 500,
  label: "MENUITEMS.NOTIFICATIONS.TEXT",
  icon: "bx bx-bell",
  subItems: [{
    id: 501,
    label: "MENUITEMS.NOTIFICATIONS.LIST.HOME",
    link: "/notificaciones/inicio",
    parentId: 500,
    priority: 0
  }, {
    id: 503,
    label: "MENUITEMS.NOTIFICATIONS.LIST.CONFIG_NOTIF",
    link: "/notificaciones/configNotif",
    parentId: 500,
    priority: 2
  }, {
    id: 502,
    label: "MENUITEMS.NOTIFICATIONS.LIST.CONFIG_NOTIF_RECEIVER",
    link: "/notificaciones/configNotifReceptor",
    parentId: 500,
    priority: 3
  }, {
    id: 504,
    label: "MENUITEMS.NOTIFICATIONS.LIST.LIST_NOTIF",
    link: "/notificaciones/listadoNotificaciones",
    parentId: 500,
    priority: 1
  }]
}, {
  id: 600,
  label: "MENUITEMS.PLATFORMS.TEXT",
  icon: "bx bx-dollar-circle",
  subItems: [{
    id: 601,
    label: "MENUITEMS.PLATFORMS.LIST.HOME",
    link: "/plataformas/inicio",
    parentId: 600,
    priority: 0
  }, {
    id: 610,
    label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.TEXT",
    parentId: 600,
    priority: 2,
    subItems: [{
      id: 611,
      label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.LIST_CHECKOUT",
      link: "/plataformas/mercadopago/cajas",
      parentId: 610
    }, {
      id: 612,
      label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.LIST_USER_CONFIG",
      link: "/plataformas/mercadopago/config-usuarios",
      parentId: 610
    }, {
      id: 613,
      label: "MENUITEMS.PLATFORMS.LIST.MERCADO_PAGO.LIST_POINTS_OF_SALE",
      link: "/plataformas/mercadopago/sucursales",
      parentId: 610
    }]
  }, {
    id: 602,
    label: "MENUITEMS.PLATFORMS.LIST.LIST_PLATFORMS",
    link: "/plataformas/listado",
    parentId: 600,
    priority: 1
  }]
}, {
  id: 1,
  label: "MENUITEMS.PRODUCTION.TEXT",
  icon: "bx bx-wrench",
  subItems: [{
    id: 2,
    label: "MENUITEMS.PRODUCTION.LIST.HOME",
    link: "/produccion/inicio",
    parentId: 1,
    priority: 0
  }, {
    id: 3,
    label: "MENUITEMS.PRODUCTION.LIST.ITEMS",
    link: "/produccion/articulos-produccion",
    parentId: 1,
    priority: 2,
    subItems: [{
      id: 4,
      label: "MENUITEMS.PRODUCTION.LIST.ITEMS",
      link: "/produccion/articulos-produccion",
      parentId: 3,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_ART
    }, {
      id: 5,
      label: "MENUITEMS.PRODUCTION.LIST.TERCERIZADOS",
      link: "/produccion/articulos-tercerizados",
      parentId: 3,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TERC
    }]
  }, {
    id: 6,
    label: "MENUITEMS.PRODUCTION.LIST.MACHINE",
    parentId: 1,
    priority: 5,
    subItems: [{
      id: 7,
      label: "MENUITEMS.PRODUCTION.LIST.MACHINE",
      link: "/produccion/maquina",
      parentId: 6,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_MAQ
    }, {
      id: 8,
      label: "MENUITEMS.PRODUCTION.LIST.MACHINE_TYPE",
      link: "/produccion/tipos-maquina",
      parentId: 6,
      permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TIPO_MAQ
    }]
  }, {
    id: 9,
    label: "MENUITEMS.PRODUCTION.LIST.OPERATION",
    link: "/produccion/operacion",
    parentId: 1,
    priority: 4,
    permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_OPER
  }, {
    id: 10,
    label: "MENUITEMS.PRODUCTION.LIST.PRODUCTION_ORDER.TEXT",
    link: "/produccion/ordenProduccion",
    permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_OPN_OPER,
    parentId: 1,
    priority: 1
  }, {
    id: 14,
    label: "MENUITEMS.PRODUCTION.LIST.TIMES",
    link: "/produccion/tiempos",
    parentId: 1,
    permisoId: src_app_core_utils_permisos_permisos_produccion__WEBPACK_IMPORTED_MODULE_1__.PERMISO_LIS_TIMES,
    priority: 3
  }]
},
/**
 * SP SINWEB-151 se agrega nuevo objeto de del menu correspondiente a rma
 */
{
  id: 50,
  label: "MENUITEMS.RMA.TEXT",
  icon: "mdi mdi-certificate-outline",
  subItems: [{
    id: 51,
    label: "MENUITEMS.RMA.LIST.HOME",
    link: "/rma/inicio",
    parentId: 50,
    priority: 0
  }, {
    id: 52,
    label: "MENUITEMS.RMA.LIST.SETTINGS",
    parentId: 50,
    priority: 2,
    subItems: [{
      id: 53,
      label: "MENUITEMS.RMA.LIST.ATTRIBUTE",
      link: "/rma/atributos",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_ATRIBUTO
    }, {
      id: 54,
      label: "MENUITEMS.RMA.LIST.DEFECT",
      link: "/rma/defectos",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_DEFECTOS
    }, {
      id: 55,
      label: "MENUITEMS.RMA.LIST.RESOLUTION",
      link: "/rma/resolucion",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_RESOLUCION
    }, {
      id: 56,
      label: "MENUITEMS.RMA.LIST.DEFECT_TYPE",
      link: "/rma/tipos-defecto",
      parentId: 52,
      permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_TIPO_DEFECTOS
    }]
  }, {
    id: 57,
    label: "MENUITEMS.RMA.LIST.FOLLOW_UP",
    link: "/rma/seguimiento",
    parentId: 50,
    permisoId: src_app_core_utils_permisos_permisos_rma__WEBPACK_IMPORTED_MODULE_2__.PERMISO_LIS_RECLAMOS,
    priority: 1
  }]
}, {
  id: 300,
  label: "MENUITEMS.SERVICES.TEXT",
  icon: "bx bx-briefcase-alt-2",
  subItems: [{
    id: 301,
    label: "MENUITEMS.SERVICES.LIST.HOME",
    parentId: 300,
    link: "/servicios/inicio",
    priority: 0
  }, {
    id: 302,
    label: "MENUITEMS.SERVICES.LIST.FACTMASIVA",
    parentId: 300,
    link: "/servicios/facturacion-masiva",
    permisoId: src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_FACT_MASIVA,
    priority: 1
  }, {
    id: 303,
    label: "MENUITEMS.SERVICES.LIST.BILLINGLOTS",
    parentId: 300,
    link: "/servicios/lotes-facturacion",
    permisoId: src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_LOTE_FACTURACION,
    priority: 2
  },
  // {
  //     id:304,
  //     label: 'MENUITEMS.SERVICES.LIST.MOVEMENTS',
  //     parentId: 300,
  //     link: '/servicios/movimientos',
  //     permisoId: PERMISOSSERVICE.PERMISO_LIS_MOVIMIENTOS
  // },
  {
    id: 305,
    label: "MENUITEMS.SERVICES.LIST.SRV_CONTRATADOS",
    parentId: 300,
    link: "/servicios/serviciosContratados",
    permisoId: src_app_core_utils_permisos_permisos_servicios__WEBPACK_IMPORTED_MODULE_5__.PERMISO_LIS_SRV_CONTRATADOS,
    priority: 3
  }]
},
/**
 * PM SINWEB-223 se agrega nuevo objeto de del menu correspondiente a web
 */
{
  id: 200,
  label: "MENUITEMS.WEB.TEXT",
  icon: "bx bx bx-cloud",
  subItems: [{
    id: 201,
    label: "MENUITEMS.WEB.LIST.HOME",
    parentId: 200,
    link: "/web/inicio",
    priority: 0
  },
  /**
   * SP SINWEB-221 se agrega nuevo objeto de del menu correspondiente a web/familias-web
   */
  {
    id: 204,
    label: "MENUITEMS.WEB.LIST.WEB_PUBLIC_ITEMS",
    parentId: 200,
    link: "/web/articulos-publicados",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_PUBLIC_ART_PLAT,
    priority: 2
  }, {
    id: 202,
    label: "MENUITEMS.WEB.LIST.WEB_FAMILIES",
    parentId: 200,
    link: "/web/familias-web",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_FAMILIA_WEB,
    priority: 4
  }, {
    id: 205,
    label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.TEXT",
    parentId: 200,
    priority: 5,
    subItems: [{
      id: 209,
      label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.PUBLIC_ITEMS",
      link: "/web/ml-articulos-publicados",
      parentId: 205
    }, {
      id: 206,
      label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.USER",
      link: "/web/ml-configuracion-usuario",
      parentId: 205
    }, {
      id: 207,
      label: "MENUITEMS.WEB.LIST.MERCADO_LIBRE.UPDATE_LOG",
      link: "/web/ml-registro-actualizaciones",
      parentId: 205
    }]
  }, {
    id: 203,
    label: "MENUITEMS.WEB.LIST.WEB_PLATFORMS",
    parentId: 200,
    link: "/web/plataformas-web",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_PLATAFORMA_WEB,
    priority: 1
  }, {
    id: 208,
    label: "MENUITEMS.WEB.LIST.WEB_USERS",
    parentId: 200,
    link: "/web/usuario-web",
    permisoId: src_app_core_utils_permisos_permisos_web__WEBPACK_IMPORTED_MODULE_3__.PERMISO_LIS_USUARIO_WEB,
    priority: 3
  }]
}, {
  id: 997,
  label: "MENUITEMS.DEV.TEXT",
  icon: "bx bx-joystick",
  subItems: [{
    id: 998,
    label: "MENUITEMS.DEV.LIST.HOME",
    parentId: 997,
    link: "/desarrollo/inicio",
    priority: 0
  }]
}, {
  id: 999,
  label: "MENUITEMS.MODULOS_ADICIONALES.TEXT",
  icon: "bx bx bx-star bx-tada",
  link: "dashboards/modulo-adicional"
}];

/***/ }),

/***/ 1317:
/*!********************************************************!*\
  !*** ./src/app/layouts/sidemenu/sidemenu.component.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SidemenuComponent: () => (/* binding */ SidemenuComponent)
/* harmony export */ });
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./menu */ 32898);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var metismenujs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! metismenujs */ 49420);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var src_app_core_services_sidemenu_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/sidemenu.service */ 91137);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! simplebar-angular */ 63744);














const _c0 = ["componentRef"];
const _c1 = ["sideMenu"];
function SidemenuComponent_For_7_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 1, item_r3.label));
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("bx ", item_r3.icon, "");
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_1_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("badge rounded-pill float-end bg-", item_r3.badge.variant, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, item_r3.badge.text));
  }
}
const _c2 = (a0, a1) => ({
  "has-arrow": a0,
  "has-dropdown": a1
});
function SidemenuComponent_For_7_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidemenuComponent_For_7_Conditional_2_Conditional_1_Conditional_1_Template, 1, 3, "i", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SidemenuComponent_For_7_Conditional_2_Conditional_1_Conditional_5_Template, 3, 6, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](6, _c2, !item_r3.badge, item_r3.badge));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](1, item_r3.icon ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 4, item_r3.label), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](5, item_r3.badge ? 5 : -1);
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("bx ", item_r3.icon, "");
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_2_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("badge rounded-pill bg-", item_r3.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, item_r3.badge.text));
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidemenuComponent_For_7_Conditional_2_Conditional_2_Conditional_1_Template, 1, 3, "i", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, SidemenuComponent_For_7_Conditional_2_Conditional_2_Conditional_5_Template, 3, 6, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("routerLink", item_r3.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](1, item_r3.icon ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 4, item_r3.label), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](5, item_r3.badge ? 5 : -1);
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_1_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li")(1, "a", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const subSubitem_r33 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("routerLink", subSubitem_r33.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵattribute"]("data-parent", subSubitem_r33.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](3, 3, subSubitem_r33.label), " ");
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "ul", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterCreate"](4, SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_1_For_5_Template, 4, 5, "li", null, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵattribute"]("data-parent", subitem_r25.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 2, subitem_r25.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeater"](subitem_r25.subItems);
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMapInterpolate1"]("badge rounded-pill bg-", subitem_r25.badge.variant, " float-end");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, subitem_r25.badge.text));
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_2_Conditional_3_Template, 3, 6, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("routerLink", subitem_r25.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵattribute"]("data-parent", subitem_r25.parentId);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 4, subitem_r25.label), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](3, subitem_r25.badge ? 3 : -1);
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_1_Template, 6, 4)(2, SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Conditional_2_Template, 4, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const subitem_r25 = ctx.$implicit;
    const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](1, ctx_r24.hasItems(subitem_r25) ? 1 : 2);
  }
}
function SidemenuComponent_For_7_Conditional_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "ul", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterCreate"](1, SidemenuComponent_For_7_Conditional_2_Conditional_3_For_2_Template, 3, 1, "li", null, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeater"](item_r3.subItems);
  }
}
function SidemenuComponent_For_7_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidemenuComponent_For_7_Conditional_2_Conditional_1_Template, 6, 9, "a", 8)(2, SidemenuComponent_For_7_Conditional_2_Conditional_2_Template, 6, 6)(3, SidemenuComponent_For_7_Conditional_2_Conditional_3_Template, 3, 0, "ul", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](1, ctx_r9.hasItems(item_r3) ? 1 : 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](3, ctx_r9.hasItems(item_r3) ? 3 : -1);
  }
}
function SidemenuComponent_For_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, SidemenuComponent_For_7_Conditional_1_Template, 3, 3, "li", 6)(2, SidemenuComponent_For_7_Conditional_2_Template, 4, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r3 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](1, item_r3.isTitle ? 1 : !item_r3.isTitle && !item_r3.isLayout ? 2 : -1);
  }
}
function renameSubitemsToItems(obj) {
  if (Array.isArray(obj)) {
    return obj.map(renameSubitemsToItems);
  } else if (typeof obj === "object" && obj !== null) {
    const newObj = {};
    for (const key in obj) {
      if (key === "subItems") {
        newObj["items"] = renameSubitemsToItems(obj[key]);
      } else {
        newObj[key] = renameSubitemsToItems(obj[key]);
      }
    }
    return newObj;
  } else {
    return obj;
  }
}
/**
 * MC SINWEB-583 Componente de menú lateral
 * Se usa cuando está el modo horizontal activado y en pantallas pequeñas
 */
class SidemenuComponent {
  constructor(translate, sidemenuService, authenticationService, sf, router) {
    this.translate = translate;
    this.sidemenuService = sidemenuService;
    this.authenticationService = authenticationService;
    this.sf = sf;
    this.router = router;
    this.menuItems = [];
    this.menuItems3 = [];
    router.events.forEach(event => {
      if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_8__.NavigationEnd) {
        sidemenuService.hide();
        this._activateMenuDropdown();
        this._scrollElement();
      }
    });
  }
  ngOnInit() {
    this.sidemenuService.sidemenuVisible$.subscribe(visible => {
      this.sidemenuVisible = visible;
    });
    this.initialize();
  }
  // MC SINWEB-583 Se copia de como está en el componente SidebarComponent
  ngAfterViewInit() {
    this.menu = new metismenujs__WEBPACK_IMPORTED_MODULE_3__["default"](this.sideMenu.nativeElement);
    this._activateMenuDropdown();
  }
  onHide() {
    this.sidemenuService.hide();
  }
  initialize() {
    const menuFormatModules = this.formatearModulos(_menu__WEBPACK_IMPORTED_MODULE_0__.MENU);
    const menuCopy = JSON.stringify(menuFormatModules);
    const menuItemCopy = JSON.parse(menuCopy);
    this.menuItems = this.formatConPermisos(menuItemCopy);
  }
  formatearModulos(menu) {
    let i = 0;
    let menuRes = JSON.parse(JSON.stringify(menu));
    let hayInactivos = false;
    //Modulo Estadistica
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_ESTADISTICA);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Produccion
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PRODUCCION);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Autorizacion
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_AUTORIZACION);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo RMA
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_RMA);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Web
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_WEB);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Servicios
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_SERVICIOS);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Notificaciones
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_NOTIFICACIONES);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //Modulo Plataformas de pago
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_PLATAFORMAS);
      menuRes.splice(i, 1);
      hayInactivos = true;
    }
    //SP SINWEB-257 se agrega nuevo objeto de del menu correspondiente a desarrollo
    if (!this.authenticationService.hasModulo(src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO)) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_DESARROLLO);
      menuRes.splice(i, 1);
    }
    //Menu inactivos
    if (!hayInactivos) {
      i = menuRes.findIndex(menuItem => menuItem.id == src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.MENU_ID_MODULO_INACTIVOS);
      menuRes.splice(i, 1);
    }
    if (this.sf.getState(this.sf.pagenames.MENU_ORDEN) === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.VERDADERO) {
      //Ordenar subItems
      menuRes.forEach(element => {
        if (element.subItems) {
          element.subItems = lodash__WEBPACK_IMPORTED_MODULE_2__.orderBy(element.subItems, ["priority"], ["asc"]);
        }
      });
    }
    return menuRes;
  }
  formatConPermisos(menu) {
    let menuPermisos = [];
    menu.forEach(element => {
      if (!element.permisoId || this.authenticationService.hasPermiso(element.permisoId)) {
        let menuElement = element;
        if (this.hasItems(menuElement)) {
          let submenu = this.formatConPermisos(menuElement.subItems);
          if (submenu.length > 0) {
            menuElement.subItems = submenu;
            menuPermisos.push(menuElement);
          }
        } else {
          menuPermisos.push(menuElement);
        }
      }
    });
    return menuPermisos;
  }
  /**
   * Returns true or false if given menu item has child or not
   * @param item menuItem
   */
  hasItems(item) {
    return item.subItems !== undefined ? item.subItems.length > 0 : false;
  }
  _scrollElement() {
    setTimeout(() => {
      if (document.getElementsByClassName("mm-active").length > 0) {
        const currentPosition = document.getElementsByClassName("mm-active")[0]["offsetTop"];
        if (currentPosition > 500) if (this.scrollRef.SimpleBar !== null) this.scrollRef.SimpleBar.getScrollElement().scrollTop = currentPosition + 300;
      }
    }, 300);
  }
  /**
   * remove active and mm-active class
   */
  _removeAllClass(className) {
    const els = document.getElementsByClassName(className);
    while (els[0]) {
      els[0].classList.remove(className);
    }
  }
  /**
   * Activate the parent dropdown
   */
  _activateMenuDropdown() {
    this._removeAllClass("mm-active");
    this._removeAllClass("mm-show");
    const links = document.getElementsByClassName("side-nav-link-ref");
    let menuItemEl = null;
    // tslint:disable-next-line: prefer-for-of
    const paths = [];
    for (let i = 0; i < links.length; i++) {
      paths.push(links[i]["pathname"]);
    }
    var itemIndex = paths.indexOf(window.location.pathname);
    if (itemIndex === -1) {
      const strIndex = window.location.pathname.lastIndexOf("/");
      const item = window.location.pathname.substr(0, strIndex).toString();
      menuItemEl = links[paths.indexOf(item)];
    } else {
      menuItemEl = links[itemIndex];
    }
    if (menuItemEl) {
      menuItemEl.classList.add("active");
      const parentEl = menuItemEl.parentElement;
      if (parentEl) {
        parentEl.classList.add("mm-active");
        const parent2El = parentEl.parentElement.closest("ul");
        if (parent2El && parent2El.id !== "side-menu") {
          parent2El.classList.add("mm-show");
          const parent3El = parent2El.parentElement;
          if (parent3El && parent3El.id !== "side-menu") {
            parent3El.classList.add("mm-active");
            const childAnchor = parent3El.querySelector(".has-arrow");
            const childDropdown = parent3El.querySelector(".has-dropdown");
            if (childAnchor) {
              childAnchor.classList.add("mm-active");
            }
            if (childDropdown) {
              childDropdown.classList.add("mm-active");
            }
            const parent4El = parent3El.parentElement;
            if (parent4El && parent4El.id !== "side-menu") {
              parent4El.classList.add("mm-show");
              const parent5El = parent4El.parentElement;
              if (parent5El && parent5El.id !== "side-menu") {
                parent5El.classList.add("mm-active");
                const childanchor = parent5El.querySelector(".is-parent");
                if (childanchor && parent5El.id !== "side-menu") {
                  childanchor.classList.add("mm-active");
                }
              }
            }
          }
        }
      }
    }
  }
  static #_ = this.ɵfac = function SidemenuComponent_Factory(t) {
    return new (t || SidemenuComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_sidemenu_service__WEBPACK_IMPORTED_MODULE_4__.SidemenuService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_8__.Router));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: SidemenuComponent,
    selectors: [["app-sidemenu"]],
    viewQuery: function SidemenuComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵviewQuery"](_c1, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.scrollRef = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵloadQuery"]()) && (ctx.sideMenu = _t.first);
      }
    },
    decls: 8,
    vars: 1,
    consts: [[3, "visible", "visibleChange", "onHide"], [1, "h-100"], ["componentRef", ""], ["id", "sidebar-menu"], ["id", "side-menu", 1, "metismenu", "list-unstyled"], ["sideMenu", ""], ["class", "menu-title"], [1, "menu-title"], ["href", "javascript:void(0);", "class", "is-parent", 3, "ngClass"], ["class", "sub-menu", "aria-expanded", "false"], ["href", "javascript:void(0);", 1, "is-parent", 3, "ngClass"], [3, "class"], ["routerLinkActive", "active", 1, "side-nav-link-ref", 3, "routerLink"], ["aria-expanded", "false", 1, "sub-menu"], ["href", "javascript:void(0);", 1, "side-nav-link-a-ref", "has-arrow"], ["aria-expanded", "false", 1, "sub-menu", "mm-collapse"]],
    template: function SidemenuComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "p-sidebar", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("visibleChange", function SidemenuComponent_Template_p_sidebar_visibleChange_0_listener($event) {
          return ctx.sidemenuVisible = $event;
        })("onHide", function SidemenuComponent_Template_p_sidebar_onHide_0_listener() {
          return ctx.onHide();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "ngx-simplebar", 1, 2)(3, "div", 3)(4, "ul", 4, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterCreate"](6, SidemenuComponent_For_7_Template, 3, 1, "ng-container", null, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterTrackByIndex"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("visible", ctx.sidemenuVisible);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeater"](ctx.menuItems);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLink, _angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterLinkActive, primeng_sidebar__WEBPACK_IMPORTED_MODULE_11__.Sidebar, simplebar_angular__WEBPACK_IMPORTED_MODULE_12__.SimplebarAngularComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_9__.TranslatePipe],
    styles: ["[_nghost-%COMP%]     .p-sidebar {\n  width: 80%;\n}\n\n  body[data-bs-theme=dark] #side-menu a {\n  filter: brightness(250%);\n}\n\n@media screen and (min-width: 576px) {\n  [_nghost-%COMP%]     .p-sidebar {\n    width: 450px;\n  }\n}"]
  });
}

/***/ }),

/***/ 24798:
/*!*************************************************************************************!*\
  !*** ./src/app/layouts/topbar/previa-notificacion/previa-notificacion.component.ts ***!
  \*************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PreviaNotificacionComponent: () => (/* binding */ PreviaNotificacionComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-notificaciones */ 67403);
/* harmony import */ var src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionHistorial.service */ 97504);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! simplebar-angular */ 63744);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ngx-translate/core */ 89515);









function PreviaNotificacionComponent_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 17)(1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "No se encuentran notificaciones para mostrar.");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
function PreviaNotificacionComponent_ng_container_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "div", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
}
function PreviaNotificacionComponent_ng_container_16_a_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
const _c0 = a0 => ({
  "reset-cursor-style": a0
});
function PreviaNotificacionComponent_ng_container_16_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "a", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PreviaNotificacionComponent_ng_container_16_a_1_Template_a_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8);
      const notif_r5 = restoredCtx.$implicit;
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r7.marcarComoLeida(notif_r5.Id, notif_r5.Estado));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, PreviaNotificacionComponent_ng_container_16_a_1_div_2_Template, 2, 0, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "div", 24)(4, "h6", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 26)(7, "p", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "p", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](10, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const notif_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](5, _c0, notif_r5.Estado === "L"));
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", notif_r5.Estado === "N");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](notif_r5.Observacion.titulo || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](notif_r5.Observacion.mensaje || "-");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", notif_r5.FechaNotificado || notif_r5.FechaNotificacion, " ");
  }
}
function PreviaNotificacionComponent_ng_container_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, PreviaNotificacionComponent_ng_container_16_a_1_Template, 12, 7, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r3.Notificaciones);
  }
}
class PreviaNotificacionComponent {
  constructor(notifHistService, authService) {
    this.notifHistService = notifHistService;
    this.authService = authService;
    this.botonNotificacionesClic = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter();
    this.openNotification = false;
    this.NotifNoLeidas = 0;
    this.subscriptions = [];
  }
  ngOnInit() {
    this.cargarHistorial();
    this.contadorNoLeidas();
    this.subscriptions.push(this.notifHistService.refreshListado.subscribe(v => {
      if (v && !document.body.classList.contains("right-bar-enabled")) {
        this.cargarHistorial();
        this.contadorNoLeidas();
      }
    }));
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  onNotificaciones() {
    setTimeout(() => {
      this.botonNotificacionesClic.emit();
    }, 250);
  }
  /**
   * MC SINWEB-384 Método para obtener el historial de notificaciones
   * del menú desplegable
   */
  cargarHistorial() {
    const params = {
      Orden: 7,
      SentidoOrden: "desc",
      Estados: "N,L",
      IdsNotifCanales: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.CANAL_SOCKET,
      PageNumber: 1,
      PageSize: 5,
      IdsReceptoresConTipos: `[${this.authService.usuario.IdUsrUsuario}|${src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_SINERGIAL}]`
    };
    this.subscriptions.push(this.notifHistService.getNotificacionesHistorial(params).subscribe(notifs => {
      if (notifs.Succeeded) {
        this.Notificaciones = notifs.Data;
      }
    }));
  }
  /**
   * MC SINWEB-384 Método para obtener el contador de notificaciones no leídas
   * (Solo me interesa el TotalRecords)
   */
  contadorNoLeidas() {
    const params = {
      Orden: 7,
      SentidoOrden: "desc",
      Estados: "N",
      IdsNotifCanales: src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.CANAL_SOCKET,
      PageNumber: 1,
      PageSize: 1,
      IdsReceptoresConTipos: `[${this.authService.usuario.IdUsrUsuario}|${src_app_core_utils_constantes_constantes_notificaciones__WEBPACK_IMPORTED_MODULE_0__.TIPO_RECEPTOR_USUARIO_SINERGIAL}]`
    };
    this.subscriptions.push(this.notifHistService.getNotificacionesHistorial(params).subscribe(notifs => {
      if (notifs.Succeeded) {
        this.NotifNoLeidas = notifs.TotalRecords;
      }
    }));
  }
  /**
   * MC SINWEB-384 Método para marcar una notificación como leída
   */
  marcarComoLeida(idNotif, estado) {
    if (estado === "L") return;
    const body = [{
      op: "replace",
      path: "/Estado",
      value: "L"
    }];
    this.subscriptions.push(this.notifHistService.patchNotificacionHistorial(idNotif, body).subscribe(resp => {
      if (resp.Succeeded) {
        this.cargarHistorial();
        this.contadorNoLeidas();
      }
    }));
  }
  static #_ = this.ɵfac = function PreviaNotificacionComponent_Factory(t) {
    return new (t || PreviaNotificacionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_1__.NotificacionHistorialServices), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_2__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: PreviaNotificacionComponent,
    selectors: [["previa-notificacion"]],
    outputs: {
      botonNotificacionesClic: "botonNotificacionesClic"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([])],
    decls: 23,
    vars: 10,
    consts: [["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["myDrop", "ngbDropdown"], ["type", "button", "id", "page-header-notifications-dropdown", "ngbDropdownToggle", "", 1, "btn", "header-item", "noti-icon"], [1, "bx", "bx-bell"], [1, "badge", "bg-danger", "rounded-pill"], ["aria-labelledby", "page-header-notifications-dropdown", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-lg", "dropdown-menu-end", "p-0"], [1, "p-3"], [1, "row", "align-items-center"], [1, "col"], [1, "m-0"], [2, "position", "relative", "height", "230px"], ["class", "text-center p-5", 4, "ngIf"], [4, "ngIf"], [1, "p-2", "border-top", "d-grid"], [1, "btn", "btn-sm", "btn-link", "font-size-14", "text-center", 3, "click"], [1, "mdi", "mdi-arrow-right-circle", "me-1"], ["key", "t-view-more"], [1, "text-center", "p-5"], [1, "text-center", "mt-4"], [1, "spinner-border", "text-dark"], ["href", "javascript: void(0);", "class", "text-reset notification-item", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["href", "javascript: void(0);", 1, "text-reset", "notification-item", 3, "ngClass", "click"], [1, "d-flex"], ["class", "d-flex justify-content-center align-items-center text-info ps-0", 4, "ngIf"], [1, "flex-grow-1"], [1, "mb-1"], [1, "font-size-12", "text-muted"], [1, "mb-0"], [1, "mdi", "mdi-clock-outline"], [1, "d-flex", "justify-content-center", "align-items-center", "text-info", "ps-0"], [1, "bx", "bxs-circle"]],
    template: function PreviaNotificacionComponent_Template(rf, ctx) {
      if (rf & 1) {
        const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0, 1)(2, "button", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](3, "i", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "span", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 5)(7, "div", 6)(8, "div", 7)(9, "div", 8)(10, "h6", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](12, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "ngx-simplebar", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](14, PreviaNotificacionComponent_div_14_Template, 3, 0, "div", 11)(15, PreviaNotificacionComponent_ng_container_15_Template, 3, 0, "ng-container", 12)(16, PreviaNotificacionComponent_ng_container_16_Template, 2, 1, "ng-container", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](17, "div", 13)(18, "a", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PreviaNotificacionComponent_Template_a_click_18_listener() {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r9);
          const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](1);
          _r0.close();
          return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx.onNotificaciones());
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "i", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "span", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](22, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.NotifNoLeidas);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](12, 6, "HEADER.NOTIFICATIONS.TITLE"));
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.Notificaciones !== undefined && ctx.Notificaciones.length == 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.Notificaciones == undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.Notificaciones !== undefined && ctx.Notificaciones.length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](22, 8, "HEADER.NOTIFICATIONS.LOAD_MORE"));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _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, simplebar_angular__WEBPACK_IMPORTED_MODULE_6__.SimplebarAngularComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_7__.TranslatePipe],
    styles: [".reset-cursor-style[_ngcontent-%COMP%] {\n  cursor: default !important;\n}"]
  });
}

/***/ }),

/***/ 23970:
/*!***************************************************************************!*\
  !*** ./src/app/layouts/topbar/select-accesos/select-accesos.component.ts ***!
  \***************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SelectAccesosComponent: () => (/* binding */ SelectAccesosComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/services/auth.service */ 90304);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_accesos_rapidos_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/accesos-rapidos.service */ 73701);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_picklist__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/picklist */ 28052);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ngx-translate/core */ 89515);










function SelectAccesosComponent_ng_template_9_i_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const opcion_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassMap"](opcion_r1.icon);
  }
}
function SelectAccesosComponent_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, SelectAccesosComponent_ng_template_9_i_1_Template, 1, 3, "i", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](4, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 11)(6, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const opcion_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", opcion_r1.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](4, 3, opcion_r1.label), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", opcion_r1.path, "");
  }
}
const _c0 = () => ({
  height: "20rem"
});
const _c1 = () => ({
  height: "26rem"
});
class SelectAccesosComponent {
  constructor(auth, modal, config, accesosRapidos) {
    this.auth = auth;
    this.modal = modal;
    this.config = config;
    this.accesosRapidos = accesosRapidos;
    this.AccesosSelect = [];
    this.AccesosGuardados = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter();
  }
  //SP-131 se simplico toda la logica del componente , llamando a un service de accesosRapidos
  ngOnInit() {
    this.accesosRapidos.accesosDisponibles$.subscribe(resp => {
      const deepCopyOpciones = JSON.parse(JSON.stringify(resp));
      this.AccesosDisp = deepCopyOpciones;
    });
    this.accesosRapidos.accesosSeleccionados$.subscribe(resp => {
      const deepCopySelect = JSON.parse(JSON.stringify(resp));
      this.AccesosSelect = deepCopySelect;
    });
  }
  guardar() {
    this.accesosRapidos.guardarAccesos(this.AccesosSelect);
    this.modal.close();
  }
  static #_ = this.ɵfac = function SelectAccesosComponent_Factory(t) {
    return new (t || SelectAccesosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_0__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_1__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_accesos_rapidos_service__WEBPACK_IMPORTED_MODULE_2__.AccesosRapidosService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: SelectAccesosComponent,
    selectors: [["app-select-accesos"]],
    outputs: {
      AccesosGuardados: "AccesosGuardados"
    },
    decls: 13,
    vars: 12,
    consts: [[1, "modal-content", "mb-0"], [1, "modal-header"], [1, "modal-title"], [1, "m-0"], [1, "modal-body"], ["filterBy", "label", "sourceHeader", "Accesos R\u00E1pidos Disponibles", "targetHeader", "Accesos R\u00E1pidos Seleccionados", "sourceFilterPlaceholder", "Buscar por Nombre", 3, "source", "target", "responsive", "sourceStyle", "targetStyle", "dragdrop", "showTargetFilter", "showSourceControls", "showTargetControls"], ["pTemplate", "item", "class", "p-0"], [1, "modal-footer", "text-end"], [1, "btn", "btn-success", 3, "disabled", "click"], [1, "d-flex", "align-items-center", "gap-2"], [3, "class", 4, "ngIf"], [1, "d-flex", "align-items-center"]],
    template: function SelectAccesosComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h4");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Seleccionar Accesos R\u00E1pidos");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "p", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Seleccione hasta un m\u00E1ximo de 8 accesos r\u00E1pidos");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div", 4)(8, "p-pickList", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](9, SelectAccesosComponent_ng_template_9_Template, 8, 5, "ng-template", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "div", 7)(11, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function SelectAccesosComponent_Template_button_click_11_listener() {
          return ctx.guardar();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12, " Guardar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("source", ctx.AccesosDisp)("target", ctx.AccesosSelect)("responsive", true)("sourceStyle", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](10, _c0))("targetStyle", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](11, _c1))("dragdrop", true)("showTargetFilter", false)("showSourceControls", false)("showTargetControls", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx.AccesosSelect.length > 8);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_5__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, primeng_picklist__WEBPACK_IMPORTED_MODULE_7__.PickList, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_8__.TranslatePipe],
    styles: [".p-picklist-item:not(.cdk-drag-disabled) {\n  cursor: move;\n  z-index: 1060 !important;\n}\n\n .back-z-index {\n  z-index: 1057 !important;\n}\n\n .modal-z-index {\n  z-index: 1058 !important;\n}\n\n  .p-picklist-buttons > button:nth-child(2) {\n  display: none;\n}"]
  });
}

/***/ }),

/***/ 25407:
/*!****************************************************!*\
  !*** ./src/app/layouts/topbar/topbar.component.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TopbarComponent: () => (/* binding */ TopbarComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../environments/environment */ 20553);
/* harmony import */ var _select_accesos_select_accesos_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./select-accesos/select-accesos.component */ 23970);
/* harmony import */ var src_app_account_auth_acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/account/auth/acerca-de/acerca-de.component */ 43989);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_pages_dashboards_novedades_novedades_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/pages/dashboards/novedades/novedades.component */ 12589);
/* harmony import */ var _core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../core/services/auth.service */ 90304);
/* harmony import */ var _core_services_authfake_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../core/services/authfake.service */ 39634);
/* harmony import */ var _core_services_language_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../core/services/language.service */ 62948);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_accesos_rapidos_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/accesos-rapidos.service */ 73701);
/* harmony import */ var src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/socket-connection.service */ 46295);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/service-worker */ 70040);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _internal_search_engine_internal_search_engine_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../internal-search-engine/internal-search-engine.component */ 76151);
/* harmony import */ var _previa_notificacion_previa_notificacion_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./previa-notificacion/previa-notificacion.component */ 24798);


























function TopbarComponent_div_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 38)(1, "button", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_div_23_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r9.reloadPage());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "i", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
}
function TopbarComponent_img_26_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "img", 67);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpropertyInterpolate"]("src", ctx_r1.flagvalue, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
  }
}
function TopbarComponent_img_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "img", 67);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpropertyInterpolate"]("src", ctx_r2.valueset, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
  }
}
function TopbarComponent_span_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "span", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](1, "English");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
const _c0 = a0 => ({
  active: a0
});
function TopbarComponent_a_32_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "a", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_a_32_Template_a_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r13);
      const item_r11 = restoredCtx.$implicit;
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r12.setLanguage(item_r11.text, item_r11.lang, item_r11.flag));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "img", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](2, "span", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r11 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction1"](3, _c0, ctx_r4.cookieValue === item_r11.lang));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpropertyInterpolate"]("src", item_r11.flag, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](item_r11.text);
  }
}
function TopbarComponent_div_39_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const item_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵclassMapInterpolate1"]("fs-4 bx ", item_r14.icon, "");
  }
}
function TopbarComponent_div_39_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 34)(1, "a", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](2, TopbarComponent_div_39_i_2_Template, 1, 3, "i", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](3, "span", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](5, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("routerLink", item_r14.link);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", item_r14.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("pTooltip", item_r14.label + (item_r14.nombreModulo != "" ? " - " + item_r14.nombreModulo : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](5, 4, item_r14.label), "");
  }
}
function TopbarComponent_ng_container_48_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](1, "previa-notificacion", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("botonNotificacionesClic", function TopbarComponent_ng_container_48_Template_previa_notificacion_botonNotificacionesClic_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r17.onBotonNotificacionesClic());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementContainerEnd"]();
  }
}
function TopbarComponent_div_79_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "div", 62);
  }
}
const _c1 = () => ["/docs"];
function TopbarComponent_a_80_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "a", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](3, "translate");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction0"](4, _c1));
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](3, 2, "HEADER.LOGIN.DOCUMENTATION"), "");
  }
}
const _c2 = a0 => ({
  "d-lg-none": a0
});
const _c3 = () => ["/config"];
const _c4 = () => ["/exportaciones"];
/**
 * Topbar component
 */
class TopbarComponent {
  constructor(document, authService, authFackservice, languageService, translate, sf, authenticationService, config, modalService, auth, accesosRapidos, socketConn, toast, updateSW, router, configGralService) {
    this.document = document;
    this.authService = authService;
    this.authFackservice = authFackservice;
    this.languageService = languageService;
    this.translate = translate;
    this.sf = sf;
    this.authenticationService = authenticationService;
    this.config = config;
    this.modalService = modalService;
    this.auth = auth;
    this.accesosRapidos = accesosRapidos;
    this.socketConn = socketConn;
    this.toast = toast;
    this.updateSW = updateSW;
    this.router = router;
    this.configGralService = configGralService;
    this.showDocumentation = true;
    //SP SINWEB variable para guardar accesos
    this.accesosSelect = [];
    this.listLang = [{
      text: "Español",
      flag: "assets/images/flags/spain.jpg",
      lang: "es"
    }, {
      text: "English",
      flag: "assets/images/flags/us.jpg",
      lang: "en"
    }];
    this.update = false;
    this.settingsButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_16__.EventEmitter();
    this.mobileMenuButtonClicked = new _angular_core__WEBPACK_IMPORTED_MODULE_16__.EventEmitter();
    this.botonNotificacionesClic = new _angular_core__WEBPACK_IMPORTED_MODULE_16__.EventEmitter();
  }
  ngOnInit() {
    this.isHorizontalMode = this.document.body.getAttribute("data-layout") === "horizontal";
    this.openMobileMenu = false;
    this.element = document.documentElement;
    this.showNotifRealtime = this.configGralService._config.NotifRealtime === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_4__.VERDADERO;
    this.initLanguage();
    this.currentUser = this.authenticationService.usuario;
    console.log(this.currentUser);
    //this.showDocumentation = !environment.production;
    this.accesosRapidos.inicializar();
    this.accesosRapidos.accesosSeleccionados$.subscribe(resp => {
      const deepCopySelect = JSON.parse(JSON.stringify(resp));
      this.accesosSelect = deepCopySelect;
    });
    // this.updateSW.versionUpdates.subscribe((event) => {
    //   this.update = true;
    //   this.toast.info("Actualización disponible",'', {
    //     timeOut: 5000,
    //   });
    // });
    // MC SINWEB-293 Nueva forma de comprobacion de actualizacion disponible
    this.updateSW.versionUpdates.subscribe(event => {
      switch (event.type) {
        case "VERSION_DETECTED":
          console.log(`(Topbar) Descargando nueva version: ${event.version.hash}`);
          break;
        case "VERSION_READY":
          this.update = true;
          this.toast.info("Actualización disponible", "", {
            timeOut: 5000
          });
          break;
      }
    });
    // MC SINWEB-383 Inicialización de la conexion con Ably
    if (!this.socketConn.isConnected()) {
      this.socketConn.InicializarConnection();
    }
  }
  initLanguage() {
    this.cookieValue = this.sf.getState(this.sf.pagenames.LENGUAJE);
    const val = this.listLang.filter(x => x.lang === this.cookieValue);
    this.countryName = val.map(element => element.text);
    if (val.length === 0) {
      if (this.flagvalue === undefined) {
        this.valueset = "assets/images/flags/us.jpg";
      }
    } else {
      this.flagvalue = val.map(element => element.flag);
    }
  }
  setLanguage(text, lang, flag) {
    this.countryName = text;
    this.flagvalue = flag;
    this.cookieValue = lang;
    this.languageService.setLanguage(lang);
  }
  /**
   * Toggles the right sidebar
   */
  toggleRightSidebar() {
    this.botonNotificacionesClic.emit();
  }
  /**
   * Toggle the menu bar when having mobile screen
   */
  toggleMobileMenu(event) {
    event.preventDefault();
    this.mobileMenuButtonClicked.emit();
  }
  /**
   * Logout the user
   */
  logout() {
    if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.defaultauth === "API") {
      this.socketConn.desconectarConnection();
      this.authService.logout();
    } else {
      this.authFackservice.logout();
    }
  }
  /**
   * Fullscreen method
   */
  fullscreen() {
    document.body.classList.toggle("fullscreen-enable");
    if (!document.fullscreenElement && !this.element.mozFullScreenElement && !this.element.webkitFullscreenElement) {
      if (this.element.requestFullscreen) {
        this.element.requestFullscreen();
      } else if (this.element.mozRequestFullScreen) {
        /* Firefox */
        this.element.mozRequestFullScreen();
      } else if (this.element.webkitRequestFullscreen) {
        /* Chrome, Safari and Opera */
        this.element.webkitRequestFullscreen();
      } else if (this.element.msRequestFullscreen) {
        /* IE/Edge */
        this.element.msRequestFullscreen();
      }
    } else {
      if (this.document.exitFullscreen) {
        this.document.exitFullscreen();
      } else if (this.document.mozCancelFullScreen) {
        /* Firefox */
        this.document.mozCancelFullScreen();
      } else if (this.document.webkitExitFullscreen) {
        /* Chrome, Safari and Opera */
        this.document.webkitExitFullscreen();
      } else if (this.document.msExitFullscreen) {
        /* IE/Edge */
        this.document.msExitFullscreen();
      }
    }
  }
  lockscreen() {
    if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.defaultauth === "API") {
      this.sf.changeState(this.sf.pagenames.BTN_VOLVER, this.router.url);
      this.socketConn.desconectarConnection();
      this.authService.lockout();
    } else {
      this.authFackservice.logout();
    }
  }
  //SP-131 se simplico toda la logica del componente , llamando a un service de accesosRapidos
  //SP SINWEB-111 metodo que llama al modal con el pick list para seleccionar accesos.
  agregarAcceso() {
    const modalRef = this.modalService.open(_select_accesos_select_accesos_component__WEBPACK_IMPORTED_MODULE_2__.SelectAccesosComponent, {
      size: "lg",
      backdropClass: "back-z-index",
      windowClass: "modal-z-index",
      scrollable: true
    });
    //modalRef.componentInstance.AccesosOpciones = this.accesosRapidos.accesosDisponibles;
    modalRef.result.then(resolve => {
      this.accesosRapidos.cargar();
    });
  }
  //SP SINWEB-111 metodo para controlar que los tiempo de los accesos del usuario no superen los 6 meses.
  compararTiempos(time1, time2) {
    const diferencia = Math.abs(time1 - time2);
    const seisMesesEnMilisegundos = 6 * 30 * 24 * 60 * 60 * 1000; // Assuming a month has 30 days
    return diferencia > seisMesesEnMilisegundos;
  }
  onBotonNotificacionesClic() {
    this.botonNotificacionesClic.emit();
  }
  reloadPage() {
    // this.updateSW.activateUpdate().then(() => document.location.reload());
    // MC SINWEB-293 Se recarga directamente porque la comprobacion de actualizacion ya se hizo
    document.location.reload();
  }
  mostrarAcercaDe() {
    const modalRef = this.modalService.open(src_app_account_auth_acerca_de_acerca_de_component__WEBPACK_IMPORTED_MODULE_3__.AcercaDeComponent, {
      size: "md",
      scrollable: true
    });
    modalRef.componentInstance.modoAcercaDe = true;
    modalRef.result.then(licencia => {}, () => {});
  }
  getUserFirstLetter(username) {
    return username.charAt(0);
  }
  /**
   * MC SINWEB-792 Método que muestra un modal con novedades
   */
  mostrarNovedades() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return fetch("./assets/novedades/novedades.json").then(response => response.json()).then(novedades => {
        if (novedades && novedades.length > 0) {
          const novedadesAMostrar = novedades.filter(novedad => novedad.Mostrar);
          const modalRef = _this.modalService.open(src_app_pages_dashboards_novedades_novedades_component__WEBPACK_IMPORTED_MODULE_5__.NovedadesComponent, {
            size: "lg",
            centered: true
          });
          modalRef.componentInstance.novedades = novedadesAMostrar;
        }
      }).catch( /*#__PURE__*/function () {
        var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (error) {
          return console.log(error);
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
    })();
  }
  static #_ = this.ɵfac = function TopbarComponent_Factory(t) {
    return new (t || TopbarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_17__.DOCUMENT), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_authfake_service__WEBPACK_IMPORTED_MODULE_7__.AuthfakeauthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_language_service__WEBPACK_IMPORTED_MODULE_8__.LanguageService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ngx_translate_core__WEBPACK_IMPORTED_MODULE_18__.TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_9__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_10__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_accesos_rapidos_service__WEBPACK_IMPORTED_MODULE_11__.AccesosRapidosService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_socket_connection_service__WEBPACK_IMPORTED_MODULE_12__.SocketConnectionService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_20__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_service_worker__WEBPACK_IMPORTED_MODULE_21__.SwUpdate), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_22__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_13__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdefineComponent"]({
    type: TopbarComponent,
    selectors: [["app-topbar"]],
    outputs: {
      settingsButtonClicked: "settingsButtonClicked",
      mobileMenuButtonClicked: "mobileMenuButtonClicked",
      botonNotificacionesClic: "botonNotificacionesClic"
    },
    decls: 94,
    vars: 43,
    consts: [["id", "page-topbar"], [1, "navbar-header"], [1, "d-flex"], [1, "navbar-brand-box"], ["routerLink", "/inicio", 1, "logo", "logo-dark"], [1, "logo-sm"], ["src", "assets/images/logo.svg", "alt", "", "height", "22"], [1, "logo-lg"], ["src", "assets/images/logo-dark.png", "alt", "", "height", "17"], ["routerLink", "/inicio", 1, "logo", "logo-light"], ["src", "assets/images/logo-light_small.png", "alt", "", "height", "25"], ["src", "assets/images/logo-light.png", "alt", "", "height", "30"], ["type", "button", "id", "vertical-menu-btn", "data-bs-toggle", "collapse", "data-bs-target", "#topnav-menu-content", 1, "btn", "btn-sm", "px-3", "font-size-16", "header-item", 3, "ngClass", "click"], [1, "fa", "fa-fw", "fa-bars"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block", "d-lg-none", "ms-2"], ["type", "button", "id", "page-header-search-dropdown", "data-toggle", "dropdown", "aria-haspopup", "true", "ngbDropdownToggle", "", "aria-expanded", "false", 1, "btn", "header-item", "noti-icon"], [1, "bx", "bx-search-alt", "pt-2"], ["ngbDropdownMenu", "", "aria-labelledby", "page-header-search-dropdown m-0", 1, "dropdown-menu", "dropdown-menu-lg", "dropdown-menu-end", "p-0"], [3, "mobile"], ["class", "dropdown d-none d-lg-inline-block ms-1", 4, "ngIf"], ["ngbDropdown", "", 1, "dropdown", "d-inline-block"], ["type", "button", "id", "page-header-user-dropdown", "ngbDropdownToggle", "", 1, "btn", "header-item"], ["alt", "Header Language", "height", "16", 3, "src", 4, "ngIf"], [1, "ms-1"], ["class", "ms-1", 4, "ngIf"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-end"], ["href", "javascript:void(0);", "class", "dropdown-item notify-item", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["ngbDropdown", "", 1, "dropdown", "d-none", "d-lg-inline-block", "ms-1"], ["type", "button", "ngbDropdownToggle", "", 1, "btn", "header-item", "noti-icon"], [1, "bx", "bx-customize"], ["data-cy", "dropdown-accesos", "ngbDropdownMenu", "", 1, "dropdown-menu", "dropdown-menu-lg", "dropdown-menu-end"], [1, "px-lg-2"], [1, "row", "no-gutters", "justify-content-center", "gap-2"], ["class", "col-3 px-0", 4, "ngFor", "ngForOf"], [1, "col-3", "px-0"], [1, "dropdown-icon-item", "shadow-item", "border", 3, "click"], [1, "fs-4", "bx", "bx-dots-vertical-rounded"], [1, "px-1"], [1, "dropdown", "d-none", "d-lg-inline-block", "ms-1"], ["type", "button", "data-toggle", "fullscreen", 1, "btn", "header-item", "noti-icon", 3, "click"], [1, "bx", "bx-fullscreen"], [4, "ngIf"], ["type", "button", "ngbDropdownToggle", "", "id", "page-header-user-dropdown", 1, "btn", "header-item"], [1, "user-avatar-custom-topbar", "d-inline-block", "border", "border-white", "border-3", "rounded-circle", "text-uppercase", "fw-bold", "fs-4", "header-profile-user", "me-1"], [1, "d-flex", "justify-content-center", "align-items-center"], [1, "d-none", "d-xl-inline-block"], [1, "d-none", "d-xl-inline-block", "ms-1"], [1, "fs-5", "fw-bold", "text-uppercase"], [1, "badge", "bg-primary", "me-1", "mx-1"], [1, "mdi", "mdi-chevron-down", "d-none", "d-xl-inline-block"], ["routerLink", "/perfil", 1, "dropdown-item"], [1, "bx", "bx-user", "font-size-16", "align-middle", "me-1"], ["href", "javascript: void(0);", 1, "dropdown-item", "d-block", 3, "routerLink"], [1, "bx", "bx-cog", "font-size-16", "align-middle", "me-1"], ["href", "javascript: void(0);", 1, "dropdown-item", 3, "click"], [1, "bx", "bx-lock-open", "font-size-16", "align-middle", "me-1"], ["href", "javascript: void(0);", 1, "dropdown-item", 3, "routerLink"], [1, "bx", "bx-file", "font-size-16", "align-middle", "me-1"], ["class", "dropdown-divider", 4, "ngIf"], ["class", "dropdown-item d-none d-lg-block", "href", "javascript: void(0);", 3, "routerLink", 4, "ngIf"], [1, "bx", "bx-rocket", "font-size-16", "align-middle", "me-1"], [1, "bx", "bx-info-circle", "font-size-16", "align-middle", "me-1"], [1, "dropdown-divider"], ["href", "javascript: void(0);", 1, "dropdown-item", "text-danger", 3, "click"], [1, "bx", "bx-power-off", "font-size-16", "align-middle", "me-1", "text-danger"], ["type", "button", "data-toggle", "update", "pTooltip", "Actualizaci\u00F3n disponible", 1, "btn", "header-item", "noti-icon", 3, "click"], [1, "bx", "bx-gift", "bx-tada"], ["alt", "Header Language", "height", "16", 3, "src"], ["href", "javascript:void(0);", 1, "dropdown-item", "notify-item", 3, "ngClass", "click"], ["alt", "user-image", "height", "12", 1, "me-1", 3, "src"], [1, "align-middle"], [1, "dropdown-icon-item", "shadow-item", "border", 3, "routerLink"], [3, "class", 4, "ngIf"], ["tooltipPosition", "bottom", 1, "px-1", 3, "pTooltip"], [3, "botonNotificacionesClic"], ["href", "javascript: void(0);", 1, "dropdown-item", "d-none", "d-lg-block", 3, "routerLink"], [1, "bx", "bx-book-content", "font-size-16", "align-middle", "me-1"]],
    template: function TopbarComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "header", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "a", 4)(5, "span", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](6, "img", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](7, "span", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](8, "img", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](9, "a", 9)(10, "span", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](11, "img", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](12, "span", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](13, "img", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](14, "button", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_button_click_14_listener($event) {
          return ctx.toggleMobileMenu($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](15, "i", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](16, "app-internal-search-engine");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](17, "div", 2)(18, "div", 14)(19, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](20, "i", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](21, "div", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](22, "app-internal-search-engine", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](23, TopbarComponent_div_23_Template, 3, 0, "div", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](24, "div", 20)(25, "button", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](26, TopbarComponent_img_26_Template, 1, 1, "img", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](27, "span", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](28);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](29, TopbarComponent_img_29_Template, 1, 1, "img", 22)(30, TopbarComponent_span_30_Template, 2, 0, "span", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](31, "div", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](32, TopbarComponent_a_32_Template, 4, 5, "a", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](33, "div", 27)(34, "button", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](35, "i", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](36, "div", 30)(37, "div", 31)(38, "div", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](39, TopbarComponent_div_39_Template, 6, 6, "div", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](40, "div", 34)(41, "a", 35);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_a_click_41_listener() {
          return ctx.agregarAcceso();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](42, "i", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](43, "span", 37);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](44, "Configurar");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](45, "div", 38)(46, "button", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_button_click_46_listener() {
          return ctx.fullscreen();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](47, "i", 40);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](48, TopbarComponent_ng_container_48_Template, 2, 0, "ng-container", 41);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](49, "div", 20)(50, "button", 42)(51, "div", 43)(52, "div", 44)(53, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](54);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](55, "div", 45)(56, "span", 46)(57, "span", 47);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](58);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](59, "span", 48);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](60);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](61, "i", 49);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](62, "div", 25)(63, "a", 50);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](64, "i", 51);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](65);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](66, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](67, "a", 52);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](68, "i", 53);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](69);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](70, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](71, "a", 54);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_a_click_71_listener() {
          return ctx.lockscreen();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](72, "i", 55);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](73);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](74, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](75, "a", 56);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](76, "i", 57);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](77);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](78, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](79, TopbarComponent_div_79_Template, 1, 0, "div", 58)(80, TopbarComponent_a_80_Template, 4, 5, "a", 59);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](81, "a", 54);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_a_click_81_listener() {
          return ctx.mostrarNovedades();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](82, "i", 60);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](83);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](84, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](85, "a", 54);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_a_click_85_listener() {
          return ctx.mostrarAcercaDe();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](86, "i", 61);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](87);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](88, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](89, "div", 62);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](90, "a", 63);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function TopbarComponent_Template_a_click_90_listener() {
          return ctx.logout();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](91, "i", 64);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](92);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](93, "translate");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction1"](39, _c2, ctx.isHorizontalMode));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("mobile", true);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.update);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.flagvalue !== undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx.countryName);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.flagvalue === undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.flagvalue === undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx.listLang);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngForOf", ctx.accesosSelect);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.showNotifRealtime);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx.getUserFirstLetter(ctx.currentUser.User.Nombre || "?"));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx.currentUser.User.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate2"]("", ctx.currentUser.Sucursal, " (", ctx.currentUser.Empresa, ")");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](66, 25, "HEADER.LOGIN.PROFILE"), "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction0"](41, _c3));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](70, 27, "HEADER.LOGIN.SETTINGS"), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](74, 29, "HEADER.LOGIN.LOCK_SCREEN"), "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction0"](42, _c4));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](78, 31, "HEADER.LOGIN.EXPORTS"), "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.showDocumentation);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", ctx.showDocumentation);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](84, 33, "HEADER.LOGIN.WHATS_NEW"), "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](88, 35, "HEADER.LOGIN.ABOUT"), "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](93, 37, "HEADER.LOGIN.LOGOUT"), "");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_17__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_22__.RouterLink, primeng_tooltip__WEBPACK_IMPORTED_MODULE_23__.Tooltip, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_19__.NgbDropdownMenu, _internal_search_engine_internal_search_engine_component__WEBPACK_IMPORTED_MODULE_14__.InternalSearchEngineComponent, _previa_notificacion_previa_notificacion_component__WEBPACK_IMPORTED_MODULE_15__.PreviaNotificacionComponent, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_18__.TranslatePipe],
    styles: [".shadow-item[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n.shadow-item[_ngcontent-%COMP%]:hover {\n  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;\n}\n\n.user-avatar-custom-topbar[_ngcontent-%COMP%] {\n  width: 30px;\n  height: 30px;\n  line-height: 1;\n}"]
  });
}

/***/ }),

/***/ 57324:
/*!********************************************************!*\
  !*** ./src/app/layouts/vertical/vertical.component.ts ***!
  \********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   VerticalComponent: () => (/* binding */ VerticalComponent)
/* harmony export */ });
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _layouts_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../layouts.model */ 45660);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_event_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../core/services/event.service */ 42608);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/notificaciones/notificacionHistorial.service */ 97504);
/* harmony import */ var _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../sidebar/sidebar.component */ 11281);
/* harmony import */ var _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../topbar/topbar.component */ 25407);
/* harmony import */ var _footer_footer_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../footer/footer.component */ 67584);
/* harmony import */ var _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../rightsidebar/rightsidebar.component */ 95802);











/**
 * Vertical component
 */
class VerticalComponent {
  constructor(router, eventService, sf, notifHistService) {
    this.router = router;
    this.eventService = eventService;
    this.sf = sf;
    this.notifHistService = notifHistService;
    this.isCondensed = false;
    this.router.events.forEach(event => {
      if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_8__.NavigationEnd) {
        document.body.classList.remove("sidebar-enable");
      }
    });
  }
  ngOnInit() {
    this.sidebartype = _layouts_model__WEBPACK_IMPORTED_MODULE_0__.SIDEBAR_TYPE;
    // listen to event and change the layout, theme, etc
    this.eventService.subscribe("changeSidebartype", layout => {
      this.sidebartype = layout;
      this.changeSidebar(this.sidebartype);
    });
    this.changeSidebar(this.sidebartype);
    document.body.setAttribute("data-layout", "");
  }
  isMobile() {
    const ua = navigator.userAgent;
    return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(ua);
  }
  ngAfterViewInit() {
    //PM SINWEB-93
    if (this.sf.getState(this.sf.pagenames.TOGGLE_MOBILE_MENU) === "true") {
      this.onToggleMobileMenu();
    }
  }
  /**
   * on settings button clicked from topbar
   */
  onBotonNotificacionesClic() {
    console.log("onNotificaciones");
    document.body.classList.toggle("right-bar-enabled");
    this.notifHistService.refreshListado.next(true);
  }
  changeSidebar(value) {
    switch (value) {
      case "light":
        document.body.setAttribute("data-sidebar", "light");
        document.body.setAttribute("data-topbar", "dark");
        document.body.removeAttribute("data-sidebar-size");
        document.body.removeAttribute("data-layout-size");
        document.body.removeAttribute("data-keep-enlarged");
        document.body.classList.remove("vertical-collpsed");
        document.body.removeAttribute("data-layout-scrollable");
        break;
      case "compact":
        document.body.setAttribute("data-sidebar-size", "small");
        document.body.setAttribute("data-sidebar", "dark");
        document.body.removeAttribute("data-topbar");
        document.body.removeAttribute("data-layout-size");
        document.body.removeAttribute("data-keep-enlarged");
        document.body.classList.remove("sidebar-enable");
        document.body.classList.remove("vertical-collpsed");
        document.body.removeAttribute("data-layout-scrollable");
        break;
      case "dark":
        document.body.setAttribute("data-sidebar", "dark");
        document.body.removeAttribute("data-topbar");
        document.body.removeAttribute("data-layout-size");
        document.body.removeAttribute("data-keep-enlarged");
        document.body.removeAttribute("data-sidebar-size");
        document.body.classList.remove("sidebar-enable");
        document.body.classList.remove("vertical-collpsed");
        document.body.removeAttribute("data-layout-scrollable");
        break;
      case "icon":
        document.body.classList.add("vertical-collpsed");
        document.body.setAttribute("data-sidebar", "dark");
        document.body.removeAttribute("data-layout-size");
        document.body.setAttribute("data-keep-enlarged", "true");
        document.body.removeAttribute("data-topbar");
        document.body.removeAttribute("data-layout-scrollable");
        break;
      case "colored":
        document.body.classList.remove("sidebar-enable");
        document.body.classList.remove("vertical-collpsed");
        document.body.setAttribute("data-sidebar", "colored");
        document.body.removeAttribute("data-layout-size");
        document.body.removeAttribute("data-keep-enlarged");
        document.body.removeAttribute("data-topbar");
        document.body.removeAttribute("data-layout-scrollable");
        document.body.removeAttribute("data-sidebar-size");
        break;
      default:
        document.body.setAttribute("data-sidebar", "dark");
        break;
    }
  }
  /**
   * On mobile toggle button clicked
   */
  onToggleMobileMenu() {
    this.isCondensed = !this.isCondensed;
    this.sf.changeState(this.sf.pagenames.TOGGLE_MOBILE_MENU, this.isCondensed);
    document.body.classList.toggle("sidebar-enable");
    document.body.classList.toggle("vertical-collpsed");
    if (window.screen.width <= 768) {
      document.body.classList.remove("vertical-collpsed");
    }
  }
  static #_ = this.ɵfac = function VerticalComponent_Factory(t) {
    return new (t || VerticalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_8__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_core_services_event_service__WEBPACK_IMPORTED_MODULE_1__.EventService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_2__.StatefulService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_notificaciones_notificacionHistorial_service__WEBPACK_IMPORTED_MODULE_3__.NotificacionHistorialServices));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: VerticalComponent,
    selectors: [["app-vertical"]],
    decls: 8,
    vars: 1,
    consts: [["id", "layout-wrapper"], [3, "botonNotificacionesClic", "mobileMenuButtonClicked"], [3, "isCondensed"], [1, "main-content"], [1, "page-content"]],
    template: function VerticalComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 0)(1, "app-topbar", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("botonNotificacionesClic", function VerticalComponent_Template_app_topbar_botonNotificacionesClic_1_listener() {
          return ctx.onBotonNotificacionesClic();
        })("mobileMenuButtonClicked", function VerticalComponent_Template_app_topbar_mobileMenuButtonClicked_1_listener() {
          return ctx.onToggleMobileMenu();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "app-sidebar", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 3)(4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](5, "router-outlet");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](6, "app-footer");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "app-rightsidebar");
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("isCondensed", ctx.isCondensed);
      }
    },
    dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterOutlet, _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_4__.SidebarComponent, _topbar_topbar_component__WEBPACK_IMPORTED_MODULE_5__.TopbarComponent, _footer_footer_component__WEBPACK_IMPORTED_MODULE_6__.FooterComponent, _rightsidebar_rightsidebar_component__WEBPACK_IMPORTED_MODULE_7__.RightsidebarComponent]
  });
}

/***/ }),

/***/ 45804:
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/dashboards/core/cargar-cliente-ocasional/cargar-cliente-ocasional.component.ts ***!
  \******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CargarClienteOcasionalComponent: () => (/* binding */ CargarClienteOcasionalComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 94664);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_provincia_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/core/provincia.service */ 6089);
/* harmony import */ var src_app_core_services_core_localidad_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/localidad.service */ 14280);
/* 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 _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);














const _forTrack0 = ($index, $item) => $item.Id;
function CargarClienteOcasionalComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](0, " Datos del cliente ");
  }
}
function CargarClienteOcasionalComponent_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](0, " Cargar datos del cliente ");
  }
}
function CargarClienteOcasionalComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Nombre y apellido correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Nombre y apellido del cliente requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Nombre y apellido no debe tener m\u00E1s de 50 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_For_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const respIVA_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", respIVA_r19.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](respIVA_r19.Nombre);
  }
}
function CargarClienteOcasionalComponent_div_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Resp. IVA requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_For_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "option", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tipoDoc_r24 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("value", tipoDoc_r24.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate"](tipoDoc_r24.Nombre);
  }
}
function CargarClienteOcasionalComponent_div_29_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Tipo de documento requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_34_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " N\u00FAmero de documento correcto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " N\u00FAmero de documento requerido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Calle correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Calle requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Calle no debe tener m\u00E1s de 50 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_58_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Altura correcta ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_59_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Altura requerida ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_div_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Altura no debe tener m\u00E1s de 5 caracteres ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_Conditional_62_Template(rf, ctx) {
  if (rf & 1) {
    const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "button", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CargarClienteOcasionalComponent_Conditional_62_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r30);
      const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r29.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
}
function CargarClienteOcasionalComponent_Conditional_63_Template(rf, ctx) {
  if (rf & 1) {
    const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "button", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CargarClienteOcasionalComponent_Conditional_63_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r32);
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r31.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](2, "button", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function CargarClienteOcasionalComponent_Conditional_63_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r32);
      const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r33.guardar());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("disabled", ctx_r18.formGroup.invalid);
  }
}
// MC SINWEB-948 Componente para cargar datos de cliente ocasional
class CargarClienteOcasionalComponent {
  constructor(provinciaService, localidadService, fb, modal, vh) {
    this.provinciaService = provinciaService;
    this.localidadService = localidadService;
    this.fb = fb;
    this.modal = modal;
    this.vh = vh;
    this.visualizar = false; // Indica si se visualiza el componente o se edita
    this.localidades = [];
    this.tiposDocConsumidorFinal = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.tipoDocConsumidorFinal;
    this.tiposDoc = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.tiposDoc;
    this.respIVAs = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.respIVAs;
    this.subscriptions = [];
  }
  ngOnInit() {
    this.loadForm();
    this.provincias$ = this.provinciaService.fetch({
      PageNumber: -1,
      IdPais: 1
    });
    if (this.formGroup.get('IdProvincia')?.value != -1) {
      const susc = this.localidadService.fetch({
        IdProvincia: this.formGroup.get('IdProvincia')?.value,
        PageNumber: -1
      }).subscribe(respLoc => {
        if (respLoc.Succeeded) {
          this.localidades = respLoc.Data;
        }
      });
      susc.unsubscribe;
    }
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sub => sub.unsubscribe());
  }
  loadForm() {
    this.formGroup = this.fb.group({
      Nombre: [{
        value: this.clienteOcasional?.Nombre ?? '',
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(50)])],
      IdRespIVA: [{
        value: this.clienteOcasional?.IdRespIVA ?? 1,
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required])],
      TipoDoc: [{
        value: this.clienteOcasional?.TipoDoc ?? 3,
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required])],
      NroDoc: [{
        value: this.clienteOcasional?.NroDoc ?? '',
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(13)])],
      Calle: [{
        value: this.clienteOcasional?.Calle ?? '',
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(50)])],
      NroCalle: [{
        value: this.clienteOcasional?.NroCalle ?? '',
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.maxLength(5)])],
      IdProvincia: [{
        value: this.clienteOcasional?.IdProvincia ?? -1,
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.min(0)])],
      IdLocalidad: [{
        value: this.clienteOcasional?.IdLocalidad ?? -1,
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.Validators.min(0)])]
    });
    this.vh.inicializar();
    this.vh.formGroup = this.formGroup;
    this.subscriptions.push(
    // Carga de localidades al cambiar la provincia
    this.formGroup.controls['IdProvincia'].valueChanges.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.switchMap)(IdProvincia => {
      this.formGroup.controls['IdLocalidad'].setValue(-1, {
        emitEvent: false
      });
      return this.localidadService.fetch({
        IdProvincia,
        PageNumber: -1
      });
    })).subscribe(respLoc => {
      if (respLoc.Succeeded) {
        this.localidades = respLoc.Data;
      }
    }),
    // Reseteo de documento al cambiar el Resp. IVA
    this.formGroup.controls['IdRespIVA'].valueChanges.subscribe(respIVA => {
      this.formGroup.controls['TipoDoc'].setValue(this.getTiposDocByRespIVA(respIVA)[0].Id, {
        emitEvent: false
      });
      this.formGroup.controls['NroDoc'].setValue('', {
        emitEvent: false
      });
    }));
  }
  guardar() {
    if (this.formGroup.valid) {
      let res = {
        ...this.formGroup.value,
        Localidad: this.localidades.find(l => l.Id == this.formGroup.value.IdLocalidad)
      };
      this.modal.close(res);
    }
  }
  /**
   * Retorna el arreglo de tipos de documento según el Resp. IVA
   * @param respIVA Id Resp. IVA
   * @returns Arreglo de tipos de documento
   */
  getTiposDocByRespIVA(respIVA) {
    if (respIVA == 1) {
      return this.tiposDocConsumidorFinal;
    } else {
      return this.tiposDoc;
    }
  }
  /**
   * Retorna la máscara a aplicar según el Resp. IVA
   * @returns Máscara a aplicar en el campo de Nro. de documento
   */
  getMask(respIVA) {
    if (respIVA == 1) {
      // Consumidor final
      return '00.000.000';
    } else {
      return '00-00000000-0';
    }
  }
  static #_ = this.ɵfac = function CargarClienteOcasionalComponent_Factory(t) {
    return new (t || CargarClienteOcasionalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_core_provincia_service__WEBPACK_IMPORTED_MODULE_2__.ProvinciaService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_core_localidad_service__WEBPACK_IMPORTED_MODULE_3__.LocalidadService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: CargarClienteOcasionalComponent,
    selectors: [["app-cargar-cliente-ocasional"]],
    inputs: {
      clienteOcasional: "clienteOcasional",
      visualizar: "visualizar"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 64,
    vars: 63,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "form-group", "row", "gy-2", 3, "formGroup"], [1, "col-lg-12"], ["campoObligatorio", "", 1, "form-label"], ["type", "text", "name", "Nombre", "autocomplete", "off", "placeholder", "Nombre y apellido del cliente", "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-4"], ["formControlName", "IdRespIVA", 1, "form-control", "form-select"], ["value", "-1", "disabled", ""], ["formControlName", "TipoDoc", 1, "form-control", "form-select"], ["type", "text", "name", "NroDoc", "autocomplete", "off", "placeholder", "N\u00FAmero de documento", "formControlName", "NroDoc", 1, "form-control", "form-control-solid", 3, "mask"], [1, "col-lg-6"], [3, "defaultValue", "defaultValueDis", "defaultString", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], ["type", "text", "name", "Calle", "autocomplete", "off", "placeholder", "Calle", "formControlName", "Calle", 1, "form-control", "form-control-solid"], ["type", "text", "name", "Altura", "autocomplete", "off", "placeholder", "Altura", "mask", "0*", "formControlName", "NroCalle", 1, "form-control", "form-control-solid"], [1, "modal-footer"], ["type", "button", "class", "btn btn-light btn-elevate mr-2"], [1, "valid-feedback"], [1, "invalid-feedback", "animate__animated", "animate__shakeX"], [3, "value"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"]],
    template: function CargarClienteOcasionalComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, CargarClienteOcasionalComponent_Conditional_3_Template, 1, 0)(4, CargarClienteOcasionalComponent_Conditional_4_Template, 1, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 3)(6, "div", 4)(7, "div", 5)(8, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](9, "Nombre y Apellido");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](10, "input", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](11, CargarClienteOcasionalComponent_div_11_Template, 2, 0, "div", 8)(12, CargarClienteOcasionalComponent_div_12_Template, 2, 0, "div", 9)(13, CargarClienteOcasionalComponent_div_13_Template, 2, 0, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "div", 10)(15, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](16, "Resp. IVA");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](17, "select", 11)(18, "option", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](19, "Seleccionar Resp. IVA");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrepeaterCreate"](20, CargarClienteOcasionalComponent_For_21_Template, 2, 2, "option", 23, _forTrack0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](22, CargarClienteOcasionalComponent_div_22_Template, 2, 0, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](23, "div", 10)(24, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](25, "Tipo de documento");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](26, "select", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrepeaterCreate"](27, CargarClienteOcasionalComponent_For_28_Template, 2, 2, "option", 23, _forTrack0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](29, CargarClienteOcasionalComponent_div_29_Template, 2, 0, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](30, "div", 10)(31, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](32, "Nro. de documento");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](33, "input", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](34, CargarClienteOcasionalComponent_div_34_Template, 2, 0, "div", 8)(35, CargarClienteOcasionalComponent_div_35_Template, 2, 0, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](36, "div", 15)(37, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](38, "Provincia");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](39, "select-loading", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("valueSelect", function CargarClienteOcasionalComponent_Template_select_loading_valueSelect_39_listener($event) {
          return ctx.formGroup.controls.IdProvincia.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](40, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](41, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](42, "div", 15)(43, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](44, "Ciudad");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](45, "select-loading", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("valueSelect", function CargarClienteOcasionalComponent_Template_select_loading_valueSelect_45_listener($event) {
          return ctx.formGroup.controls.IdLocalidad.setValue($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](46, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](47, "div", 15)(48, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](49, "Calle");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](50, "input", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](51, CargarClienteOcasionalComponent_div_51_Template, 2, 0, "div", 8)(52, CargarClienteOcasionalComponent_div_52_Template, 2, 0, "div", 9)(53, CargarClienteOcasionalComponent_div_53_Template, 2, 0, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](54, "div", 15)(55, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](56, "Altura");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](57, "input", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](58, CargarClienteOcasionalComponent_div_58_Template, 2, 0, "div", 8)(59, CargarClienteOcasionalComponent_div_59_Template, 2, 0, "div", 9)(60, CargarClienteOcasionalComponent_div_60_Template, 2, 0, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](61, "div", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](62, CargarClienteOcasionalComponent_Conditional_62_Template, 2, 0, "button", 20)(63, CargarClienteOcasionalComponent_Conditional_63_Template, 4, 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        let tmp_23_0;
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](3, ctx.visualizar ? 3 : 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("Nombre"))("is-valid", ctx.vh.isControlValid("Nombre"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("Nombre"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "Nombre"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "Nombre"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("IdRespIVA"))("is-valid", ctx.vh.isControlValid("IdRespIVA"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrepeater"](ctx.respIVAs);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "IdRespIVA"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("TipoDoc"))("is-valid", ctx.vh.isControlValid("TipoDoc"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrepeater"](ctx.getTiposDocByRespIVA(ctx.formGroup.controls.IdRespIVA.value));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "TipoDoc"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("NroDoc"))("is-valid", ctx.vh.isControlValid("NroDoc"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("mask", ctx.getMask(ctx.formGroup.controls.IdRespIVA.value));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("NroDoc"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "NroDoc"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccionar provincia")("items", (tmp_23_0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](40, 57, ctx.provincias$)) == null ? null : tmp_23_0.Data)("valueSelected", ctx.formGroup.controls.IdProvincia.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](41, 59, ctx.provinciaService.isLoading$))("deshabilitado", ctx.formGroup.controls.IdProvincia.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-valid", ctx.vh.isControlValid("IdLocalidad"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("defaultValue", -1)("defaultValueDis", true)("defaultString", "Seleccionar ciudad")("items", ctx.localidades)("valueSelected", ctx.formGroup.controls.IdLocalidad.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind1"](46, 61, ctx.localidadService.isLoading$))("deshabilitado", ctx.formGroup.controls.IdLocalidad.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("Calle"))("is-valid", ctx.vh.isControlValid("Calle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("Calle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "Calle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "Calle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassProp"]("is-invalid", ctx.vh.isControlInvalid("NroCalle"))("is-valid", ctx.vh.isControlValid("NroCalle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.isControlValid("NroCalle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("required", "NroCalle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx.vh.controlHasError("maxlength", "NroCalle"));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](62, ctx.visualizar ? 62 : 63);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, ngx_mask__WEBPACK_IMPORTED_MODULE_11__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormControlName, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_5__.SelectLoadingComponent, _angular_common__WEBPACK_IMPORTED_MODULE_10__.AsyncPipe]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarArticuloComponent: () => (/* binding */ SeleccionarArticuloComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_19__ = __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_pages_dashboards_core_seleccionar_proveedor_seleccionar_proveedor_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-proveedor/seleccionar-proveedor.component */ 92146);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_marca_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/marca.service */ 73364);
/* harmony import */ var src_app_core_services_core_rubro_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/rubro.service */ 16777);
/* harmony import */ var src_app_core_services_core_unidad_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/unidad.service */ 24861);
/* harmony import */ var _core_services_core_tipoMoneda_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../core/services/core/tipoMoneda.service */ 29845);
/* harmony import */ var src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/core/proveedor.service */ 19803);
/* harmony import */ var src_app_core_services_core_familia_articulo_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/core/familia-articulo.service */ 38080);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../core/directives/format-codigo-input.directive */ 48508);
/* harmony import */ var primeng_treeselect__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primeng/treeselect */ 36081);
/* harmony import */ var _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/ui/pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/ui/pagination/pagination.component */ 74813);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../shared/ui/select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);
























const _c0 = ["codigoInput"];
const _c1 = ["nombreInput"];
function SeleccionarArticuloComponent_a_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_a_15_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r10.borrarArticuloCod());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function SeleccionarArticuloComponent_a_24_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_a_24_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r12.borrarArticuloNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function SeleccionarArticuloComponent_div_27_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 29)(1, "label", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Art\u00EDculo seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](4, "input", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](5, "a", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_div_27_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r14.EliminarArticulos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](6, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", ctx_r4.articulo_seleccionado);
  }
}
function SeleccionarArticuloComponent_div_28_ng_template_2_Template(rf, ctx) {}
function SeleccionarArticuloComponent_div_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 32)(1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](2, SeleccionarArticuloComponent_div_28_ng_template_2_Template, 0, 0, "ng-template", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵreference"](41);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngTemplateOutlet", _r9);
  }
}
function SeleccionarArticuloComponent_Conditional_32_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 35)(1, "app-table2", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("lazyLoad", function SeleccionarArticuloComponent_Conditional_32_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r17.lazyLoadChange($event));
    })("selectRowsAction", function SeleccionarArticuloComponent_Conditional_32_Template_app_table2_selectRowsAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r18);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r19.selectArticulo($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("columns", ctx_r6.articulosHeader)("datos", ctx_r6.articulos)("page", ctx_r6.page)("order", ctx_r6.order)("sentido", ctx_r6.sentido)("cant_search", ctx_r6.cant_search)("totalItems", ctx_r6.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](2, 14, ctx_r6.articuloService.isLoading$))("acciones", false)("selectRows", true)("typeSelection", ctx_r6.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx_r6.articulos_seleccionados)("verSeleccionados", true);
  }
}
function SeleccionarArticuloComponent_Conditional_33_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "li", 47)(1, "div", 48)(2, "input", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("change", function SeleccionarArticuloComponent_Conditional_33_Conditional_4_Template_input_change_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r23.allSelected(ctx_r23.articulos) ? ctx_r23.quitarPagina() : ctx_r23.agregarPagina());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "div", 50)(4, "p", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5, "Seleccionar P\u00E1gina");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](6, "p", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("checked", ctx_r20.allSelected(ctx_r20.articulos));
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", ctx_r20.articulos_seleccionados.length, " Seleccionados ");
  }
}
function SeleccionarArticuloComponent_Conditional_33_For_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "li", 47)(1, "div", 48)(2, "input", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("change", function SeleccionarArticuloComponent_Conditional_33_For_6_Template_input_change_2_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r31);
      const item_r25 = restoredCtx.$implicit;
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r30.selectArticuloMobile(item_r25));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "div", 54)(4, "p", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r25 = ctx.$implicit;
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("checked", ctx_r21.isSelected(item_r25));
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate2"](" (", item_r25.Codigo, ")", item_r25.Nombre, " ");
  }
}
function SeleccionarArticuloComponent_Conditional_33_ForEmpty_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "li", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1, " No se encontraron art\u00EDculos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function SeleccionarArticuloComponent_Conditional_33_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 37)(1, "div", 38)(2, "select-loading", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("valueSelect", function SeleccionarArticuloComponent_Conditional_33_Template_select_loading_valueSelect_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r32.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "ul", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](4, SeleccionarArticuloComponent_Conditional_33_Conditional_4_Template, 8, 2, "li", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrepeaterCreate"](5, SeleccionarArticuloComponent_Conditional_33_For_6_Template, 6, 3, "li", 41, _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrepeaterTrackByIndex"], false, SeleccionarArticuloComponent_Conditional_33_ForEmpty_7_Template, 2, 0, "li", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](8, "div", 42)(9, "div", 38)(10, "app-page-info", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("valueSelect", function SeleccionarArticuloComponent_Conditional_33_Template_app_page_info_valueSelect_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r33);
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r34.setPage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](11, "div", 38)(12, "div", 44)(13, "div", 45)(14, "app-pagination", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("pageChanges", function SeleccionarArticuloComponent_Conditional_33_Template_app_pagination_pageChanges_14_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r33);
      const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r35.pageChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Seleccionar")("defaultValueDis", true)("items", ctx_r7.ordenamientos)("valueSelected", ctx_r7.getOrdenamiento());
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵconditional"](4, ctx_r7.articulos.length != 0 && ctx_r7.filtros.Multiple ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrepeater"](ctx_r7.articulos);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("page", ctx_r7.page)("totalItems", ctx_r7.totalItems)("items", ctx_r7.pageOptions)("valueSelected", ctx_r7.cant_search);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("currentPage", ctx_r7.page)("limit", ctx_r7.cant_search)("total", ctx_r7.totalItems);
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_2_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_ng_template_40_div_2_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r48);
      const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r47.borrarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](1, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 62)(1, "label", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Buscar por proveedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](4, "input", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](5, SeleccionarArticuloComponent_ng_template_40_div_2_a_5_Template, 2, 0, "a", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](6, "a", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_ng_template_40_div_2_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r50);
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r49.buscarProveedor());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](7, "i", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx_r36.getProveedor());
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Marcas");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "app-select-multiple", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function SeleccionarArticuloComponent_ng_template_40_div_3_Template_app_select_multiple_emitSelected_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r52);
      const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r51.formGroup.controls.buscarMarca.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r37.formGroup.controls.buscarMarca.value)("items", ctx_r37.marcas)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](4, 3, ctx_r37.marcaService.isLoading$));
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Rubro");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](3, "p-treeSelect", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("showClear", true)("options", ctx_r38.rubros)("metaKeySelection", false)("filter", true)("filterInputAutoFocus", true);
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Moneda");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "select-loading", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("valueSelect", function SeleccionarArticuloComponent_ng_template_40_div_5_Template_select_loading_valueSelect_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r54);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r53.formGroup.controls.buscarMoneda.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Todos")("items", ctx_r39.monedas)("valueSelected", ctx_r39.formGroup.controls.buscarMoneda.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](4, 5, ctx_r39.tipoMonedaService.isLoading$));
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Unidades");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "select-loading", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("valueSelect", function SeleccionarArticuloComponent_ng_template_40_div_6_Template_select_loading_valueSelect_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r56);
      const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r55.formGroup.controls.buscarUnidad.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Todos")("items", ctx_r40.unidades)("valueSelected", ctx_r40.formGroup.controls.buscarUnidad.value)("loading", _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](4, 5, ctx_r40.unidadService.isLoading$));
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_7_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "option", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r58 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", option_r58.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", option_r58.nombre, " ");
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Art\u00EDculo producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "select", 69)(4, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](6, SeleccionarArticuloComponent_ng_template_40_div_7_option_6_Template, 2, 2, "option", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngForOf", ctx_r41.produccionOptions);
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_8_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "option", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r60 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", option_r60.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", option_r60.nombre, " ");
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Art\u00EDculo con stock");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "select", 73)(4, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](6, SeleccionarArticuloComponent_ng_template_40_div_8_option_6_Template, 2, 2, "option", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngForOf", ctx_r42.stockOptions);
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_9_option_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "option", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const option_r62 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("value", option_r62.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtextInterpolate1"](" ", option_r62.nombre, " ");
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Art\u00EDculo combo");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "select", 74)(4, "option", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](5, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](6, SeleccionarArticuloComponent_ng_template_40_div_9_option_6_Template, 2, 2, "option", 71);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngForOf", ctx_r43.comboOptions);
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Tipo de Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "app-select-multiple", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function SeleccionarArticuloComponent_ng_template_40_div_10_Template_app_select_multiple_emitSelected_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r64);
      const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r63.formGroup.controls.tipoArticulo.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r44.formGroup.controls.tipoArticulo.value)("items", ctx_r44.tipoArticuloOptions);
  }
}
function SeleccionarArticuloComponent_ng_template_40_div_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r66 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 64)(1, "p", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](2, "Familias");
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](3, "app-select-multiple", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("emitSelected", function SeleccionarArticuloComponent_ng_template_40_div_11_Template_app_select_multiple_emitSelected_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵrestoreView"](_r66);
      const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵresetView"](ctx_r65.formGroup.controls.fliasArticulo.setValue($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("selected", ctx_r45.formGroup.controls.fliasArticulo.value)("items", ctx_r45.familiasArticulo);
  }
}
function SeleccionarArticuloComponent_ng_template_40_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementContainerStart"](0, 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](1, "div", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](2, SeleccionarArticuloComponent_ng_template_40_div_2_Template, 8, 1, "div", 60)(3, SeleccionarArticuloComponent_ng_template_40_div_3_Template, 5, 5, "div", 61)(4, SeleccionarArticuloComponent_ng_template_40_div_4_Template, 4, 5, "div", 61)(5, SeleccionarArticuloComponent_ng_template_40_div_5_Template, 5, 7, "div", 61)(6, SeleccionarArticuloComponent_ng_template_40_div_6_Template, 5, 7, "div", 61)(7, SeleccionarArticuloComponent_ng_template_40_div_7_Template, 7, 1, "div", 61)(8, SeleccionarArticuloComponent_ng_template_40_div_8_Template, 7, 1, "div", 61)(9, SeleccionarArticuloComponent_ng_template_40_div_9_Template, 7, 1, "div", 61)(10, SeleccionarArticuloComponent_ng_template_40_div_10_Template, 4, 2, "div", 61)(11, SeleccionarArticuloComponent_ng_template_40_div_11_Template, 4, 2, "div", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx_r8.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Proveedor.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Marcas.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Rubro.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Moneda.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Unidad.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Produccion.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.ConStock.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.Combo.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.TiposArticulo.Ocultar);
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx_r8.filtros.FamiliasArticulo.Ocultar);
  }
}
/* Componente que permite visualizar un listado de articulos y seleccionar uno en particular */
class SeleccionarArticuloComponent {
  constructor(articuloService, fb, modal, modalService, marcaService, rubroService, unidadService, tipoMonedaService, proveedorService, familiaArticuloService) {
    this.articuloService = articuloService;
    this.fb = fb;
    this.modal = modal;
    this.modalService = modalService;
    this.marcaService = marcaService;
    this.rubroService = rubroService;
    this.unidadService = unidadService;
    this.tipoMonedaService = tipoMonedaService;
    this.proveedorService = proveedorService;
    this.familiaArticuloService = familiaArticuloService;
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      //SECCION FILTROS
      TiposArticulo: {
        Ids: '2,3',
        Ocultar: false
      },
      Marcas: {
        Ids: '',
        Ocultar: false
      },
      Rubro: {
        Id: -1,
        Ocultar: false
      },
      Moneda: {
        Id: -1,
        Ocultar: false
      },
      Unidad: {
        Id: -1,
        Ocultar: false
      },
      ConStock: {
        Id: '',
        Ocultar: false
      },
      Combo: {
        Id: '',
        Ocultar: false
      },
      Produccion: {
        Id: '',
        Ocultar: false
      },
      BajaLogica: {
        Id: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.FALSO,
        Ocultar: true
      },
      Proveedor: {
        Id: -1,
        Ocultar: false
      },
      FamiliasArticulo: {
        Ids: '',
        Ocultar: false
      },
      IncluirFamiliasArticulo: 'S',
      IncluirPrecioAlternativos: 'N',
      IncluirStock: 'N',
      Depositos: {
        Ids: '',
        Ocultar: false
      },
      FocusInicial: 'codigo'
      //FIN SECCION FILTROS
    };
    //SP SINWEB-203 nueva config para seleccion multiple
    //@Input() multiple : boolean = false;
    this.articulos = [];
    this.articulos_seleccionados = [];
    this.articulo_seleccionado = '';
    this.moneda_seleccionada = -1;
    this.unidad_seleccionada = -1;
    this.filtro = false;
    this.filtroMobile = false;
    this.articulosHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.ArticulosHeader;
    this.formGroup = this.fb.group({
      buscarCod: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_19__.Validators.maxLength(20)],
      buscarNom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_19__.Validators.maxLength(200)],
      buscarRub: [],
      buscarMarca: [''],
      buscarUnidad: [-1],
      proveedor: [''],
      proveedorId: [-1],
      buscarMoneda: [-1],
      esProduccion: [''],
      controlaStock: [''],
      esCombo: [''],
      tipoArticulo: [[]],
      bajaLogica: [''],
      fliasArticulo: ['']
    });
    this.subscriptions = [];
    //paginacion articulos
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.totalItems = 0;
    this.produccionOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.stockOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.comboOptions = [{
      id: 'S',
      nombre: 'Si'
    }, {
      id: 'N',
      nombre: 'No'
    }];
    this.tipoArticuloOptions = [{
      id: 1,
      nombre: 'Compra'
    }, {
      id: 3,
      nombre: 'Compra y Venta'
    }, {
      id: 4,
      nombre: 'Gasto'
    }, {
      id: 5,
      nombre: 'Servicio a tercero'
    }, {
      id: 2,
      nombre: 'Venta'
    }];
    this.ordenamientos = [{
      Id: 1,
      Nombre: '🠋 Código',
      params: {
        ord: 19,
        sentido: 'Desc'
      }
    }, {
      Id: 2,
      Nombre: '🠉 Código',
      params: {
        ord: 2,
        sentido: 'Asc'
      }
    }, {
      Id: 3,
      Nombre: '🠋 Nombre',
      params: {
        ord: 3,
        sentido: 'Desc'
      }
    }, {
      Id: 4,
      Nombre: '🠉 Nombre',
      params: {
        ord: 3,
        sentido: 'Asc'
      }
    }];
    this.validate = () => {
      return false;
    };
  }
  ngOnInit() {
    //TODO REALIZAR MEJORAS SOBRE COMPONENTE SELECCIONAR , CAMBIOS DE TABLA Y FILTROS
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_4__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarMarcas();
    this.cargarRubros();
    this.cargarUnidades();
    this.cargarMonedas();
    this.cargarProveedor();
    this.cargarFamilias();
    this.cargarArticulos();
    this.configuracionFilter();
  }
  ngAfterViewInit() {
    setTimeout(() => {
      if (this.filtros.FocusInicial === 'codigo' && this.codigoInput) {
        this.codigoInput.nativeElement.focus();
      } else if (this.filtros.FocusInicial === 'nombre' && this.nombreInput) {
        this.nombreInput.nativeElement.focus();
      }
    });
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  configuracionFilter() {
    this.subscriptions.push(this.formGroup.controls.buscarRub.valueChanges.subscribe(rubro => {
      this.rubro_seleccionado = rubro ? rubro.Id : null;
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.buscarMarca.valueChanges.subscribe(marcas => {
      this.marcas_seleccionadas = marcas ? marcas.join(',') : '';
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.buscarUnidad.valueChanges.subscribe(IdUnidad => {
      this.unidad_seleccionada = IdUnidad;
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.buscarMoneda.valueChanges.subscribe(IdMoneda => {
      this.moneda_seleccionada = IdMoneda;
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.esProduccion.valueChanges.subscribe(resp => {
      this.esProduccion = resp;
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.controlaStock.valueChanges.subscribe(resp => {
      this.conStock = resp;
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.esCombo.valueChanges.subscribe(resp => {
      this.esCombo = resp;
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.tipoArticulo.valueChanges.subscribe(tipoArticulo => {
      this.tipoArticulo_seleccionados = tipoArticulo ? tipoArticulo.join(',') : '';
      this.page = 1;
      this.cargarArticulos();
    }));
    this.subscriptions.push(this.formGroup.controls.fliasArticulo.valueChanges.subscribe(familias => {
      this.familias_seleccionadas = familias ? familias.join(',') : '';
      this.page = 1;
      this.cargarArticulos();
    }));
  }
  cargarMarcas() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.marcaService.fetch(datos).subscribe(resp => {
      this.marcas = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarFamilias() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.familiaArticuloService.fetch(datos).subscribe(resp => {
      this.familiasArticulo = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarRubros() {
    this.rubros = [];
    let datos = {
      PageNumber: -1,
      Orden: 3,
      SentidoOrden: src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO
    };
    const susc = this.rubroService.fetch(datos).subscribe(resp => {
      if (resp.Data.length > 0) {
        // Llama al metodo que arma el arbol de rubros
        this.rubros = this.armarRubros(resp.Data);
      }
    });
    susc.unsubscribe;
  }
  /**
   * SP SINWEB-213 Crea una función para obtener las categorías principales y sus subcategorías anidadas
   */
  armarRubros(rubros) {
    rubros.forEach(f => {
      f.label = f.Nombre;
      f.children = rubros.filter(g => g.IdPadre == f.Id);
    });
    let result = rubros.filter(f => f.IdPadre == 0);
    return result;
  }
  cargarUnidades() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.unidadService.fetch(datos).subscribe(resp => {
      this.unidades = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarMonedas() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.tipoMonedaService.fetch(datos).subscribe(resp => {
      this.monedas = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarProveedor() {
    let datos = {
      PageNumber: -1
    };
    const susc = this.proveedorService.fetch(datos).subscribe(resp => {
      this.proveedores = resp.Data;
    });
    susc.unsubscribe;
  }
  cargarArticulos() {
    this.onSearchArticulos(this.cargarFiltrosArt(this.page, this.order, this.sentido));
  }
  buscarArticulos() {
    this.page = 1;
    this.cargarArticulos();
  }
  onSearchArticulos(datos) {
    const susc = this.articuloService.fetch(datos, undefined, {
      permisos: false
    }).subscribe(data => {
      this.articulos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    susc.unsubscribe;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarArticulos();
  }
  /**
   * 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.buscarArticulos();
  }
  pageChange(event) {
    this.page = event;
    this.cargarArticulos();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    let orden = this.ordenamientos.find(ord => ord.Id == event);
    this.page = 1;
    if (!orden) {
      this.order = 2;
      this.sentido = 'Desc';
    } else {
      this.order = orden.params.ord;
      this.sentido = orden.params.sentido;
    }
    this.buscarArticulos();
  }
  /**
   * Metodo que obtiene el id del ordenamiento actual
   * @returns
   */
  getOrdenamiento() {
    return this.ordenamientos.find(orden => orden.params.ord == this.order && orden.params.sentido == this.sentido).Id;
  }
  /**
   * SP SINWEB-360 metodo que inicializa variables de filtros
   */
  inicializarFiltros() {
    this.esProduccion = this.filtros.Produccion.Id;
    this.formGroup.get('esProduccion').setValue(this.esProduccion);
    this.esCombo = this.filtros.Combo.Id;
    this.formGroup.get('esCombo').setValue(this.esCombo);
    this.conStock = this.filtros.ConStock.Id;
    this.formGroup.get('controlaStock').setValue(this.conStock);
    this.unidad_seleccionada = this.filtros.Unidad.Id;
    this.formGroup.get('buscarUnidad').setValue(this.unidad_seleccionada);
    this.moneda_seleccionada = this.filtros.Moneda.Id;
    this.formGroup.get('buscarMoneda').setValue(this.moneda_seleccionada);
    this.rubro_seleccionado = this.filtros.Rubro.Id;
    this.formGroup.get('buscarRub').setValue(this.rubro_seleccionado == -1 ? null : this.rubro_seleccionado);
    this.marcas_seleccionadas = this.filtros.Marcas.Ids;
    this.formGroup.get('buscarMarca').setValue(this.marcas_seleccionadas);
    this.familias_seleccionadas = this.filtros.FamiliasArticulo.Ids;
    this.formGroup.get('fliasArticulo').setValue(this.familias_seleccionadas);
    this.tipoArticulo_seleccionados = this.filtros.TiposArticulo.Ids;
    this.formGroup.get('tipoArticulo').setValue(this.tipoArticulo_seleccionados.split(',').map(Number));
    this.proveedor_seleccionado = this.filtros.Proveedor.Id;
    this.formGroup.get('proveedorId').setValue(this.proveedor_seleccionado);
  }
  cargarFiltrosArt(page, order, sentido) {
    let datos = {};
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.orden = order;
    datos.OrdenAscDesc = sentido;
    datos.IncluirFamiliasArticulos = this.filtros.IncluirFamiliasArticulo;
    datos.IncluirPrecioAlternativos = this.filtros.IncluirPrecioAlternativos;
    datos.IncluirStock = this.filtros.IncluirStock;
    //SP SINWEB FILTROS
    if (this.esProduccion != undefined && this.esProduccion != '') {
      datos.EsProduccion = this.esProduccion;
    }
    if (this.conStock != undefined && this.conStock != '') {
      datos.ConStock = this.conStock;
    }
    if (this.esCombo != undefined && this.esCombo != '') {
      datos.EsCombo = this.esCombo;
    }
    if (this.familias_seleccionadas != undefined && this.familias_seleccionadas != '') {
      datos.IdsFliasArticulos = this.familias_seleccionadas;
    }
    if (this.bajaLogica != undefined && this.bajaLogica != '') {
      datos.BajaLogica = this.bajaLogica;
    }
    if (this.formGroup.value.buscarCod != undefined && this.formGroup.value.buscarCod != '') {
      datos.CodigoContencion = this.formGroup.value.buscarCod;
    }
    if (this.formGroup.value.buscarNom != undefined && this.formGroup.value.buscarNom != '') {
      datos.Nombre = this.formGroup.value.buscarNom;
    }
    if (this.marcas_seleccionadas != undefined && this.marcas_seleccionadas != '') {
      datos.IdsMarcas = this.marcas_seleccionadas;
    }
    if (this.rubro_seleccionado != null && this.rubro_seleccionado != undefined && this.rubro_seleccionado != -1) {
      datos.IdRubro = this.rubro_seleccionado;
    }
    if (this.unidad_seleccionada != -1) {
      datos.IdUnidad = this.unidad_seleccionada;
    }
    if (this.moneda_seleccionada != -1) {
      datos.IdTipoMoneda = this.moneda_seleccionada;
    }
    if (this.formGroup.value.proveedorId != undefined && this.formGroup.value.proveedorId != -1) {
      datos.IdProveedor = this.formGroup.get('proveedorId').value.toString();
    }
    if (this.tipoArticulo_seleccionados != undefined && this.tipoArticulo_seleccionados != '') {
      datos.IdsTiposArticulos = this.tipoArticulo_seleccionados;
    }
    if (this.filtros.Depositos.Ids != '' && this.filtros.Depositos.Ids != undefined) {
      datos.IdsDepositos = this.filtros.Depositos.Ids;
    }
    return datos;
  }
  selectArticulo($event) {
    if ($event.selectTodos) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      let datos = this.cargarFiltrosArt(-1, this.order, this.sentido);
      this.articuloService.fetch(datos).subscribe(res => {
        this.articulos_seleccionados = res.Data;
      });
    } else {
      this.articulos_seleccionados = $event.rows;
      this.articulo_seleccionado = this.articulos_seleccionados.length == 1 ? '(' + this.articulos_seleccionados[0].Codigo + ') ' + this.articulos_seleccionados[0].Nombre : '';
    }
  }
  quitarArticulo(articulo) {
    this.articulos_seleccionados = this.articulos_seleccionados.filter(art => art.Id !== articulo.Id);
  }
  /* Metodo que elimina todos o  el articulo de la selección */
  EliminarArticulos() {
    this.articulos_seleccionados = [];
    this.articulo_seleccionado = '';
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdArticulo: this.articulos_seleccionados[0].Id,
        Articulo: '(' + this.articulos_seleccionados[0].Codigo + ') ' + this.articulos_seleccionados[0].Nombre,
        ArticuloObj: this.articulos_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsArticulos: this.articulos_seleccionados.map(art => art.Id),
        Articulos: this.articulos_seleccionados.map(art => '(' + art.Codigo + ') ' + art.Nombre),
        ArticulosObj: this.articulos_seleccionados
      });
    }
  }
  getArticuloCod() {
    return this.formGroup.controls.buscarCod.value;
  }
  getArticuloNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  borrarArticuloCod() {
    this.formGroup.controls.buscarCod.reset('');
    this.cargarArticulos();
  }
  borrarArticuloNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarArticulos();
  }
  contStyle() {
    return {
      height: '36.75px'
    };
  }
  /**
   * SP SINWEB-213 - Método get para obtener campo Proveedor
   * @returns {any} Proveedor
   */
  getProveedor() {
    return this.formGroup.get('proveedor').value;
  }
  /**
   * SP SINWEB-213 - Método para limpiar el filtro Proveedor
   */
  borrarProveedor() {
    this.formGroup.get('proveedor').reset('');
    this.formGroup.get('proveedorId').reset(-1);
    this.page = 1;
    this.cargarArticulos();
  }
  /**
   * SP SINWEB-213 - 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_1__.SeleccionarProveedorComponent, {
      size: 'xl',
      backdropClass: 'back-z-index-last',
      windowClass: 'modal-z-index-last',
      scrollable: true
    });
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formGroup.controls.proveedorId.setValue(resolve.IdProveedor);
        this.formGroup.controls.proveedor.setValue(resolve.Proveedor);
        this.page = 1;
        this.cargarArticulos();
      }
    });
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  selectArticuloMobile(articulo) {
    const index = this.articulos_seleccionados.findIndex(art => art.Id === articulo.Id);
    if (this.filtros.Multiple) {
      index == -1 ? this.articulos_seleccionados.push(articulo) : this.articulos_seleccionados.splice(index, 1);
    } else {
      if (index == -1) {
        this.articulos_seleccionados = [articulo];
        this.articulo_seleccionado = '(' + articulo.Codigo + ') ' + articulo.Nombre;
      } else {
        this.articulos_seleccionados = [];
        this.articulo_seleccionado = '';
      }
    }
    //SP Chekeo si el articulo esta en el array de seleccionados
  }
  isSelected(articulo) {
    return this.articulos_seleccionados.some(art => art.Id === articulo.Id);
  }
  allSelected(articulos) {
    return articulos.every(art => this.articulos_seleccionados.some(sel => sel.Id === art.Id));
  }
  agregarPagina() {
    //SP Agrega todos los articulos de la pagina actual a la seleccion
    this.articulos.forEach(articulo => {
      if (!this.isSelected(articulo)) {
        this.articulos_seleccionados.push(articulo);
      }
    });
  }
  quitarPagina() {
    //SP Quita todos los articulos de la pagina actual de la seleccion
    this.articulos.forEach(articulo => {
      const index = this.articulos_seleccionados.findIndex(art => art.Id === articulo.Id);
      if (index !== -1) {
        this.articulos_seleccionados.splice(index, 1);
      }
    });
  }
  static #_ = this.ɵfac = function SeleccionarArticuloComponent_Factory(t) {
    return new (t || SeleccionarArticuloComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_5__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_20__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_core_marca_service__WEBPACK_IMPORTED_MODULE_6__.MarcaService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_core_rubro_service__WEBPACK_IMPORTED_MODULE_7__.RubroService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_core_unidad_service__WEBPACK_IMPORTED_MODULE_8__.UnidadService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](_core_services_core_tipoMoneda_service__WEBPACK_IMPORTED_MODULE_9__.TipoMonedaService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_10__.ProveedorService), _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdirectiveInject"](src_app_core_services_core_familia_articulo_service__WEBPACK_IMPORTED_MODULE_11__.FamiliaArticuloService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineComponent"]({
    type: SeleccionarArticuloComponent,
    selectors: [["seleccionar-articulo"]],
    viewQuery: function SeleccionarArticuloComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵviewQuery"](_c1, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵloadQuery"]()) && (ctx.codigoInput = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵloadQuery"]()) && (ctx.nombreInput = _t.first);
      }
    },
    inputs: {
      filtros: "filtros"
    },
    decls: 42,
    vars: 13,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [1, "row", "g-3", "justify-content-center", "justify-content-lg-start", "mb-2", 3, "formGroup"], [1, "col-auto", "d-flex", "align-self-center"], [1, "btn", "btn-icon", "btn-soft-secondary", "w-100", 3, "click"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "buscarCod", "placeholder", "", "maxlength", "20", "formatCodigoInput", "", 1, "form-control", 3, "keyup.enter"], ["codigoInput", ""], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["type", "text", "formControlName", "buscarNom", "placeholder", "", "maxlength", "200", 1, "form-control", 3, "keyup.enter"], ["nombreInput", ""], ["class", "col-xxl-3 col-lg-3", 4, "ngIf"], ["class", "card", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "row"], [1, "col-lg-12"], ["class", "table-responsive"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], ["FILTRO_ART", ""], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], [1, "col-xxl-3", "col-lg-3"], ["type", "text", "name", "Articulo", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "card"], [1, "card-body", "p-1"], [3, "ngTemplateOutlet"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "verSeleccionados", "lazyLoad", "selectRowsAction"], [1, "row", "justify-content-center", "my-3", "position-relative"], [1, "col-auto"], [3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "valueSelect"], [1, "list-group"], ["class", "d-flex list-group-item"], [1, "row", "justify-content-center", "align-items-center", "mt-3"], [3, "page", "totalItems", "items", "valueSelected", "valueSelect"], [1, "card", "d-inline-block", "ms-auto", "mb-0"], [1, "card-body", "p-2", 2, "background", "transparent"], [3, "currentPage", "limit", "total", "pageChanges"], [1, "d-flex", "list-group-item"], [1, "col-2"], ["type", "checkbox", 1, "form-check-input", "form-control-lg", 3, "checked", "change"], [1, "col-10", "text-center"], [1, "mb-1"], [1, "mb-0"], ["type", "checkbox", 1, "form-check-input", "form-control-lg", "mt-2", 3, "checked", "change"], [1, "col-10", "align-content-center"], [1, "mb-1", "fw-600"], [1, "list-group-item", "text-center"], ["class", "list-group-item text-center"], [3, "formGroup"], [1, "row", "p-2"], ["class", "col-xxl-4 col-lg-4 mt-1", 4, "ngIf"], ["class", "col-xxl-4 col-lg-4 mt-2", 4, "ngIf"], [1, "col-xxl-4", "col-lg-4", "mt-1"], ["type", "search", "formControlName", "proveedor", "placeholder", "", "readonly", "", 1, "form-control"], [1, "col-xxl-4", "col-lg-4", "mt-2"], [1, "mb-1", "fw-500"], ["labelKey", "Nombre", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "loading", "emitSelected"], ["containerStyleClass", "w-100", "formControlName", "buscarRub", "placeholder", "Seleccionar", "selectionMode", "single", 3, "showClear", "options", "metaKeySelection", "filter", "filterInputAutoFocus"], [3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "valueSelect"], ["formControlName", "esProduccion", 1, "form-select"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["formControlName", "controlaStock", 1, "form-select"], ["formControlName", "esCombo", 1, "form-select"], ["labelKey", "nombre", "valueKey", "id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"], ["labelKey", "Nombre", "valueKey", "Id", "placeholder", "Seleccionar", 3, "selected", "items", "emitSelected"]],
    template: function SeleccionarArticuloComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](3, " Seleccionar Art\u00EDculo ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "a", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_Template_a_click_7_listener() {
          return ctx.filtro = !ctx.filtro;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](8, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](9, "div", 7)(10, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](11, "Buscar por c\u00F3digo");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](12, "div", 9)(13, "input", 10, 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("keyup.enter", function SeleccionarArticuloComponent_Template_input_keyup_enter_13_listener() {
          return ctx.buscarArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](15, SeleccionarArticuloComponent_a_15_Template, 2, 0, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](16, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_Template_a_click_16_listener() {
          return ctx.buscarArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](17, "i", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](18, "div", 7)(19, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](20, "Buscar por nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](21, "div", 9)(22, "input", 15, 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("keyup.enter", function SeleccionarArticuloComponent_Template_input_keyup_enter_22_listener() {
          return ctx.buscarArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](24, SeleccionarArticuloComponent_a_24_Template, 2, 0, "a", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](25, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_Template_a_click_25_listener() {
          return ctx.buscarArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelement"](26, "i", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](27, SeleccionarArticuloComponent_div_27_Template, 7, 1, "div", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](28, SeleccionarArticuloComponent_div_28_Template, 3, 1, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](29, "form", 19)(30, "div", 20)(31, "div", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](32, SeleccionarArticuloComponent_Conditional_32_Template, 3, 16, "div", 22)(33, SeleccionarArticuloComponent_Conditional_33_Template, 15, 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](34, "div", 23)(35, "button", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_Template_button_click_35_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](36, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementStart"](37, "button", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵlistener"]("click", function SeleccionarArticuloComponent_Template_button_click_37_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipe"](38, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtext"](39, " Seleccionar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplate"](40, SeleccionarArticuloComponent_ng_template_40_Template, 12, 11, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵtemplateRefExtractor"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtro ? "mdi mdi-filter-outline mdi-18px align-middle" : "mdi mdi-filter-off-outline mdi-18px align-middle");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-3 col-lg-3" : "col-xxl-5 col-lg-5");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.getArticuloCod());
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngClass", !ctx.filtros.Multiple ? "col-xxl-5 col-lg-5 col-md-4" : "col-xxl-6 col-lg-6 col-md-4");
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.getArticuloNom());
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("ngIf", ctx.filtro);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵconditional"](32, !ctx.isMobile() ? 32 : 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵproperty"]("disabled", ctx.formGroup.invalid || ctx.articulos_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵpipeBind1"](38, 11, ctx.articuloService.isLoading$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_21__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_21__.NgTemplateOutlet, _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_12__.FormatCodigoInputDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_19__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_19__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.MaxLengthValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_19__.FormControlName, primeng_treeselect__WEBPACK_IMPORTED_MODULE_22__.TreeSelect, _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_13__.PageInfoComponent, _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_14__.PaginationComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_15__.SelectLoadingComponent, _shared_ui_select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_16__.SelectMultipleComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_17__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_21__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n[_nghost-%COMP%]     .p-treeselect {\n  height: 36.75px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-treeselect-label {\n  font-size: 0.8125rem;\n  padding: 8px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-tree-container {\n  font-size: 0.8125rem;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-overlay {\n  top: 37px !important;\n}\n\n.fw-500[_ngcontent-%COMP%] {\n  font-weight: 500;\n}\n\n .back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_2__.triggerFadeOut]
    }
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarClienteComponent: () => (/* binding */ SeleccionarClienteComponent)
/* 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 lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_seleccionar_cliente_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/seleccionar-cliente.service */ 40329);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/ui/pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/pagination/pagination.component */ 74813);
/* harmony import */ var _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);

















const _c0 = ["codigoInput"];
const _c1 = ["nombreInput"];
function SeleccionarClienteComponent_div_7_a_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_7_a_6_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r9.borrarClientesCod());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function SeleccionarClienteComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 14)(1, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Buscar por c\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 16)(4, "input", 17, 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("keyup.enter", function SeleccionarClienteComponent_div_7_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r11.buscarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, SeleccionarClienteComponent_div_7_a_6_Template, 2, 0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_7_Template_a_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r12);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r13.buscarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", !ctx_r0.filtros.Multiple ? "col-xxl-3 col-lg-3" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r0.getClienteCod());
  }
}
function SeleccionarClienteComponent_div_8_a_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_8_a_6_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r16.borrarClientesNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function SeleccionarClienteComponent_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 14)(1, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Buscar por nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 16)(4, "input", 24, 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("keyup.enter", function SeleccionarClienteComponent_div_8_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r19);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r18.buscarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](6, SeleccionarClienteComponent_div_8_a_6_Template, 2, 0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_8_Template_a_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r19);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r20.buscarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", !ctx_r1.filtros.Multiple ? "col-xxl-5 col-lg-5" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r1.getClienteNom());
  }
}
function SeleccionarClienteComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 26)(1, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Cliente seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](4, "input", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "a", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_9_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r22);
      const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r21.EliminarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](6, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("value", ctx_r2.cliente_seleccionado);
  }
}
function SeleccionarClienteComponent_div_11_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_11_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r29);
      const cliSelect_r27 = restoredCtx.$implicit;
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r28.quitarCliente(cliSelect_r27));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const cliSelect_r27 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate2"](" (", cliSelect_r27.Codigo, ") ", cliSelect_r27.Nombre, " ");
  }
}
function SeleccionarClienteComponent_div_11_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_11_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r31);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r30.EliminarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarClienteComponent_div_11_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, SeleccionarClienteComponent_div_11_div_3_div_1_Template, 3, 3, "div", 33)(2, SeleccionarClienteComponent_div_11_div_3_div_2_Template, 3, 1, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r23.clientes_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r23.clientes_seleccionados.length > 1);
  }
}
function SeleccionarClienteComponent_div_11_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div")(1, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_11_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r32.EliminarClientes());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Todos los clientes ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarClienteComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 29)(1, "label", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, "Clientes seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](3, SeleccionarClienteComponent_div_11_div_3_Template, 3, 2, "div", 30)(4, SeleccionarClienteComponent_div_11_div_4_Template, 4, 1, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r3.clientes_seleccionados.length > 0 && ctx_r3.clientes_seleccionados.length < ctx_r3.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r3.clientes_seleccionados.length >= ctx_r3.totalItems);
  }
}
function SeleccionarClienteComponent_Conditional_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 38)(1, "app-table2", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("lazyLoad", function SeleccionarClienteComponent_Conditional_15_Template_app_table2_lazyLoad_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r35);
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r34.lazyLoadChange($event));
    })("selectRowsAction", function SeleccionarClienteComponent_Conditional_15_Template_app_table2_selectRowsAction_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r35);
      const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r36.selectCliente($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("columns", ctx_r4.clientesHeader)("datos", ctx_r4.clientes)("page", ctx_r4.page)("order", ctx_r4.order)("sentido", ctx_r4.sentido)("cant_search", ctx_r4.cant_search)("totalItems", ctx_r4.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](2, 13, ctx_r4.isLoading))("acciones", false)("selectRows", true)("typeSelection", ctx_r4.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx_r4.clientes_seleccionados);
  }
}
function SeleccionarClienteComponent_Conditional_16_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "li", 50)(1, "div", 51)(2, "input", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("change", function SeleccionarClienteComponent_Conditional_16_Conditional_4_Template_input_change_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r41);
      const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r40.allSelected(ctx_r40.clientes) ? ctx_r40.quitarPagina() : ctx_r40.agregarPagina());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 53)(4, "p", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Seleccionar P\u00E1gina");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "p", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("checked", ctx_r37.allSelected(ctx_r37.clientes));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", ctx_r37.clientes_seleccionados.length, " Seleccionados ");
  }
}
function SeleccionarClienteComponent_Conditional_16_For_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "li", 50)(1, "div", 51)(2, "input", 56);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("change", function SeleccionarClienteComponent_Conditional_16_For_6_Template_input_change_2_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r48);
      const item_r42 = restoredCtx.$implicit;
      const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r47.selectClienteMobile(item_r42));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "div", 57)(4, "p", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const item_r42 = ctx.$implicit;
    const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("checked", ctx_r38.isSelected(item_r42));
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate2"](" (", item_r42.Codigo, ")", item_r42.Nombre, " ");
  }
}
function SeleccionarClienteComponent_Conditional_16_ForEmpty_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "li", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, " No se encontraron clientes ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
  }
}
function SeleccionarClienteComponent_Conditional_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 40)(1, "div", 41)(2, "select-loading", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valueSelect", function SeleccionarClienteComponent_Conditional_16_Template_select_loading_valueSelect_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r50);
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r49.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "ul", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](4, SeleccionarClienteComponent_Conditional_16_Conditional_4_Template, 8, 2, "li", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrepeaterCreate"](5, SeleccionarClienteComponent_Conditional_16_For_6_Template, 6, 3, "li", 44, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrepeaterTrackByIndex"], false, SeleccionarClienteComponent_Conditional_16_ForEmpty_7_Template, 2, 0, "li", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](8, "div", 45)(9, "div", 41)(10, "app-page-info", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("valueSelect", function SeleccionarClienteComponent_Conditional_16_Template_app_page_info_valueSelect_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r50);
      const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r51.setPage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](11, "div", 41)(12, "div", 47)(13, "div", 48)(14, "app-pagination", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("pageChanges", function SeleccionarClienteComponent_Conditional_16_Template_app_pagination_pageChanges_14_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r50);
      const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r52.pageChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("defaultValue", 0)("defaultString", "Seleccionar")("defaultValueDis", true)("items", ctx_r5.ordenamientos)("valueSelected", ctx_r5.getOrdenamiento());
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](4, ctx_r5.clientes.length != 0 && ctx_r5.filtros.Multiple ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrepeater"](ctx_r5.clientes);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("page", ctx_r5.page)("totalItems", ctx_r5.totalItems)("items", ctx_r5.pageOptions)("valueSelected", ctx_r5.cant_search);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("currentPage", ctx_r5.page)("limit", ctx_r5.cant_search)("total", ctx_r5.totalItems);
  }
}
function SeleccionarClienteComponent_div_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 61)(1, "button", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_17_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r54);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r53.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "button", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function SeleccionarClienteComponent_div_17_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r54);
      const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r55.select());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("disabled", ctx_r6.formGroup.invalid || ctx_r6.clientes_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](4, 1, ctx_r6.isLoading));
  }
}
/**
 * SP SINWEB-175 Componente de seleccion de clientes
 */
class SeleccionarClienteComponent {
  constructor(clienteService, fb, modal, selClienteService) {
    this.clienteService = clienteService;
    this.fb = fb;
    this.modal = modal;
    this.selClienteService = selClienteService;
    this.seleccionados = [];
    this.emitSeleccionados = new _angular_core__WEBPACK_IMPORTED_MODULE_10__.EventEmitter();
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      FocusInicial: 'codigo',
      Modal: true,
      FetchSource: undefined,
      OcultarFiltros: false,
      //SECCION FILTROS
      Estado: {
        Id: 'A',
        Ocultar: true
      }
      //FIN SECCION FILTROS
    };
    this.clientes = [];
    this.clientes_seleccionados = [];
    this.cliente_seleccionado = '';
    this.clientesHeader = src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.ClientesHeader;
    this.formGroup = this.fb.group({
      buscarCod: [''],
      buscarNom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_11__.Validators.maxLength(50)],
      Estado: ['A']
    });
    this.subscriptions = [];
    this.isLoading = this.clienteService.isLoading$;
    //paginacion comprobantes
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.CANT_SEARCH;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.PAGE_OPTIONS;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.INIT_SENTIDO;
    this.totalItems = 0;
    this.ordenamientos = [{
      Id: 1,
      Nombre: '\u25BC Código',
      params: {
        ord: 19,
        sentido: 'Desc'
      }
    }, {
      Id: 2,
      Nombre: '\u25B2 Código',
      params: {
        ord: 2,
        sentido: 'Asc'
      }
    }, {
      Id: 3,
      Nombre: '\u25BC Cliente',
      params: {
        ord: 3,
        sentido: 'Desc'
      }
    }, {
      Id: 4,
      Nombre: '\u25B2 Cliente',
      params: {
        ord: 3,
        sentido: 'Asc'
      }
    }];
  }
  ngOnInit() {
    if (this.seleccionados) {
      this.clientes_seleccionados = this.seleccionados;
      this.cliente_seleccionado = this.clientes_seleccionados.length == 1 ? '(' + this.clientes_seleccionados[0].Codigo + ') ' + this.clientes_seleccionados[0].Nombre : '';
    }
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarClientes();
  }
  ngAfterViewInit() {
    setTimeout(() => {
      if (this.filtros.FocusInicial === 'codigo' && this.codigoInput) {
        this.codigoInput.nativeElement.focus();
      } else if (this.filtros.FocusInicial === 'nombre' && this.nombreInput) {
        this.nombreInput.nativeElement.focus();
      }
    });
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  inicializarFiltros() {
    this.estado = this.filtros.Estado.Id;
    this.formGroup.controls.Estado.setValue(this.estado);
  }
  cargarClientes() {
    this.onSearchClientes(this.cargarFiltrosClientes(this.page, this.order, this.sentido));
  }
  buscarClientes() {
    this.page = 1;
    this.cargarClientes();
  }
  onSearchClientes(datos) {
    this.selClienteService.setData(datos);
    let suscFetch;
    let suscClientes;
    if (this.filtros.FetchSource) {
      suscFetch = this.filtros.FetchSource.subscribe(data => {
        this.clientes = data.Data;
        if (data.Data != undefined) {
          this.totalItems = data.TotalRecords;
        } else {
          this.totalItems = 0;
        }
      });
    } else {
      suscClientes = this.clienteService.fetch(datos, undefined, {
        permisos: false
      }).subscribe(data => {
        this.clientes = data.Data;
        if (data.Data != undefined) {
          this.totalItems = data.TotalRecords;
        } else {
          this.totalItems = 0;
        }
      });
    }
    if (suscFetch) {
      this.subscriptions.push(suscFetch);
    }
    if (suscClientes) {
      this.subscriptions.push(suscClientes);
    }
  }
  cargarFiltrosClientes(page, order, sentido) {
    let datos = {};
    //predeterminado
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    //busqueda
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //filtros
    if (!this.filtros.OcultarFiltros) {
      if (this.formGroup.value.buscarCod != undefined && this.formGroup.value.buscarCod != '') {
        datos.Codigo = this.formGroup.value.buscarCod;
      }
      if (this.formGroup.value.buscarNom != undefined && this.formGroup.value.buscarNom != '') {
        datos.Nombre = this.formGroup.value.buscarNom;
      }
    }
    if (this.estado != undefined && this.estado != '') {
      datos.Estado = this.estado;
    }
    return datos;
  }
  /**
   *
   * @param $event
   */
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarClientes();
  }
  /**
   * 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.buscarClientes();
  }
  pageChange(event) {
    this.page = event;
    this.cargarClientes();
  }
  /**
   * Metodo que setea el orden pagina y actualiza la busqueda
   * @param {any} event Objeto que contiene idOrden y sentido
   */
  setOrder(event) {
    let orden = this.ordenamientos.find(ord => ord.Id == event);
    this.page = 1;
    if (!orden) {
      this.order = 2;
      this.sentido = 'Desc';
    } else {
      this.order = orden.params.ord;
      this.sentido = orden.params.sentido;
    }
    this.buscarClientes();
  }
  /**
   * Metodo que obtiene el id del ordenamiento actual
   * @returns
   */
  getOrdenamiento() {
    return this.ordenamientos.find(orden => orden.params.ord == this.order && orden.params.sentido == this.sentido).Id;
  }
  selectCliente($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltrosClientes(-1, this.order, this.sentido);
      if (this.filtros.FetchSource) {
        this.selClienteService.setData(datos);
        this.filtros.FetchSource.subscribe(res => {
          this.clientes_seleccionados = res.Data;
          if (!this.filtros.Modal) {
            this.selectEmit();
          }
        });
      } else {
        this.clienteService.fetch(datos, undefined, {
          permisos: false
        }).subscribe(res => {
          this.clientes_seleccionados = res.Data;
          if (!this.filtros.Modal) {
            this.selectEmit();
          }
        });
      }
      //this.clienteService.fetch(datos).subscribe((res:any) => {
      //this.clientes_seleccionados= res.Data;
      //if(!this.filtros.Modal){
      //this.selectEmit()
      //}
      //})
    } else {
      this.clientes_seleccionados = $event.rows;
      this.cliente_seleccionado = this.clientes_seleccionados.length == 1 ? '(' + this.clientes_seleccionados[0].Codigo + ') ' + this.clientes_seleccionados[0].Nombre : '';
      if (!this.filtros.Modal) {
        this.selectEmit();
      }
    }
  }
  quitarCliente(cliente) {
    this.clientes_seleccionados = this.clientes_seleccionados.filter(cli => cli.Id !== cliente.Id);
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  /* Metodo que elimina todos o  el cliente de la selección */
  EliminarClientes() {
    this.clientes_seleccionados = [];
    this.cliente_seleccionado = '';
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdCliente: this.clientes_seleccionados[0].Id,
        Cliente: '(' + this.clientes_seleccionados[0].Codigo + ') ' + this.clientes_seleccionados[0].Nombre,
        ClienteObj: this.clientes_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsClientes: this.clientes_seleccionados.map(cli => cli.Id),
        Clientes: this.clientes_seleccionados.map(cli => '(' + cli.Codigo + ') ' + cli.Nombre),
        ClienteObj: this.clientes_seleccionados
      });
    }
  }
  selectEmit() {
    if (!this.filtros.Modal) {
      if (!this.filtros.Multiple) {
        this.emitSeleccionados.emit({
          IdCliente: this.clientes_seleccionados[0].Id,
          Cliente: '(' + this.clientes_seleccionados[0].Codigo + ') ' + this.clientes_seleccionados[0].Nombre,
          ClienteObj: this.clientes_seleccionados[0]
        });
      } else {
        this.emitSeleccionados.emit({
          IdsClientes: this.clientes_seleccionados.map(cli => cli.Id),
          Clientes: this.clientes_seleccionados.map(cli => '(' + cli.Codigo + ') ' + cli.Nombre),
          ClienteObj: this.clientes_seleccionados
        });
      }
    }
  }
  getClienteNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  getClienteCod() {
    return this.formGroup.controls.buscarCod.value;
  }
  borrarClientesCod() {
    this.formGroup.controls.buscarCod.reset('');
    this.cargarClientes();
  }
  borrarClientesNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarClientes();
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  selectClienteMobile(cliente) {
    const index = this.clientes_seleccionados.findIndex(cli => cli.Id === cliente.Id);
    if (this.filtros.Multiple) {
      index == -1 ? this.clientes_seleccionados.push(cliente) : this.clientes_seleccionados.splice(index, 1);
    } else {
      if (index == -1) {
        this.clientes_seleccionados = [cliente];
        this.cliente_seleccionado = '(' + cliente.Codigo + ') ' + cliente.Nombre;
      } else {
        this.clientes_seleccionados = [];
        this.cliente_seleccionado = '';
      }
    }
    //SP Chekeo si el cliente esta en el array de seleccionados
  }
  isSelected(cliente) {
    return this.clientes_seleccionados.some(cli => cli.Id === cliente.Id);
  }
  allSelected(clientes) {
    return clientes.every(cli => this.clientes_seleccionados.some(sel => sel.Id === cli.Id));
  }
  agregarPagina() {
    //SP Agrega todos los clientes de la pagina actual a la seleccion
    this.clientes.forEach(cliente => {
      if (!this.isSelected(cliente)) {
        this.clientes_seleccionados.push(cliente);
      }
    });
  }
  quitarPagina() {
    //SP Quita todos los clientes de la pagina actual de la seleccion
    this.clientes.forEach(cliente => {
      const index = this.clientes_seleccionados.findIndex(cli => cli.Id === cliente.Id);
      if (index !== -1) {
        this.clientes_seleccionados.splice(index, 1);
      }
    });
  }
  static #_ = this.ɵfac = function SeleccionarClienteComponent_Factory(t) {
    return new (t || SeleccionarClienteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_4__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_core_services_core_seleccionar_cliente_service__WEBPACK_IMPORTED_MODULE_5__.SeleccionarClienteService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({
    type: SeleccionarClienteComponent,
    selectors: [["app-seleccionar-cliente"]],
    viewQuery: function SeleccionarClienteComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵviewQuery"](_c1, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵloadQuery"]()) && (ctx.codigoInput = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵloadQuery"]()) && (ctx.nombreInput = _t.first);
      }
    },
    inputs: {
      seleccionados: "seleccionados",
      filtros: "filtros"
    },
    outputs: {
      emitSeleccionados: "emitSeleccionados"
    },
    decls: 18,
    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, "min-height", "200px"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass", 4, "ngIf"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], ["class", "table-responsive"], ["class", "modal-footer", 4, "ngIf"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "mask", "0*", "maxlength", "6", "formControlName", "buscarCod", "placeholder", "", 1, "form-control", 3, "keyup.enter"], ["codigoInput", ""], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["type", "text", "formControlName", "buscarNom", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "keyup.enter"], ["nombreInput", ""], [1, "col-xxl-4", "col-lg-4"], ["type", "text", "name", "Cliente", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], [1, "row", "justify-content-center", "my-3", "position-relative"], [1, "col-auto"], [3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "valueSelect"], [1, "list-group"], ["class", "d-flex list-group-item"], [1, "row", "justify-content-center", "align-items-center", "mt-3"], [3, "page", "totalItems", "items", "valueSelected", "valueSelect"], [1, "card", "d-inline-block", "ms-auto", "mb-0"], [1, "card-body", "p-2", 2, "background", "transparent"], [3, "currentPage", "limit", "total", "pageChanges"], [1, "d-flex", "list-group-item"], [1, "col-2"], ["type", "checkbox", 1, "form-check-input", "form-control-lg", 3, "checked", "change"], [1, "col-10", "text-center"], [1, "mb-1"], [1, "mb-0"], ["type", "checkbox", 1, "form-check-input", "form-control-lg", "mt-2", 3, "checked", "change"], [1, "col-10", "align-content-center"], [1, "mb-1", "fw-600"], [1, "list-group-item", "text-center"], ["class", "list-group-item text-center"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"]],
    template: function SeleccionarClienteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, " Seleccionar Cliente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](7, SeleccionarClienteComponent_div_7_Template, 9, 2, "div", 6)(8, SeleccionarClienteComponent_div_8_Template, 9, 2, "div", 6)(9, SeleccionarClienteComponent_div_9_Template, 7, 1, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](11, SeleccionarClienteComponent_div_11_Template, 5, 3, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](12, "form", 10)(13, "div", 8)(14, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](15, SeleccionarClienteComponent_Conditional_15_Template, 3, 15, "div", 12)(16, SeleccionarClienteComponent_Conditional_16_Template, 15, 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](17, SeleccionarClienteComponent_div_17_Template, 6, 3, "div", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.clientes_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵconditional"](15, !ctx.isMobile() ? 15 : 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.filtros.Modal);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_13__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵNgNoValidate"], _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, ngx_mask__WEBPACK_IMPORTED_MODULE_14__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormControlName, _shared_ui_pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_6__.PageInfoComponent, _shared_ui_pagination_pagination_component__WEBPACK_IMPORTED_MODULE_7__.PaginationComponent, _shared_ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_8__.SelectLoadingComponent, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_9__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_13__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n .back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarProveedorComponent: () => (/* binding */ SeleccionarProveedorComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/animaciones/fadeOut */ 68082);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-seleccionar */ 76284);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/proveedor.service */ 19803);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_seleccionar_proveedor_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/seleccionar-proveedor.service */ 50571);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/ui/table2/table2.component */ 63033);















function SeleccionarProveedorComponent_div_7_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_7_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r8.borrarCodigo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarProveedorComponent_div_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 15)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Buscar por c\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 17)(4, "input", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("keyup.enter", function SeleccionarProveedorComponent_div_7_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r10.buscarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](5, SeleccionarProveedorComponent_div_7_a_5_Template, 2, 0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_7_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r11);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r12.buscarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", !ctx_r0.filtros.Multiple ? "col-xxl-4 col-lg-4" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r0.getCodigo());
  }
}
function SeleccionarProveedorComponent_div_8_a_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_8_a_5_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r14.borrarNombre());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
}
function SeleccionarProveedorComponent_div_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 15)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Buscar por nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 17)(4, "input", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("keyup.enter", function SeleccionarProveedorComponent_div_8_Template_input_keyup_enter_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r16.buscarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](5, SeleccionarProveedorComponent_div_8_a_5_Template, 2, 0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_8_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r17);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r18.buscarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](7, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngClass", !ctx_r1.filtros.Multiple ? "col-xxl-4 col-lg-4" : "col-xxl-6 col-lg-6");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r1.getNombre());
  }
}
function SeleccionarProveedorComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 25)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Proveedor seleccionado");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](4, "input", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "a", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_9_Template_a_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r20);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r19.EliminarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](6, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("value", ctx_r2.proveedor_seleccionado);
  }
}
function SeleccionarProveedorComponent_div_11_div_3_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_11_div_3_div_1_Template_div_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r27);
      const provSelect_r25 = restoredCtx.$implicit;
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r26.quitarArticulo(provSelect_r25));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const provSelect_r25 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate2"](" (", provSelect_r25.Codigo, ") ", provSelect_r25.Nombre, " ");
  }
}
function SeleccionarProveedorComponent_div_11_div_3_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_11_div_3_div_2_Template_div_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r28.EliminarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1, " Borrar todos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](2, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarProveedorComponent_div_11_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, SeleccionarProveedorComponent_div_11_div_3_div_1_Template, 3, 3, "div", 32)(2, SeleccionarProveedorComponent_div_11_div_3_div_2_Template, 3, 1, "div", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngForOf", ctx_r21.proveedores_seleccionados);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r21.proveedores_seleccionados.length > 1);
  }
}
function SeleccionarProveedorComponent_div_11_div_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div")(1, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_11_div_4_Template_div_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r31);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r30.EliminarProveedores());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Todos los proveedores ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](3, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
  }
}
function SeleccionarProveedorComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 28)(1, "label", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "Proveedores seleccionados:");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](3, SeleccionarProveedorComponent_div_11_div_3_Template, 3, 2, "div", 29)(4, SeleccionarProveedorComponent_div_11_div_4_Template, 4, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("@fadeOut", undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r3.proveedores_seleccionados.length > 0 && ctx_r3.proveedores_seleccionados.length < ctx_r3.totalItems);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r3.proveedores_seleccionados.length >= ctx_r3.totalItems);
  }
}
function SeleccionarProveedorComponent_Conditional_16_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "app-table2", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("lazyLoad", function SeleccionarProveedorComponent_Conditional_16_Template_app_table2_lazyLoad_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r32.lazyLoadChange($event));
    })("selectRowsAction", function SeleccionarProveedorComponent_Conditional_16_Template_app_table2_selectRowsAction_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r33);
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r34.selectProveedor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("columns", ctx_r4.proveedoresHeader)("datos", ctx_r4.proveedores)("page", ctx_r4.page)("order", ctx_r4.order)("sentido", ctx_r4.sentido)("cant_search", ctx_r4.cant_search)("totalItems", ctx_r4.totalItems)("apiTable", true)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](1, 13, ctx_r4.isLoading))("acciones", false)("selectRows", true)("typeSelection", ctx_r4.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx_r4.proveedores_seleccionados);
  }
}
const _c0 = () => ["Codigo", "Nombre"];
function SeleccionarProveedorComponent_Conditional_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "app-table2", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("changePage", function SeleccionarProveedorComponent_Conditional_17_Template_app_table2_changePage_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r36);
      const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r35.pageChange($event));
    })("orderChange", function SeleccionarProveedorComponent_Conditional_17_Template_app_table2_orderChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r36);
      const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r37.orderChange($event));
    })("selectRowsAction", function SeleccionarProveedorComponent_Conditional_17_Template_app_table2_selectRowsAction_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r36);
      const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r38.selectProveedor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](1, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("columns", ctx_r5.proveedoresHeader)("datos", ctx_r5.proveedores)("page", ctx_r5.page)("order", "Nombre")("sentido", ctx_r5.sentido)("cant_search", ctx_r5.cant_search)("totalItems", ctx_r5.totalItems)("apiTable", false)("isLoading", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](1, 14, ctx_r5.proveedorService.isLoading$))("acciones", false)("searchFields", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpureFunction0"](16, _c0))("selectRows", true)("typeSelection", ctx_r5.filtros.Multiple ? "multiple" : "single")("selectedRows", ctx_r5.proveedores_seleccionados);
  }
}
function SeleccionarProveedorComponent_div_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 39)(1, "button", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_18_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r40);
      const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r39.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](3, "button", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function SeleccionarProveedorComponent_div_18_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r40);
      const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r41.select());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](4, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](5, " Seleccionar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("disabled", ctx_r6.formGroup.invalid || ctx_r6.proveedores_seleccionados.length == 0 || _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](4, 1, ctx_r6.isLoading));
  }
}
class SeleccionarProveedorComponent {
  constructor(proveedorService, fb, modal, selProvService) {
    this.proveedorService = proveedorService;
    this.fb = fb;
    this.modal = modal;
    this.selProvService = selProvService;
    this.seleccionados = [];
    this.emitSeleccionados = new _angular_core__WEBPACK_IMPORTED_MODULE_8__.EventEmitter();
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      Modal: true,
      FetchSource: undefined,
      Estado: {
        Id: 'A',
        Ocultar: true
      },
      OcultarFiltros: false
      //SECCION FILTROS
      //FIN SECCION FILTROS
    };
    this.proveedoresHeader = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_4__.copiarObjeto)(src_app_core_utils_constantes_constantes_seleccionar__WEBPACK_IMPORTED_MODULE_3__.ProveedoresHeader);
    this.proveedores = [];
    this.proveedores_seleccionados = [];
    this.proveedor_seleccionado = '';
    this.formGroup = this.fb.group({
      Proveedor: [''],
      Proveedores: [[]],
      buscarNombre: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.maxLength(50)],
      buscarCodigo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.maxLength(10)]
    });
    this.subscriptions = [];
    this.isLoading = this.proveedorService.isLoading$;
    //paginacion proveedores
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.INIT_SENTIDO;
    this.totalItems = 0;
    this.totalSelect = 0;
  }
  ngOnInit() {
    //SP se  setea los datos pasados pro input para utilizar la tabla por front
    if (this.datos) {
      this.proveedores = this.datos;
      this.totalItems = this.datos.length;
    }
    if (this.seleccionados) {
      this.proveedores_seleccionados = this.seleccionados;
      this.proveedor_seleccionado = this.proveedores_seleccionados.length == 1 ? '(' + this.proveedores_seleccionados[0].Codigo + ') ' + this.proveedores_seleccionados[0].Nombre : '';
    }
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    //SP se cambio fetch source por datos  , ya que esto es lo que indica que la tabla se usa pro front
    //tambien se cambiaron condiciones en el html de este componente
    if (this.datos != undefined) {
      this.proveedoresHeader[0].Order = 'Codigo';
      this.proveedoresHeader[1].Order = 'Nombre';
    }
    this.page = 1;
    this.previousPage = 1;
    this.cargarProveedores();
  }
  inicializarFiltros() {}
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  cargarProveedores() {
    this.onSearchProveedores(this.cargarFiltrosProv(this.page, this.order, this.sentido));
  }
  buscarProveedores() {
    this.page = 1;
    this.cargarProveedores();
  }
  onSearchProveedores(datos) {
    // MC SINWEB-197 Cambios para la generalización del componente
    this.selProvService.setData(datos);
    let susc;
    if (this.datos == undefined) {
      if (this.filtros.FetchSource) {
        susc = this.filtros.FetchSource.subscribe(data => {
          this.proveedores = data.Data;
          if (data.Data != undefined) {
            this.totalItems = data.TotalRecords;
          } else {
            this.totalItems = 0;
          }
        });
      } else {
        susc = this.proveedorService.fetch(datos, undefined, {
          permisos: false
        }).subscribe(data => {
          this.proveedores = data.Data;
          if (data.Data != undefined) {
            this.totalItems = data.TotalRecords;
          } else {
            this.totalItems = 0;
          }
        });
      }
      this.subscriptions.push(susc);
    }
  }
  cargarFiltrosProv(page, order, sentido) {
    let datos = {};
    // MC SINWEB-197 Cambios para la generalización del componente
    datos.PageNumber = page;
    datos.PageSize = this.cant_search;
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //SP se agrego la condicion de datos ya que tampoco deberia buscar por nombre y codigo si la tabla es por front
    if (this.datos == undefined && !this.filtros.OcultarFiltros) {
      if (this.formGroup.value.buscarNombre != undefined && this.formGroup.value.buscarNombre != '') {
        datos.Nombre = this.formGroup.value.buscarNombre;
      }
      if (this.formGroup.value.buscarCodigo != undefined && this.formGroup.value.buscarCodigo != '') {
        datos.Codigo = this.formGroup.value.buscarCodigo;
      }
    }
    if (this.filtros.Estado != undefined && this.filtros.Estado.Id != '') {
      datos.EstadoProveedor = this.filtros.Estado.Id;
    }
    return datos;
  }
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cant_search = $event.cant;
    this.sentido = $event.sentido;
    this.cargarProveedores();
  }
  pageChange($event) {
    this.cant_search = $event.cant;
    this.page = $event.page;
  }
  /**
   * SP SINWEB- METODO que cachea la emicion de cambio de ordenamiento cuando la tabla esta en modo front.
   **/
  orderChange($event) {
    this.order = $event.order;
    this.sentido = $event.sentido;
    this.page = 1;
  }
  selectProveedor($event) {
    if ($event.selectTodos && this.datos == undefined) {
      //SP SINWEB-347 agrega todos los servicios a facturar siempre que sean seleccionables
      //SP SINWEB-435 se agrega la condicion ppara el caso de que use FetchSource
      let datos = this.cargarFiltrosProv(-1, this.order, this.sentido);
      if (this.filtros.FetchSource) {
        this.selProvService.setData(datos);
        this.filtros.FetchSource.subscribe(res => {
          this.proveedores_seleccionados = res.Data;
          if (!this.filtros.Modal) {
            this.selectEmit();
          }
        });
      } else {
        this.proveedorService.fetch(datos).subscribe(res => {
          this.proveedores_seleccionados = res.Data;
          if (!this.filtros.Modal) {
            this.selectEmit();
          }
        });
      }
      // let datos : any = this.cargarFiltrosProv(-1,this.order,this.sentido);
      // this.proveedorService.fetch(datos).subscribe((res:any) => {
      //   this.proveedores_seleccionados= res.Data;
      // })
    } else {
      this.proveedores_seleccionados = $event.rows;
      this.proveedor_seleccionado = this.proveedores_seleccionados.length == 1 ? '(' + this.proveedores_seleccionados[0].Codigo + ') ' + this.proveedores_seleccionados[0].Nombre : '';
      if (!this.filtros.Modal) {
        this.selectEmit();
      }
    }
    // if(!this.filtros.Modal){
    //   this.selectEmit()
    // }
  }
  quitarProveedor(proveedor) {
    this.proveedores_seleccionados = this.proveedores_seleccionados.filter(prov => prov.Id !== proveedor.Id);
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  /* Metodo que elimina todos o  el proveedor de la selección */
  EliminarProveedores() {
    this.proveedores_seleccionados = [];
    this.proveedor_seleccionado = '';
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdProveedor: this.proveedores_seleccionados[0].Id,
        Proveedor: '(' + this.proveedores_seleccionados[0].Codigo + ') ' + this.proveedores_seleccionados[0].Nombre,
        ProveedorObj: this.proveedores_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsProveedores: this.proveedores_seleccionados.map(art => art.Id),
        Proveedores: this.proveedores_seleccionados.map(art => '(' + art.Codigo + ') ' + art.Nombre),
        ProveedoresObj: this.proveedores_seleccionados
      });
    }
  }
  selectEmit() {
    const formData = this.formGroup.value;
    if (!this.filtros.Modal) {
      if (!this.filtros.Multiple) {
        this.emitSeleccionados.emit({
          IdProveedor: this.proveedores_seleccionados[0].Id,
          Proveedor: '(' + this.proveedores_seleccionados[0].Codigo + ') ' + this.proveedores_seleccionados[0].Nombre,
          ProveedorObj: this.proveedores_seleccionados[0]
        });
      } else {
        this.emitSeleccionados.emit({
          IdsProveedores: this.proveedores_seleccionados.map(art => art.Id),
          Proveedores: this.proveedores_seleccionados.map(art => '(' + art.Codigo + ') ' + art.Nombre),
          ProveedoresObj: this.proveedores_seleccionados
        });
      }
    }
  }
  //SP metodo get para obtener campo codigo
  getCodigo() {
    return this.formGroup.controls.buscarCodigo.value;
  }
  //SP metodo para limpiar filtro
  borrarCodigo() {
    this.formGroup.get('buscarCodigo').reset('');
    this.cargarProveedores();
  }
  //SP metodo get para obtener campo nombre
  getNombre() {
    return this.formGroup.controls.buscarNombre.value;
  }
  //SP metodo para limpiar filtro
  borrarNombre() {
    this.formGroup.get('buscarNombre').reset('');
    this.cargarProveedores();
  }
  static #_ = this.ɵfac = function SeleccionarProveedorComponent_Factory(t) {
    return new (t || SeleccionarProveedorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_core_proveedor_service__WEBPACK_IMPORTED_MODULE_5__.ProveedorService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_core_services_core_seleccionar_proveedor_service__WEBPACK_IMPORTED_MODULE_6__.SeleccionarProveedorService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
    type: SeleccionarProveedorComponent,
    selectors: [["app-seleccionar-proveedor"]],
    inputs: {
      datos: "datos",
      seleccionados: "seleccionados",
      filtros: "filtros"
    },
    outputs: {
      emitSeleccionados: "emitSeleccionados"
    },
    decls: 19,
    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, "min-height", "200px"], [3, "formGroup"], [1, "row", "p-2"], [3, "ngClass", 4, "ngIf"], ["class", "col-xxl-4 col-lg-4", 4, "ngIf"], [1, "row"], ["class", "col-12", 4, "ngIf"], ["action", "#", 1, "form", "form-label-right", 3, "formGroup"], [1, "col-lg-12"], [1, "table-responsive"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows"], ["class", "modal-footer", 4, "ngIf"], [3, "ngClass"], [1, "form-label"], [1, "input-group"], ["type", "text", "mask", "0*", "maxlength", "6", "formControlName", "buscarCodigo", "buscar", "Buscar", "placeholder", "", "maxlength", "10", 1, "form-control", 3, "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"], ["type", "text", "formControlName", "buscarNombre", "buscar", "Buscar", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "keyup.enter"], [1, "col-xxl-4", "col-lg-4"], ["type", "text", "name", "Proveedor", "autocomplete", "off", "readonly", "", 1, "form-control", "form-control-solid", 3, "value"], [1, "btn", "btn-danger", 3, "click"], [1, "col-12"], ["class", "d-flex flex-wrap", 4, "ngIf"], [4, "ngIf"], [1, "d-flex", "flex-wrap"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer animate__animated animate__bounceIn", "style", "background-color: #50a5f1", 3, "click", 4, "ngFor", "ngForOf"], ["class", "badge badge-rounded-pill m-2 font-size-16 pointer", "style", "background-color: #9e9e9e", 3, "click", 4, "ngIf"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "animate__animated", "animate__bounceIn", 2, "background-color", "#50a5f1", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", 2, "background-color", "#9e9e9e", 3, "click"], [1, "badge", "badge-rounded-pill", "m-2", "font-size-16", "pointer", "bg-success", 3, "click"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "selectRows", "typeSelection", "selectedRows", "lazyLoad", "selectRowsAction"], ["styleTableClass", "p-datatable-gridlines", 3, "columns", "datos", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "isLoading", "acciones", "searchFields", "selectRows", "typeSelection", "selectedRows", "changePage", "orderChange", "selectRowsAction"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"]],
    template: function SeleccionarProveedorComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](3, " Seleccionar Proveedor ");
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerStart"](5, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](7, SeleccionarProveedorComponent_div_7_Template, 8, 2, "div", 6)(8, SeleccionarProveedorComponent_div_8_Template, 8, 2, "div", 6)(9, SeleccionarProveedorComponent_div_9_Template, 7, 1, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](11, SeleccionarProveedorComponent_div_11_Template, 5, 3, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](12, "form", 10)(13, "div", 8)(14, "div", 11)(15, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](16, SeleccionarProveedorComponent_Conditional_16_Template, 2, 15, "app-table2", 13)(17, SeleccionarProveedorComponent_Conditional_17_Template, 2, 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](18, SeleccionarProveedorComponent_div_18_Template, 6, 3, "div", 14);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros && ctx.datos == undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx.filtros.OcultarFiltros && ctx.datos == undefined);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx.filtros.Multiple);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtros.Multiple && ctx.proveedores_seleccionados.length != 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵconditional"](16, !ctx.datos ? 16 : 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx.filtros.Modal);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.MaxLengthValidator, ngx_mask__WEBPACK_IMPORTED_MODULE_12__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _shared_ui_table2_table2_component__WEBPACK_IMPORTED_MODULE_7__.Table2Component, _angular_common__WEBPACK_IMPORTED_MODULE_11__.AsyncPipe],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n .back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"],
    data: {
      animation: [src_app_core_animaciones_fadeOut__WEBPACK_IMPORTED_MODULE_1__.triggerFadeOut]
    }
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarTipoArticuloComponent: () => (/* binding */ SeleccionarTipoArticuloComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* 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_services_core_tipoArticulo_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/tipoArticulo.service */ 69980);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);









function SeleccionarTipoArticuloComponent_a_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function SeleccionarTipoArticuloComponent_a_12_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r2.borrarTipoArtNom());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
function SeleccionarTipoArticuloComponent_a_20_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function SeleccionarTipoArticuloComponent_a_20_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r4.borrarTipoArtAbrev());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
}
class SeleccionarTipoArticuloComponent {
  constructor(tipoArticuloService, fb, modal) {
    this.tipoArticuloService = tipoArticuloService;
    this.fb = fb;
    this.modal = modal;
    this.seleccionados = [];
    this.emitSeleccionados = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.defaultFiltros = {
      //SECCION CONFIGURACIONES
      Multiple: false,
      //Modal: true,
      //FetchSource: undefined,
      OcultarFiltros: false
      //SECCION FILTROS
      //FIN SECCION FILTROS
    };
    this.tiposArticulos = [];
    /**
     * SP SINWEB-203 nuevas variables para seleccion multiple
     */
    this.tipos_articulos_seleccionados = [];
    this.tipo_articulo_seleccionado = '';
    this.tiposArticulosHeader = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_1__.tiposArticulosHeader;
    this.formGroup = this.fb.group({
      buscarAbrev: [''],
      buscarNom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_5__.Validators.maxLength(50)],
      Estado: ['A']
    });
    this.subscriptions = [];
    this.isLoading = this.tipoArticuloService.isLoading$;
    //paginacion comprobantes
    this.cantSearch = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.CANT_SEARCH;
    this.order = 3;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_2__.INIT_SENTIDO;
    this.totalItems = 0;
  }
  ngOnInit() {
    if (this.seleccionados) {
      this.tipos_articulos_seleccionados = this.seleccionados;
    }
    if (!this.filtros) {
      this.filtros = JSON.parse(JSON.stringify(this.defaultFiltros));
    } else {
      this.filtros = lodash__WEBPACK_IMPORTED_MODULE_0__.merge({}, this.defaultFiltros, this.filtros);
    }
    this.inicializarFiltros();
    this.page = 1;
    this.previousPage = 1;
    this.cargarTiposArticulos();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sb => sb.unsubscribe());
  }
  inicializarFiltros() {}
  cargarTiposArticulos() {
    this.onSearchTiposArticulos(this.cargarFiltrosTiposArticulos(this.page, this.order, this.sentido));
  }
  buscarTiposArticulos() {
    this.page = 1;
    this.cargarTiposArticulos();
  }
  onSearchTiposArticulos(datos) {
    let suscTiposArticulos = this.tipoArticuloService.fetch(datos).subscribe(data => {
      this.tiposArticulos = data.Data;
      if (data.Data != undefined) {
        this.totalItems = data.TotalRecords;
      } else {
        this.totalItems = 0;
      }
    });
    this.subscriptions.push(suscTiposArticulos);
  }
  cargarFiltrosTiposArticulos(page, order, sentido) {
    let datos = {};
    //predeterminado
    //paginacion
    datos.PageNumber = page;
    datos.PageSize = this.cantSearch;
    //busqueda
    datos.Orden = order;
    datos.SentidoOrden = sentido;
    //filtros
    if (!this.filtros.OcultarFiltros) {
      if (this.formGroup.value.buscarAbrev != undefined && this.formGroup.value.buscarAbrev != '') {
        datos.Abreviatura = this.formGroup.value.buscarAbrev;
      }
      if (this.formGroup.value.buscarNom != undefined && this.formGroup.value.buscarNom != '') {
        datos.Nombre = this.formGroup.value.buscarNom;
      }
    }
    return datos;
  }
  /**
   *
   * @param $event
   */
  lazyLoadChange($event) {
    this.page = $event.page;
    this.order = $event.order;
    this.cantSearch = $event.cant;
    this.sentido = $event.sentido;
    this.cargarTiposArticulos();
  }
  selectTipoArticulo($event) {
    if ($event.selectTodos) {
      let datos = this.cargarFiltrosTiposArticulos(-1, this.order, this.sentido);
      this.tipoArticuloService.fetch(datos, undefined, {
        permisos: false
      }).subscribe(res => {
        this.tipos_articulos_seleccionados = res.Data;
        if (!this.filtros.Modal) {
          this.selectEmit();
        }
      });
    } else {
      this.tipos_articulos_seleccionados = $event.rows;
      if (!this.filtros.Modal) {
        this.selectEmit();
      }
    }
  }
  quitarTipoArticulo(tipoArticulo) {
    this.tipos_articulos_seleccionados = this.tipos_articulos_seleccionados.filter(tArt => tArt.Id !== tipoArticulo.Id);
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  /* Metodo que elimina todos o  el tipo articulo de la selección */
  EliminarTiposArticulos() {
    this.tipos_articulos_seleccionados = [];
    this.tipo_articulo_seleccionado = '';
    if (!this.filtros.Modal) {
      this.selectEmit();
    }
  }
  select() {
    const formData = this.formGroup.value;
    if (!this.filtros.Multiple) {
      this.modal.close({
        IdTipoArticulo: this.tipos_articulos_seleccionados[0].Id,
        TipoArticulo: this.tipos_articulos_seleccionados[0].Nombre,
        TipoArticuloObj: this.tipos_articulos_seleccionados[0]
      });
    } else {
      this.modal.close({
        IdsTiposArticulos: this.tipos_articulos_seleccionados.map(cli => cli.Id),
        TiposArticulos: this.tipos_articulos_seleccionados.map(cli => cli.Nombre),
        TiposArticulosObj: this.tipos_articulos_seleccionados
      });
    }
  }
  selectEmit() {
    if (!this.filtros.Modal) {
      if (!this.filtros.Multiple) {
        this.emitSeleccionados.emit({
          IdTipoArticulo: this.tipos_articulos_seleccionados[0].Id,
          TipoArticulo: this.tipos_articulos_seleccionados[0].Nombre,
          TipoArticuloObj: this.tipos_articulos_seleccionados[0]
        });
      } else {
        this.emitSeleccionados.emit({
          IdsTiposArticulos: this.tipos_articulos_seleccionados.map(cli => cli.Id),
          TiposArticulos: this.tipos_articulos_seleccionados.map(cli => cli.Nombre),
          TiposArticulosObj: this.tipos_articulos_seleccionados
        });
      }
    }
  }
  getTipoArtNom() {
    return this.formGroup.controls.buscarNom.value;
  }
  getTipoArtAbrev() {
    return this.formGroup.controls.buscarAbrev.value;
  }
  borrarTipoArtAbrev() {
    this.formGroup.controls.buscarAbrev.reset('');
    this.cargarTiposArticulos();
  }
  borrarTipoArtNom() {
    this.formGroup.controls.buscarNom.reset('');
    this.cargarTiposArticulos();
  }
  static #_ = this.ɵfac = function SeleccionarTipoArticuloComponent_Factory(t) {
    return new (t || SeleccionarTipoArticuloComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_core_tipoArticulo_service__WEBPACK_IMPORTED_MODULE_3__.TipoArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
    type: SeleccionarTipoArticuloComponent,
    selectors: [["app-seleccionar-tipo-articulo"]],
    inputs: {
      seleccionados: "seleccionados",
      filtros: "filtros"
    },
    outputs: {
      emitSeleccionados: "emitSeleccionados"
    },
    decls: 29,
    vars: 17,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], ["action", "#", 1, "form", "form-label-right", "pb-2", 3, "formGroup"], [1, "form-group", "row"], [1, "col-lg-6"], [1, "form-label"], [1, "input-group"], ["type", "text", "formControlName", "buscarNom", "placeholder", "", 1, "form-control", 3, "keyup.enter"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], ["type", "text", "maxlength", "20", "formControlName", "buscarAbrev", "placeholder", "", 1, "form-control", 3, "keyup.enter"], [3, "datos", "columns", "page", "order", "sentido", "cant_search", "totalItems", "apiTable", "acciones", "selectRows", "selectedRows", "typeSelection", "verSeleccionados", "lazyLoad", "selectRowsAction"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"]],
    template: function SeleccionarTipoArticuloComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, " Seleccionar Tipos de Art\u00EDculos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "div", 3)(5, "form", 4)(6, "div", 5)(7, "div", 6)(8, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Buscar por nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 8)(11, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keyup.enter", function SeleccionarTipoArticuloComponent_Template_input_keyup_enter_11_listener() {
          return ctx.buscarTiposArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](12, SeleccionarTipoArticuloComponent_a_12_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](13, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function SeleccionarTipoArticuloComponent_Template_a_click_13_listener() {
          return ctx.buscarTiposArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](14, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "div", 6)(16, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](17, "Buscar por abreviatura");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](18, "div", 8)(19, "input", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keyup.enter", function SeleccionarTipoArticuloComponent_Template_input_keyup_enter_19_listener() {
          return ctx.buscarTiposArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](20, SeleccionarTipoArticuloComponent_a_20_Template, 2, 0, "a", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "a", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function SeleccionarTipoArticuloComponent_Template_a_click_21_listener() {
          return ctx.buscarTiposArticulos();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](22, "i", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "app-table2", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("lazyLoad", function SeleccionarTipoArticuloComponent_Template_app_table2_lazyLoad_23_listener($event) {
          return ctx.lazyLoadChange($event);
        })("selectRowsAction", function SeleccionarTipoArticuloComponent_Template_app_table2_selectRowsAction_23_listener($event) {
          return ctx.selectTipoArticulo($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "div", 15)(25, "button", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function SeleccionarTipoArticuloComponent_Template_button_click_25_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "button", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function SeleccionarTipoArticuloComponent_Template_button_click_27_listener() {
          return ctx.select();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](28, " Guardar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.formGroup);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.getTipoArtNom());
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.getTipoArtAbrev());
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("datos", ctx.tiposArticulos)("columns", ctx.tiposArticulosHeader)("page", ctx.page)("order", ctx.order)("sentido", ctx.sentido)("cant_search", ctx.cantSearch)("totalItems", ctx.totalItems)("apiTable", true)("acciones", false)("selectRows", true)("selectedRows", ctx.tipos_articulos_seleccionados)("typeSelection", ctx.filtros.Multiple ? "multiple" : "single")("verSeleccionados", true);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("disabled", ctx.tipos_articulos_seleccionados.length == 0);
      }
    },
    styles: [".back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1103 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1104 !important;\n}"]
  });
}

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   NovedadesComponent: () => (/* binding */ NovedadesComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);



function NovedadesComponent_For_3_Conditional_0_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const t_r9 = ctx.$implicit;
    const $index_r10 = ctx.$index;
    const $count_r12 = ctx.$count;
    const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
    const ɵ$index_1_r4 = ctx_r14.$index;
    const ɵ$count_1_r6 = ctx_r14.$count;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mb-5", $index_r10 === $count_r12 - 1 && !(ɵ$index_1_r4 === ɵ$count_1_r6 - 1));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](t_r9);
  }
}
function NovedadesComponent_For_3_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h2", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](4, NovedadesComponent_For_3_Conditional_0_For_5_Template, 2, 3, "p", 7, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const novedad_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](novedad_r2.Titulo);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", novedad_r2.Imagen, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](novedad_r2.Texto);
  }
}
function NovedadesComponent_For_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NovedadesComponent_For_3_Conditional_0_Template, 6, 2);
  }
  if (rf & 2) {
    const novedad_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](0, novedad_r2.Mostrar ? 0 : -1);
  }
}
function NovedadesComponent_ForEmpty_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "No hay novedades");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
}
/**
 * MC SINWEB-792 Componente modal para mostrar las novedades
 */
class NovedadesComponent {
  constructor(modal) {
    this.modal = modal;
  }
  static #_ = this.ɵfac = function NovedadesComponent_Factory(t) {
    return new (t || NovedadesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: NovedadesComponent,
    selectors: [["app-novedades"]],
    inputs: {
      novedades: "novedades"
    },
    standalone: true,
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵStandaloneFeature"]],
    decls: 8,
    vars: 1,
    consts: [[1, "modal-content"], [1, "modal-body"], [1, "modal-footer", "justify-content-center"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], [1, "text-center", "mt-3", "mb-4", "fw-bold"], [1, "img-fluid", "d-block", "mx-auto", "px-3", 2, "width", "80%", 3, "src"], [1, "fs-5", "px-3", "mt-4"], [3, "mb-5"], [1, "text-center", "mt-3", "mb-4"], ["class", "text-center mt-3 mb-4"]],
    template: function NovedadesComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](2, NovedadesComponent_For_3_Template, 1, 1, null, null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"], false, NovedadesComponent_ForEmpty_4_Template, 2, 0, "h4", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2)(6, "button", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NovedadesComponent_Template_button_click_6_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Cerrar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.novedades);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule]
  });
}

/***/ }),

/***/ 69402:
/*!************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/cargar-articulos-comprobante/cargar-articulos-comprobante.component.ts ***!
  \************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CargarArticulosComprobanteComponent: () => (/* binding */ CargarArticulosComprobanteComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-articulo/seleccionar-articulo.component */ 62656);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! rxjs */ 24036);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! rxjs */ 69384);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! rxjs */ 26306);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! rxjs */ 35178);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! rxjs */ 64716);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* harmony import */ var _features_comprobante_feature_consulta_articulo_feature_consulta_articulo_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../features-comprobante/feature-consulta-articulo/feature-consulta-articulo.component */ 12703);
/* harmony import */ var _features_comprobante_feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../features-comprobante/feature-ofertas/feature-ofertas.component */ 99722);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var _ui_code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../ui/code-scanner/code-scanner.component */ 536);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../comprobante-scoped.service */ 6170);
/* harmony import */ var src_app_core_services_imagenes_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/imagenes.service */ 85678);
/* harmony import */ var ngx_lightbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-lightbox */ 74862);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_core_oferta_item_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/core/oferta-item.service */ 67301);
/* harmony import */ var src_app_core_services_core_oferta_item_pt_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! src/app/core/services/core/oferta-item-pt.service */ 72551);
/* harmony import */ var src_app_core_services_core_descuentoEspecial_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/core/services/core/descuentoEspecial.service */ 21073);
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ngx-toastr */ 2425);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../core/directives/format-codigo-input.directive */ 48508);
/* harmony import */ var _core_directives_number_input_directive__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../core/directives/number-input.directive */ 72352);
/* harmony import */ var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! primeng/inputnumber */ 75167);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! primeng/table */ 94267);





































const _c0 = ["cantidadInput"];
const _c1 = ["tableArticulos"];
const _c2 = ["codigoArticulo"];
const _c3 = ["cargarArticulo"];
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Cargar art\u00EDculos para generar el comprobante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Se detectaron cambios sobre el formulario, actualizar art\u00EDculos para continuar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_0_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r9.onUpdateArticulos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](3, "i", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](4, " Actualizar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 33)(1, "img", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_a_1_Template_img_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r26);
      const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r24.openLightbox(art_r12));
    })("error", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_a_1_Template_img_error_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r26);
      const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r27.setImagenBlanca($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
    const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("src", ctx_r22.setImagen(art_r12), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵsanitizeUrl"]);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 35)(1, "input", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("ngModelChange", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_Conditional_2_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r31);
      const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](art_r12.checked = $event);
    })("change", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_Conditional_2_Template_input_change_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r31);
      const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r32.onCheckboxCardChange(art_r12));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    const $index_r13 = ctx_r34.$index;
    const art_r12 = ctx_r34.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpropertyInterpolate1"]("id", "checkbox-", $index_r13, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngModel", art_r12.checked);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_a_1_Template, 2, 1, "a", 31)(2, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_Conditional_2_Template, 2, 2, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r17.imagenArticulos === "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](2, !ctx_r17.visualizar ? 2 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" Cod.Oferta: ", art_r12.CodigoOferta, " ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_35_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](0, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Ver ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_36_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](0, "i", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, " Editar ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div")(1, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Conditional_4_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r40);
      const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r38.consultaArticuloModal(art_r12));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](2, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, " Consulta Art\u00EDculo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div")(1, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Conditional_9_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r43);
      const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r41.onNuevaNotaArticulos([art_r12]));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](2, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, " Nueva Nota de Pedido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Template(rf, ctx) {
  if (rf & 1) {
    const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div")(1, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r46);
      const $index_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$index;
      const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r44.onDelete($index_r13));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](2, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, " Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Conditional_4_Template, 4, 0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "div")(6, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r46);
      const art_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r47.consultaOfertasAplicadasModal(art_r12.IdArticulo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](7, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](8, " Ofertas Aplicadas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](9, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Conditional_9_Template, 4, 0, "div");
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](4, ctx_r21.permisos.consultarArticulo ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](9, ctx_r21.permisos.duplicarComprobante ? 9 : -1);
  }
}
const _c4 = (a0, a1, a2, a3) => [a0, a1, a2, a3];
const _c5 = (a0, a1) => ({
  "text-danger": a0,
  "text-primary": a1
});
const _c6 = a0 => [a0, "ARS", "symbol", "1.4-4", "es-AR"];
const _c7 = a0 => ({
  "text-danger": a0
});
const _c8 = (a0, a1) => ({
  "text-success": a0,
  "text-danger": a1
});
const _c9 = (a0, a1) => ({
  "btn-soft-dark": a0,
  "btn-soft-light btn-dark-hover": a1
});
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 8)(1, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](2, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_2_Template, 3, 2, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](3, "div", 11)(4, "div", 12)(5, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](7, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_7_Template, 2, 1, "span", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](8, "div", 15)(9, "span", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](11, "div", 17)(12, "div", 18)(13, "p", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](14, "Precio");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](15, "p", 20)(16, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](18, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](19, " (");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](20, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](21);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](23, "div", 23)(24, "p", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](25, "Total");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](26, "p", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](28, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](29, "div", 25)(30, "button", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](31, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](32, "div", 28)(33, "div")(34, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Template_a_click_34_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r50);
      const $index_r13 = restoredCtx.$index;
      const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r49.onEdit($index_r13));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](35, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_35_Template, 2, 0)(36, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_36_Template, 2, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](37, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Conditional_37_Template, 10, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const art_r12 = ctx.$implicit;
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction4"](28, _c4, art_r12.PjeDescuento > 0 ? "text-primary" : art_r12.Stock < art_r12.Cantidad ? "text-danger" : "", art_r12.Discontinuo == "S" ? "bg-warning bg-opacity-10" : "", art_r12.IdOferta && art_r12.IdOferta != -1 && art_r12.IdOfertaItem && art_r12.IdOfertaItem != -1 ? "bg-primary-subtle" : "", !art_r12.IdOferta && !art_r12.IdOfertaItem && ctx_r11.hasOfertas(art_r12) ? "bg-warning-subtle" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](2, ctx_r11.imagenArticulos === "S" || !ctx_r11.visualizar ? 2 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", art_r12.Codigo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](7, art_r12.IdOferta && art_r12.IdOferta != -1 && art_r12.IdOfertaItem && art_r12.IdOfertaItem != -1 && art_r12.CodigoOferta !== "" && !ctx_r11.visualizar && !ctx_r11.edicion ? 7 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("pTooltip", art_r12.Articulo);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate"](art_r12.Articulo);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](33, _c5, art_r12.PrecioFinal < 0, art_r12.PrecioFinal >= 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBindV"](18, 16, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](36, _c6, art_r12.PrecioFinal)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](38, _c7, art_r12.PjeDescuento < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"]("", art_r12.PjeDescuento, "% Off");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](") x", art_r12.Cantidad, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](40, _c8, art_r12.TotalFinal > 0, art_r12.TotalFinal < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBindV"](28, 22, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](43, _c6, art_r12.TotalFinal)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](45, _c9, !ctx_r11.darkMode, ctx_r11.darkMode));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](35, ctx_r11.visualizar ? 35 : 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](37, !ctx_r11.visualizar ? 37 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrepeaterCreate"](0, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_For_1_Template, 38, 48, "div", 43, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrepeaterTrackByIndex"]);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrepeater"](ctx_r8.articulos);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](0, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_0_Template, 5, 0)(1, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Conditional_1_Template, 2, 0);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](0, ctx_r5.updateRequired ? 0 : 1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "button", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_0_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r55);
      const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r54.onNuevaNotaArticulos(ctx_r54.selectedArticulos));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r51.selectedArticulos.length == 0);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "button", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_5_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r57);
      const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r56.consultaOfertaModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "button", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_6_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r59);
      const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r58.consultaArticuloModal(undefined));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](0, CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_0_Template, 2, 1, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "button", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r61);
      const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r60.onDeleteAllSelected());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](2, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](3, "button", 46);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r61);
      const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵreference"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r62.callForm(_r3));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](4, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](5, CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_5_Template, 2, 0, "button", 48)(6, CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Conditional_6_Template, 2, 0, "button", 49);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](0, ctx_r6.permisos.duplicarComprobante ? 0 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r6.selectedArticulos.length == 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r6.formGroup.disabled);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](5, ctx_r6.permisos.consultarOfertas ? 5 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](6, ctx_r6.permisos.consultarArticulo ? 6 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, CargarArticulosComprobanteComponent_Conditional_0_Conditional_1_Template, 2, 0, "div", 2)(2, CargarArticulosComprobanteComponent_Conditional_0_Conditional_2_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](3, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](4, CargarArticulosComprobanteComponent_Conditional_0_Conditional_4_Template, 7, 5);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](1, ctx_r0.articulos.length == 0 ? 1 : 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](4, !ctx_r0.visualizar ? 4 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 55)(1, "div", 56)(2, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, " Se detectaron cambios sobre el formulario, actualizar art\u00EDculos para continuar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](4, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_0_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r67);
      const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r66.onUpdateArticulos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](5, "i", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](6, " Actualizar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "th", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "p-tableHeaderCheckbox");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_th_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "th", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1, "Img");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_19_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r77 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "button", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_19_Conditional_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r77);
      const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r76.onNuevaNotaArticulos(ctx_r76.selectedArticulos));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r75.selectedArticulos.length == 0);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r79 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "th", 71)(1, "div", 72);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](2, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_19_Conditional_2_Template, 2, 1, "button", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](3, "button", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_19_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r79);
      const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r78.onDeleteAllSelected());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](4, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](2, ctx_r74.permisos.duplicarComprobante ? 2 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r74.selectedArticulos.length == 0);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "tr", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_1_Template, 2, 0, "th", 63)(2, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_th_2_Template, 2, 0, "th", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](3, "th", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](4, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "th", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](6, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](7, "th", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](8, "Cantidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](9, "th", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](10, "Precio Neto");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](11, "th", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](12, "Precio Final");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](13, "th", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](14, "% Desc");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](15, "th", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](16, "Total Neto");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](17, "th", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](18, "Total Final");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](19, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Conditional_19_Template, 5, 2, "th", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](1, !ctx_r69.visualizar ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r69.imagenArticulos === "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](19, !ctx_r69.visualizar ? 19 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "p-tableCheckbox", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("value", articulo_r80);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_td_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "td", 90)(1, "a", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keydown.space", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_td_2_Template_a_keydown_space_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r102);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r100.openLightbox(articulo_r80));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](2, "img", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_td_2_Template_img_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r102);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r103.openLightbox(articulo_r80));
    })("error", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_td_2_Template_img_error_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r102);
      const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r105.setImagenBlanca($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("src", ctx_r84.setImagen(articulo_r80), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵsanitizeUrl"]);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r109 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "input", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("ngModelChange", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_7_Template_input_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r109);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](articulo_r80.Articulo = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngModel", articulo_r80.Articulo);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0);
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", articulo_r80.Articulo, " ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "span", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" Cod.Oferta: ", articulo_r80.CodigoOferta, " ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r115 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "input", 95);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("ngModelChange", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_14_Template_input_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r115);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](articulo_r80.Cantidad = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("allowDecimals", false)("ngModel", articulo_r80.Cantidad);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](1, "number");
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBind3"](1, 1, articulo_r80.Cantidad, "1.3-3", "es-AR"), " ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_18_Template(rf, ctx) {
  if (rf & 1) {
    const _r120 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "input", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("ngModelChange", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_18_Template_input_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r120);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](articulo_r80.PrecioNeto = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngModel", articulo_r80.PrecioNeto);
  }
}
const _c10 = a0 => [a0, "", "$", ".4-4", "es-AR"];
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](1, "currency");
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBindV"](1, 1, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](7, _c10, articulo_r80.PrecioNeto)), " ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_23_Template(rf, ctx) {
  if (rf & 1) {
    const _r125 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "input", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("ngModelChange", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_23_Template_input_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r125);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](articulo_r80.PrecioFinal = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngModel", articulo_r80.PrecioFinal);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_24_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](1, "currency");
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBindV"](1, 1, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](7, _c10, articulo_r80.PrecioFinal)), " ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_27_Template(rf, ctx) {
  if (rf & 1) {
    const _r130 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "input", 97);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("ngModelChange", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_27_Template_input_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r130);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](articulo_r80.PjeDescuento = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("decimalPlaces", 2)("ngModel", articulo_r80.PjeDescuento);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](1, "number");
  }
  if (rf & 2) {
    const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBind3"](1, 1, articulo_r80.PjeDescuento, "1.2-2", "es-AR"), " % ");
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r137 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Conditional_9_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r137);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r135.consultaArticulo(articulo_r80));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2, " Consulta Art\u00EDculo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Conditional_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r140 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Conditional_13_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r140);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2).$implicit;
      const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r138.onNuevaNotaArticulos([articulo_r80]));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](1, "i", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](2, " Nueva Nota de Pedido ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Template(rf, ctx) {
  if (rf & 1) {
    const _r143 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "td", 98)(1, "div", 99)(2, "div", 100)(3, "button", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](4, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "div", 101)(6, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Template_a_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r143);
      const index_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().rowIndex;
      const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r141.onDelete(index_r82));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](7, "i", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](8, " Eliminar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](9, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Conditional_9_Template, 3, 0, "a", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](10, "a", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Template_a_click_10_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r143);
      const articulo_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      const ctx_r144 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r144.consultaOfertasAplicadas(articulo_r80.IdArticulo));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](11, "i", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](12, " Ofertas Aplicadas ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](13, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Conditional_13_Template, 3, 0, "a", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](3, _c9, !ctx_r98.darkMode, ctx_r98.darkMode));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](9, ctx_r98.permisos.consultarArticulo ? 9 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](13, ctx_r98.permisos.duplicarComprobante ? 13 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "tr", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](1, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_1_Template, 2, 1, "td", 77)(2, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_td_2_Template, 3, 1, "td", 78);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](5, "td", 79)(6, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](7, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_7_Template, 1, 1, "ng-template", 80)(8, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_8_Template, 1, 1, "ng-template", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](9, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](10, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_10_Template, 2, 1, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](11, "td", 83)(12, "p-cellEditor", null, 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](14, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_14_Template, 1, 2, "ng-template", 80)(15, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_15_Template, 2, 5, "ng-template", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](16, "td", 85)(17, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](18, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_18_Template, 1, 1, "ng-template", 80)(19, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_19_Template, 2, 9, "ng-template", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](20, "td", 86)(21, "p-cellEditor", null, 84);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](23, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_23_Template, 1, 1, "ng-template", 80)(24, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_24_Template, 2, 9, "ng-template", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](25, "td", 87)(26, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](27, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_27_Template, 1, 2, "ng-template", 80)(28, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_ng_template_28_Template, 2, 5, "ng-template", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](29, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](31, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](32, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](33);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipe"](34, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](35, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Conditional_35_Template, 14, 6, "td", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const articulo_r80 = ctx.$implicit;
    const index_r82 = ctx.rowIndex;
    const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction4"](39, _c4, articulo_r80.PjeDescuento > 0 ? "text-primary" : articulo_r80.Stock < articulo_r80.Cantidad ? "text-danger" : "", articulo_r80.Discontinuo == "S" ? "bg-warning bg-opacity-10" : "", articulo_r80.IdOferta && articulo_r80.IdOferta != -1 && articulo_r80.IdOfertaItem && articulo_r80.IdOfertaItem != -1 ? "bg-primary-subtle" : "", !articulo_r80.IdOferta && !articulo_r80.IdOfertaItem && ctx_r70.hasOfertas(articulo_r80) ? "bg-warning-subtle" : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](1, !ctx_r70.visualizar ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngIf", ctx_r70.imagenArticulos === "S");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate"](articulo_r80.Codigo);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("pEditableColumn", articulo_r80.Articulo)("pEditableColumnRowIndex", index_r82)("pEditableColumnDisabled", ctx_r70.visualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](10, articulo_r80.IdOferta && articulo_r80.IdOferta != -1 && articulo_r80.IdOfertaItem && articulo_r80.IdOfertaItem != -1 && articulo_r80.CodigoOferta !== "" && !ctx_r70.visualizar && !ctx_r70.edicion ? 10 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](44, _c7, articulo_r80.Cantidad < 0))("pEditableColumn", articulo_r80.Cantidad)("pEditableColumnDisabled", ctx_r70.visualizar || !ctx_r70.permisos.editCantidad)("pEditableColumnRowIndex", index_r82);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](46, _c7, articulo_r80.PrecioNeto < 0))("pEditableColumn", articulo_r80.PrecioNeto)("pEditableColumnDisabled", ctx_r70.visualizar || !ctx_r70.permisos.editPrecio)("pEditableColumnRowIndex", index_r82);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](48, _c7, articulo_r80.PrecioFinal < 0))("pEditableColumn", articulo_r80.PrecioFinal)("pEditableColumnDisabled", ctx_r70.visualizar || !ctx_r70.permisos.editPrecio)("pEditableColumnRowIndex", index_r82);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](50, _c7, articulo_r80.PjeDescuento < 0))("pEditableColumn", articulo_r80.PjeDescuento)("pEditableColumnDisabled", ctx_r70.visualizar || !ctx_r70.permisos.editPjeDesc)("pEditableColumnRowIndex", index_r82);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBindV"](31, 27, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](52, _c10, articulo_r80.TotalNeto)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpipeBindV"](34, 33, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction1"](54, _c10, articulo_r80.TotalFinal)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](35, !ctx_r70.visualizar ? 35 : -1);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "tr")(1, "td", 103)(2, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](3, " Cargar art\u00EDculos para generar el comprobante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
  }
}
const _c11 = () => ({
  "padding-bottom": "text-inherit"
});
const _c12 = () => ({
  "padding-bottom": "48px"
});
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r148 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "p-table", 57, 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("onEditInit", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_Template_p_table_onEditInit_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r148);
      const ctx_r147 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r147.onEditInit($event));
    })("onEditComplete", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_Template_p_table_onEditComplete_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r148);
      const ctx_r149 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r149.onEditComplete($event));
    })("onEditCancel", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_Template_p_table_onEditCancel_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r148);
      const ctx_r150 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r150.onEditCancel($event));
    })("selectionChange", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_Template_p_table_selectionChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r148);
      const ctx_r151 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r151.selectedArticulos = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](2, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_2_Template, 20, 3, "ng-template", 59)(3, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_3_Template, 36, 56, "ng-template", 60)(4, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_ng_template_4_Template, 4, 0, "ng-template", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵstyleMap"](ctx_r64.visualizar ? _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction0"](6, _c11) : _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction0"](7, _c12));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("value", ctx_r64.articulos)("scrollable", true)("rowHover", true)("selection", ctx_r64.selectedArticulos);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r155 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 104)(1, "table", 105)(2, "tr")(3, "td", 106)(4, "input", 107, 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keyup", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_input_keyup_4_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r154 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r154.onKeyboard($event));
    })("blur", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_input_blur_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r156.searchBlur());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](6, "td", 109)(7, "input", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keyup.enter", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_input_keyup_enter_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r157 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r157.onAddToTable());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](8, "td", 106)(9, "p-inputNumber", 111, 112);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keyup.enter", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_p_inputNumber_keyup_enter_9_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r158 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r158.onAddToTable());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](11, "td", 106)(12, "p-inputNumber", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keyup.enter", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_p_inputNumber_keyup_enter_12_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r159 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r159.onAddToTable());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](13, "td", 106)(14, "p-inputNumber", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keyup.enter", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_p_inputNumber_keyup_enter_14_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r160 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r160.onAddToTable());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](15, "td", 115)(16, "button", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template_button_click_16_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r155);
      const ctx_r161 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r161.onAddToTable());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](17, "i", 47);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formGroup", ctx_r65.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 0)("maxFractionDigits", 0)("min", 0)("max", ctx_r65.max_cant_input)("readonly", !ctx_r65.permisos.editCantidad);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", ctx_r65.max_precio_input)("readonly", !ctx_r65.permisos.editPrecio);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", ctx_r65.max_pje_desc_input)("readonly", !ctx_r65.permisos.editPjeDesc);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r65.formGroup.invalid || ctx_r65.formGroup.disabled);
  }
}
function CargarArticulosComprobanteComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](0, CargarArticulosComprobanteComponent_Conditional_1_Conditional_0_Template, 7, 0, "div", 53)(1, CargarArticulosComprobanteComponent_Conditional_1_Conditional_1_Template, 5, 8)(2, CargarArticulosComprobanteComponent_Conditional_1_Conditional_2_Template, 18, 17, "div", 54);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](0, ctx_r1.updateRequired ? 0 : 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](2, !ctx_r1.visualizar ? 2 : -1);
  }
}
function CargarArticulosComprobanteComponent_ng_template_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0);
  }
  if (rf & 2) {
    const ctx_r163 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtextInterpolate1"](" ", ctx_r163.visualizar ? "Ver Art\u00EDculo" : "Editar Art\u00EDculo", " ");
  }
}
function CargarArticulosComprobanteComponent_ng_template_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r170 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](0, " Cargar Art\u00EDculo ");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "button", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_ng_template_2_Conditional_3_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r170);
      const ctx_r169 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r169.buscarArticulos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](2, "i", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_ng_template_2_Conditional_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r172 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "i", 146);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_ng_template_2_Conditional_12_Template_i_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r172);
      const ctx_r171 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r171.editingRowIndex !== null && ctx_r171.editingRowIndex !== undefined ? null : ctx_r171.abrirScanner());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
}
function CargarArticulosComprobanteComponent_ng_template_2_Conditional_45_Template(rf, ctx) {
  if (rf & 1) {
    const _r174 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](1, "button", 147);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_ng_template_2_Conditional_45_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r174);
      const modal_r162 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]().$implicit;
      const ctx_r173 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r173.editingRowIndex !== null && ctx_r173.editingRowIndex !== undefined ? ctx_r173.onEditArticulo(modal_r162) : ctx_r173.onAddToTable());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](2, "i", 148);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("disabled", ctx_r168.formGroup.invalid);
  }
}
const _c13 = (a0, a1) => ({
  "bg-secondary": a0,
  "bg-primary": a1
});
function CargarArticulosComprobanteComponent_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r177 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](0, "div", 117)(1, "div", 118);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](2, CargarArticulosComprobanteComponent_ng_template_2_Conditional_2_Template, 1, 1)(3, CargarArticulosComprobanteComponent_ng_template_2_Conditional_3_Template, 3, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](4, "div", 119)(5, "form", 120)(6, "div", 121)(7, "label", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](8, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](9, "div", 123)(10, "input", 124, 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keydown", function CargarArticulosComprobanteComponent_ng_template_2_Template_input_keydown_10_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r177);
      const ctx_r176 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r176.editingRowIndex !== null && ctx_r176.editingRowIndex !== undefined ? null : ctx_r176.onKeyboard($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](12, CargarArticulosComprobanteComponent_ng_template_2_Conditional_12_Template, 1, 0, "i", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](13, "div", 126)(14, "label", 122);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](15, "Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](16, "input", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](17, "div", 121)(18, "label", 128);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](19, "Cantidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](20, "p-inputNumber", 129, 130);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("onBlur", function CargarArticulosComprobanteComponent_ng_template_2_Template_p_inputNumber_onBlur_20_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r177);
      const ctx_r178 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r178.onCantidadChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](22, "div", 121)(23, "label", 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](24, "Precio Neto");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](25, "p-inputNumber", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("onBlur", function CargarArticulosComprobanteComponent_ng_template_2_Template_p_inputNumber_onBlur_25_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r177);
      const ctx_r179 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r179.onPrecioNetoChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](26, "div", 121)(27, "label", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](28, "Precio Final");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](29, "p-inputNumber", 134);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("onBlur", function CargarArticulosComprobanteComponent_ng_template_2_Template_p_inputNumber_onBlur_29_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r177);
      const ctx_r180 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r180.onPrecioFinalChange());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](30, "div", 121)(31, "label", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](32, "% Descuento");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](33, "p-inputNumber", 136);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("onBlur", function CargarArticulosComprobanteComponent_ng_template_2_Template_p_inputNumber_onBlur_33_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r177);
      const ctx_r181 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r181.onPjeDescuentoChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](34, "div", 121)(35, "label", 137);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](36, "Total Neto");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](37, "p-inputNumber", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](38, "div", 121)(39, "label", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtext"](40, "Total Final");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](41, "p-inputNumber", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementStart"](42, "div", 141)(43, "button", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("click", function CargarArticulosComprobanteComponent_ng_template_2_Template_button_click_43_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵrestoreView"](_r177);
      const modal_r162 = restoredCtx.$implicit;
      const ctx_r182 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresetView"](ctx_r182.onDismiss(modal_r162));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelement"](44, "i", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](45, CargarArticulosComprobanteComponent_ng_template_2_Conditional_45_Template, 3, 1, "ng-container");
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](2, ctx_r2.editingRowIndex !== null && ctx_r2.editingRowIndex !== undefined ? 2 : 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("formGroup", ctx_r2.formGroup);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵpureFunction2"](34, _c13, ctx_r2.editingRowIndex !== null && ctx_r2.editingRowIndex !== undefined, ctx_r2.editingRowIndex === null || ctx_r2.editingRowIndex === undefined));
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readonly", ctx_r2.editingRowIndex !== null && ctx_r2.editingRowIndex !== undefined);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](12, ctx_r2.isMobile() ? 12 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("readonly", ctx_r2.visualizar || ctx_r2.formGroup.get("ArtObj").value == null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 0)("maxFractionDigits", 0)("min", 0)("max", ctx_r2.max_cant_input)("readonly", ctx_r2.visualizar || !ctx_r2.permisos.editCantidad || ctx_r2.formGroup.get("ArtObj").value == null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 4)("maxFractionDigits", 4)("min", 0)("max", ctx_r2.max_precio_input)("readonly", ctx_r2.editingRowIndex === null || ctx_r2.editingRowIndex === undefined)("readonly", ctx_r2.visualizar || !ctx_r2.permisos.editPrecio || ctx_r2.formGroup.get("ArtObj").value == null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 4)("maxFractionDigits", 4)("min", 0)("max", ctx_r2.max_precio_input)("readonly", ctx_r2.visualizar || !ctx_r2.permisos.editPrecio || ctx_r2.formGroup.get("ArtObj").value == null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", ctx_r2.max_pje_desc_input)("readonly", ctx_r2.visualizar || !ctx_r2.permisos.editPjeDesc || ctx_r2.formGroup.get("ArtObj").value == null);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 4)("maxFractionDigits", 4)("readonly", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵproperty"]("minFractionDigits", 4)("maxFractionDigits", 4)("readonly", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](45, !ctx_r2.visualizar ? 45 : -1);
  }
}
class CargarArticulosComprobanteComponent {
  handleKeyboardEvent(event) {
    //detecta tecla Supr
    if (event.key === 'Delete' && this.selectedArticulos.length > 0) {
      this.onDeleteAllSelected();
    }
  }
  onDocumentClick(event) {
    const target = event.target;
    // Verificar si hay una celda en edición activa
    if (this.editingCell) {
      // Verificar si el click fue fuera de la tabla o fuera de inputs editables
      const isInsideTable = target.closest('#tablaArticulos');
      const isEditableInput = target.closest('.p-editable-column') || target.classList.contains('p-inputtext') || target.classList.contains('p-inputnumber-input');
      // Si el click fue fuera de la tabla o no en un input editable, forzar cierre
      if (!isInsideTable || !isEditableInput) {
        this.forceCloseEditing();
      }
    }
  }
  constructor(modalService, articuloService, alert, fb, configGralService, config, comprobanteScopedService, cdr, imagenService, lightbox, auth, ofertaItemService, ofertaItemPtService, descuentosEspecialesService, toastr) {
    this.modalService = modalService;
    this.articuloService = articuloService;
    this.alert = alert;
    this.fb = fb;
    this.configGralService = configGralService;
    this.config = config;
    this.comprobanteScopedService = comprobanteScopedService;
    this.cdr = cdr;
    this.imagenService = imagenService;
    this.lightbox = lightbox;
    this.auth = auth;
    this.ofertaItemService = ofertaItemService;
    this.ofertaItemPtService = ofertaItemPtService;
    this.descuentosEspecialesService = descuentosEspecialesService;
    this.toastr = toastr;
    this.visualizar = false;
    this.edicion = false;
    this.max_cant_input = 1000000;
    this.max_precio_input = 100000000;
    this.max_pje_desc_input = 100;
    this.mensajeError = '';
    this.selectedArticulos = [];
    this.articulos = [];
    this.listaPrecio = -1;
    this.darkMode = false;
    this.editingRowIndex = null;
    this.updateRequired = false;
    this.consultaArticuloOpen = false;
    /**
     * SP SAD-376 control para no abrir multiples modales.
     */
    this.seleccionArticuloOpen = false;
    this.consultaOfertaOpen = false;
    this.skipNextBlur = false;
    this.urlImagenes = this.config.config.servidor.url_img;
    this.imagenArticulos = this.configGralService._config.VerImagenArticulo;
    this.originalRowValue = null;
    this.editingCell = null;
    this.formGroup = this.fb.group({
      Codigo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required],
      Cantidad: [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(1)])],
      Articulo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_24__.Validators.required],
      OfertasXArticulo: [null],
      PrecioNeto: [null, _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)])],
      PrecioFinal: [null, _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)])],
      PjeDescuento: [null, _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)])],
      TotalNeto: [null, _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)])],
      TotalFinal: [null, _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)])],
      ArtObj: [null]
    });
    this.permisos = {
      editPrecio: false,
      editPjeDesc: false,
      editCantidad: false,
      duplicarComprobante: false,
      consultarArticulo: true,
      consultarOfertas: true,
      consultarStock: true
    };
  }
  ngOnInit() {
    var _this = this;
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_25__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_26__["default"]);
    this.cargarPermisos();
    if (this.visualizar) {
      this.formGroup.disable();
    }
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_4__.THEME_DARK;
    this.tipoComprobante = this.comprobanteScopedService.tipoComprobante;
    this.comprobanteScopedService.objectComprobante$.subscribe( /*#__PURE__*/function () {
      var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (res) {
        if (res != null) {
          yield _this.getDepositoPredeterminado(res.IdSucursal);
          //SP SAD se aplican las ofertas en la edicion
          if (res.Articulos?.length > 0) {
            yield _this.comprobanteScopedService.obtenerOfertasAplicables(res.Articulos, res.Fecha, res.IdNombrePrecio, res.Cliente?.IdCliente);
          }
          if (res.Id) {
            _this.articulos = res.Articulos;
          } else {
            _this.articulos = yield _this.actualizarStock(res.Articulos, res.IdSucursal);
          }
          _this.comprobanteScopedService.setArticulos({
            ..._this.comprobanteScopedService.articulos,
            articulos: _this.articulos
          });
        }
      });
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }());
    //TODO SP SAD-330 CONTROLAR CORRECTO FUNCIONAMIENTO , SE AGREGO PARA PODER REINICIAR TODO AL GUARDAR LA NOTA DE PEDIDO
    this.comprobanteScopedService.articulos$.subscribe(res => {
      this.articulos = res.articulos;
    });
    //SP SAD-376 se agrega control para forzar cierre de edicion desde el servicio
    this.comprobanteScopedService.closeEditing$.subscribe(() => {
      // Forzar cierre de edición inmediatamente y síncronamente
      this.forceCloseEditing();
    });
    this.comprobanteScopedService.recargarArticulos$.subscribe(res => {
      this.updateRequired = res;
      if (this.updateRequired) {
        this.formGroup.disable();
      } else {
        this.formGroup.enable();
      }
    });
    this.validarArticulosCargados();
  }
  cargarPermisos() {
    this.permisos.editCantidad = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__.PERMISO_CAMBIAR_CANTIDAD_ARTICULO_COMPROBANTE);
    this.permisos.editPrecio = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__.PERMISO_CAMBIAR_PRECIO_ARTICULO_COMPROBANTE);
    this.permisos.editPjeDesc = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__.PERMISO_APLICAR_DESCUENTO_ARTICULO_COMPROBANTE);
    this.permisos.duplicarComprobante = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_8__.PERMISO_DUPLICAR_COMPROBANTE);
    // this.permisos.consultarArticulo = this.auth.hasPermiso(
    //   PERMISOS.PERMISO_CONSULTA_ARTICULO_COMPROBANTE
    // );
    // this.permisos.consultarOfertas = this.auth.hasPermiso(
    //   PERMISOS.PERMISO_CONSULTA_OFERTAS_ARTICULO_COMPROBANTE
    // );
    // this.permisos.consultarStock = this.auth.hasPermiso(
    //   PERMISOS.PERMISO_CONSULTA_STOCK_ARTICULO_COMPROBANTE
    // );
  }
  /**
   * SP ACTUALIZA EL STOCK DE LOS ARTICULOS CON EL DEPOSITO PREDETERMINAOD
   */
  actualizarStock(articulos, IdSucursal) {
    var _this2 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (!articulos || articulos.length === 0) {
        return [];
      }
      // Crear todas las llamadas HTTP de manera paralela
      const stockPromises = articulos.map(art => (0,rxjs__WEBPACK_IMPORTED_MODULE_27__.firstValueFrom)(_this2.articuloService.getStockArticulo({
        Id: art.IdArticulo,
        IdDeposito: _this2.depositoSucursalPredeterminado,
        IdEmpresa: _this2.auth.usuario.IdEmpresa,
        IdSucursal: IdSucursal
      })).then(depositoStock => ({
        articulo: art,
        stock: _this2.getStockDisponible(depositoStock)
      })).catch(error => {
        console.error(`Error obteniendo stock para artículo ${art.IdArticulo}:`, error);
        return {
          articulo: art,
          stock: 0 // Stock por defecto en caso de error
        };
      }));
      // Esperar a que todas las llamadas se resuelvan
      const resultados = yield Promise.all(stockPromises);
      // Construir el array final con el stock actualizado
      return resultados.map(resultado => ({
        ...resultado.articulo,
        Stock: resultado.stock
      }));
    })();
  }
  validarArticulosCargados() {
    this.comprobanteScopedService.tabs$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_28__.pairwise)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_29__.map)(([prev, curr]) => ({
      prev,
      curr
    }))).subscribe(({
      prev,
      curr
    }) => {
      switch (this.tipoComprobante) {
        case 19:
          let indexTabGeneral = curr.findIndex(tab => tab.label == 'General');
          if (indexTabGeneral != -1) {
            this.listaPrecio = curr[indexTabGeneral].data.IdNombrePrecio;
            //SP SAD-166 , se agrega el control con -1 ya que no deberia pedir actualizacion si la lista de precio no esta seleccionada
            if (prev[indexTabGeneral].data.IdNombrePrecio != -1 && curr[indexTabGeneral].data.IdNombrePrecio != prev[indexTabGeneral].data.IdNombrePrecio) {
              this.formGroup.reset({
                Cantidad: 1,
                PjeDescuento: 0
              });
              if (this.articulos.length > 0) {
                this.comprobanteScopedService.recargarArticulos(true);
              }
            }
            //controlo que cambio de sucursal
            if (prev[indexTabGeneral].data?.IdSucursal != -1 && prev[indexTabGeneral].data?.IdSucursal != curr[indexTabGeneral].data?.IdSucursal) {
              this.getDepositoPredeterminado(curr[indexTabGeneral].data.IdSucursal);
              if (this.articulos.length > 0) {
                this.comprobanteScopedService.recargarArticulos(true);
              }
            }
          }
          break;
        default:
          console.log('No se ha definido el tipo de comprobante');
          break;
      }
    });
  }
  getDepositoPredeterminado(sucursalId) {
    var _this3 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let datos = {
        IdEmpresa: _this3.auth.usuario.IdEmpresa,
        IdSucursal: sucursalId,
        IdsConfGral: 45
      };
      const fetchConfigDepPred = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_27__.firstValueFrom)(_this3.configGralService.getConfiguraciones(datos));
      // Asignar depósito predeterminado, chequeando arrays vacíos y valores nulos
      const sucursales = fetchConfigDepPred.Data[0].ConfiguracionesSucursales;
      const empresas = fetchConfigDepPred.Data[0].ConfiguracionesEmpresas;
      let valor = null;
      if (Array.isArray(sucursales) && sucursales.length > 0 && sucursales[0]?.Valor != null) {
        valor = sucursales[0].Valor;
      } else if (Array.isArray(empresas) && empresas.length > 0 && empresas[0]?.Valor != null) {
        valor = empresas[0].Valor;
      } else {
        valor = fetchConfigDepPred.Data[0]?.Valor;
      }
      _this3.depositoSucursalPredeterminado = valor;
    })();
  }
  getArticulo() {
    let datos = {
      PageNumber: -1,
      Codigo: this.formGroup.get('Codigo').value,
      IncluirPrecioAlternativos: 'S',
      IncluirStock: 'S',
      IdDeposito: this.depositoSucursalPredeterminado
    };
    const susc = this.articuloService.getArticulosPorCodigo(datos).subscribe(res => {
      if (res.Data.length == 0) {
        this.alert.showBasicAlert('Artículo no encontrado', 'No se encontraron artículos con el código ingresado', 'error');
        this.formGroup.reset({
          Cantidad: 1,
          PjeDescuento: 0
        });
      } else {
        //SP SAD-210 se agregan endpoints para obtener ofertas y descuentos
        const articulo = res.Data[0];
        const headerData = this.comprobanteScopedService.formHeaderComprobante.data;
        const tabGeneralData = this.comprobanteScopedService.tabs.find(tab => tab.label === 'General')?.data;
        const forkJoin = this.comprobanteScopedService.crearObservableOfertas([{
          IdArticulo: articulo.Id
        }], headerData.Fecha, tabGeneralData.IdNombrePrecio, headerData.Cliente?.IdCliente);
        forkJoin.subscribe({
          next: results => {
            console.log(results);
            // Todos los endpoints terminaron, continuar con la lógica
            this.procesarResultadosConEndpoints(articulo, results);
          },
          error: error => {
            console.error('Error en forkJoin:', error);
            // Continuar con la lógica original solo con el artículo
            this.procesarArticuloSinEndpoints(articulo);
          }
        });
      }
    });
  }
  /*
   * SP SAD-210
   * Visualizacion de alerta al fallar la obtencion de ofertas.
   */
  procesarArticuloSinEndpoints(articulo) {
    this.alert.showBasicAlert('Error', `Ocurrió un error al obtener las ofertas y descuentos especiales para el artículo ${articulo.Nombre}. Se procesará el artículo sin estas informaciones.`, 'error');
    this.formGroup.reset({
      Cantidad: 1,
      PjeDescuento: 0
    });
  }
  /**
   * SP SAD-210
   * Procesa los resultados de las ofertas y descuentos especiales obtenidos de los endpoints.
   * @param articulo
   * @param ofertasYDescuentos
   */
  procesarResultadosConEndpoints(articulo, ofertasYDescuentos) {
    const ofertasXArticulo = this.buildOfertasXArticulo(articulo, ofertasYDescuentos);
    this.formGroup.get('OfertasXArticulo').setValue(ofertasXArticulo);
    // Aquí puedes manejar los resultados de las ofertas y descuentos especiales
    // Por ejemplo, podrías actualizar el estado del componente o mostrar un mensaje al usuario
    this.formGroup.get('ArtObj').setValue(articulo);
    this.formGroup.get('Articulo').setValue(articulo.Nombre);
    if (!this.formGroup.get('Cantidad').value) {
      this.formGroup.get('Cantidad').setValue(1);
    }
    //SP SAD-315 se aplica el descuento especial si corresponde
    const pjeDesc = this.comprobanteScopedService.getDescuentoEspecial(ofertasXArticulo);
    //if (!this.formGroup.get('PjeDescuento').value) {
    this.formGroup.get('PjeDescuento').setValue(pjeDesc);
    //SP SAD-105 se agrega el campo PrecioNeto , TotalNeto y TotalFinal
    this.formGroup.get('PrecioNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNetoFromLista)(articulo, this.listaPrecio));
    this.formGroup.get('TotalNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNetoFromLista)(articulo, this.listaPrecio) * this.formGroup.get('Cantidad').value, this.formGroup.get('PjeDescuento').value));
    /**
     * SP Ya no se saca mas el Precio Final de la lista de precios
     * ahora se calcula en base al Precio Neto + IVA y No Gravado
     **/
    const precioFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioFinal)(this.formGroup.get('PrecioNeto').value, articulo.PjeIVA, articulo.NoGravado);
    this.formGroup.get('PrecioFinal').setValue(precioFinal);
    this.formGroup.get('TotalFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioFinal * this.formGroup.get('Cantidad').value, this.formGroup.get('PjeDescuento').value));
    if (!this.isMobile()) {
      this.cantidadInput.input.nativeElement.focus();
      this.cantidadInput.input.nativeElement.select();
    } else {
      this.comprobanteScopedService.focusElement('cantidadInput');
    }
  }
  /**
   * SP SAD-210 obtencion de filtros para el get de descuentos especiales
   */
  getFiltrosDescuentosEspeciales(idArticulo, idCliente, fecha) {
    const headerData = this.comprobanteScopedService.formHeaderComprobante.data;
    let datos = {
      IdArticulo: idArticulo,
      IdCliente: idCliente
    };
    if (headerData?.Cliente?.Id != '' && headerData?.Cliente?.Id != undefined) {
      datos.IdCliente = headerData.Cliente.Id;
    }
    if (headerData?.Fecha != '' && headerData?.Fecha != undefined) {
      datos.Fecha = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(headerData.Fecha);
    }
    return datos;
  }
  procesarArticulo(art, condition = false, edicion = false) {
    let precioNeto;
    let precioFinal;
    if (condition) {
      precioNeto = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNetoFromLista)(art, this.listaPrecio);
      /**
       * SP Ya no se saca mas el Precio Final de la lista de precios
       * ahora se calcula en base al Precio Neto + IVA y No Gravado
       **/
      precioFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioFinal)(precioNeto, art.PjeIVA, art.NoGravado);
    }
    let res = {
      Id: edicion ? art.Id : null,
      checked: false,
      IdArticulo: edicion ? art.IdArticulo : art.Id,
      Codigo: art.Codigo,
      Articulo: edicion ? art.Articulo : art.Nombre,
      ConStock: art.ConStock,
      Stock: edicion ? art.Stock : art.DepositoArticulos.length > 0 ? this.getStockDepositoArticulo(art.DepositoArticulos) : 0,
      BajaLogica: art.BajaLogica,
      Suspendido: art.Suspendido,
      Discontinuo: art.Discontinuo,
      PrecioNeto: condition ? precioNeto : (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNeto)(this.formGroup.get('PrecioFinal').value, edicion ? art.NoGravadoArticulo : art.NoGravado, edicion ? art.PjeIva : art.PjeIVA),
      PrecioFinal: condition ? precioFinal : this.formGroup.get('PrecioFinal').value,
      NoGravadoArticulo: edicion ? art.NoGravadoArticulo : art.NoGravado,
      IdAlicuotaIva: edicion ? art.IdAlicuotaIva : art.AlicuotaIva.Id,
      PjeIva: edicion ? art.PjeIva : art.PjeIVA,
      IdTipoMoneda: edicion ? art.IdTipoMoneda : art.Moneda.Id,
      Cotizacion: edicion ? art.Cotizacion : art.Moneda.Cotizacion,
      PjeDescuento: condition ? 0 : +this.formGroup.get('PjeDescuento').value,
      Cantidad: condition ? 1 : +this.formGroup.get('Cantidad').value,
      ArticuloMedias: edicion ? art.ArticuloMedias : this.armarAlbumImagenes(art),
      //SP SAD-216
      IdOferta: art.IdOferta ?? null,
      IdOfertaItem: art.IdOfertaItem ?? null
    };
    res.CantidadPendiente = 0;
    res.CantidadPendFacturar = res.Cantidad;
    res.ImpuestoInterno = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetImpuestoInterno)(res.NoGravadoArticulo, res.Cotizacion);
    res.ImporteNoGravado = res.IdAlicuotaIva == 1 ? (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetINoGravado)(res.PrecioNeto, res.Cantidad, res.PjeDescuento, res.ImpuestoInterno) : 0;
    res.Exento = res.IdAlicuotaIva == 2 ? (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetIExento)(res.PrecioNeto, res.Cantidad, res.PjeDescuento) : 0;
    res.TotalNeto = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(res.PrecioNeto * res.Cantidad, res.PjeDescuento);
    res.TotalFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(res.PrecioFinal * res.Cantidad, res.PjeDescuento);
    res.CodigoOferta = art.CodigoOferta ?? null;
    return res;
  }
  getStockDepositoArticulo(depositos) {
    const depositoStock = depositos.find(d => d.Deposito.Id == this.depositoSucursalPredeterminado);
    return depositoStock ? this.getStockDisponible(depositoStock) : 0;
  }
  getStockDisponible(stockDeposito) {
    // Assuming stockDisponible is a property in stockDeposito
    return (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetStockDisponible)(stockDeposito.Cantidad, stockDeposito.Comprometido, stockDeposito.Reservado, this.configGralService._config.FormulaStockDisponible);
  }
  buscarArticulos() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_3__.SeleccionarArticuloComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.getOptionsModal)(!this.isMobile() ? 'xl' : 'fullscreen'));
    modalRef.componentInstance.filtros = {
      Multiple: true,
      FocusInicial: 'nombre',
      IncluirPrecioAlternativos: 'S',
      IncluirStock: 'S',
      Depositos: {
        Ids: this.depositoSucursalPredeterminado.toString(),
        Ocultar: true
      }
    };
    modalRef.result.then(resolve => {
      /**
       * SP SAD-376 control para no abrir multiples modales.
       */
      this.seleccionArticuloOpen = false;
      if (resolve !== undefined) {
        let articulosSeleccionados = resolve.ArticulosObj.map(art => {
          return this.procesarArticulo(art, true);
        });
        //obtencion de datos de cliente y fecha , asi como lista precio
        const headerData = this.comprobanteScopedService.formHeaderComprobante.data;
        const tabGeneralData = this.comprobanteScopedService.tabs.find(tab => tab.label === 'General')?.data;
        //TODO UNA VEZ TENGAMOS EL ENDPOINT DESCUENTOS ESPECIALES CON IDSARTICULOS , REDUCIR TODO ESTO A 3 FETCH
        this.comprobanteScopedService.crearObservableOfertas(articulosSeleccionados, headerData.Fecha, tabGeneralData.IdNombrePrecio, headerData.Cliente?.IdCliente).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_29__.map)(results => ({
          articulos: articulosSeleccionados,
          results
        })), (0,rxjs__WEBPACK_IMPORTED_MODULE_30__.catchError)(error => (0,rxjs__WEBPACK_IMPORTED_MODULE_31__.of)({
          articulos: articulosSeleccionados,
          results: null,
          error
        })), (0,rxjs__WEBPACK_IMPORTED_MODULE_32__.timeout)(60000), (0,rxjs__WEBPACK_IMPORTED_MODULE_33__.finalize)(() => console.log('Proceso de obtención de ofertas finalizado'))).subscribe({
          next: resultado => {
            this.procesarResultadosOfertasOptimizado(resultado, articulosSeleccionados);
            this.toastr.success('Artículos agregados con éxito.');
          },
          error: error => {
            this.procesarArticulosSinOfertas(articulosSeleccionados);
            this.toastr.error('Ocurrió un error al obtener las ofertas y descuentos especiales. Se procesarán los artículos sin esta información.');
          }
        });
      }
    }, reject => {
      /**
       * SP SAD-376 control para no abrir multiples modales.
       */
      this.seleccionArticuloOpen = false;
    });
  }
  procesarResultadosOfertasOptimizado(resultado, articulosSeleccionados) {
    var _this4 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const {
        results,
        error
      } = resultado;
      if (results && !error) {
        // delegar la construcción y actualización de ofertas al servicio común
        _this4.comprobanteScopedService.procesarResultadosOfertas(resultado, articulosSeleccionados);
        // ahora aplicar las ofertas sobre los artículos seleccionados (como antes)
        const articulosAux = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_27__.firstValueFrom)(_this4.comprobanteScopedService.aplicarOfertas(articulosSeleccionados, _this4.comprobanteScopedService.getOfertasAplicables(), _this4.comprobanteScopedService.formHeaderComprobante.data.Fecha));
        _this4.finalizarProcesamientoArticulos(articulosAux);
      } else {
        _this4.procesarArticulosSinOfertas(articulosSeleccionados);
      }
    })();
  }
  /**
   * SP SD-210
   * Procesa los artículos seleccionados que no tienen ofertas.
   * @param articulosSeleccionados - Array de artículos seleccionados.
   */
  procesarArticulosSinOfertas(articulosSeleccionados) {
    this.alert.showBasicAlert('Información', 'Se procesarán los artículos sin información de ofertas.', 'info');
    this.finalizarProcesamientoArticulos(articulosSeleccionados);
  }
  /**
   * SP SD-210 actualizacion de articulos
   */
  finalizarProcesamientoArticulos(articulosSeleccionados) {
    this.articulos = [...this.articulos, ...articulosSeleccionados];
    //TODO SAD-216 APLICAR CALCULO DE OFERTAS
    this.articulos = this.reordenarIds(this.articulos);
    this.formGroup.reset({
      Cantidad: 1
    });
    this.emitirArticulos();
    this.scrollTableToLastRow();
  }
  reordenarIds(articulos) {
    return this.articulos.map((art, index) => {
      return {
        ...art,
        Id: index + 1
      };
    });
  }
  searchBlur() {
    // Solo ejecutar si no se marcó para omitir
    if (this.skipNextBlur) {
      this.skipNextBlur = false;
      return;
    }
    if (this.formGroup.get('Codigo').value != '' && this.formGroup.get('Codigo').value != null) {
      this.getArticulo();
    } else {
      this.formGroup.reset({
        cantidad: 1,
        PjeDescuento: 0
      });
    }
  }
  onKeyboard($event) {
    if (this.formGroup.get('Codigo').value != '' && this.formGroup.get('Codigo').value != null && $event.key == 'Enter') {
      // Marcar que el próximo blur debe ser omitido
      this.skipNextBlur = true;
      this.getArticulo();
      // Programar el foco al siguiente elemento para evitar que se quede en el input
      setTimeout(() => {
        if (!this.isMobile()) {
          this.cantidadInput?.input?.nativeElement?.focus();
        }
      }, 0);
    }
    /**SP SAD-376 control para no abrir multiples modales. */
    if ($event.altKey && $event.key === 'F3' && !this.seleccionArticuloOpen) {
      this.buscarArticulos();
    }
  }
  onAddToTable() {
    var _this5 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      if (_this5.formGroup.valid) {
        /**
         * SP SAD-376 Seccion donde valido maximos en formulario
         * En caso de sobrepasar los maximo asigna estos mismos
         */
        if (_this5.formGroup.get('Cantidad').value > _this5.max_cant_input) {
          _this5.formGroup.get('Cantidad').setValue(_this5.max_cant_input);
        }
        if (_this5.formGroup.get('PrecioFinal').value > _this5.max_precio_input) {
          _this5.formGroup.get('PrecioFinal').setValue(_this5.max_precio_input);
        }
        if (_this5.formGroup.get('PjeDescuento').value > _this5.max_pje_desc_input) {
          _this5.formGroup.get('PjeDescuento').setValue(_this5.max_pje_desc_input);
        }
        const artProcesado = _this5.procesarArticulo(_this5.formGroup.get('ArtObj').value);
        const validacion = _this5.validarEstadosArticulo(artProcesado);
        if (!validacion.valid) {
          if (validacion.type === 'baja') {
            _this5.alert.showBasicAlert('Artículo dado de baja', 'El artículo seleccionado se encuentra dado de baja.', 'warning');
          }
          if (validacion.type === 'suspVenta') {
            _this5.alert.showBasicAlert('Articulo suspendido', 'El artículo seleccionado se encuentra suspendido para la venta.', 'warning');
          }
          if (validacion.type === 'suspVentaCompra') {
            _this5.alert.showBasicAlert('Articulo suspendido', 'El artículo seleccionado se encuentra suspendido para la compra y venta.', 'warning');
          }
        } else {
          //SP SAD-220
          if (_this5.hasOfertasODescuentos(_this5.formGroup.get('OfertasXArticulo').value)) {
            _this5.comprobanteScopedService.updateOfertasAplicables([_this5.formGroup.get('OfertasXArticulo').value]);
          }
          //TODO SAD-216 APLICAR CALCULO DE OFERTAS
          //TODO VER SI ES NECESARIO PASAR LISTAPRECIO Y FECHA
          let aplicacionOfertasArticulo = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_27__.firstValueFrom)(_this5.comprobanteScopedService.aplicarOfertas([artProcesado], _this5.comprobanteScopedService.getOfertasAplicables(), _this5.comprobanteScopedService.formHeaderComprobante.data.Fecha));
          //this.articulos.push(artProcesado); ANTES
          _this5.articulos.push(aplicacionOfertasArticulo[0]);
          _this5.articulos = _this5.reordenarIds(_this5.articulos);
          _this5.formGroup.reset({
            Cantidad: 1,
            PjeDescuento: 0
          });
          _this5.cdr.detectChanges();
          _this5.comprobanteScopedService.focusElement('codigoArticulo');
          _this5.emitirArticulos();
          _this5.scrollTableToLastRow();
        }
      }
    })();
  }
  hasOfertasODescuentos(objOfertasXArticulo) {
    //TODO SAD-315 ORIGINAL se oculta temporalmente para version 6.0 BETA
    // return (
    //   objOfertasXArticulo &&
    //   (objOfertasXArticulo.Ofertas.length > 0 ||
    //     objOfertasXArticulo.DescuentosEspeciales.length > 0 ||
    //     objOfertasXArticulo.OfertasPT.length > 0)
    // );
    return objOfertasXArticulo && (objOfertasXArticulo.DescuentosEspeciales.length > 0 || objOfertasXArticulo.OfertasPT.length > 0);
  }
  hasOfertas(articulo) {
    if (this.comprobanteScopedService.getOfertasAplicables().length > 0) {
      const ofertasXArticulo = this.comprobanteScopedService.getOfertasAplicables().find(oferta => oferta.IdArticulo == articulo.IdArticulo);
      //TODO SAD-315 ORIGINAL se oculta temporalmente para version 6.0 BETA
      // if (
      //   ofertasXArticulo &&
      //   (ofertasXArticulo.Ofertas.length > 0 ||
      //     ofertasXArticulo.OfertasPT.length > 0)
      // ) {
      //   return true;
      // }
      if (ofertasXArticulo && ofertasXArticulo.OfertasPT.length > 0) {
        return true;
      }
    }
    return false;
  }
  validarEstadosArticulo(articulo) {
    if (articulo.BajaLogica == 'S') {
      return {
        valid: false,
        type: 'baja'
      };
    }
    if (articulo.Suspendido == 'V') {
      return {
        valid: false,
        type: 'suspVenta'
      };
    }
    if (articulo.Suspendido == 'A') {
      return {
        valid: false,
        type: 'suspVentaCompra'
      };
    }
    return {
      valid: true,
      type: ''
    };
  }
  onEdit(index) {
    this.editingRowIndex = index;
    //rellenar el formGroup con los datos del articulo a editar
    this.articuloToEdit = {
      ...this.articulos[index]
    };
    this.formGroup.patchValue({
      Codigo: this.articuloToEdit.Codigo,
      Articulo: this.articuloToEdit.Articulo,
      PrecioNeto: this.articuloToEdit.PrecioNeto,
      PrecioFinal: this.articuloToEdit.PrecioFinal,
      PjeDescuento: this.articuloToEdit.PjeDescuento,
      Cantidad: this.articuloToEdit.Cantidad,
      TotalNeto: this.articuloToEdit.TotalNeto,
      TotalFinal: this.articuloToEdit.TotalFinal,
      ArtObj: this.articuloToEdit
    });
    // Más eficiente: solo deselecciona el artículo que se está editando si es necesario
    if (this.selectedArticulos.length > 0) {
      this.selectedArticulos = [];
    }
    // Desmarcar todos los artículos ya que se limpió selectedArticulos
    this.articulos.forEach(art => {
      if (art.checked) {
        art.checked = false;
      }
    });
    this.callForm(this.cargarArticulo);
  }
  onDismiss(modal) {
    this.formGroup.reset({
      Cantidad: 1,
      PjeDescuento: 0
    });
    this.editingRowIndex = null;
    this.articuloToEdit = null;
    modal.close();
  }
  onEditArticulo(modal) {
    //SP TODO SAD-315 , si se modifica el Precio Neto o Final se borra la oferta aplicada
    let artEditado = {
      ...this.formGroup.get('ArtObj').value
    };
    if (!this.cumpleOferta(artEditado.IdArticulo, this.articuloToEdit.IdOferta, this.articuloToEdit.IdOfertaItem, this.formGroup.get('PrecioNeto').value, this.formGroup.get('PrecioFinal').value)) {
      artEditado.IdOferta = null;
      artEditado.IdOfertaItem = null;
    }
    // if (
    //   this.articuloToEdit.PrecioNeto !=
    //     this.formGroup.get('PrecioNeto').value ||
    //   this.articuloToEdit.PrecioFinal != this.formGroup.get('PrecioFinal').value
    // ) {
    //   artEditado.IdOferta = null;
    //   artEditado.IdOfertaItem = null;
    // }
    this.articulos[this.editingRowIndex] = this.procesarArticulo(artEditado, false, true);
    this.emitirArticulos();
    this.scrollTableToLastRow();
    modal.close();
    this.editingRowIndex = null;
    this.articuloToEdit = null;
    this.formGroup.reset({
      Cantidad: 1,
      PjeDescuento: 0
    });
  }
  callForm(content, element) {
    let modalRef = this.modalService.open(content, {
      fullscreen: true,
      backdrop: 'static',
      keyboard: false
    });
    modalRef.result.then(resolve => {
      return;
    });
  }
  onDelete(index) {
    this.alert.showReturnAlert('Eliminación ', '¿Está seguro de eliminar el ítem seleccionado?', 'warning', 'Eliminar', 'Cancelar', true, 'danger').then(result => {
      if (result.value) {
        // Obtener el artículo a eliminar
        const articuloAEliminar = this.articulos[index];
        this.selectedArticulos = [];
        this.articulos.splice(index, 1);
        this.articulos = this.reordenarIds(this.articulos);
        // Verificar si el artículo eliminado existe en otros elementos de la lista
        const existeOtroArticuloConMismoId = this.articulos.some(art => art.IdArticulo === articuloAEliminar.IdArticulo);
        // Si no existe otro artículo con el mismo ID, quitar del subject de ofertas
        if (!existeOtroArticuloConMismoId) {
          const ofertasActuales = this.comprobanteScopedService.getOfertasAplicables();
          const ofertasFiltradas = ofertasActuales.filter(oferta => oferta.IdArticulo !== articuloAEliminar.IdArticulo);
          this.comprobanteScopedService.setOfertasAplicables(ofertasFiltradas);
        }
        this.scrollTableToLastRow();
        this.emitirArticulos();
      }
    });
  }
  onDeleteAll() {
    this.articulos = [];
    this.comprobanteScopedService.setOfertasAplicables([]);
    //this.scrollTableToLastRow();
    this.emitirArticulos();
  }
  onDeleteAllSelected() {
    if (this.selectedArticulos.length > 0) {
      //quiero eliminar los articulos que tengo en selectedArticulos de articulos
      this.alert.showReturnAlert('Eliminación ', '¿Está seguro de eliminar los ítems seleccionados?', 'warning', 'Eliminar', 'Cancelar', true, 'danger').then(result => {
        if (result.value) {
          const selectedIds = new Set(this.selectedArticulos.map(a => a.Id));
          // Obtener IDs de artículos únicos antes de la eliminación
          const idsArticulosAEliminar = new Set(this.selectedArticulos.map(art => art.IdArticulo));
          this.articulos = this.articulos.filter(art => !selectedIds.has(art.Id));
          // Obtener IDs de artículos que permanecen después de la eliminación
          const idsArticulosRestantes = new Set(this.articulos.map(art => art.IdArticulo));
          // Encontrar artículos que ya no tienen representación en la lista
          const idsArticulosSinRepetir = Array.from(idsArticulosAEliminar).filter(id => !idsArticulosRestantes.has(id));
          // Actualizar ofertas solo si hay artículos que eliminar del subject
          if (idsArticulosSinRepetir.length > 0) {
            const ofertasActuales = this.comprobanteScopedService.getOfertasAplicables();
            const ofertasFiltradas = ofertasActuales.filter(oferta => !idsArticulosSinRepetir.includes(oferta.IdArticulo));
            this.comprobanteScopedService.setOfertasAplicables(ofertasFiltradas);
          }
          // Limpiar selección y reordenar
          this.selectedArticulos = [];
          this.articulos = this.reordenarIds(this.articulos);
          this.emitirArticulos();
        }
      });
    }
  }
  onCheckboxCardChange(articulo) {
    const encontrado = this.selectedArticulos.find(art => art.Id === articulo.Id);
    if (articulo.checked && !encontrado) {
      this.selectedArticulos.push(articulo);
    } else if (!articulo.cheked && encontrado) {
      this.selectedArticulos = this.selectedArticulos.filter(art => art.Id !== articulo.Id);
    }
  }
  emitirArticulos() {
    //this.emitArticulos.emit(this.articulos);
    this.comprobanteScopedService.setArticulos({
      ...this.comprobanteScopedService,
      articulos: this.articulos
    });
  }
  scrollTableToLastRow() {
    //scroll ng-prime table to last row using javascript
    setTimeout(() => {
      let table = document.getElementById('tablaArticulos');
      if (table) {
        let tbody = table.querySelector('tbody');
        //quiero moverme al ultimo tr de la tabla
        let tr = tbody.getElementsByTagName('tr');
        if (tr.length > 0) {
          tr.item(tr.length - 1).scrollIntoView({
            behavior: 'smooth'
          });
        }
      }
    }, 0);
  }
  onUpdateArticulos() {
    var _this6 = this;
    let datos = {
      PageNumber: -1,
      Orden: 1,
      SentidoOrden: 'Asc',
      IdsArticulos: this.articulos.map(art => art.IdArticulo).join(','),
      IncluirPrecioAlternativos: 'S',
      IncluirStock: 'S',
      IdDeposito: this.depositoSucursalPredeterminado
    };
    this.articuloService.fetch(datos).subscribe(res => {
      if (res.Data.length > 0) {
        // Actualizar cada artículo manteniendo el PjeDescuento original
        this.articulos = this.articulos.map(articuloOriginal => {
          const actualizado = res.Data.find(a => a.Id === articuloOriginal.IdArticulo);
          if (actualizado && (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNetoFromLista)(actualizado, this.listaPrecio) !== 0) {
            // Usar procesarArticulo y luego restaurar el PjeDescuento original
            const nuevoArticulo = this.procesarArticulo(actualizado, true);
            return {
              ...nuevoArticulo,
              TotalNeto: nuevoArticulo.PrecioNeto * articuloOriginal.Cantidad * (1 - (articuloOriginal.PjeDescuento || 0) / 100),
              PjeDescuento: articuloOriginal.PjeDescuento,
              Cantidad: articuloOriginal.Cantidad,
              CantidadPendFacturar: articuloOriginal.Cantidad,
              PrecioFinal: nuevoArticulo.PrecioFinal,
              TotalFinal: nuevoArticulo.PrecioFinal * articuloOriginal.Cantidad * (1 - (articuloOriginal.PjeDescuento || 0) / 100)
            };
          }
          return articuloOriginal;
        });
        this.articulos = this.reordenarIds(this.articulos);
        const idsUnicos = Array.from(new Set(this.articulos.map(art => art.IdArticulo))).join(',');
        //SECCION ACTUALIZAR LAS OFERTAS
        const headerData = this.comprobanteScopedService.formHeaderComprobante.data;
        const tabGeneralData = this.comprobanteScopedService.tabs.find(tab => tab.label === 'General')?.data;
        const forkJoin = this.comprobanteScopedService.crearObservableOfertas(this.articulos, headerData.Fecha, tabGeneralData.IdNombrePrecio, headerData.Cliente?.IdCliente);
        forkJoin.subscribe({
          next: function () {
            var _ref2 = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (results) {
              _this6.comprobanteScopedService.setOfertasAplicables(_this6.comprobanteScopedService.procesarOfertasYDescuentos(results));
              //TODO SAD-216 APLICAR CALCULO DE OFERTAS
              _this6.articulos = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_27__.firstValueFrom)(_this6.comprobanteScopedService.aplicarOfertas(_this6.articulos, _this6.comprobanteScopedService.getOfertasAplicables(), headerData.Fecha));
              _this6.selectedArticulos = [];
              _this6.emitirArticulos();
              _this6.scrollTableToLastRow();
            });
            return function next(_x2) {
              return _ref2.apply(this, arguments);
            };
          }(),
          error: error => {
            console.error('Error en forkJoin:', error);
            this.selectedArticulos = [];
            this.emitirArticulos();
            this.scrollTableToLastRow();
          }
        });
      } else {
        this.alert.showBasicAlert('Información', 'No se encontraron artículos para actualizar', 'info');
      }
      this.comprobanteScopedService.recargarArticulos(false);
    });
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  /**
   * Evento disparado al iniciar la edición de una celda en la tabla.
   *
   * @param event - Evento de edición que contiene información sobre la celda editada.
   */
  onEditInit(event) {
    this.editingCell = {
      rowIndex: event.index,
      field: event.field
    };
    // Guardar valor original para poder restaurar
    this.originalRowValue = event.data;
  }
  onEditCancel(event) {
    // Restaurar valor original si existe
    const row = this.articulos[this.editingCell.rowIndex];
    if (this.originalRowValue !== undefined && row) {
      row[this.editingCell.field] = this.originalRowValue;
    }
    // Limpiar estado de edición
    this.editingCell = null;
    this.originalRowValue = undefined;
    // Forzar actualización de la vista
    this.cdr.detectChanges();
  }
  /**
   * SP SAD-376 Se corrigio codigo repetido y actualizacion de exento y no gravado
   * Evento disparado al completar la edición de una celda en la tabla.
   * @param event - Evento de edición que contiene información sobre la celda editada.
   */
  onEditComplete(event) {
    // Validar que el evento tenga datos válidos
    if (!event || event.index === null || event.index === undefined || !this.articulos[event.index]) {
      console.warn('Evento de edición inválido:', event);
      // Forzar refresco de la tabla para limpiar estados inconsistentes
      this.cdr.detectChanges();
      return;
    }
    const row = this.articulos[event.index];
    const headerDataFecha = this.comprobanteScopedService.formHeaderComprobante.data.Fecha;
    this.cdr.detach();
    row.PrecioNeto = +row.PrecioNeto;
    row.PrecioFinal = +row.PrecioFinal;
    row.Cantidad = +row.Cantidad;
    row.PjeDescuento = +row.PjeDescuento;
    switch (event.field) {
      case 'PrecioNeto':
        // Si cambió realmente el valor original del campo, recalcular PrecioFinal
        if (this.originalRowValue !== undefined) {
          row.PrecioFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioFinal)(row.PrecioNeto, row.PjeIva, row.NoGravadoArticulo);
        }
        break;
      case 'PrecioFinal':
        if (this.originalRowValue !== undefined) {
          row.PrecioNeto = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNeto)(row.PrecioFinal, row.NoGravadoArticulo, row.PjeIva);
        }
        break;
      case 'Cantidad':
      case 'PjeDescuento':
        // no conversion extra aquí; totales se recalculan abajo
        break;
      default:
        break;
    }
    //SP SAD-376 recalculo de Iva No Gravado y Exento
    // Recalcular totales e importes comunes
    this.updateRowCalculations(row);
    // Invalidar oferta si corresponde (centraliza la lógica)
    this.invalidateOfertaIfNeeded(row);
    this.articulos[event.index] = row;
    this.editingCell = null;
    this.originalRowValue = undefined;
    this.emitirArticulos();
    this.cdr.reattach();
    this.cdr.detectChanges();
  }
  /**
   * SP SAD-376 Metodo para invalidar la oferta de una fila si los precios no coinciden
   */
  invalidateOfertaIfNeeded(row) {
    if (!this.cumpleOferta(row.IdArticulo, row.IdOferta, row.IdOfertaItem, row.PrecioNeto, row.PrecioFinal)) {
      row.IdOferta = null;
      row.IdOfertaItem = null;
    }
  }
  /**
   * SP SAD-376 Metodo para actualizar los calculos de una fila en la tabla de articulos
   * @param row fila a actualizar
   */
  updateRowCalculations(row) {
    row.TotalNeto = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(row.PrecioNeto * row.Cantidad, row.PjeDescuento);
    row.TotalFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(row.PrecioFinal * row.Cantidad, row.PjeDescuento);
    row.ImpuestoInterno = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetImpuestoInterno)(row.NoGravadoArticulo, row.Cotizacion);
    row.ImporteNoGravado = row.IdAlicuotaIva == 1 ? (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetINoGravado)(row.PrecioNeto, row.Cantidad, row.PjeDescuento, row.ImpuestoInterno) : 0;
    row.Exento = row.IdAlicuotaIva == 2 ? (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetIExento)(row.PrecioNeto, row.Cantidad, row.PjeDescuento) : 0;
    row.CantidadPendFacturar = row.Cantidad;
  }
  cumpleOferta(idArticulo, idOferta, idOfertaItem, neto, final) {
    const ofertaxArticulo = this.comprobanteScopedService.getOfertasAplicables().find(oferta => oferta.IdArticulo == idArticulo);
    if (idOferta && idOfertaItem && ofertaxArticulo) {
      const oferta = ofertaxArticulo.OfertasPT.find(o => o.IdOferta == idOferta && o.IdOfertaItemPT == idOfertaItem);
      if (oferta) {
        // Verificar si el precio neto o final coincide con los de la oferta
        if (oferta.PrecioNeto == neto && oferta.PrecioFinal == final
        // this.sonDecimalesIguales(oferta.PrecioNeto, neto) &&
        // this.sonDecimalesIguales(oferta.PrecioFinal, final)
        ) {
          return true;
        }
      }
      return false;
    }
    return false;
  }
  /**
   * Compara dos valores numéricos con una precisión decimal específica.
   * @param valor1 - Primer valor a comparar.
   * @param valor2 - Segundo valor a comparar.
   * @param precision - Número de decimales a considerar en la comparación.
   * @returns Verdadero si los valores son iguales dentro de la precisión especificada, falso en caso contrario.
   */
  // private sonDecimalesIguales(
  //   valor1: number,
  //   valor2: number,
  //   precision: number = 4
  // ): boolean {
  //   const factor = Math.pow(10, precision);
  //   return Math.round(valor1 * factor) === Math.round(valor2 * factor);
  // }
  articuloValido(articulo) {
    //detectar si alguno de los campos editables de articulo es null o undefined
    return articulo && articulo.Codigo && articulo.Articulo && articulo.PrecioFinal !== null && articulo.PrecioFinal !== undefined && articulo.PjeDescuento !== null && articulo.PjeDescuento !== undefined && articulo.Cantidad !== null && articulo.Cantidad !== undefined;
  }
  /**
   * Obtiene el valor de NoGravado del artículo, considerando ambos nombres de campo
   * @param artObj - Objeto del artículo
   * @returns Valor de NoGravado
   */
  getNoGravadoValue(artObj) {
    return artObj?.NoGravado ?? artObj?.NoGravadoArticulo;
  }
  /**
   * Obtiene el valor de PjeIVA del artículo, considerando ambos nombres de campo
   * @param artObj - Objeto del artículo
   * @returns Valor de PjeIVA
   */
  getPjeIVAValue(artObj) {
    return artObj?.PjeIVA ?? artObj?.PjeIva;
  }
  onPrecioFinalChange() {
    // Verificar si el campo PrecioFinal ha cambiado y si es un número válido
    if (this.formGroup.get('PrecioFinal').value && !isNaN(this.formGroup.get('PrecioFinal').value)) {
      /**
       * SP SAD-376 Seccion donde valido maximos en formulario
       * En caso de sobrepasar los maximo asigna estos mismos
       */
      if (this.formGroup.get('PrecioFinal').value > this.max_precio_input) {
        this.formGroup.get('PrecioFinal').setValue(this.max_precio_input);
      }
      const precioFinal = this.formGroup.get('PrecioFinal').value;
      const pjeDescuento = this.formGroup.get('PjeDescuento').value || 0;
      const artObj = this.formGroup.get('ArtObj').value;
      const NoAgravado = this.getNoGravadoValue(artObj);
      const PjeIVA = this.getPjeIVAValue(artObj);
      // Actualizar  PrecioNeto , TotalNeto y TotalFinal en el formGroup
      this.formGroup.get('PrecioNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNeto)(precioFinal, NoAgravado, PjeIVA));
      const precioNeto = this.formGroup.get('PrecioNeto').value || 0;
      this.formGroup.get('TotalNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioNeto * this.formGroup.get('Cantidad').value, pjeDescuento));
      this.formGroup.get('TotalFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioFinal * this.formGroup.get('Cantidad').value, pjeDescuento));
    }
  }
  onCantidadChange() {
    // como cambio la cantidad debo actualizar el TotalNeto y TotalFinal en el formGroup
    if (this.formGroup.get('Cantidad').value && this.formGroup.get('PrecioFinal').value) {
      /**
       * SP SAD-376 Seccion donde valido maximos en formulario
       * En caso de sobrepasar los maximo asigna estos mismos
       */
      if (this.formGroup.get('Cantidad').value > this.max_cant_input) {
        this.formGroup.get('Cantidad').setValue(this.max_cant_input);
      }
      const cantidad = this.formGroup.get('Cantidad').value;
      const precioFinal = this.formGroup.get('PrecioFinal').value;
      const precioNeto = this.formGroup.get('PrecioNeto').value || 0;
      const pjeDescuento = this.formGroup.get('PjeDescuento').value || 0;
      this.formGroup.get('TotalNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioNeto * cantidad, pjeDescuento));
      this.formGroup.get('TotalFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioFinal * cantidad, pjeDescuento));
    }
  }
  onPjeDescuentoChange() {
    // Verificar si el campo PjeDescuento ha cambiado y si es un número válido
    if (this.formGroup.get('PjeDescuento').value && !isNaN(this.formGroup.get('PjeDescuento').value)) {
      /**
       * SP SAD-376 Seccion donde valido maximos en formulario
       * En caso de sobrepasar los maximo asigna estos mismos
       */
      if (this.formGroup.get('PjeDescuento').value > this.max_pje_desc_input) {
        this.formGroup.get('PjeDescuento').setValue(this.max_pje_desc_input);
      }
      const pjeDescuento = this.formGroup.get('PjeDescuento').value;
      const precioNeto = this.formGroup.get('PrecioNeto').value;
      const precioFinal = this.formGroup.get('PrecioFinal').value;
      const cantidad = this.formGroup.get('Cantidad').value;
      // Actualizar TotalNeto y TotalFinal en el formGroup
      this.formGroup.get('TotalNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioNeto * cantidad, pjeDescuento));
      this.formGroup.get('TotalFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioFinal * cantidad, pjeDescuento));
    }
  }
  onPrecioNetoChange() {
    // Verificar si el campo PrecioNeto ha cambiado y si es un número válido
    if (this.formGroup.get('PrecioNeto').value && !isNaN(this.formGroup.get('PrecioNeto').value)) {
      /**
       * SP SAD-376 Seccion donde valido maximos en formulario
       * En caso de sobrepasar los maximo asigna estos mismos
       */
      if (this.formGroup.get('PrecioNeto').value > this.max_precio_input) {
        this.formGroup.get('PrecioNeto').setValue(this.max_precio_input);
      }
      const precioNeto = this.formGroup.get('PrecioNeto').value;
      const pjeDescuento = this.formGroup.get('PjeDescuento').value || 0;
      const artObj = this.formGroup.get('ArtObj').value;
      const NoAgravado = this.getNoGravadoValue(artObj);
      const PjeIVA = this.getPjeIVAValue(artObj);
      // Actualizar TotalNeto y TotalFinal en el formGroup
      this.formGroup.get('PrecioFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioFinal)(precioNeto, PjeIVA, NoAgravado));
      this.formGroup.get('TotalNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioNeto * this.formGroup.get('Cantidad').value, pjeDescuento));
      this.formGroup.get('TotalFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(this.formGroup.get('PrecioFinal').value * this.formGroup.get('Cantidad').value, pjeDescuento));
    }
  }
  setImagen(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      return 'assets/images/blankImg.jpg';
    } else {
      return articulo.ArticuloMedias[0].src;
    }
  }
  setImagenBlanca(event) {
    const img = event.target;
    if (!img.dataset.fallback) {
      img.src = 'assets/images/blankImg.jpg';
      img.dataset.fallback = 'true';
    }
  }
  armarAlbumImagenes(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      return [{
        src: 'assets/images/blankImg.jpg',
        thumb: 'assets/images/blankImg.jpg',
        caption: 'Imagen no disponible'
      }];
    }
    return articulo.ArticuloMedias.map(media => ({
      src: this.urlImagenes + '/' + media.Nombre,
      thumb: this.urlImagenes + '/' + media.Nombre,
      caption: articulo.Nombre + ' ' + media.Nombre || ''
    }));
  }
  openLightbox(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      this.alert.showBasicAlert('Información', 'No hay imágenes disponibles para este artículo', 'info');
      return;
    }
    this.lightbox.open(articulo.ArticuloMedias, 0, {
      showImageNumberLabel: true,
      centerVertically: true
    });
  }
  consultaArticuloModal(articulo) {
    const modalRef = this.modalService.open(_features_comprobante_feature_consulta_articulo_feature_consulta_articulo_component__WEBPACK_IMPORTED_MODULE_6__.FeatureConsultaArticuloComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.getOptionsModal)(window.innerWidth < 768 ? 'fullscreen' : 'xl'));
    if (articulo && articulo.Codigo) {
      modalRef.componentInstance.codigo = articulo.Codigo;
    }
    modalRef.componentInstance.configuraciones = {
      tabs: this.permisos.consultarStock ? ['Datos', 'Stock'] : ['Datos']
    };
    modalRef.componentInstance.modal = true;
    modalRef.componentInstance.listaPrecios = this.getListaPrecioSelected();
    modalRef.result.then(resolve => {
      this.consultaArticuloOpen = false;
      if (resolve !== undefined) {
        this.onAgregarArticulo(resolve);
      }
    });
  }
  consultaOfertaModal() {
    const modalRef = this.modalService.open(_features_comprobante_feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_7__.FeatureOfertasComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.getOptionsModal)(window.innerWidth < 768 ? 'fullscreen' : 'xl'));
    modalRef.componentInstance.modal = true;
    modalRef.componentInstance.busqueda = true;
    modalRef.componentInstance.listasPrecios = this.comprobanteScopedService.listaPrecios;
    modalRef.componentInstance.idListaPrecios = this.getListaPrecioSelected()?.Id || null;
    modalRef.componentInstance.codigoCliente = this.getClienteSelected().Codigo ? this.getClienteSelected().Codigo.toString() : null;
    modalRef.componentInstance.fecha = this.comprobanteScopedService.formHeaderComprobante?.data?.Fecha;
    modalRef.result.then(resolve => {
      this.consultaOfertaOpen = false;
    });
  }
  consultaOfertasAplicadasModal(idArticulo) {
    const modalRef = this.modalService.open(_features_comprobante_feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_7__.FeatureOfertasComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.getOptionsModal)('fullscreen'));
    modalRef.componentInstance.modal = true;
    modalRef.componentInstance.busqueda = false;
    modalRef.componentInstance.ofertasXArticulo = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.FiltrarOfertasAplicables)(this.comprobanteScopedService.getOfertasAplicables(), this.comprobanteScopedService.articulos.articulos);
    modalRef.componentInstance.idArticulo = idArticulo;
    modalRef.result.then(resolve => {});
  }
  consultaOfertasAplicadas(idArticulo) {
    let getIndex = this.comprobanteScopedService.tabs.findIndex(tab => tab.label === 'Ofertas');
    if (getIndex === -1) {
      this.comprobanteScopedService.setArticulos({
        ...this.comprobanteScopedService.articulos,
        actions: {
          label: 'COA',
          params: idArticulo
        }
      });
    }
  }
  /**
   * SP SAD-210 metodo aux para filtrar los depositos del articulo
   * ya que solo aqui tenemos actualizada para variable
   * del deposito predeterminado
   */
  onAgregarArticulo(articulo) {
    if (articulo.DepositoArticulos && articulo.DepositoArticulos.length > 0) {
      articulo.DepositoArticulos = articulo.DepositoArticulos.filter(da => da.Deposito.Id == this.depositoSucursalPredeterminado);
    }
    this.agregarArticulo(articulo);
  }
  agregarArticulo(articulo) {
    this.formGroup.get('Codigo').setValue(articulo.Codigo);
    this.formGroup.get('ArtObj').setValue(articulo);
    this.formGroup.get('Articulo').setValue(articulo.Nombre);
    if (!this.formGroup.get('Cantidad').value) {
      this.formGroup.get('Cantidad').setValue(1);
    }
    if (!this.formGroup.get('PjeDescuento').value) {
      this.formGroup.get('PjeDescuento').setValue(0);
    }
    this.formGroup.get('PrecioNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNetoFromLista)(articulo, this.listaPrecio));
    /**
     * SP Ya no se saca mas el Precio Final de la lista de precios
     * ahora se calcula en base al Precio Neto + IVA y No Gravado
     **/
    const precioFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioFinal)(this.formGroup.get('PrecioNeto').value, articulo.PjeIVA, articulo.NoGravado);
    this.formGroup.get('PrecioFinal').setValue(precioFinal);
    this.formGroup.get('TotalNeto').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.GetPrecioNetoFromLista)(articulo, this.listaPrecio) * this.formGroup.get('Cantidad').value, this.formGroup.get('PjeDescuento').value));
    this.formGroup.get('TotalFinal').setValue((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_5__.AplicarDescuento)(precioFinal * this.formGroup.get('Cantidad').value, this.formGroup.get('PjeDescuento').value));
    //SP SAD-216 . busco la oferta y la guardo temporalmente en el formulario , al agregar el articulo en la tabla se borra
    const headerData = this.comprobanteScopedService.formHeaderComprobante.data;
    const tabGeneralData = this.comprobanteScopedService.tabs.find(tab => tab.label === 'General')?.data;
    const forkJoin = this.comprobanteScopedService.crearObservableOfertas([{
      IdArticulo: articulo.Id
    }], headerData.Fecha, tabGeneralData.IdNombrePrecio, headerData.Cliente?.IdCliente);
    forkJoin.subscribe({
      next: results => {
        const ofertasXArticulo = this.buildOfertasXArticulo(articulo, results);
        this.formGroup.get('OfertasXArticulo').setValue(ofertasXArticulo);
        this.onAddToTable();
      },
      error: error => {
        this.alert.showBasicAlert('Error', `Ocurrió un error al obtener las ofertas y descuentos especiales para el artículo ${articulo.Nombre}. Se procesará el artículo sin estas informaciones.`, 'error');
        this.onAddToTable();
      }
    });
    //this.onAddToTable();
  }
  buildOfertasXArticulo(articulo, ofertasYDescuentos) {
    return {
      IdArticulo: articulo.IdArticulo ?? articulo.Id,
      CodigoArticulo: articulo.Codigo,
      Articulo: articulo.Nombre ?? articulo.Articulo,
      //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
      // Ofertas:
      //   ofertasYDescuentos.ofertas?.Data?.length > 0 ? ofertasYDescuentos.ofertas?.Data[0].Ofertas : [],
      OfertasPT: ofertasYDescuentos.ofertasTemporales?.Data?.length > 0 ? ofertasYDescuentos.ofertasTemporales?.Data[0].Ofertas : [],
      DescuentosEspeciales: ofertasYDescuentos.descuentosEspeciales?.Data?.length > 0 ? ofertasYDescuentos.descuentosEspeciales?.Data : []
    };
  }
  consultaArticulo(articulo) {
    let getIndex = this.comprobanteScopedService.tabs.findIndex(tab => tab.label === 'Consulta Art.');
    if (getIndex === -1) {
      this.comprobanteScopedService.setArticulos({
        ...this.comprobanteScopedService.articulos,
        actions: {
          label: 'CA',
          params: articulo.Codigo
        }
      });
    }
  }
  consultaStock(articulo) {}
  getListaPrecioSelected() {
    return this.comprobanteScopedService.listaPrecios.find(lp => lp.Id === this.listaPrecio) || null;
  }
  getClienteSelected() {
    return this.comprobanteScopedService.formHeaderComprobante?.data?.Cliente || {};
  }
  formatSucursalesToAlert(sucursales) {
    return sucursales.reduce((acc, sucursal) => {
      acc[sucursal.Id] = sucursal.Nombre;
      return acc;
    }, {});
  }
  onNuevaNotaArticulos(articulos) {
    console.log(this.comprobanteScopedService);
    this.alert.ShowSelectAlert('Selección de Sucursal', this.formatSucursalesToAlert(this.comprobanteScopedService.sucursales), 'Seleccione una sucursal', 'Debe seleccionar una sucursal').then(sucursalSelected => {
      if (sucursalSelected.isConfirmed) {
        this.redirectToNewNote(articulos, +sucursalSelected.value);
      }
    });
  }
  redirectToNewNote(articulos, sucursalSelected) {
    const header = this.comprobanteScopedService.formHeaderComprobante?.data;
    const formulario = this.comprobanteScopedService.tabs.find(tab => tab.label === 'General')?.data;
    const footer = this.comprobanteScopedService.formFooterComprobante?.data;
    const ComprobanteData = {
      Id: null,
      IdSucursal: sucursalSelected,
      Articulos: articulos,
      Cliente: header.Cliente,
      Fecha: header.Fecha,
      FechaVencimiento: formulario.FechaVencimiento,
      IdCanal: formulario.IdCanal,
      HoraEnvio: formulario.HoraEnvio,
      IdFormaPago: formulario.IdFormaPago,
      IdNombrePrecio: formulario.IdNombrePrecio,
      FechaPrecio: formulario.FechaPrecio,
      IdEmpleado: formulario.IdEmpleado,
      FacturarPendienteDespacho: formulario.FacturarPendienteDespacho,
      PjeDescuento1: 0,
      PjeDescuento2: 0,
      PjeDescuento3: 0,
      Importe: 0,
      Descripcion: footer.Descripcion
    };
    const jsonStringData = JSON.stringify(ComprobanteData);
    //guardar en cookies jsonStringData
    localStorage.setItem('nuevaNotaArticulos', jsonStringData);
    window.open(`#/views/cargarComprobante/19/`, '_blank');
  }
  getArticulos() {
    return this.articulos;
  }
  forceCloseEditing() {
    if (this.editingCell && this.table) {
      try {
        // Obtener la fila que está siendo editada
        const row = this.articulos[this.editingCell.rowIndex];
        if (row) {
          // Crear evento mock para completar la edición
          const mockEvent = {
            index: this.editingCell.rowIndex,
            field: this.editingCell.field,
            data: row
          };
          // Forzar la finalización de la edición
          this.onEditComplete(mockEvent);
        }
      } catch (error) {
        console.error('Error al forzar cierre de edición:', error);
        // En caso de error, limpiar estado manualmente
        this.resetEditingState();
      }
    }
  }
  resetEditingState() {
    this.editingCell = null;
    this.originalRowValue = null;
    this.cdr.detectChanges();
  }
  abrirScanner() {
    const modalRef = this.modalService.open(_ui_code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_9__.CodeScannerComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    //modalRef.componentInstance.maquina = maquina;
    modalRef.result.then(result => {
      if (result === undefined || result.includes('ERROR')) {
        if (result === 'ERROR_CAMARA') {
          this.mensajeError = 'No se ha podido acceder a la cámara';
          this.alert.showBasicAlert('Error', this.mensajeError, 'error');
        }
        if (result === 'ERROR_PERMISO') {
          this.mensajeError = 'Verifique los permisos de la aplicación';
          this.alert.showBasicAlert('Error', this.mensajeError, 'error');
        }
      } else {
        this.formGroup.get('Codigo').setValue(result);
        this.getArticulo();
      }
    }, () => {});
  }
  static #_ = this.ɵfac = function CargarArticulosComprobanteComponent_Factory(t) {
    return new (t || CargarArticulosComprobanteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_10__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_24__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_11__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_12__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_13__.ComprobanteScopedService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_23__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_imagenes_service__WEBPACK_IMPORTED_MODULE_14__.ImagenesService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](ngx_lightbox__WEBPACK_IMPORTED_MODULE_15__.Lightbox), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_16__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_oferta_item_service__WEBPACK_IMPORTED_MODULE_17__.OfertaItemService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_oferta_item_pt_service__WEBPACK_IMPORTED_MODULE_18__.OfertaItemPtService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](src_app_core_services_core_descuentoEspecial_service__WEBPACK_IMPORTED_MODULE_19__.DescuentoEspecialService), _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_35__.ToastrService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵdefineComponent"]({
    type: CargarArticulosComprobanteComponent,
    selectors: [["app-cargar-articulos-comprobante"]],
    viewQuery: function CargarArticulosComprobanteComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵviewQuery"](_c1, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵviewQuery"](_c2, 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵviewQuery"](_c3, 7);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵloadQuery"]()) && (ctx.cantidadInput = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵloadQuery"]()) && (ctx.table = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵloadQuery"]()) && (ctx.codigoArticulo = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵloadQuery"]()) && (ctx.cargarArticulo = _t.first);
      }
    },
    hostBindings: function CargarArticulosComprobanteComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵlistener"]("keydown", function CargarArticulosComprobanteComponent_keydown_HostBindingHandler($event) {
          return ctx.handleKeyboardEvent($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresolveWindow"])("click", function CargarArticulosComprobanteComponent_click_HostBindingHandler($event) {
          return ctx.onDocumentClick($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵresolveDocument"]);
      }
    },
    inputs: {
      visualizar: "visualizar",
      edicion: "edicion"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_1__.AlertCustomService])],
    decls: 4,
    vars: 1,
    consts: [["cargarArticulo", ""], [1, "d-flex", "flex-column", "gap-2", "position-relative", 2, "height", "calc(100% - 40px)", "overflow-y", "auto"], ["class", "alert alert-danger text-center"], [1, "d-flex", "px-2", "gap-2", "justify-content-center"], [1, "alert", "alert-danger", "text-center"], [1, "alert", "alert-warning", "text-center"], [1, "btn", "btn-warning", 3, "click"], [1, "mdi", "mdi-refresh"], [1, "card", "border-custom", "shadow-sm", 3, "ngClass"], [1, "card-body", "py-2", "px-3", "card-item"], ["class", "item-img"], [1, "item-info"], [1, "d-flex", "gap-2", "w-100", "flex-wrap"], [1, "fs-6", "fw-light", "bg-secondary", "px-2", "py-1", "rounded-pill", "text-white"], ["class", "fs-6 fw-light bg-secondary px-2 py-1 rounded-pill text-white"], [1, "item-name"], [1, "fw-semibold", "fs-5", 3, "pTooltip"], [1, "d-flex", "justify-content-between"], [1, "text-start"], [1, "text-muted", "mb-1"], [1, "mb-1"], [1, "fw-semibold", "mb-1", 3, "ngClass"], [1, "text-muted", 3, "ngClass"], [1, "text-end"], [1, "fw-semibold", "mb-1", "font-size-16", 3, "ngClass"], ["ngbDropdown", "", "container", "body", 1, "btn-group", "position-absolute", "top-0", "end-0", "pe-2", "pt-2"], ["type", "button", "ngbDropdownToggle", "", 1, "btn", "btn-sm", "dropdown-toggle", 3, "ngClass"], [1, "mdi", "mdi-dots-vertical"], ["ngbDropdownMenu", "", 1, "dropdown-menu"], [1, "dropdown-item", 2, "cursor", "pointer", 3, "click"], [1, "item-img"], ["class", "text-inherit", "href", "javascript:void(0)", 4, "ngIf"], ["class", "form-check"], ["href", "javascript:void(0)", 1, "text-inherit"], [2, "width", "70px", "height", "70px", 3, "src", "click", "error"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", 3, "id", "ngModel", "ngModelChange", "change"], [1, "mdi", "mdi-eye"], [1, "mdi", "mdi-pencil"], [1, "mdi", "mdi-delete"], [1, "mdi", "mdi-sale"], [1, "mdi", "mdi-text-box-search-outline"], [1, "mdi", "mdi-text-box-plus-outline"], ["class", "card border-custom shadow-sm", 3, "ngClass"], ["class", "btn btn-info flex-grow-1", "style", "cursor: pointer", 3, "disabled"], [1, "btn", "btn-danger", "flex-grow-1", 3, "disabled", "click"], [1, "btn", "btn-primary", "flex-grow-1", 3, "disabled", "click"], [1, "mdi", "mdi-plus"], ["class", "btn btn-warning flex-grow-1"], ["class", "btn btn-info flex-grow-1"], [1, "btn", "btn-info", "flex-grow-1", 2, "cursor", "pointer", 3, "disabled", "click"], [1, "btn", "btn-warning", "flex-grow-1", 3, "click"], [1, "btn", "btn-info", "flex-grow-1", 3, "click"], ["class", "row", "style", "min-height: 400px"], ["class", "position-absolute p-1 bg-custom-color", "style", "bottom: 0; left: 0; right: 0"], [1, "row", 2, "min-height", "400px"], [1, "col-12", "d-flex", "flex-column", "justify-content-center", "align-items-center"], ["id", "tablaArticulos", "styleClass", "p-datatable-gridlines p-datatable-sm ", "dataKey", "Id", "scrollHeight", "flex", "selectionMode", "multiple", 3, "value", "scrollable", "rowHover", "selection", "onEditInit", "onEditComplete", "onEditCancel", "selectionChange"], ["tableArticulos", ""], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [1, "text-center"], ["style", "width: 4rem"], ["style", "width: 50px", 4, "ngIf"], [2, "width", "100px"], [2, "min-width", "200px"], [2, "min-width", "100px"], ["style", "width: 50px", "alignFrozen", "right", "pFrozenColumn", ""], [2, "width", "4rem"], [2, "width", "50px"], ["alignFrozen", "right", "pFrozenColumn", "", 2, "width", "50px"], [1, "d-flex", "gap-1"], ["class", "btn btn-info", 3, "disabled"], [1, "btn", "btn-danger", 3, "disabled", "click"], [1, "btn", "btn-info", 3, "disabled", "click"], [1, "focus-celdas", 3, "ngClass"], ["class", "text-center"], ["class", "text-center focus-celda", 4, "ngIf"], ["pEditableColumnField", "Articulo", 2, "width", "200px", 3, "pEditableColumn", "pEditableColumnRowIndex", "pEditableColumnDisabled"], ["pTemplate", "input"], ["pTemplate", "output"], ["class", "badge bg-secondary"], ["pEditableColumnField", "Cantidad", 1, "text-end", 2, "width", "100px", 3, "ngClass", "pEditableColumn", "pEditableColumnDisabled", "pEditableColumnRowIndex"], ["cantidadEditor", ""], ["pEditableColumnField", "PrecioNeto", 1, "text-end", 2, "width", "100px", 3, "ngClass", "pEditableColumn", "pEditableColumnDisabled", "pEditableColumnRowIndex"], ["pEditableColumnField", "PrecioFinal", 1, "text-end", 2, "width", "100px", 3, "ngClass", "pEditableColumn", "pEditableColumnDisabled", "pEditableColumnRowIndex"], ["pEditableColumnField", "PjeDescuento", 1, "text-end", 2, "width", "100px", 3, "ngClass", "pEditableColumn", "pEditableColumnDisabled", "pEditableColumnRowIndex"], ["class", "text-center", "alignFrozen", "right", "pFrozenColumn", ""], [3, "value"], [1, "text-center", "focus-celda"], ["href", "javascript:void(0)", 1, "text-inherit", 3, "keydown.space"], [2, "width", "50px", "height", "50px", 3, "src", "click", "error"], ["type", "text", 1, "form-control", "h-100", 3, "ngModel", "ngModelChange"], [1, "badge", "bg-secondary"], ["type", "text", "numberInput", "", "min", "0", "max", "100000", 1, "form-control", "w-100", 3, "allowDecimals", "ngModel", "ngModelChange"], ["type", "text", "numberInput", "", "min", "0", "max", "1000000000", 1, "form-control", "w-100", 3, "ngModel", "ngModelChange"], ["type", "text", "numberInput", "", "min", "0", "max", "100", 1, "form-control", "w-100", 3, "decimalPlaces", "ngModel", "ngModelChange"], ["alignFrozen", "right", "pFrozenColumn", "", 1, "text-center"], [1, "d-flex", "gap-1", "justify-content-center", "align-items-center"], ["ngbDropdown", "", "container", "body", 1, "btn-group"], ["ngbDropdownMenu", "", 1, "dropdown-menu", "text-start"], ["class", "dropdown-item", "style", "cursor: pointer"], ["colspan", "12"], [1, "position-absolute", "p-1", "bg-custom-color", 2, "bottom", "0", "left", "0", "right", "0"], ["id", "cargarArticulo", 1, "w-100", 3, "formGroup"], [2, "width", "15%"], ["id", "codigoArticulo", "type", "search", "placeholder", "C\u00F3digo", "formControlName", "Codigo", "formatCodigoInput", "", 1, "form-control", 3, "keyup", "blur"], ["codigoArticulo", ""], [2, "width", "40%"], ["type", "text", "placeholder", "Art\u00EDculo", "formControlName", "Articulo", 1, "form-control", 3, "keyup.enter"], ["inputStyleClass", "form-control  w-100", "inputId", "cantidadArticulo", "formControlName", "Cantidad", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "keyup.enter"], ["cantidadInput", ""], ["inputStyleClass", "form-control", "placeholder", "Precio Final", "formControlName", "PrecioFinal", "prefix", "$", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "keyup.enter"], ["inputStyleClass", "form-control", "placeholder", "% Descuento", "formControlName", "PjeDescuento", "suffix", "%", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "keyup.enter"], [1, "text-center", 2, "width", "auto"], [1, "btn", "btn-dark", 3, "disabled", "click"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], [3, "formGroup"], [1, "mt-2"], ["campoObligatorio", "", 1, "form-label"], [1, "bg-primary", "border", "rounded", "p-2", 3, "ngClass"], ["id", "codigoArticulo", "type", "search", "formControlName", "Codigo", "placeholder", "Ingrese el c\u00F3digo del art\u00EDculo", "formatCodigoInput", "", 1, "form-control", 3, "readonly", "keydown"], ["class", "mdi mdi-barcode-scan position-absolute", "style", "top: 60px; right: 30px; font-size: 24px; cursor: pointer"], [1, "mt-3"], ["type", "text", "formControlName", "Articulo", 1, "form-control", 3, "readonly"], ["for", "cantidadInput", "campoObligatorio", "", 1, "form-label"], ["inputStyleClass", "form-control", "size", "100", "inputId", "cantidadInput", "formControlName", "Cantidad", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "onBlur"], ["cantidadInputModal", ""], ["for", "precioNetoArticulo", 1, "form-label"], ["inputStyleClass", "form-control w-100", "formControlName", "PrecioNeto", "inputId", "precioNetoArticulo", "size", "100", "prefix", "$", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "onBlur"], ["for", "precioFinalArticulo", 1, "form-label"], ["inputStyleClass", "form-control w-100", "formControlName", "PrecioFinal", "inputId", "precioFinalArticulo", "size", "100", "prefix", "$", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "onBlur"], ["for", "pjeDescuentoArticulo", 1, "form-label"], ["inputStyleClass", "form-control", "formControlName", "PjeDescuento", "inputId", "pjeDescuentoArticulo", "size", "100", "suffix", "%", "locale", "es-AR", "placeholder", "", 3, "minFractionDigits", "maxFractionDigits", "min", "max", "readonly", "onBlur"], ["for", "totalNetoArticulo", 1, "form-label"], ["inputStyleClass", "form-control w-100", "formControlName", "TotalNeto", "inputId", "precioFinalArticulo", "size", "100", "prefix", "$", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "readonly"], ["for", "totalFinalArticulo", 1, "form-label"], ["inputStyleClass", "form-control w-100", "formControlName", "TotalFinal", "inputId", "totalFinalArticulo", "size", "100", "prefix", "$", "locale", "es-AR", 3, "minFractionDigits", "maxFractionDigits", "readonly"], [1, "modal-footer", "justify-content-around"], ["type", "button", 1, "btn", "btn-secondary", "col-5", 3, "click"], [1, "mdi", "mdi-close"], ["type", "button", 1, "btn", "btn-info", "position-absolute", "top-0", "end-0", "mt-3", "me-2", 3, "click"], [1, "mdi", "mdi-playlist-plus"], [1, "mdi", "mdi-barcode-scan", "position-absolute", 2, "top", "60px", "right", "30px", "font-size", "24px", "cursor", "pointer", 3, "click"], ["type", "button", 1, "btn", "btn-primary", "col-5", 3, "disabled", "click"], [1, "mdi", "mdi-content-save"]],
    template: function CargarArticulosComprobanteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplate"](0, CargarArticulosComprobanteComponent_Conditional_0_Template, 5, 2)(1, CargarArticulosComprobanteComponent_Conditional_1_Template, 3, 2)(2, CargarArticulosComprobanteComponent_ng_template_2_Template, 46, 37, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_23__["ɵɵconditional"](0, ctx.isMobile() ? 0 : 1);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_36__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_25__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_37__.Tooltip, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_20__.CampoObligatorioDirective, _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_21__.FormatCodigoInputDirective, _core_directives_number_input_directive__WEBPACK_IMPORTED_MODULE_22__.NumberInputDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_24__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_24__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.NgModel, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_38__.InputNumber, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_34__.NgbDropdownMenu, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_24__.FormControlName, primeng_table__WEBPACK_IMPORTED_MODULE_39__.Table, primeng_table__WEBPACK_IMPORTED_MODULE_39__.FrozenColumn, primeng_table__WEBPACK_IMPORTED_MODULE_39__.EditableColumn, primeng_table__WEBPACK_IMPORTED_MODULE_39__.CellEditor, primeng_table__WEBPACK_IMPORTED_MODULE_39__.TableCheckbox, primeng_table__WEBPACK_IMPORTED_MODULE_39__.TableHeaderCheckbox, _angular_common__WEBPACK_IMPORTED_MODULE_25__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_25__.CurrencyPipe],
    styles: ["[_nghost-%COMP%]     input:focus, [_nghost-%COMP%]     input[type=date]::-webkit-calendar-picker-indicator:focus, [_nghost-%COMP%]     button:focus, [_nghost-%COMP%]     app-input-number input:focus, [_nghost-%COMP%]     select:focus, [_nghost-%COMP%]     select-loading select:focus, [_nghost-%COMP%]     textarea:focus {\n  outline: none;\n  box-shadow: 0 0 5px var(--bs-primary);\n}\n\n#cargarArticulo[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus, #cargarArticulo[_ngcontent-%COMP%]     input:focus {\n  background-color: var(--bs-info);\n}\n\ntr.focus-celdas[_ngcontent-%COMP%]    > td[_ngcontent-%COMP%]:focus-within {\n  background: var(--bs-primary-bg-subtle);\n}\n\n.card-item[_ngcontent-%COMP%] {\n  height: 10rem;\n  max-width: 100vw;\n  display: flex;\n  position: relative;\n  gap: 16px;\n}\n\n.item-img[_ngcontent-%COMP%] {\n  height: 100%;\n  width: 5rem;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  gap: 16px;\n}\n.item-img[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] {\n  width: 20px;\n  height: 20px;\n}\n\n.item-info[_ngcontent-%COMP%] {\n  width: 70%;\n  display: flex;\n  flex-direction: column;\n}\n\n.item-name[_ngcontent-%COMP%] {\n  display: -webkit-box;\n  line-clamp: 2;\n  -webkit-line-clamp: 2; \n\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n[_nghost-%COMP%]     .p-speeddial-direction-right {\n  left: 0;\n  top: calc(50% - 2rem);\n}"]
  });
}

/***/ }),

/***/ 27254:
/*!****************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/cargar-comprobante/cargar-comprobante.component.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CargarComprobanteComponent: () => (/* binding */ CargarComprobanteComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _header_comprobante_header_comprobante_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../header-comprobante/header-comprobante.component */ 81629);
/* harmony import */ var _footer_comprobante_footer_comprobante_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../footer-comprobante/footer-comprobante.component */ 17018);
/* harmony import */ var _cargar_articulos_comprobante_cargar_articulos_comprobante_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cargar-articulos-comprobante/cargar-articulos-comprobante.component */ 69402);
/* harmony import */ var _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../comprobante-scoped.service */ 6170);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_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_tipoComprobante_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/tipoComprobante.service */ 13507);
/* harmony import */ var src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* 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 _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/general/pedido-venta.service */ 83456);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-cookieconsent */ 27641);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_splitter__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/splitter */ 55043);
/* harmony import */ var _features_comprobante_features_comprobante_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../features-comprobante/features-comprobante.component */ 14503);

























const _c0 = ["splitter"];
function CargarComprobanteComponent_Conditional_0_ng_template_7_ng_template_0_Template(rf, ctx) {}
function CargarComprobanteComponent_Conditional_0_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, CargarComprobanteComponent_Conditional_0_ng_template_7_ng_template_0_Template, 0, 0, "ng-template", 16);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngTemplateOutlet", _r3);
  }
}
function CargarComprobanteComponent_Conditional_0_ng_template_12_ng_template_0_Template(rf, ctx) {}
function CargarComprobanteComponent_Conditional_0_ng_template_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, CargarComprobanteComponent_Conditional_0_ng_template_12_ng_template_0_Template, 0, 0, "ng-template", 16);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngTemplateOutlet", _r5);
  }
}
function CargarComprobanteComponent_Conditional_0_ng_template_17_ng_template_0_Template(rf, ctx) {}
function CargarComprobanteComponent_Conditional_0_ng_template_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, CargarComprobanteComponent_Conditional_0_ng_template_17_ng_template_0_Template, 0, 0, "ng-template", 16);
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngTemplateOutlet", _r7);
  }
}
function CargarComprobanteComponent_Conditional_0_Conditional_22_Template(rf, ctx) {
  if (rf & 1) {
    const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function CargarComprobanteComponent_Conditional_0_Conditional_22_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r17);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r16.onSave());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("disabled", !ctx_r12.validToSave());
  }
}
function CargarComprobanteComponent_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 4)(1, "ul", 5, 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("activeIdChange", function CargarComprobanteComponent_Conditional_0_Template_ul_activeIdChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r19);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r18.navActive = $event);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "li", 7)(4, "a", 8)(5, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](6, "Datos");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](7, CargarComprobanteComponent_Conditional_0_ng_template_7_Template, 1, 1, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](8, "li", 7)(9, "a", 8)(10, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](11, "Art\u00EDculos");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](12, CargarComprobanteComponent_Conditional_0_ng_template_12_Template, 1, 1, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](13, "li", 7)(14, "a", 8)(15, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](16, "Resumen");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](17, CargarComprobanteComponent_Conditional_0_ng_template_17_Template, 1, 1, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](18, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](19, "div", 12)(20, "button", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function CargarComprobanteComponent_Conditional_0_Template_button_click_20_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r19);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r20.onClose());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](21, "i", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](22, CargarComprobanteComponent_Conditional_0_Conditional_22_Template, 2, 1, "button", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵreference"](2);
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("activeId", ctx_r0.navActive)("destroyOnHide", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngbNavItem", 0)("disabled", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngbNavItem", 1)("disabled", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngbNavItem", 2)("disabled", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngbNavOutlet", _r8);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](22, !ctx_r0.visualizar ? 22 : -1);
  }
}
function CargarComprobanteComponent_Conditional_1_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "app-features-comprobante", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("emitFeatureAction", function CargarComprobanteComponent_Conditional_1_ng_template_5_Template_app_features_comprobante_emitFeatureAction_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r24.onEmitFeatureAction($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r22.visualizar)("edicion", ctx_r22.edicion);
  }
}
function CargarComprobanteComponent_Conditional_1_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "app-cargar-articulos-comprobante", 27)(2, "app-footer-comprobante", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function CargarComprobanteComponent_Conditional_1_ng_template_6_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r27);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r26.onClickButtonFeatures());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](4, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r23.visualizar)("edicion", ctx_r23.edicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r23.visualizar);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", ctx_r23.ocultarFeatures ? "mdi mdi-chevron-right" : "mdi mdi-chevron-left");
  }
}
const _c1 = () => ({
  height: "calc(100vh - 80px)"
});
const _c2 = () => [20, 80];
const _c3 = () => [20, 40];
function CargarComprobanteComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 19)(1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](2, "app-header-comprobante", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "p-splitter", 22, 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](5, CargarComprobanteComponent_Conditional_1_ng_template_5_Template, 1, 2, "ng-template", 24)(6, CargarComprobanteComponent_Conditional_1_ng_template_6_Template, 5, 4, "ng-template", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r1.visualizar)("edicion", ctx_r1.edicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction0"](6, _c1));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("panelSizes", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction0"](7, _c2))("minSizes", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction0"](8, _c3));
  }
}
function CargarComprobanteComponent_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-header-comprobante", 31)(1, "app-features-comprobante", 32);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r2.visualizar)("edicion", ctx_r2.edicion);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r2.visualizar)("edicion", ctx_r2.edicion);
  }
}
function CargarComprobanteComponent_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-cargar-articulos-comprobante", 21);
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r4.visualizar)("edicion", ctx_r4.edicion);
  }
}
function CargarComprobanteComponent_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-footer-comprobante", 33);
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("visualizar", ctx_r6.visualizar);
  }
}
class CargarComprobanteComponent {
  /**
   * SP SAD-376 HostListener para detectar cuando el usuario intenta recargar la página
   * @param $event
   */
  beforeUnload($event) {
    $event.preventDefault();
    $event.returnValue = ''; // dispara el warning del navegador
  }
  handleKeyboardEvent(event) {
    if (event.altKey && event.key === '1' && !this.visualizar) {
      this.comprobanteScopedService.focusElement('Cliente');
    }
    if (event.altKey && event.key === '2' && !this.visualizar) {
      this.comprobanteScopedService.focusElement('codigoArticulo');
    }
    if (event.altKey && event.key === '3' && !this.visualizar) {
      this.comprobanteScopedService.focusElement('observacion');
    }
    //SP SAD-376 se agrega validacion para controlar si ya esta guardando
    if ((event.altKey && event.key === 'a' || event.key === 'F9') && this.validToSave() && !this.visualizar && !this.comprobanteScopedService.isSaving) {
      this.onSave();
    }
    if (event.altKey && event.key === 'c') {
      this.onClose();
    }
    if (event.altKey && event.key === 'w' && this.footerComponent) {
      this.footerComponent.descuentosGenerales();
    }
    if (event.key === 'F8' && !this.cargarArticulosComprobanteComponent.consultaArticuloOpen && !this.visualizar && this.permisos.consultarArticulo) {
      this.cargarArticulosComprobanteComponent.consultaArticuloOpen = true;
      this.cargarArticulosComprobanteComponent.consultaArticuloModal(undefined);
    }
    if (event.altKey && event.key === 'b' && !this.cargarArticulosComprobanteComponent.consultaOfertaOpen && !this.visualizar && this.permisos.consultarOfertas) {
      this.cargarArticulosComprobanteComponent.consultaOfertaOpen = true;
      this.cargarArticulosComprobanteComponent.consultaOfertaModal();
    }
    /**
     * SP SAD-376 acceso rapido para busqueda multiple de articulos
     */
    if (event.altKey && event.key === 'q' && !this.cargarArticulosComprobanteComponent.seleccionArticuloOpen) {
      this.cargarArticulosComprobanteComponent.seleccionArticuloOpen = true;
      this.cargarArticulosComprobanteComponent.buscarArticulos();
    }
  }
  //quiero un hostlistener que me indique si estoy en mobile o no
  onResize(event) {
    this.isMobile = this.isMobileDevice();
  }
  constructor(auth, tipoComprobanteService, comprobanteScopedService, clienteService, config, modalService, alert, pedidoVentaService, router, cdr, activatedRoute, ccService) {
    this.auth = auth;
    this.tipoComprobanteService = tipoComprobanteService;
    this.comprobanteScopedService = comprobanteScopedService;
    this.clienteService = clienteService;
    this.config = config;
    this.modalService = modalService;
    this.alert = alert;
    this.pedidoVentaService = pedidoVentaService;
    this.router = router;
    this.cdr = cdr;
    this.activatedRoute = activatedRoute;
    this.ccService = ccService;
    this.emitComprobante = new _angular_core__WEBPACK_IMPORTED_MODULE_12__.EventEmitter();
    this.visualizar = false;
    this.edicion = false;
    this.isMobile = false;
    this.ocultarFeatures = false;
    this.navActive = 0;
    this.tabs = [];
    this.isSaving = false;
    this.permisos = {
      consultarOfertas: true,
      consultarArticulo: true
    };
    this.ccService.destroy();
    this.visualizar = this.isVisualizacionRoute();
    this.edicion = this.isEdicionRoute();
  }
  /**
   * SP SAD-376 Método para el guard para la consulta de salida de la pagina
   * @returns
   */
  canExit() {
    const response = confirm('¿Seguro que desea salir? Se perderán los cambios del comprobante actual.');
    if (response) {
      this.modalService.dismissAll();
    }
    return response;
  }
  /**
   * On destroy reinicio el servicio de cookies para que vuelva a aparecer el mensaje de cookies (si es que corresponde)
   */
  ngOnDestroy() {
    this.ccService.init(this.ccService.getConfig());
  }
  /**
   * Verifica si la ruta actual es de edición
   * @returns boolean - true si la ruta es de edicion (un solo segmento numerico), false en caso contrario
   */
  isEdicionRoute() {
    const urlSegments = this.activatedRoute.snapshot.url;
    if (urlSegments.length === 1) {
      return isFinite(Number(urlSegments[0].path));
    }
    return false;
  }
  /** Verifica si la ruta actual es de visualización
   * @returns boolean - true si la ruta es de visualizacion (/visualizar/:id), false en caso contrario
   */
  isVisualizacionRoute() {
    const urlSegments = this.activatedRoute.snapshot.url;
    if (urlSegments.length === 2) {
      return urlSegments[0].path === 'visualizar' && !isNaN(Number(urlSegments[1].path));
    }
    return false;
  }
  ngOnInit() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.isMobile = _this.isMobileDevice();
      //SP SAD-261 Cargar permisos
      _this.cargarPermisos();
      if (!_this.validarTipoComprobante(_this.tipoComprobante)) {
        _this.alert.showBasicAlert('Error', 'El tipo de comprobante seleccionado no es valido', 'error');
        //SP SAD-376 se agrega skipExitConfirmation para evitar el guard
        _this.router.navigate(['/dashboards/notas-de-pedido'], {
          state: {
            skipExitConfirmation: true
          }
        });
      } else {
        _this.comprobanteScopedService.tipoComprobante = +_this.tipoComprobante;
        const sucursales = yield _this.comprobanteScopedService.cargarSucursales();
        const vendedores = yield _this.comprobanteScopedService.cargarVendedores();
        const listaPrecios = yield _this.comprobanteScopedService.cargarListaPrecio();
        const canales = yield _this.comprobanteScopedService.cargarCanales();
        if (_this.idComprobante) {
          _this.alert.showLoadingAlert('Cargando Comprobante', 'Por favor espere mientras se carga el comprobante');
          const susc = _this.pedidoVentaService.SerchById(_this.idComprobante).subscribe({
            next: res => {
              _this.alert.closeLoadingAlert();
              if (res && (res.PedidoFacturado == 'N' || _this.visualizar)) {
                _this.comprobanteData = {
                  ...res,
                  Cliente: {
                    ...res.Cliente,
                    NombreFiscal: res.Cliente.Nombre
                  }
                };
                _this.inicializarObj();
              } else {
                _this.alert.showBasicAlert('Error', 'El comprobante no se puede editar porque ya fue facturado', 'error');
                //SP SAD-376 se agrega skipExitConfirmation para evitar el guard
                _this.router.navigate(['/dashboards/notas-de-pedido'], {
                  state: {
                    skipExitConfirmation: true
                  }
                });
              }
            },
            error: err => {
              _this.alert.closeLoadingAlert();
              //SP SAD-376 se agrega skipExitConfirmation para evitar el guard
              _this.router.navigate(['/dashboards/notas-de-pedido'], {
                state: {
                  skipExitConfirmation: true
                }
              });
            }
          });
          susc.unsubscribe;
        } else {
          const nuevaNotaArticulos = localStorage.getItem('nuevaNotaArticulos');
          localStorage.removeItem('nuevaNotaArticulos');
          if (nuevaNotaArticulos) {
            _this.comprobanteData = JSON.parse(nuevaNotaArticulos);
            _this.comprobanteScopedService.inicializarObjComprobanteSimple(_this.comprobanteData);
          } else {
            _this.inicializarObj();
          }
        }
        _this.comprobanteScopedService.tabs$.subscribe(res => {
          _this.tabs = res;
        });
        // Este subscribe deberia ser llamado cada vez que hago la limpieza del objeto comprobante al enviar el comprobante , con lo cual vuelve la tab seleccionada a la vista de cliente
        _this.comprobanteScopedService.objectComprobante$.subscribe(res => {
          if (res) {
            if (_this.isMobile) {
              _this.navActive = 0;
              //this.comprobanteScopedService.focusElement('Cliente');
            } else {
              _this.comprobanteScopedService.focusElement('Cliente');
            }
          }
        });
      }
    })();
  }
  ngAfterViewChecked() {
    this.cdr.detectChanges(); // Detectar cambios para evitar problemas de cambio de vista
  }
  cargarPermisos() {
    // Lógica para cargar permisos
    // this.permisos.consultarArticulo = this.auth.hasPermiso(
    //   PERMISOS.PERMISO_CONSULTA_ARTICULO_COMPROBANTE
    // );
    // this.permisos.consultarOfertas = this.auth.hasPermiso(
    //   PERMISOS.PERMISO_CONSULTA_OFERTAS_ARTICULO_COMPROBANTE
    // );
  }
  //metodo para chckear si estoy en un dispositivo movil o no
  isMobileDevice() {
    return window.innerWidth < 768;
  }
  inicializarObj() {
    this.comprobanteScopedService.inicializarObjComprobante(this.comprobanteData);
  }
  validarTipoComprobante(tipoComprobante) {
    if (tipoComprobante != 19) {
      return false;
    } else {
      return true;
    }
  }
  validToSave() {
    return this.comprobanteScopedService.comprobanteValido();
  }
  onClose() {
    //if (!this.visualizar) {
    //   this.alert
    //     .showReturnAlert(
    //       '¿Está seguro que desea cerrar la nota de pedido?',
    //       'Se perderán los datos no guardados',
    //       'warning',
    //       'Cerrar',
    //       'Cancelar',
    //       true,
    //       'warning'
    //     )
    //     .then((result) => {
    //       if (result.value) {
    //         this.router.navigate(['/dashboards/notas-de-pedido']);
    //       }
    //     });
    // } else {
    this.router.navigate(['/dashboards/notas-de-pedido']);
    //}
  }
  onSave() {
    var _this2 = this;
    /**
     * SP SAD-376 Se agrega validacion para evitar multiples guardados
     */
    if (!this.comprobanteScopedService.tryStartSave()) {
      return; // ya hay un guardado en curso
    }
    /**
     * SP SAD-376 Forzar el cierre de la celda en edicion
     */
    this.comprobanteScopedService.requestCloseEditing();
    if (this.validToSave()) {
      this.isSaving = true;
      let result = this.comprobanteScopedService.armarObjetoEnvioComprobante(this.edicion);
      if (!this.edicion) {
        this.comprobanteScopedService.postComprobante(result).subscribe({
          next: res => {
            this.alert.showReturnAlert('Comprobante - ' + res.Numero + ' generado correctamente', '¿Desea descargar el comprobante?', 'warning', 'Aceptar', 'Cancelar', true, 'warning').then( /*#__PURE__*/function () {
              var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (result) {
                if (result.value) {
                  _this2.comprobanteScopedService.imprimirComprobante(res);
                } else {
                  if (_this2.config._config.ComprobanteSerie == 'S') {
                    _this2.comprobanteScopedService.setArticulos({
                      articulos: []
                    });
                    yield _this2.comprobanteScopedService.inicializarObjComprobante(undefined);
                    _this2.comprobanteScopedService.setOfertasAplicables([]);
                    _this2.comprobanteScopedService.endSave();
                  } else {
                    //SAD-376 se reinicia el subject que controla si termino de guardar
                    _this2.comprobanteScopedService.endSave();
                    //SP SAD-376 se agrega skipExitConfirmation para evitar el guard
                    _this2.router.navigate(['/dashboards/notas-de-pedido'], {
                      state: {
                        skipExitConfirmation: true
                      }
                    });
                  }
                }
              });
              return function (_x) {
                return _ref.apply(this, arguments);
              };
            }());
          },
          error: err => {
            this.comprobanteScopedService.endSave();
          }
        });
      } else {
        this.comprobanteScopedService.putComprobante(result).subscribe({
          next: res => {
            this.alert.showReturnAlert('Comprobante - ' + res.Numero + ' modificado correctamente', '¿Desea descargar el comprobante?', 'warning', 'Aceptar', 'Cancelar', true, 'warning').then( /*#__PURE__*/function () {
              var _ref2 = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (result) {
                if (result.value) {
                  _this2.comprobanteScopedService.imprimirComprobante(res, true);
                } else {
                  //SAD-376 se reinicia el subject que controla si termino de guardar
                  _this2.comprobanteScopedService.endSave();
                  //SP SAD-376 se agrega skipExitConfirmation para evitar el guard
                  _this2.router.navigate(['/dashboards/notas-de-pedido'], {
                    state: {
                      skipExitConfirmation: true
                    }
                  });
                }
              });
              return function (_x2) {
                return _ref2.apply(this, arguments);
              };
            }());
          },
          error: err => {
            this.comprobanteScopedService.endSave();
          }
        });
      }
    } else {
      console.log('El comprobante no es valido, no se puede guardar');
    }
  }
  onClickButtonFeatures() {
    this.ocultarFeatures = !this.ocultarFeatures;
    this.splitter.panelSizes = [this.ocultarFeatures ? 0.1 : 20, this.ocultarFeatures ? 100 : 80];
  }
  hayTabs() {
    return this.tabs.length > 0;
  }
  onEmitFeatureAction(event) {
    switch (event.tab) {
      case 'Consulta Art.':
        // Lógica para la pestaña "Consulta Art."
        switch (event.action) {
          case 'agregar':
            this.cargarArticulosComprobanteComponent.onAgregarArticulo(event.data);
            break;
          default:
            console.warn(`Acción ${event.action} no implementada para la pestaña ${event.tab}.`);
        }
        break;
      default:
        // Lógica para otras pestañas
        console.warn(`La pestaña ${event.tab} no está implementada.`);
        break;
    }
  }
  static #_ = this.ɵfac = function CargarComprobanteComponent_Factory(t) {
    return new (t || CargarComprobanteComponent)(_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_tipoComprobante_service__WEBPACK_IMPORTED_MODULE_7__.TipoComprobanteService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__.ComprobanteScopedService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_8__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_9__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_10__.PedidoVentaService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_14__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_12__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_14__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](ngx_cookieconsent__WEBPACK_IMPORTED_MODULE_15__.NgcCookieConsentService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
    type: CargarComprobanteComponent,
    selectors: [["app-cargar-comprobante"]],
    viewQuery: function CargarComprobanteComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵviewQuery"](_footer_comprobante_footer_comprobante_component__WEBPACK_IMPORTED_MODULE_2__.FooterComprobanteComponent, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵviewQuery"](_header_comprobante_header_comprobante_component__WEBPACK_IMPORTED_MODULE_1__.HeaderComprobanteComponent, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵviewQuery"](_footer_comprobante_footer_comprobante_component__WEBPACK_IMPORTED_MODULE_2__.FooterComprobanteComponent, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵviewQuery"](_cargar_articulos_comprobante_cargar_articulos_comprobante_component__WEBPACK_IMPORTED_MODULE_3__.CargarArticulosComprobanteComponent, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵloadQuery"]()) && (ctx.footerComponent = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵloadQuery"]()) && (ctx.headerComprobanteComponent = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵloadQuery"]()) && (ctx.footerComprobanteComponent = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵloadQuery"]()) && (ctx.cargarArticulosComprobanteComponent = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵloadQuery"]()) && (ctx.splitter = _t.first);
      }
    },
    hostBindings: function CargarComprobanteComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("beforeunload", function CargarComprobanteComponent_beforeunload_HostBindingHandler($event) {
          return ctx.beforeUnload($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresolveWindow"])("keydown", function CargarComprobanteComponent_keydown_HostBindingHandler($event) {
          return ctx.handleKeyboardEvent($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresolveWindow"])("resize", function CargarComprobanteComponent_resize_HostBindingHandler($event) {
          return ctx.onResize($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresolveWindow"]);
      }
    },
    inputs: {
      tipoComprobante: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵInputFlags"].None, "tipoComprob", "tipoComprobante"],
      idComprobante: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵInputFlags"].None, "idComprob", "idComprobante"]
    },
    outputs: {
      emitComprobante: "emitComprobante"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_5__.AlertCustomService, _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__.ComprobanteScopedService])],
    decls: 8,
    vars: 1,
    consts: [["class", "modal-body vh-100 overflow-hidden p-1"], ["DATOS", ""], ["ARTICULOS", ""], ["RESUMEN", ""], [1, "modal-body", "vh-100", "overflow-hidden", "p-1"], ["ngbNav", "", 1, "nav-tabs", "nav-tabs-custom", "nav-justified", "w-100", 3, "activeId", "destroyOnHide", "activeIdChange"], ["mainNavMobile", "ngbNav"], [3, "ngbNavItem", "disabled"], ["ngbNavLink", ""], [1, "d-block", "title-tab"], ["ngbNavContent", ""], [2, "height", "calc(100dvh - 6rem)", "overflow-y", "hidden", 3, "ngbNavOutlet"], [1, "d-flex", "justify-content-center", "gap-4", "my-2"], ["type", "button", 1, "btn", "btn-secondary", 3, "click"], [1, "mdi", "mdi-close"], ["type", "button", "class", "btn btn-success", 3, "disabled"], [3, "ngTemplateOutlet"], ["type", "button", 1, "btn", "btn-success", 3, "disabled", "click"], [1, "mdi", "mdi-content-save"], [1, "modal-body", "min-vh-100", "vh-100", "overflow-hidden"], [1, "d-block", "overflow-y-auto", "p-2", 2, "height", "80px"], [3, "visualizar", "edicion"], [1, "position-relative", 3, "panelSizes", "minSizes"], ["splitter", ""], ["pTemplate", ""], [1, "w-100", "h-100", 3, "visualizar", "edicion", "emitFeatureAction"], [1, "d-flex", "flex-column", "justify-content-evenly", "overflow-hidden", "w-100"], [1, "col-12", "position-relative", 2, "height", "70%", 3, "visualizar", "edicion"], [1, "col-12", "d-flex", "align-items-center", "justify-content-end", 2, "height", "calc(30% - 25px)", 3, "visualizar"], [1, "button-features", 3, "click"], [3, "ngClass"], [1, "d-block", "pt-3", 2, "height", "30%", "overflow", "auto", 3, "visualizar", "edicion"], [1, "d-block", 2, "height", "70%", "overflow", "hidden", 3, "visualizar", "edicion"], [3, "visualizar"]],
    template: function CargarComprobanteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](0, CargarComprobanteComponent_Conditional_0_Template, 23, 10, "div", 0)(1, CargarComprobanteComponent_Conditional_1_Template, 7, 9)(2, CargarComprobanteComponent_ng_template_2_Template, 2, 4, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"])(4, CargarComprobanteComponent_ng_template_4_Template, 1, 2, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"])(6, CargarComprobanteComponent_ng_template_6_Template, 1, 1, "ng-template", null, 3, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](0, ctx.isMobile ? 0 : 1);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_16__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgTemplateOutlet, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavOutlet, primeng_splitter__WEBPACK_IMPORTED_MODULE_18__.Splitter, _header_comprobante_header_comprobante_component__WEBPACK_IMPORTED_MODULE_1__.HeaderComprobanteComponent, _footer_comprobante_footer_comprobante_component__WEBPACK_IMPORTED_MODULE_2__.FooterComprobanteComponent, _cargar_articulos_comprobante_cargar_articulos_comprobante_component__WEBPACK_IMPORTED_MODULE_3__.CargarArticulosComprobanteComponent, _features_comprobante_features_comprobante_component__WEBPACK_IMPORTED_MODULE_11__.FeaturesComprobanteComponent],
    styles: ["@charset \"UTF-8\";\n[_nghost-%COMP%]     .p-datatable-scrollable-footer {\n  position: sticky;\n  bottom: 0;\n  background: white; \n\n  z-index: 1;\n}\n\n.panel-container[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n}\n\n.custom-bg[_ngcontent-%COMP%] {\n  background-color: var(--bs-body-bg);\n}\n\n.tabs-container[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  position: relative;\n  background-color: var(--bs-primary-bg);\n}\n\n.tabs-wrapper[_ngcontent-%COMP%] {\n  flex: 1;\n  overflow-x: auto;\n  white-space: nowrap; \n\n  scroll-behavior: smooth; \n\n  cursor: grab; \n\n  -webkit-user-select: none;\n          user-select: none;\n  scrollbar-width: none; \n\n}\n\n.tabs-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar {\n  display: none; \n\n}\n\n.tabs-wrapper[_ngcontent-%COMP%]:active {\n  cursor: grabbing; \n\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n  display: inline-flex; \n\n  gap: 0.5rem; \n\n}\n\n.scroll-button[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  z-index: 10;\n  background: white;\n  border: none;\n  cursor: pointer;\n  padding: 0.5rem;\n  font-size: 1.5rem;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n}\n\n.scroll-button.scroll-left[_ngcontent-%COMP%] {\n  left: 0;\n}\n\n.scroll-button.scroll-right[_ngcontent-%COMP%] {\n  right: 0;\n}\n\n[_nghost-%COMP%]     .p-datatable-table > .p-datatable-thead > tr > th {\n  background-color: var(--bs-primary); \n\n  color: white !important; \n\n}\n\n[_nghost-%COMP%]     .bg-custom-color {\n  background-color: var(--bs-primary) !important; \n\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-header {\n  border-width: 1px 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-footer {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-paginator-top {\n  border-width: 0 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {\n  border-width: 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {\n  border-width: 1px 0 0 1px !important;\n  border-color: var(--bs-primary) !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n  border-width: 1px 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {\n  border-width: 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {\n  border-width: 1px 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n.nav-link.active[_ngcontent-%COMP%] {\n  background-color: var(--bs-primary) !important;\n  color: var(--bs-white) !important;\n}\n\ninput[_ngcontent-%COMP%]:focus, button[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus {\n  outline: none;\n  box-shadow: 0 0 5px var(--bs-primary);\n}\n\ninput[type=date][_ngcontent-%COMP%]:focus-within {\n  outline: none;\n  box-shadow: 0 0 5px var(--bs-primary);\n}\n\n  .tab-pane {\n  height: 100% !important;\n}\n\n.button-features[_ngcontent-%COMP%] {\n  font-size: 12px;\n  width: 25px;\n  height: 25px;\n  border-radius: 50%;\n  background-color: var(--bs-info);\n  color: white;\n  border: none;\n  position: absolute;\n  left: -0.6%;\n  top: 50%;\n}\n\n@media (data-bs-theme: dark) {\n  .title-tab[_ngcontent-%COMP%] {\n    color: var(--bs-white);\n  }\n}\n@media (data-bs-theme: light) {\n  .title-tab[_ngcontent-%COMP%] {\n    color: var(--bs-primary);\n  }\n}"]
  });
}

/***/ }),

/***/ 6170:
/*!*******************************************************************!*\
  !*** ./src/app/shared/comprobantes/comprobante-scoped.service.ts ***!
  \*******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ComprobanteScopedService: () => (/* binding */ ComprobanteScopedService)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! rxjs */ 32013);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! rxjs */ 24036);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! rxjs */ 65592);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! rxjs */ 26306);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! rxjs */ 35178);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! rxjs */ 64716);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! rxjs */ 9315);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* harmony import */ var _reportes_core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../reportes/core/impresion-cmprb/impresion-cmprb.component */ 80162);
/* harmony import */ var _reportes_comprobantes_nota_de_pedido_cmprb_nota_de_pedido_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../reportes/comprobantes/nota-de-pedido/cmprb-nota-de-pedido.component */ 20287);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_lista_precio_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/lista-precio.service */ 48881);
/* 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 _angular_forms__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/canal.service */ 84003);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var src_app_core_services_recursos_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/recursos.service */ 50657);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @angular/common/http */ 69862);
/* harmony import */ var src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/services/general/pedido-venta.service */ 83456);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/core/services/core/sucursal.service */ 38396);
/* harmony import */ var src_app_core_services_core_oferta_item_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/core/services/core/oferta-item.service */ 67301);
/* harmony import */ var src_app_core_services_core_oferta_item_pt_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! src/app/core/services/core/oferta-item-pt.service */ 72551);
/* harmony import */ var src_app_core_services_core_descuentoEspecial_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! src/app/core/services/core/descuentoEspecial.service */ 21073);
/* harmony import */ var src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @angular/router */ 75187);


























class ComprobanteScopedService {
  constructor(listaPrecioService, empleadoService, fb, canalService, auth, configGralService, recursosService, configService, http, pedidoVentaService, articuloService, sucursalService, ofertaItemService, ofertaItemPTService, descuentosEspecialService, clienteService, modalService, router) {
    this.listaPrecioService = listaPrecioService;
    this.empleadoService = empleadoService;
    this.fb = fb;
    this.canalService = canalService;
    this.auth = auth;
    this.configGralService = configGralService;
    this.recursosService = recursosService;
    this.configService = configService;
    this.http = http;
    this.pedidoVentaService = pedidoVentaService;
    this.articuloService = articuloService;
    this.sucursalService = sucursalService;
    this.ofertaItemService = ofertaItemService;
    this.ofertaItemPTService = ofertaItemPTService;
    this.descuentosEspecialService = descuentosEspecialService;
    this.clienteService = clienteService;
    this.modalService = modalService;
    this.router = router;
    //variable de tipo de comprobante
    this.tipoComprobante = -1;
    this.vendPredeterminado = this.configGralService._config.ComprobanteVendPred;
    this.canalPredeterminado = this.configGralService._config.ComprobanteCanalPred;
    //quiero agregar un flag para indicar si se está editando un comprobante
    // private isEditingSubject = new BehaviorSubject<boolean>(false);
    // isEditing$ = this.isEditingSubject.asObservable();
    //SUBJECT DEL OBJETO DEL COMPROBANTE
    this.objectComprobanteSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject(null);
    this.objectComprobante$ = this.objectComprobanteSubject.asObservable();
    //SUBJECTS DE ARTICULOS
    this.articulosSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject({
      articulos: []
    });
    this.articulos$ = this.articulosSubject.asObservable();
    this.recargarArticulosSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject(false);
    this.recargarArticulos$ = this.recargarArticulosSubject.asObservable();
    //SUBJECT PARA OFERTAS APLICABLES
    this.ofertasAplicablesSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject([]);
    this.ofertasAplicables$ = this.ofertasAplicablesSubject.asObservable();
    //necesito un behavior subject para compartir los vendedores cargados
    this.vendedoresSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject([]);
    this.vendedores$ = this.vendedoresSubject.asObservable();
    //necesito una variable loading para este subject
    this.loadingVendedores = false;
    //encesito otro subject para listas de precios
    this.listaPreciosSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject([]);
    this.listaPrecios$ = this.listaPreciosSubject.asObservable();
    //necesito una variable loading para este subject
    this.loadingListaPrecios = false;
    //necesito un subject para los canales
    this.canalesSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject([]);
    this.canales$ = this.canalesSubject.asObservable();
    //necesito una variable loading para este subject
    this.loadingCanales = false;
    //necesito un subject para las sucursales
    this.sucursalesSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject([]);
    this.sucursales$ = this.sucursalesSubject.asObservable();
    //necesito una variable loading para este subject
    this.loadingSucursales = false;
    //SUBJECTS PARA EL HEADER DEL COMPROBANTE
    this.formHeaderComprobanteSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject(null);
    this.formHeaderComprobante$ = this.formHeaderComprobanteSubject.asObservable();
    //SUBJECTS PARA EL FOOTER DEL COMPROBANTE
    this.formFooterComprobanteSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject(null);
    this.formFooterComprobante$ = this.formFooterComprobanteSubject.asObservable();
    //SUBJECTS PARA LAS TABS DE FEATURES DEL COMPROBANTE
    this.tabsSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject([]);
    this.tabs$ = this.tabsSubject.asObservable();
    //VARIABLE PARA INDICAR SI SE ESTÁ GUARDANDO
    this.savingSubject = new rxjs__WEBPACK_IMPORTED_MODULE_20__.BehaviorSubject(false);
    this.isSaving$ = this.savingSubject.asObservable();
    //SP SAD-376 Subject para solicitar cierre de edición en el componente de artículos
    this.closeEditing$ = new rxjs__WEBPACK_IMPORTED_MODULE_21__.Subject();
    this.urlImagenes = this.configService.config.servidor.url_img;
  }
  get tabs() {
    return this.tabsSubject.getValue();
  }
  get objectComprobante() {
    return this.objectComprobanteSubject.getValue();
  }
  get articulos() {
    return this.articulosSubject.getValue();
  }
  get recargaArticulos() {
    return this.recargarArticulosSubject.getValue();
  }
  get formHeaderComprobante() {
    return this.formHeaderComprobanteSubject.getValue();
  }
  get formFooterComprobante() {
    return this.formFooterComprobanteSubject.getValue();
  }
  get listaPrecios() {
    return this.listaPreciosSubject.getValue();
  }
  get canales() {
    return this.canalesSubject.getValue();
  }
  get vendedores() {
    return this.vendedoresSubject.getValue();
  }
  get sucursales() {
    return this.sucursalesSubject.getValue();
  }
  get isSaving() {
    return this.savingSubject.getValue();
  }
  tryStartSave() {
    if (this.savingSubject.getValue()) {
      return false;
    }
    this.savingSubject.next(true);
    return true;
  }
  endSave() {
    this.savingSubject.next(false);
  }
  /**
   * SP SAD-376 Método para solicitar el cierre de la celda en edición del componente de artículos
   */
  requestCloseEditing() {
    this.closeEditing$.next();
  }
  getOfertasAplicables() {
    return this.ofertasAplicablesSubject.getValue();
  }
  setObjectComprobante(object) {
    this.objectComprobanteSubject.next(object);
  }
  setVendedores(vendedores) {
    this.vendedoresSubject.next(vendedores);
  }
  // Método para actualizar el formulario
  setFormHeaderComprobante(header) {
    this.formHeaderComprobanteSubject.next(header);
  }
  setFooterComprobante(footer) {
    this.formFooterComprobanteSubject.next(footer);
  }
  setArticulos(articulosObj) {
    this.articulosSubject.next(articulosObj);
  }
  updateOfertasAplicables(ofertas) {
    const currentOfertas = this.ofertasAplicablesSubject.getValue();
    // Si currentOfertas está vacío, simplemente asigna las nuevas ofertas
    let updatedOfertas;
    if (!currentOfertas || currentOfertas.length === 0) {
      updatedOfertas = [...ofertas];
    } else {
      // Si no, reemplaza o agrega según corresponda
      updatedOfertas = [...currentOfertas];
      ofertas.forEach(ofertaNueva => {
        const idx = updatedOfertas.findIndex(o => o.IdArticulo === ofertaNueva.IdArticulo);
        if (idx !== -1) {
          updatedOfertas[idx] = {
            ...updatedOfertas[idx],
            ...ofertaNueva
          };
        } else {
          updatedOfertas.push(ofertaNueva);
        }
      });
    }
    this.ofertasAplicablesSubject.next(updatedOfertas);
  }
  setOfertasAplicables(ofertas) {
    this.ofertasAplicablesSubject.next(ofertas);
  }
  recargarArticulos(flag) {
    this.recargarArticulosSubject.next(flag);
  }
  setTabComprobante(tab) {
    //this._tabsPreviousValue = [...this.tabsSubject.value]
    // 2. Crear un nuevo array clonando los items existentes
    const newTabs = [...this.tabsSubject.getValue()];
    // 3. Reemplazar o añadir la pestaña en la copia
    const index = newTabs.findIndex(t => t.label === tab.label);
    if (index !== -1) {
      // clonar también el objeto de la pestaña para no mutar la original
      newTabs[index] = {
        ...tab
      };
    } else {
      newTabs.push({
        ...tab
      });
    }
    // 4. Emitir la nueva instancia
    this.tabsSubject.next(newTabs);
  }
  cargarListaPrecio() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this.loadingListaPrecios = true;
      const listaPreciosFetch = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this.listaPrecioService.fetch({
        PageNumber: -1
      }));
      _this.listaPreciosSubject.next(listaPreciosFetch.Data);
      _this.loadingListaPrecios = false;
      return _this.listaPrecios;
    })();
  }
  cargarVendedores(cliente) {
    var _this2 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this2.loadingVendedores = true;
      let vendedores = [];
      let datos = {
        PageNumber: -1,
        Orden: 3,
        SentidoOrden: 'Asc',
        IncluirZona: 'S',
        PermiteVender: 'S',
        PermiteCobrar: 'S',
        BajaLogica: 'N'
      };
      if (cliente && cliente.ClienteZonas) {
        let zonas = cliente.ClienteZonas?.map(zona => zona.Zona.Id).join(',');
        if (zonas != '') {
          datos.IdsZona = zonas;
        }
      }
      try {
        const vendedoresFetch = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this2.empleadoService.fetch(datos));
        vendedores = vendedoresFetch.Data;
        if (_this2.configGralService._config.ComprobanteVendPred != -1) {
          let predIndex = vendedores.findIndex(emp => emp.Id == _this2.configGralService._config.ComprobanteVendPred);
          if (predIndex == -1) {
            const vendedorById = yield _this2.getVendedorById(_this2.configGralService._config.ComprobanteVendPred);
            vendedores = [vendedorById, ...vendedores];
          }
        }
        _this2.vendedoresSubject.next(vendedores);
        _this2.loadingVendedores = false;
        return _this2.vendedores;
      } catch (error) {
        _this2.loadingVendedores = false;
        _this2.vendedoresSubject.next([]);
        return [];
      }
    })();
  }
  getVendedorById(id) {
    var _this3 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const vendedor = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this3.empleadoService.SerchById(id));
      if (vendedor) {
        return vendedor;
      } else {
        return null;
      }
    })();
  }
  cargarCanales() {
    var _this4 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this4.loadingCanales = true;
      let datos = {
        PageNumber: -1,
        Orden: 1,
        SentidoOrden: 'Asc'
      };
      const canalesFetch = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this4.canalService.fetch(datos));
      _this4.canalesSubject.next(canalesFetch.Data);
      _this4.loadingCanales = false;
      return _this4.canales;
    })();
  }
  cargarSucursales() {
    var _this5 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this5.loadingSucursales = true;
      let datos = {
        PageNumber: -1,
        Orden: 1,
        SentidoOrden: 'Asc',
        BajaLogica: 'N',
        IdEmpresa: _this5.auth.usuario.IdEmpresa
      };
      const sucursalesFetch = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this5.sucursalService.fetch(datos));
      _this5.sucursalesSubject.next(sucursalesFetch.Data);
      _this5.loadingSucursales = false;
      return _this5.sucursales;
    })();
  }
  focusElement(idElement) {
    if (document.getElementById(idElement)) {
      document.getElementById(idElement).focus();
      document.getElementById(idElement).scrollIntoView({
        behavior: 'auto'
      });
      document.getElementById(idElement).click();
    }
  }
  comprobanteValido() {
    let valido = this.articulosSubject.getValue().articulos.length > 0 && this.formFooterComprobanteSubject.getValue()?.valido && this.formHeaderComprobanteSubject.getValue()?.valido && this.getValidacionTabs() && !this.recargarArticulosSubject.getValue();
    return valido;
  }
  getValidacionTabs() {
    let tabs = this.tabsSubject.getValue();
    let valido = true;
    if (tabs.length > 0) {
      return tabs.every(tab => tab.valido);
    }
    return valido;
  }
  inicializarObjComprobanteSimple(comprobanteData) {
    var _this6 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      comprobanteData.Numero = yield _this6.getNumeroComprobante();
      _this6.setObjectComprobante(comprobanteData);
    })();
  }
  inicializarObjComprobante(comprobanteData) {
    var _this7 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let data = {};
      data.Id = comprobanteData?.Id ?? null;
      data.IdSucursal = comprobanteData?.Sucursal.Id ?? _this7.auth.usuario.IdSucursal;
      data.Articulos = comprobanteData?.Articulos.length > 0 ? yield _this7.getArticulosByComprobante(comprobanteData?.Articulos) : [];
      data.Cliente = comprobanteData?.Cliente ? _this7.procesarCliente(comprobanteData.Cliente, comprobanteData.ClienteVenta) : undefined;
      if (comprobanteData?.Numero) {
        data.Numero = comprobanteData.Numero;
      } else {
        data.Numero = yield _this7.getNumeroComprobante();
      }
      data.Fecha = comprobanteData?.Fecha ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFechaComp)(comprobanteData.Fecha) : (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'YYYY-MM-DD');
      switch (_this7.tipoComprobante) {
        case 19:
          data.IdCanal = comprobanteData?.Canal.Id ?? _this7.getCanalPredeterminado(_this7.canales);
          //Este campo corresponde a la fecha de envio del comprobante
          data.FechaVencimiento = comprobanteData?.Vencimiento ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFechaComp)(comprobanteData.Vencimiento) : (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'YYYY-MM-DD');
          data.HoraEnvio = comprobanteData?.HoraEnvio ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'HH:mm');
          data.Importe = comprobanteData?.Importe ?? 0;
          data.Descripcion = comprobanteData?.Descripcion ?? '';
          data.IdFormaPago = comprobanteData?.FormaPago.Id ?? 1;
          data.IdNombrePrecio = comprobanteData?.NombrePrecio.Id ?? comprobanteData?.Cliente?.IdPrecioVentaUsado ?? _this7.getListaPrecioPorCliente(comprobanteData?.Cliente, _this7.listaPrecios)?.Id ?? (_this7.listaPrecios.length > 0 ? _this7.listaPrecios[0].Id : -1);
          data.FechaPrecio = comprobanteData?.FechaLPrecio ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFechaComp)(comprobanteData.FechaLPrecio) : (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'YYYY-MM-DD');
          data.PjeDescuento1 = comprobanteData?.PjeDescuento1 ?? 0;
          data.PjeDescuento2 = comprobanteData?.PjeDescuento2 ?? 0;
          data.PjeDescuento3 = comprobanteData?.PjeDescuento3 ?? 0;
          data.IdEmpleado = comprobanteData?.Vendedor.Id ?? _this7.getEmpleadoPredeterminado(_this7.vendedores);
          data.FacturarPendienteDespacho = comprobanteData?.FacturarPendienteDespacho ?? 'N';
          data.FacturarPjeActivo = comprobanteData?.FacturarPjeActivo ?? 0;
          break;
        default:
          console.log('No se ha definido el tipo de comprobante');
          break;
      }
      _this7.setObjectComprobante(data);
    })();
  }
  getClienteInicial(idCliente) {
    var _this8 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      return yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this8.clienteService.SearchByIdCliente({
        Id: idCliente,
        IncluirZona: _this8.configGralService._config.ComprobanteFilterVendZonaCliente
      })).then(cliente => cliente).catch(error => {
        console.error('Error al obtener el cliente inicial:', error);
        return undefined;
      });
    })();
  }
  /**
   * SP SAD-164 metodo requerido para procesar el cliente a la hora de inicializar el objeto del comprobante
   * @param cliente
   * @param clienteVenta
   * @returns
   */
  procesarCliente(cliente, clienteVenta) {
    return {
      IdCliente: cliente.Id,
      IdClienteVenta: clienteVenta?.Id ?? -1,
      Codigo: cliente.Codigo,
      NombreCompleto: clienteVenta.Nombre ?? '',
      NombreComercial: clienteVenta.NombreComercial ?? '',
      Calle: clienteVenta.Calle ?? '',
      CalleComercial: clienteVenta.Calle ?? '',
      Numero: clienteVenta.Numero,
      NumeroComercial: clienteVenta.Numero ?? '',
      Piso: clienteVenta.Piso ?? '',
      Depto: clienteVenta.Depto ?? '',
      IdLocalidad: clienteVenta.Localidad?.Id ?? -1,
      IdProvincia: clienteVenta.Localidad?.Provincia?.Id ?? -1,
      IdTipoDoc: clienteVenta.TipoDocumento?.Id ?? -1,
      NroDoc: clienteVenta.NroDoc ?? '',
      Telefono: clienteVenta.TelefonoCelular ?? clienteVenta.Telefono ?? '',
      Email: clienteVenta.Email ?? '',
      IdRespIVA: clienteVenta.RespIva?.Id ?? -1,
      IdPrecioVentaUsado: cliente.IdPrecioVentaUsado ?? -1,
      Descuento: cliente.Descuento ?? 0,
      Descuento2: cliente.Descuento2 ?? 0,
      Descuento3: cliente.Descuento3 ?? 0,
      EstadoCliente: cliente.EstadoCliente ?? ''
    };
  }
  armarObjetoEnvioComprobante(edicion = false) {
    let cliente = this.formHeaderComprobante.data.Cliente;
    let clienteEnvio = {
      IdCliente: cliente.IdCliente,
      IdClienteVenta: cliente.IdClienteVenta,
      ControlDatosCliente: true
    };
    if (clienteEnvio.IdCliente == this.configGralService._config.ClienteOcasional) {
      clienteEnvio.NombreCompleto = cliente.NombreCompleto;
      clienteEnvio.Calle = cliente.Calle;
      clienteEnvio.Numero = cliente.Numero;
      clienteEnvio.Piso = cliente.Piso;
      clienteEnvio.Depto = cliente.Depto;
      clienteEnvio.IdLocalidad = cliente.IdLocalidad;
      clienteEnvio.IdProvincia = cliente.IdProvincia;
      clienteEnvio.IdTipoDoc = cliente.IdTipoDoc;
      clienteEnvio.NroDoc = cliente.NroDoc;
      clienteEnvio.Telefono = cliente.Telefono;
      clienteEnvio.Email = cliente.Email;
      clienteEnvio.IdRespIVA = cliente.IdRespIVA;
      clienteEnvio.NombreComercial = cliente.NombreComercial;
      clienteEnvio.CalleComercial = cliente.CalleComercial;
      clienteEnvio.NumeroComercial = cliente.NumeroComercial;
    }
    let objEnvio;
    switch (this.tipoComprobante) {
      case 19:
        let tabGeneral = this.tabs.find(tab => tab.label === 'General');
        objEnvio = {
          IdSucursal: tabGeneral.data?.IdSucursal ?? -1,
          IdEmpresa: this.auth.usuario.IdEmpresa,
          IdCanal: tabGeneral?.data?.IdCanal ?? null,
          IdEmpleado: tabGeneral?.data?.IdEmpleado ?? null,
          IdNombrePrecio: tabGeneral?.data?.IdNombrePrecio ?? null,
          IdFormaPago: tabGeneral?.data?.IdFormaPago ?? 1,
          PjeDescuento: this.formFooterComprobante.DescGeneral?.TotalPorcentaje ?? 0,
          PjeDescuento1: this.formFooterComprobante.DescGeneral?.Desc1 ?? 0,
          PjeDescuento2: this.formFooterComprobante.DescGeneral?.Desc2 ?? 0,
          PjeDescuento3: this.formFooterComprobante.DescGeneral?.Desc3 ?? 0,
          Fecha: this.formHeaderComprobante.data.Fecha ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(this.formHeaderComprobante.data.Fecha) : null,
          FechaVencimiento: tabGeneral?.data?.FechaVencimiento ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(tabGeneral?.data?.FechaVencimiento) : null,
          FechaLPrecio: tabGeneral?.data?.FechaPrecio ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(tabGeneral?.data?.FechaPrecio) : null,
          Hora: (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'HH:mm:ss'),
          HoraEnvio: tabGeneral?.data?.HoraEnvio,
          Importe: this.formFooterComprobante.TotalFinal ?? 0,
          Descripcion: this.formFooterComprobante.data?.Descripcion ?? '',
          FacturarPendienteDespacho: tabGeneral?.data?.FacturarPendienteDespacho ?? 'N',
          FacturarPjeActivo: 100,
          Cliente: clienteEnvio,
          Articulos: this.articulos.articulos.map(articulo => {
            return {
              //SP SAD-216
              IdOferta: articulo.IdOferta ?? -1,
              IdOfertaItem: articulo.IdOfertaItem ?? -1,
              Codigo: articulo.Codigo,
              Articulo: articulo.Articulo,
              IdArticulo: articulo.IdArticulo,
              Cantidad: Number(articulo.Cantidad),
              PjeDescuento: articulo.PjeDescuento,
              PrecioNeto: articulo.PrecioNeto,
              PrecioFinal: articulo.PrecioFinal,
              NoGravadoArticulo: articulo.NoGravadoArticulo,
              ImporteNoGravado: articulo.ImporteNoGravado,
              ImpuestoInterno: articulo.ImpuestoInterno,
              Exento: articulo.Exento,
              CantidadPendiente: articulo.CantidadPendiente,
              CantidadPendFacturar: Number(articulo.Cantidad),
              TotalNeto: articulo.TotalNeto,
              TotalFinal: articulo.TotalFinal,
              IdAlicuotaIva: articulo.IdAlicuotaIva,
              PjeIva: articulo.PjeIva,
              IdTipoMoneda: articulo.IdTipoMoneda,
              Cotizacion: articulo.Cotizacion
            };
          })
        };
        if (edicion) {
          objEnvio.IdPedidoVenta = this.objectComprobante.Id;
          // objEnvio.Numero = this.formHeaderComprobante.data.Numero;
          //objEnvio.Cliente.IdClienteVenta = this.formHeaderComprobante.data.ClienteVenta.Id
        }
        return objEnvio;
      default:
        console.log('No se ha definido el tipo de comprobante');
        return {};
    }
  }
  /**
   * SP SAD-332 Metodo para obtener el numero de comprobante desde el servicio
   * @returns Promise<string> Numero de comprobante o cadena vacia en caso de error
   */
  getNumeroComprobante() {
    var _this9 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const numero = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this9.pedidoVentaService.getNumeroComprobante().pipe());
        return numero;
      } catch (error) {
        return ''; // Valor por defecto en caso de error
      }
    })();
  }
  postComprobante(comprobante) {
    let susc;
    switch (this.tipoComprobante) {
      case 19:
        susc = this.pedidoVentaService.nuevo(comprobante).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_23__.map)(res => res.Data));
        break;
      default:
        console.log('No se ha definido el tipo de comprobante');
        return new rxjs__WEBPACK_IMPORTED_MODULE_24__.Observable(observer => {
          observer.error('Tipo de comprobante no definido');
          observer.complete();
        });
    }
    return susc;
  }
  putComprobante(comprobante) {
    let susc;
    switch (this.tipoComprobante) {
      case 19:
        susc = this.pedidoVentaService.editar(comprobante, comprobante.IdPedidoVenta).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_23__.map)(res => res.Data));
        break;
      default:
        console.log('No se ha definido el tipo de comprobante');
        return new rxjs__WEBPACK_IMPORTED_MODULE_24__.Observable(observer => {
          observer.error('Tipo de comprobante no definido');
          observer.complete();
        });
    }
    return susc;
  }
  getListaPrecioPorCliente(cliente, listaPrecios) {
    if (!cliente || !listaPrecios || listaPrecios.length === 0) {
      return null;
    } else {
      return (
        //SP Esto es para la version modal , deshabilitado por ahora
        //listaPrecios.find((lp: any) => lp.Id == cliente.PrecioVta.Id) || null
        listaPrecios.find(lp => lp.Id == cliente.IdPrecioVentaUsado) || null
      );
    }
  }
  getEmpleadoPredeterminado(vendedores) {
    let index = vendedores.findIndex(v => v.Id == this.vendPredeterminado);
    return index != -1 ? this.vendedores[index].Id : vendedores.length > 0 ? vendedores[0].Id : -1;
  }
  getCanalPredeterminado(canales) {
    let index = canales.findIndex(c => c.Id == this.canalPredeterminado);
    return index != -1 ? this.canales[index].Id : canales.length > 0 ? canales[0].Id : -1;
  }
  getArticulosByComprobante(articulos) {
    var _this10 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      let datos = {
        PageNumber: -1,
        Orden: 1,
        SentidoOrden: 'Asc',
        IdsArticulos: articulos.map(art => art.IdArticulo).join(','),
        IncluirPrecioAlternativos: 'S'
      };
      const fetchArticulos = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this10.articuloService.fetch(datos));
      //NEcesito armar con el array de articulos que me llega , ya que puede haber repetidos, un nuevo objeto usando los datos de cada articulo correspondiente obtenido en  el fetch
      let articulosObj = [];
      articulos.forEach((articulo, index) => {
        const articuloOriginal = fetchArticulos.Data.find(a => a.Id === articulo.IdArticulo);
        const articuloRestaurado = _this10.armarArticuloObj(articulo, articuloOriginal);
        articuloRestaurado.Id = index;
        if (articuloOriginal) {
          articulosObj.push(articuloRestaurado);
        }
      });
      return articulosObj;
    })();
  }
  armarArticuloObj(articulo, articuloOriginal) {
    // Usar procesarArticulo y luego restaurar el PjeDescuento original
    let res = {
      Id: null,
      checked: false,
      IdArticulo: articulo.IdArticulo,
      Codigo: articulo.Codigo,
      Articulo: articulo.Articulo,
      ConStock: articuloOriginal.ConStock,
      BajaLogica: articuloOriginal.BajaLogica,
      Suspendido: articuloOriginal.Suspendido,
      Discontinuo: articuloOriginal.Discontinuo,
      PrecioNeto: articulo.PrecioNeto,
      PrecioFinal: articulo.PrecioFinal,
      NoGravadoArticulo: articuloOriginal.NoGravado,
      CantidadPendiente: articulo.CantidadPendiente,
      CantidadPendFacturar: articulo.CantidadPendFacturar,
      IdAlicuotaIva: articulo.IdAlicuotaIva,
      PjeIva: articulo.PjeIva,
      IdTipoMoneda: articuloOriginal.Moneda?.Id,
      Cotizacion: articuloOriginal.Moneda?.Cotizacion,
      PjeDescuento: articulo.PjeDescuento,
      Cantidad: articulo.Cantidad,
      ArticuloMedias: this.armarAlbumImagenes(articuloOriginal),
      ImpuestoInterno: articulo.ImpuestoInterno,
      ImporteNoGravado: articulo.ImporteNoGravado,
      Exento: articulo.Exento,
      TotalNeto: articulo.TotalNeto,
      TotalFinal: articulo.TotalFinal,
      //SP SAD-216
      IdOferta: articulo.IdOferta ?? null,
      IdOfertaItem: articulo.IdOfertaItem ?? null
    };
    return res;
  }
  armarAlbumImagenes(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      return [{
        src: 'assets/images/blankImg.jpg',
        thumb: 'assets/images/blankImg.jpg',
        caption: 'Imagen no disponible'
      }];
    }
    return articulo.ArticuloMedias.map(media => ({
      src: this.urlImagenes + '/' + media.Nombre,
      thumb: this.urlImagenes + '/' + media.Nombre,
      caption: articulo.Nombre + '' + media.Nombre || ''
    }));
  }
  /**
   *SP SAD-212 mock de aplicacion de ofertas
   **/
  aplicarOfertas(articulos, ofertasXArticulo, fecha
  //listaPrecio: string
  ) {
    //TODO SAD-216 APLICAR CALCULO DE OFERTAS
    const fechaActual = new Date(fecha);
    return new rxjs__WEBPACK_IMPORTED_MODULE_24__.Observable(observer => {
      // Simular un pequeño delay para hacer más realista el mock
      setTimeout(() => {
        try {
          //const tabs = this.tabs.find((tab: any) => tab.label === 'General');
          const articulosConOfertas = articulos.map(articulo => {
            // Buscar ofertas para este artículo
            const ofertasArticulo = ofertasXArticulo.find(o => o.IdArticulo === articulo.IdArticulo);
            if (!ofertasArticulo) {
              return {
                ...articulo,
                IdOferta: null,
                IdOfertaItem: null
              };
            }
            let ofertaAplicada = null;
            let articuloModificado = {
              ...articulo
            };
            if (ofertasArticulo.DescuentosEspeciales && ofertasArticulo.DescuentosEspeciales.length > 0) {
              const descuentoEsp = ofertasArticulo.DescuentosEspeciales.find(desc => desc.AplicarSiempre === 'S');
              if (descuentoEsp) {
                articuloModificado = this.aplicarDescuentoEspecial(articuloModificado, descuentoEsp);
              }
            }
            // 1. Verificar ofertas normales primero (mayor prioridad)
            //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
            // if (ofertasArticulo.Ofertas && ofertasArticulo.Ofertas.length > 0) {
            //   const ofertaValida = ofertasArticulo.Ofertas.find((oferta) => {
            //     const fechaInicio = new Date(
            //       formatFechaComp(oferta.FechaInicio)
            //     );
            //     const fechaFin = new Date(formatFechaComp(oferta.FechaFin));
            //     return (
            //       oferta.Activa === 'S' &&
            //       fechaActual >= fechaInicio &&
            //       fechaActual <= fechaFin
            //     );
            //   });
            //   if (ofertaValida) {
            //     ofertaAplicada = ofertaValida;
            //     articuloModificado = this.aplicarOfertaNormal(
            //       articuloModificado,
            //       ofertaValida
            //     );
            //     articuloModificado.IdOferta = ofertaValida.IdOferta;
            //     articuloModificado.IdOfertaItem = ofertaValida.IdOfertaItem;
            //     return articuloModificado;
            //   }
            // }
            // 2. Si no hay oferta normal, verificar ofertas por precio temporal (OfertasPT)
            // Si no se encuentra la pestaña o el IdNombrePrecio, retornar el artículo sin modificaciones
            if (ofertasArticulo.OfertasPT && ofertasArticulo.OfertasPT.length > 0) {
              const ofertaPTValida = ofertasArticulo.OfertasPT.find(oferta => {
                return oferta.AplicaAutomatica === 'S'
                //&& oferta.IdPrecioVta == tabs?.data?.IdNombrePrecio
                ;
              });
              if (ofertaPTValida) {
                ofertaAplicada = ofertaPTValida;
                articuloModificado = this.aplicarOfertaPT(articuloModificado, ofertaPTValida);
                articuloModificado.IdOferta = ofertaPTValida.IdOferta;
                articuloModificado.IdOfertaItem = ofertaPTValida.IdOfertaItemPT;
                return articuloModificado;
              }
            }
            // No se aplicó ninguna oferta, mantener valores originales para IdOferta e IdOfertaItem
            articuloModificado.IdOferta = null;
            articuloModificado.IdOfertaItem = null;
            return articuloModificado;
          });
          observer.next(articulosConOfertas);
          observer.complete();
        } catch (error) {
          observer.error(error);
        }
      }, 500); // Delay de 500ms para simular procesamiento
    });
  }
  /**
   * SP SAD-216
   * TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
   * @param articulo
   * @param oferta
   * @returns
   */
  // private aplicarOfertaNormal(articulo: any, oferta: IOferta): any {
  //   const articuloModificado = {...articulo};
  //   return articuloModificado;
  // }
  /**
   * SP SAD-216
   * @param articulo
   * @param ofertaPT
   * @returns
   */
  aplicarOfertaPT(articulo, ofertaPT) {
    const articuloModificado = {
      ...articulo
    };
    // Aplicar precios de la oferta PT
    articuloModificado.PrecioNeto = ofertaPT.PrecioNeto;
    //articuloModificado.PrecioFinal = ofertaPT.PrecioFinal;
    /**
     * SP SAD-216 Calculos segun oferta PT el precio final se calcula en base al precio neto + IVA + No gravado
     */
    articuloModificado.PrecioFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.GetPrecioFinal)(ofertaPT.PrecioNeto, ofertaPT.PjeIVA, ofertaPT.NoGravado);
    articuloModificado.ImpuestoInterno = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.GetImpuestoInterno)(ofertaPT.NoGravado, articuloModificado.Cotizacion);
    articuloModificado.ImporteNoGravado = articuloModificado.IdAlicuotaIva == 1 ? (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.GetINoGravado)(articuloModificado.PrecioNeto, articuloModificado.Cantidad, articuloModificado.PjeDescuento, articuloModificado.ImpuestoInterno) : 0;
    articuloModificado.Exento = articuloModificado.IdAlicuotaIva == 2 ? (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.GetIExento)(articuloModificado.PrecioNeto, articuloModificado.Cantidad, articuloModificado.PjeDescuento) : 0;
    articuloModificado.TotalNeto = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.AplicarDescuento)(articuloModificado.PrecioNeto * articuloModificado.Cantidad, articuloModificado.PjeDescuento);
    articuloModificado.TotalFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.AplicarDescuento)(articuloModificado.PrecioFinal * articuloModificado.Cantidad, articuloModificado.PjeDescuento);
    articuloModificado.PjeIva = ofertaPT.PjeIVA;
    articuloModificado.CodigoOferta = ofertaPT.CodigoOferta;
    return articuloModificado;
  }
  /**
   * SP SAD-216
   * @param articulo
   * @param descuentoEsp
   * @returns
   */
  aplicarDescuentoEspecial(articulo, descuentoEsp) {
    const articuloModificado = {
      ...articulo
    };
    // Aplicar descuento especial
    articuloModificado.PjeDescuento = descuentoEsp.PjeDescuento;
    articuloModificado.TotalNeto = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.AplicarDescuento)(articuloModificado.PrecioNeto * articuloModificado.Cantidad, articuloModificado.PjeDescuento);
    articuloModificado.TotalFinal = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.AplicarDescuento)(articuloModificado.PrecioFinal * articuloModificado.Cantidad, articuloModificado.PjeDescuento);
    return articuloModificado;
  }
  getDescuentoEspecial(ofertasArticulo) {
    //SP SAD-315 Checkear siempre descuentos especiales si tiene alguno aplica el primero
    if (ofertasArticulo.DescuentosEspeciales && ofertasArticulo.DescuentosEspeciales.length > 0) {
      const descuentoEsp = ofertasArticulo.DescuentosEspeciales.find(desc => desc.AplicarSiempre === 'S');
      if (descuentoEsp) {
        return descuentoEsp.PjeDescuento;
      }
    }
    return 0;
  }
  // /**
  //  * SP SAD-216
  //  * @param articulo
  //  * @param descuentoEsp
  //  * @returns
  //  */
  // private aplicarDescuentoEspecial(articulo: any, descuentoEsp: IDescuentoEsp): any {
  //   const articuloModificado = {...articulo};
  //   // Aplicar descuento especial
  //   articuloModificado.PjeDescuento = descuentoEsp.PjeDescuento;
  //   return articuloModificado;
  // }
  /**
   * Obtiene y setea las ofertas aplicables de los articulos pasados
   * @param articulos
   * @param fecha
   */
  obtenerOfertasAplicables(articulos, fecha, listaPrecio, idCliente) {
    var _this11 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      const suscripcionResult = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_22__.firstValueFrom)(_this11.crearObservableOfertas(articulos, fecha, listaPrecio, idCliente).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_23__.map)(results => ({
        articulos: articulos,
        results,
        error: null
      })), (0,rxjs__WEBPACK_IMPORTED_MODULE_25__.catchError)(error => (0,rxjs__WEBPACK_IMPORTED_MODULE_26__.of)({
        articulos: articulos,
        results: null,
        error
      })), (0,rxjs__WEBPACK_IMPORTED_MODULE_27__.timeout)(60000), (0,rxjs__WEBPACK_IMPORTED_MODULE_28__.finalize)(() => console.log('Procesamiento completado'))));
      if (suscripcionResult != null) {
        yield _this11.procesarResultadosOfertas(suscripcionResult, articulos);
      } else {
        console.error('Error al obtener las ofertas aplicables:', suscripcionResult.error);
        // Aquí podrías manejar el error de alguna manera, como mostrar un mensaje al usuario
      }
    })();
  }
  /**
   * SP SD-210 armado de observables optimizado para obtencion de ofertas
   * Agrupa ofertas y ofertas temporales por IdsArticulos, descuentos especiales individuales
   */
  crearObservableOfertas(articulos, fecha, listaPrecio, idCliente) {
    const fork = {};
    const fechaFormateada = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)(fecha);
    const idsArticulos = articulos.map(art => art.IdArticulo).join(',');
    // Ofertas principales agrupadas
    //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
    // fork.ofertas = this.ofertaItemService.getPorArticulo(
    //   this.getFiltrosOfertas(idsArticulos, fechaFormateada, listaPrecio)
    // );
    // Ofertas temporales agrupadas
    fork.ofertasTemporales = this.ofertaItemPTService.getPorArticulo(this.getFiltrosOfertasTemporales(idsArticulos, fechaFormateada, listaPrecio));
    // Descuentos especiales individuales (solo si hay cliente)
    if (idCliente != undefined && idCliente != -1) {
      const idsArticulos = articulos.map(art => art.IdArticulo).join(',');
      fork.descuentosEspeciales = this.descuentosEspecialService.fetch(this.getFiltrosDescuentosEspeciales(idsArticulos, idCliente, fechaFormateada));
    }
    return (0,rxjs__WEBPACK_IMPORTED_MODULE_29__.forkJoin)(fork);
  }
  /**
   * SP SAD-210 obtencion de filtros para el get de ofertas (modificado para aceptar múltiples IDs)
   * TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
   */
  // private getFiltrosOfertas(
  //   idsArticulos: string,
  //   fecha: string,
  //   idNombrePrecio: number
  // ): any {
  //   let datos: any = {
  //     OfertaActiva: 'S',
  //     OfertaBajaLogica: 'N',
  //     IdsArticulos: idsArticulos,
  //     Fecha: fecha
  //   };
  //   if (idNombrePrecio != -1) {
  //     datos.IdsListaPrecio = idNombrePrecio;
  //   }
  //   return datos;
  // }
  /**
   * SP SAD-210 obtencion de filtros para el get de ofertas Temporales (modificado para aceptar múltiples IDs)
   */
  getFiltrosOfertasTemporales(idsArticulos, fecha, idNombrePrecio) {
    let datos = {
      OfertaActiva: 'S',
      OfertaBajaLogica: 'N',
      IdsArticulo: idsArticulos,
      Fecha: fecha
    };
    if (idNombrePrecio != -1) {
      datos.IdsListaPrecioItem = idNombrePrecio;
      //datos.IdsListaPrecio = idNombrePrecio;
    }
    return datos;
  }
  /**
   * SP SAD-210 obtencion de filtros para el get de descuentos especiales
   */
  getFiltrosDescuentosEspeciales(idsArticulos, idCliente, fecha) {
    let datos = {
      idsArticulos: idsArticulos,
      IdsClientes: idCliente.toString(),
      Fecha: fecha
    };
    return datos;
  }
  /**
   * SP SD-210 Procesa los resultados optimizado de las ofertas obtenidas para los artículos seleccionados.
   */
  procesarResultadosOfertas(resultado, articulosSeleccionados) {
    const {
      results,
      error
    } = resultado;
    if (results && !error) {
      const ofertasParaActualizar = this.procesarOfertasYDescuentos(results);
      // Actualizar ofertas aplicables
      if (ofertasParaActualizar.length > 0) {
        const ofertasActuales = this.getOfertasAplicables();
        // Filtrar para evitar duplicados por IdArticulo
        const idsNuevos = new Set(ofertasParaActualizar.map(o => o.IdArticulo));
        const ofertasSinRepetir = ofertasActuales.filter(o => !idsNuevos.has(o.IdArticulo));
        this.setOfertasAplicables([...ofertasSinRepetir, ...ofertasParaActualizar]);
      }
    }
  }
  /**
   * SP SAD-210
   * Procesa las ofertas y descuentos especiales obtenidos de los endpoints.
   */
  procesarOfertasYDescuentos(result) {
    const ofertasYDescMap = new Map();
    //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
    // result.ofertas.Data.forEach((oferta) => {
    //   if (!ofertasYDescMap.has(oferta.IdArticulo)) {
    //     ofertasYDescMap.set(oferta.IdArticulo, {
    //       IdArticulo: oferta.IdArticulo,
    //       CodigoArticulo: oferta.CodigoArticulo,
    //       Articulo: oferta.Articulo,
    //       Ofertas: [],
    //       OfertasPT: [],
    //       DescuentosEspeciales: []
    //     });
    //   }
    //   const articuloOferta = ofertasYDescMap.get(oferta.IdArticulo)!;
    //   articuloOferta.Ofertas = oferta.Ofertas || [];
    // });
    // Procesar ofertas PT
    result.ofertasTemporales.Data.forEach(ofertaPT => {
      if (!ofertasYDescMap.has(ofertaPT.IdArticulo)) {
        ofertasYDescMap.set(ofertaPT.IdArticulo, {
          IdArticulo: ofertaPT.IdArticulo,
          CodigoArticulo: ofertaPT.CodigoArticulo,
          Articulo: ofertaPT.Articulo,
          //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
          //Ofertas: [],
          OfertasPT: [],
          DescuentosEspeciales: []
        });
      }
      const articuloOferta = ofertasYDescMap.get(ofertaPT.IdArticulo);
      articuloOferta.OfertasPT = ofertaPT.Ofertas || [];
    });
    // Procesar descuentos especiales
    result.descuentosEspeciales.Data.forEach(descuento => {
      if (!ofertasYDescMap.has(descuento.Articulo?.Id)) {
        ofertasYDescMap.set(descuento.Articulo?.Id, {
          IdArticulo: descuento.Articulo?.Id,
          CodigoArticulo: descuento.Articulo?.Codigo,
          Articulo: descuento.Articulo?.Nombre,
          //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
          //Ofertas: [],
          OfertasPT: [],
          DescuentosEspeciales: []
        });
      }
      const articuloOferta = ofertasYDescMap.get(descuento.Articulo?.Id);
      articuloOferta.DescuentosEspeciales.push({
        ...descuento,
        IdArticulo: descuento.Articulo?.Id,
        Articulo: descuento.Articulo?.Nombre,
        Codigo: descuento.Articulo?.Codigo
      });
    });
    return Array.from(ofertasYDescMap.values());
  }
  imprimirComprobante(comprobante, edicion = false) {
    const modalRef = this.modalService.open(_reportes_core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_4__.ImpresionCmprbComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.getOptionsModal)('xl'));
    modalRef.componentInstance.tipocomprobante = _reportes_comprobantes_nota_de_pedido_cmprb_nota_de_pedido_component__WEBPACK_IMPORTED_MODULE_5__.CmprbNotaDePedidoComponent;
    modalRef.componentInstance.datosComprobante = comprobante;
    modalRef.componentInstance.tipoNombreComprobante = 'Nota de Pedido';
    modalRef.componentInstance.nroComprobante = comprobante.Numero;
    modalRef.componentInstance.modalClose = true;
    modalRef.componentInstance.nombreFile = 'NotaDePedido_' + comprobante.Numero;
    modalRef.result.then(cierre => {
      if (cierre) {
        if (this.configGralService._config.ComprobanteSerie == 'S' && !edicion) {
          this.setArticulos({
            articulos: []
          });
          this.inicializarObjComprobante(undefined);
          this.setOfertasAplicables([]);
          //SP SAD-376 se reinicia el subject que controla si termino de guardar
          this.endSave();
        } else {
          //SP SAD-376 se agrega skipExitConfirmation para evitar el guard
          this.router.navigate(['/dashboards/notas-de-pedido'], {
            state: {
              skipExitConfirmation: true
            }
          });
        }
      }
    });
  }
  static #_ = this.ɵfac = function ComprobanteScopedService_Factory(t) {
    return new (t || ComprobanteScopedService)(_angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_lista_precio_service__WEBPACK_IMPORTED_MODULE_6__.ListaPrecioService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_7__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](_angular_forms__WEBPACK_IMPORTED_MODULE_31__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_8__.CanalService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_9__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_10__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_recursos_service__WEBPACK_IMPORTED_MODULE_11__.RecursosService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_12__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_32__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_13__.PedidoVentaService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_14__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_sucursal_service__WEBPACK_IMPORTED_MODULE_15__.SucursalService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_oferta_item_service__WEBPACK_IMPORTED_MODULE_16__.OfertaItemService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_oferta_item_pt_service__WEBPACK_IMPORTED_MODULE_17__.OfertaItemPtService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_descuentoEspecial_service__WEBPACK_IMPORTED_MODULE_18__.DescuentoEspecialService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_19__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_33__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_34__.Router));
  };
  static #_2 = this.ɵprov = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_30__["ɵɵdefineInjectable"]({
    token: ComprobanteScopedService,
    factory: ComprobanteScopedService.ɵfac
  });
}

/***/ }),

/***/ 23069:
/*!************************************************************!*\
  !*** ./src/app/shared/comprobantes/comprobantes.module.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ComprobantesModule: () => (/* binding */ ComprobantesModule)
/* harmony export */ });
/* harmony import */ var _features_comprobante_feature_consulta_articulo_feature_consulta_articulo_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./features-comprobante/feature-consulta-articulo/feature-consulta-articulo.component */ 12703);
/* harmony import */ var _features_comprobante_feature_consulta_articulo_datos_articulo_datos_articulo_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./features-comprobante/feature-consulta-articulo/datos-articulo/datos-articulo.component */ 73910);
/* harmony import */ var _features_comprobante_feature_general_feature_general_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./features-comprobante/feature-general/feature-general.component */ 83503);
/* harmony import */ var _features_comprobante_features_comprobante_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./features-comprobante/features-comprobante.component */ 14503);
/* harmony import */ var _descuentos_generales_descuentos_generales_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./descuentos-generales/descuentos-generales.component */ 81665);
/* harmony import */ var _cargar_articulos_comprobante_cargar_articulos_comprobante_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./cargar-articulos-comprobante/cargar-articulos-comprobante.component */ 69402);
/* harmony import */ var _footer_comprobante_footer_comprobante_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./footer-comprobante/footer-comprobante.component */ 17018);
/* harmony import */ var _header_comprobante_header_comprobante_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./header-comprobante/header-comprobante.component */ 81629);
/* harmony import */ var _cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./cargar-comprobante/cargar-comprobante.component */ 27254);
/* harmony import */ var _ui_ui_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../ui/ui.module */ 52540);
/* harmony import */ var _features_comprobante_feature_consulta_articulo_stock_articulo_stock_articulo_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./features-comprobante/feature-consulta-articulo/stock-articulo/stock-articulo.component */ 9352);
/* harmony import */ var _trazabilidad_comprobante_trazabilidad_comprobante_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./trazabilidad-comprobante/trazabilidad-comprobante.component */ 26944);
/* harmony import */ var _trazabilidad_comprobante_trazabilidad_card_trazabilidad_card_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./trazabilidad-comprobante/trazabilidad-card/trazabilidad-card.component */ 92264);
/* harmony import */ var _features_comprobante_feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./features-comprobante/feature-ofertas/feature-ofertas.component */ 99722);
/* harmony import */ var _features_comprobante_feature_ofertas_card_oferta_card_oferta_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./features-comprobante/feature-ofertas/card-oferta/card-oferta.component */ 89110);
/* harmony import */ var _features_comprobante_feature_ofertas_card_oferta_temporal_card_oferta_temporal_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./features-comprobante/feature-ofertas/card-oferta-temporal/card-oferta-temporal.component */ 57133);
/* harmony import */ var _features_comprobante_feature_ofertas_card_desc_especial_card_desc_especial_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./features-comprobante/feature-ofertas/card-desc-especial/card-desc-especial.component */ 23794);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/core */ 65879);


















class ComprobantesModule {
  static #_ = this.ɵfac = function ComprobantesModule_Factory(t) {
    return new (t || ComprobantesModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdefineNgModule"]({
    type: ComprobantesModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵdefineInjector"]({
    imports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_9__.UIModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_17__["ɵɵsetNgModuleScope"](ComprobantesModule, {
    declarations: [_cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_8__.CargarComprobanteComponent, _header_comprobante_header_comprobante_component__WEBPACK_IMPORTED_MODULE_7__.HeaderComprobanteComponent, _footer_comprobante_footer_comprobante_component__WEBPACK_IMPORTED_MODULE_6__.FooterComprobanteComponent, _cargar_articulos_comprobante_cargar_articulos_comprobante_component__WEBPACK_IMPORTED_MODULE_5__.CargarArticulosComprobanteComponent, _descuentos_generales_descuentos_generales_component__WEBPACK_IMPORTED_MODULE_4__.DescuentosGeneralesComponent, _features_comprobante_features_comprobante_component__WEBPACK_IMPORTED_MODULE_3__.FeaturesComprobanteComponent, _features_comprobante_feature_general_feature_general_component__WEBPACK_IMPORTED_MODULE_2__.FeatureGeneralComponent, _features_comprobante_feature_consulta_articulo_feature_consulta_articulo_component__WEBPACK_IMPORTED_MODULE_0__.FeatureConsultaArticuloComponent, _features_comprobante_feature_consulta_articulo_datos_articulo_datos_articulo_component__WEBPACK_IMPORTED_MODULE_1__.DatosArticuloComponent, _features_comprobante_feature_consulta_articulo_stock_articulo_stock_articulo_component__WEBPACK_IMPORTED_MODULE_10__.StockArticuloComponent, _trazabilidad_comprobante_trazabilidad_comprobante_component__WEBPACK_IMPORTED_MODULE_11__.TrazabilidadComprobanteComponent, _trazabilidad_comprobante_trazabilidad_card_trazabilidad_card_component__WEBPACK_IMPORTED_MODULE_12__.TrazabilidadCardComponent, _features_comprobante_feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_13__.FeatureOfertasComponent, _features_comprobante_feature_ofertas_card_oferta_card_oferta_component__WEBPACK_IMPORTED_MODULE_14__.CardOfertaComponent, _features_comprobante_feature_ofertas_card_oferta_temporal_card_oferta_temporal_component__WEBPACK_IMPORTED_MODULE_15__.CardOfertaTemporalComponent, _features_comprobante_feature_ofertas_card_desc_especial_card_desc_especial_component__WEBPACK_IMPORTED_MODULE_16__.CardDescEspecialComponent],
    imports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_9__.UIModule],
    exports: [_cargar_comprobante_cargar_comprobante_component__WEBPACK_IMPORTED_MODULE_8__.CargarComprobanteComponent, _cargar_articulos_comprobante_cargar_articulos_comprobante_component__WEBPACK_IMPORTED_MODULE_5__.CargarArticulosComprobanteComponent]
  });
})();

/***/ }),

/***/ 81665:
/*!********************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/descuentos-generales/descuentos-generales.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DescuentosGeneralesComponent: () => (/* binding */ DescuentosGeneralesComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* 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 _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/inputnumber */ 75167);







function DescuentosGeneralesComponent_Conditional_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 5)(1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div")(4, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " El % de descuento no puede ser mayor al 100% del subtotal ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
  }
}
function DescuentosGeneralesComponent_Conditional_52_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 29)(1, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DescuentosGeneralesComponent_Conditional_52_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r4);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r3.close());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function DescuentosGeneralesComponent_Conditional_53_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 29)(1, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DescuentosGeneralesComponent_Conditional_53_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r5.close());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DescuentosGeneralesComponent_Conditional_53_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r7.save());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r2.invalidDiscount());
  }
}
/**
 * SP SAD-9
 * Componente para gestionar los descuentos generales de un comprobante.
 */
class DescuentosGeneralesComponent {
  handleKeyboardEvent(event) {
    if (event.key === 'Enter' && !this.invalidDiscount()) {
      this.save();
    }
  }
  updateImporte1(value) {
    this.importe1.set(value);
  }
  updateDesc1(value) {
    this.desc1.set(value);
  }
  updateDesc2(value) {
    this.desc2.set(value);
  }
  updateDesc3(value) {
    this.desc3.set(value);
  }
  constructor(modal) {
    this.modal = modal;
    this.DescData = {
      Subtotal: 0,
      Importe1: 0,
      Desc1: 0,
      Desc2: 0,
      Desc3: 0,
      TotalDescuento: 0,
      TotalPorcentaje: 0
    };
    this.visualizar = false;
    this.descType = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.signal)('porcentaje'); // Tipo de descuento: porcentaje o importe
    this.desc1 = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.signal)(0);
    this.desc2 = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.signal)(0);
    this.desc3 = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.signal)(0);
    this.importe1 = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.signal)(0);
    this.importe2 = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.computed)(() => {
      const subtotal = this.DescData?.Subtotal || 0;
      const importe1Val = this.importe1() || 0;
      const desc2Val = this.desc2() || 0;
      return (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.normalizeZero)((subtotal - importe1Val) * (desc2Val / 100));
    });
    this.importe3 = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.computed)(() => {
      const subtotal = this.DescData?.Subtotal || 0;
      const importe1Val = this.importe1() || 0;
      const importe2Val = this.importe2() || 0;
      const desc3Val = this.desc3() || 0;
      return (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.normalizeZero)((subtotal - importe1Val - importe2Val) * (desc3Val / 100));
    });
    this.totalPorcentaje = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.computed)(() => {
      return (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_0__.GetPjeDescuento)((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_0__.GetPjeDescuento)(this.desc1(), this.desc2()), this.desc3());
    });
    this.totalImporte = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.computed)(() => this.DescData.Subtotal * (this.totalPorcentaje() / 100));
    //deberia controlar que los descuentos o recargos no sean mayores al 100% del subtotal
    this.invalidDiscount = (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.computed)(() => {
      const total = this.totalPorcentaje();
      return total > 100;
    });
  }
  ngOnInit() {
    this.desc1.set(this.DescData?.Desc1 || 0);
    this.desc2.set(this.DescData?.Desc2 || 0);
    this.desc3.set(this.DescData?.Desc3 || 0);
    this.importe1.set(this.DescData?.Importe1 || 0);
  }
  ngAfterViewInit() {
    this.focusAndSelectInput('desc1');
  }
  close() {
    this.modal.dismiss();
  }
  save() {
    this.modal.close({
      Desc1: this.desc1(),
      Desc2: this.desc2(),
      Desc3: this.desc3(),
      Importe1: this.importe1(),
      TotalPorcentaje: this.totalPorcentaje(),
      TotalDescuento: this.totalImporte()
    });
  }
  onChangeImporte1($event) {
    this.importe1.set($event);
    if (this.DescData.Subtotal > 0) {
      this.desc1.set(this.importe1() / this.DescData.Subtotal * 100);
    }
  }
  onChangeDesc1($event) {
    this.desc1.set($event);
    this.importe1.set(this.DescData.Subtotal * (this.desc1() / 100));
  }
  onChangeTypeDesc($event) {
    this.descType.set($event);
    if ($event == 'importe') {
      this.desc2.set(0);
      this.desc3.set(0);
      this.focusAndSelectInput('importe1');
    } else {
      this.importe1.set(this.DescData.Subtotal * (this.desc1() / 100));
      this.focusAndSelectInput('desc1');
    }
  }
  focusAndSelectInput(id) {
    setTimeout(() => {
      const input = document.getElementById(id);
      if (input) {
        input.focus(); // Focaliza el input
        input.select(); // Selecciona el contenido del input
      }
    }, 0);
  }
  static #_ = this.ɵfac = function DescuentosGeneralesComponent_Factory(t) {
    return new (t || DescuentosGeneralesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
    type: DescuentosGeneralesComponent,
    selectors: [["app-descuentos-generales"]],
    hostBindings: function DescuentosGeneralesComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keydown", function DescuentosGeneralesComponent_keydown_HostBindingHandler($event) {
          return ctx.handleKeyboardEvent($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresolveWindow"]);
      }
    },
    inputs: {
      DescData: "DescData",
      visualizar: "visualizar"
    },
    decls: 54,
    vars: 46,
    consts: [[1, "modal-content", "vh-custom"], [1, "modal-header"], [1, "modal-title"], [1, "modal-body"], [1, "d-flex", "flex-column", "gap-3"], [1, "row"], [1, "col-4"], [1, "col-4", "text-center"], ["type", "radio", "id", "porcentaje", "name", "radio", "value", "porcentaje", 1, "form-check-input", 3, "ngModel", "disabled", "ngModelChange"], ["for", "porcentaje", 1, "form-check-label"], ["type", "radio", "id", "importe", "name", "radio", "value", "importe", 1, "form-check-input", 3, "ngModel", "disabled", "ngModelChange"], ["for", "importe", 1, "form-check-label"], ["for", "descuento1"], ["inputStyleClass", "form-control", "inputId", "desc1", "sufix", "%", "locale", "es-AR", 3, "ngModel", "disabled", "minFractionDigits", "maxFractionDigits", "min", "max", "ngModelChange"], ["inputStyleClass", "form-control", "inputId", "importe1", "prefix", "$", "locale", "es-AR", 3, "ngModel", "disabled", "minFractionDigits", "maxFractionDigits", "min", "ngModelChange"], ["for", "descuento2"], ["inputStyleClass", "form-control", "inputId", "desc2", "sufix", "%", "locale", "es-AR", 3, "ngModel", "minFractionDigits", "maxFractionDigits", "min", "max", "disabled", "ngModelChange"], ["inputStyleClass", "form-control", "inputId", "importe2", "prefix", "$", "disabled", "", "locale", "es-AR", 3, "ngModel", "minFractionDigits", "maxFractionDigits", "min"], ["for", "descuento3"], ["inputStyleClass", "form-control", "inputId", "desc3", "sufix", "%", "locale", "es-AR", 3, "ngModel", "minFractionDigits", "maxFractionDigits", "min", "max", "disabled", "ngModelChange"], ["inputStyleClass", "form-control", "inputId", "importe3", "prefix", "$", "disabled", "", "locale", "es-AR", 3, "ngModel", "minFractionDigits", "maxFractionDigits", "min"], ["for", "total"], ["inputStyleClass", "form-control", "inputId", "totalPorcentaje", "sufix", "%", "disabled", "", "locale", "es-AR", 3, "ngModel", "minFractionDigits", "maxFractionDigits", "min", "max"], ["inputStyleClass", "form-control", "inputId", "totalImporte", "prefix", "$", "disabled", "", "locale", "es-AR", 3, "ngModel", "minFractionDigits", "maxFractionDigits", "min"], ["class", "row"], ["class", "modal-footer"], ["role", "alert", 1, "alert", "alert-danger", "d-flex", "align-items-center", "gap-3", "mb-0", "mt-2"], [1, "mdi", "mdi-alert-circle-outline", 2, "font-size", "20px"], [1, "mb-0"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-sm", "btn-secondary", 3, "click"], ["type", "button", 1, "btn", "btn-sm", "btn-primary", 3, "disabled", "click"]],
    template: function DescuentosGeneralesComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h5", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Descuentos Generales");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 7)(9, "input", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DescuentosGeneralesComponent_Template_input_ngModelChange_9_listener($event) {
          return ctx.onChangeTypeDesc($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "% Desc");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 7)(14, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DescuentosGeneralesComponent_Template_input_ngModelChange_14_listener($event) {
          return ctx.onChangeTypeDesc($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "label", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Importe");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 5)(19, "div", 6)(20, "label", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "%Dto/Rec 1:");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 6)(23, "p-inputNumber", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DescuentosGeneralesComponent_Template_p_inputNumber_ngModelChange_23_listener($event) {
          return ctx.onChangeDesc1($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 6)(25, "p-inputNumber", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DescuentosGeneralesComponent_Template_p_inputNumber_ngModelChange_25_listener($event) {
          return ctx.onChangeImporte1($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 5)(27, "div", 6)(28, "label", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "%Dto/Rec 2:");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 6)(31, "p-inputNumber", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DescuentosGeneralesComponent_Template_p_inputNumber_ngModelChange_31_listener($event) {
          return ctx.desc2.set($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](33, "p-inputNumber", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 5)(35, "div", 6)(36, "label", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, "%Dto/Rec 3:");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 6)(39, "p-inputNumber", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DescuentosGeneralesComponent_Template_p_inputNumber_ngModelChange_39_listener($event) {
          return ctx.desc3.set($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](41, "p-inputNumber", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](42, "hr");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 5)(44, "div", 6)(45, "label", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "% Desc");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](48, "p-inputNumber", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](50, "p-inputNumber", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](51, DescuentosGeneralesComponent_Conditional_51_Template, 6, 0, "div", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](52, DescuentosGeneralesComponent_Conditional_52_Template, 3, 0, "div", 25)(53, DescuentosGeneralesComponent_Conditional_53_Template, 5, 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.descType())("disabled", ctx.visualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.descType())("disabled", ctx.visualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.desc1())("disabled", ctx.descType() === "importe" || ctx.visualizar)("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", 100);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.importe1())("disabled", ctx.descType() === "porcentaje" || ctx.visualizar)("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.desc2())("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", 100)("disabled", ctx.visualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.importe2())("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.desc3())("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", 100)("disabled", ctx.visualizar);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.importe3())("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.totalPorcentaje())("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0)("max", 100);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.totalImporte())("minFractionDigits", 2)("maxFractionDigits", 2)("min", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](51, ctx.invalidDiscount() ? 51 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵconditional"](52, ctx.visualizar ? 52 : 53);
      }
    },
    dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.RadioControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgModel, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_5__.InputNumber],
    styles: ["@media (max-width: 768px) {\n  .vh-custom[_ngcontent-%COMP%] {\n    height: 100vh;\n  }\n}"]
  });
}

/***/ }),

/***/ 73910:
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-consulta-articulo/datos-articulo/datos-articulo.component.ts ***!
  \*******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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

const _c0 = (a0, a1) => ({
  "col-12": a0,
  "col-12 col-md-6": a1
});
class DatosArticuloComponent {
  constructor() {
    this.modal = false; // Indica si se está utilizando en un modal
  }
  ngOnInit() {
    //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
    //Add 'implements OnInit' to the class.
  }
  static #_ = this.ɵfac = function DatosArticuloComponent_Factory(t) {
    return new (t || DatosArticuloComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: DatosArticuloComponent,
    selectors: [["app-datos-articulo"]],
    inputs: {
      articulo: "articulo",
      modal: "modal"
    },
    decls: 20,
    vars: 9,
    consts: [[1, "d-flex", "flex-column", "justify-content-stretch"], [1, "mb-2"], [1, "d-flex", "gap-1"], [1, "form-floating", "mb-1", "col-4"], ["id", "rubro", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "rubro"], [1, "form-floating", "mb-1", "col"], ["id", "marca", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "marca"], [1, "form-floating", "mb-1", "col-6"], ["id", "codigoFabricante", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "codigoFabricante"], ["id", "moneda", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "moneda"]],
    template: function DatosArticuloComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Rubro");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Marca");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 2)(12, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Cod.Fabric.");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Moneda");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](6, _c0, !ctx.modal, ctx.modal));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.articulo == null ? null : ctx.articulo.Rubro.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.articulo == null ? null : ctx.articulo.Marca.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.articulo == null ? null : ctx.articulo.CodigoFabricante);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.articulo == null ? null : ctx.articulo.Moneda.Nombre);
      }
    }
  });
}

/***/ }),

/***/ 12703:
/*!***************************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-consulta-articulo/feature-consulta-articulo.component.ts ***!
  \***************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FeatureConsultaArticuloComponent: () => (/* binding */ FeatureConsultaArticuloComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs/operators */ 37398);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_shared_ui_code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/ui/code-scanner/code-scanner.component */ 536);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var ngx_lightbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-lightbox */ 74862);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../core/directives/format-codigo-input.directive */ 48508);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_skeleton__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primeng/skeleton */ 14227);
/* harmony import */ var _datos_articulo_datos_articulo_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./datos-articulo/datos-articulo.component */ 73910);
/* harmony import */ var _stock_articulo_stock_articulo_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./stock-articulo/stock-articulo.component */ 9352);



















const _c0 = ["DATOSARTICULO"];
const _c1 = ["STOCKARTICULO"];
const _c2 = ["codigoInput"];
const _c3 = () => ({
  "z-index": "1"
});
function FeatureConsultaArticuloComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r14.agregarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 34);
    _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__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](3, _c3));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", !ctx_r0.articulo);
  }
}
function FeatureConsultaArticuloComponent_Conditional_2_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 34);
  }
}
function FeatureConsultaArticuloComponent_Conditional_2_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](0, " Agregar ");
  }
}
function FeatureConsultaArticuloComponent_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 35)(1, "h5", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Consulta de Art\u00EDculo");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "button", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_2_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r19);
      const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r18.agregarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, FeatureConsultaArticuloComponent_Conditional_2_Conditional_4_Template, 1, 0, "i", 38)(5, FeatureConsultaArticuloComponent_Conditional_2_Conditional_5_Template, 1, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", !ctx_r1.articulo);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](4, ctx_r1.isMobile() ? 4 : 5);
  }
}
function FeatureConsultaArticuloComponent_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 39)(1, "img", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_7_Template_img_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r21);
      const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r20.openLightbox(ctx_r20.articulo));
    })("error", function FeatureConsultaArticuloComponent_Conditional_7_Template_img_error_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r21);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r22.setImagenBlanca($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  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"]("src", ctx_r2.setImagen(ctx_r2.articulo), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
  }
}
function FeatureConsultaArticuloComponent_Conditional_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "p-skeleton", 41);
  }
}
function FeatureConsultaArticuloComponent_Conditional_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_13_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r23.borrarArticulo());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function FeatureConsultaArticuloComponent_Conditional_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_14_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r26);
      const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r25.abrirScanner());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function FeatureConsultaArticuloComponent_Conditional_52_For_5_ng_template_6_ng_template_0_Template(rf, ctx) {}
function FeatureConsultaArticuloComponent_Conditional_52_For_5_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, FeatureConsultaArticuloComponent_Conditional_52_For_5_ng_template_6_ng_template_0_Template, 0, 0, "ng-template", 55);
  }
  if (rf & 2) {
    const tab_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngTemplateOutlet", tab_r29.template);
  }
}
function FeatureConsultaArticuloComponent_Conditional_52_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 51)(1, "a", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](6, FeatureConsultaArticuloComponent_Conditional_52_For_5_ng_template_6_Template, 1, 1, "ng-template", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tab_r29 = ctx.$implicit;
    const $index_r30 = ctx.$index;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavItem", $index_r30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", tab_r29.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](tab_r29.label);
  }
}
function FeatureConsultaArticuloComponent_Conditional_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 46)(1, "div", 47)(2, "ul", 48, 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](4, FeatureConsultaArticuloComponent_Conditional_52_For_5_Template, 7, 3, "li", 56, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](6, "div", 50);
  }
  if (rf & 2) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](3);
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("activeId", ctx_r7.navActive)("destroyOnHide", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx_r7.tabs);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngbNavOutlet", _r27);
  }
}
function FeatureConsultaArticuloComponent_Conditional_53_For_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_53_For_10_Template_a_click_0_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r46);
      const $index_r41 = restoredCtx.$index;
      const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r45.navChange($index_r41));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const tab_r40 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", tab_r40.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](tab_r40.label);
  }
}
function FeatureConsultaArticuloComponent_Conditional_53_For_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainer"](1, 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tab_r47 = ctx.$implicit;
    const $index_r48 = ctx.$index;
    const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("hidden", ctx_r39.navActive !== $index_r48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngTemplateOutlet", tab_r47.template);
  }
}
function FeatureConsultaArticuloComponent_Conditional_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "ul", 57, 49)(2, "li", 58)(3, "button", 59);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](4, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](9, FeatureConsultaArticuloComponent_Conditional_53_For_10_Template, 5, 2, "a", 63, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterCreate"](11, FeatureConsultaArticuloComponent_Conditional_53_For_12_Template, 2, 2, "div", 64, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeaterTrackByIndex"]);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("activeId", ctx_r8.navActive)("destroyOnHide", false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx_r8.tabs[ctx_r8.navActive] == null ? null : ctx_r8.tabs[ctx_r8.navActive].icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"]((ctx_r8.tabs[ctx_r8.navActive] == null ? null : ctx_r8.tabs[ctx_r8.navActive].label) || "Funcionalidades");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx_r8.tabs);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrepeater"](ctx_r8.tabs);
  }
}
function FeatureConsultaArticuloComponent_Conditional_54_Template(rf, ctx) {
  if (rf & 1) {
    const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 65)(1, "button", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeatureConsultaArticuloComponent_Conditional_54_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r53);
      const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r52.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Cerrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function FeatureConsultaArticuloComponent_ng_template_55_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-datos-articulo", 66);
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("articulo", ctx_r10.articulo)("modal", ctx_r10.modal);
  }
}
function FeatureConsultaArticuloComponent_ng_template_57_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-stock-articulo", 67);
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("idArticulo", ctx_r12.idArticulo)("modal", ctx_r12.modal);
  }
}
const _c4 = (a0, a1) => [a0, a1, "symbol", "1.2-2", "es-AR"];
class FeatureConsultaArticuloComponent {
  constructor(alert, activeModal, articuloService, lightbox, config, cdr, modalService) {
    this.alert = alert;
    this.activeModal = activeModal;
    this.articuloService = articuloService;
    this.lightbox = lightbox;
    this.config = config;
    this.cdr = cdr;
    this.modalService = modalService;
    this.codigo = ''; // Código del artículo
    this.modal = false; // Indica si se está utilizando en un modal
    this.navActive = 0; // Índice de la pestaña activa
    this.emitCodigoBusqueda = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter(); // Evento para emitir el código de búsqueda
    this.emitirArticulo = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter(); // Evento para agregar el artículo seleccionado
    this.tabs = []; // Array para almacenar las pestañas visibles
    this.skipNextBlur = false; // Indica si se debe omitir el evento blur
    this.urlImagenes = this.config.config.servidor.url_img;
    this.codigoBusqueda = ''; // Código de búsqueda del artículo
    this.mensajeError = '';
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_10__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_11__["default"]);
    this.cargarConfiguracion();
    this.idArticulo = undefined; // Inicializa el ID del artículo seleccionado
    if (this.codigo !== '' && this.codigo !== undefined) {
      this.codigoBusqueda = this.codigo;
      this.loadArticulo();
    }
  }
  ngAfterVieiwInit() {
    //focusear el input de busqueda
    if (!this.isMobile()) {
      setTimeout(() => {
        this.codigoInput.nativeElement.focus();
      }, 300);
    }
  }
  ngOnChanges(changes) {
    if (changes['codigo'] && changes['codigo'].currentValue !== changes['codigo'].previousValue && changes['codigo'].currentValue !== '' && changes['codigo'].currentValue !== undefined) {
      this.codigoBusqueda = changes['codigo'].currentValue;
      this.loadArticulo();
    }
  }
  cargarConfiguracion() {
    for (let tab of this.configuraciones.tabs) {
      switch (tab) {
        case 'Datos':
          this.tabs.push({
            label: 'Otros Datos',
            template: this.datosArticulosTemplate,
            icon: 'pi pi-info-circle'
          });
          break;
        case 'Stock':
          this.tabs.push({
            label: 'Stock',
            template: this.stockArticulosTemplate,
            icon: 'pi pi-box'
          });
          break;
        case 'Ofertas':
          break;
        default:
          console.warn(`La pestaña ${tab} no está implementada.`);
      }
    }
  }
  buscarArticulo($event) {
    if ($event && $event.key === 'Enter' || $event.key === 'Tab') {
      // Prevenir comportamientos no deseados en mobile
      $event.preventDefault();
      $event.stopPropagation();
      $event.stopImmediatePropagation();
      if (this.codigoBusqueda.trim() === '') {
        setTimeout(() => {
          this.codigoInput.nativeElement.blur();
        });
        this.alert.showBasicAlert('Error', 'El código del artículo no puede estar vacío.', 'error');
        this.borrarArticulo();
        return;
      }
      this.emitCodigoBusqueda.emit(this.codigoBusqueda);
      this.loadArticulo();
    }
  }
  borrarArticulo() {
    this.codigoBusqueda = '';
    this.idArticulo = undefined; // Resetea el artículo seleccionado
    this.articulo = undefined;
    this.codigoInput.nativeElement.focus(); // Enfoca el input del código del artículo
    this.emitCodigoBusqueda.emit(''); // Emite un evento para limpiar el código de búsqueda
  }
  ngOnDestroy() {
    this.subscription?.unsubscribe(); // Cancela la suscripción al destruir el componente
  }
  isMobile() {
    // Verifica si el dispositivo es móvil
    return window.innerWidth < 768; // Puedes ajustar el ancho según tus necesidades
  }
  navChange(id) {
    this.navActive = id;
  }
  setIdArticulo(id) {
    this.idArticulo = id; // Actualiza el ID del artículo seleccionado
    if (id === -1) {
      this.borrarArticulo();
      this.alert.showBasicAlert('Artículo no encontrado', 'No se encontró el artículo con el código ' + this.codigoBusqueda + '.', 'warning');
    }
  }
  closeModal() {
    this.activeModal.close(); // Cierra el modal si se está utilizando
  }
  loadArticulo() {
    let datos = {
      Codigo: this.codigoBusqueda,
      PageSize: -1,
      IncluirPrecioAlternativos: 'S',
      IncluirStock: 'S'
    };
    this.subscription = this.articuloService.getArticulosPorCodigo(datos).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.map)(datos => {
      if (datos.Data && datos.Data.length > 0) {
        return {
          ...datos.Data[0],
          ArticuloMedias: this.armarAlbumImagenes(datos.Data[0])
        }; // Retorna el primer artículo encontrado
      } else {
        return null;
      }
    })).subscribe(response => {
      if (response) {
        this.articulo = response;
        this.setIdArticulo(this.articulo.Id); // Establece el ID del artículo
      } else {
        this.articulo = undefined;
        this.setIdArticulo(-1); // Si no se encuentra el artículo, establece el ID a -1
      }
    });
  }
  getPrecioNeto(articulo) {
    return (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.GetPrecioNetoFromLista)(articulo, this.listaPrecios?.Id);
  }
  getPrecioFinal(articulo) {
    return (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.GetPrecioFinalFromLista)(articulo, this.listaPrecios?.Id);
  }
  openLightbox(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      this.alert.showBasicAlert('Información', 'No hay imágenes disponibles para este artículo', 'info');
      return;
    }
    this.lightbox.open(articulo.ArticuloMedias, 0, {
      showImageNumberLabel: true,
      centerVertically: true
    });
  }
  setImagen(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      return 'assets/images/blankImg.jpg';
    } else {
      return articulo.ArticuloMedias[0].src;
    }
  }
  setImagenBlanca(event) {
    const img = event.target;
    if (!img.dataset.fallback) {
      img.src = 'assets/images/blankImg.jpg';
      img.dataset.fallback = 'true';
    }
  }
  armarAlbumImagenes(articulo) {
    if (!articulo || !articulo.ArticuloMedias || articulo.ArticuloMedias.length === 0) {
      return [{
        src: 'assets/images/blankImg.jpg',
        thumb: 'assets/images/blankImg.jpg',
        caption: 'Imagen no disponible'
      }];
    }
    return articulo.ArticuloMedias.map(media => ({
      src: this.urlImagenes + '/' + media.Nombre,
      thumb: this.urlImagenes + '/' + media.Nombre,
      caption: articulo.Nombre + '' + media.Nombre || ''
    }));
  }
  agregarArticulo() {
    if (!this.modal) {
      this.emitirArticulo.emit(this.articulo);
    } else {
      this.activeModal.close(this.articulo); // Cierra el modal y emite el artículo seleccionado
    }
  }
  abrirScanner() {
    const modalRef = this.modalService.open(src_app_shared_ui_code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_2__.CodeScannerComponent, {
      size: 'lg',
      backdrop: 'static',
      keyboard: false,
      scrollable: true,
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index'
    });
    //modalRef.componentInstance.maquina = maquina;
    modalRef.result.then(result => {
      if (result === undefined || result.includes('ERROR')) {
        if (result === 'ERROR_CAMARA') {
          this.mensajeError = 'No se ha podido acceder a la cámara';
          this.alert.showBasicAlert('Error', this.mensajeError, 'error');
        }
        if (result === 'ERROR_PERMISO') {
          this.mensajeError = 'Verifique los permisos de la aplicación';
          this.alert.showBasicAlert('Error', this.mensajeError, 'error');
        }
      } else {
        this.codigoBusqueda = result;
        this.loadArticulo();
      }
    }, () => {});
  }
  static #_ = this.ɵfac = function FeatureConsultaArticuloComponent_Factory(t) {
    return new (t || FeatureConsultaArticuloComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbActiveModal, 8), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_3__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_lightbox__WEBPACK_IMPORTED_MODULE_4__.Lightbox), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_5__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_9__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: FeatureConsultaArticuloComponent,
    selectors: [["app-feature-consulta-articulo"]],
    viewQuery: function FeatureConsultaArticuloComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c0, 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c1, 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c2, 7);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.datosArticulosTemplate = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.stockArticulosTemplate = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.codigoInput = _t.first);
      }
    },
    inputs: {
      configuraciones: "configuraciones",
      codigo: "codigo",
      listaPrecios: "listaPrecios",
      modal: "modal",
      navActive: "navActive"
    },
    outputs: {
      emitCodigoBusqueda: "emitCodigoBusqueda",
      emitirArticulo: "emitirArticulo"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_0__.AlertCustomService]), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵNgOnChangesFeature"]],
    decls: 59,
    vars: 40,
    consts: [["class", "btn btn-sm btn-success position-absolute top-0 end-0", 3, "style", "disabled"], ["class", "modal-header"], [2, "min-height", "200px"], [1, "row"], [1, "d-flex", "justify-content-center", "align-items-center"], ["class", "text-inherit", "href", "javascript:void(0)"], [1, "input-group", "mb-2"], ["autofocus", "", "type", "search", "inputmode", "search", "enterkeyhint", "search", "formatCodigoInput", "", 1, "form-control", 3, "ngModel", "ngModelChange", "keydown"], ["codigoInput", ""], ["class", "btn btn-secondary"], ["class", "btn btn-primary"], [1, "form-floating", "mb-1"], ["id", "nombre", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "nombre"], [1, "col-12"], [1, "d-flex", "flex-column", "justify-content-stretch", "my-1"], ["rows", "10", "id", "descripcion", "readonly", "", 1, "form-control"], ["for", "descripcion"], [1, "text-center", "bg-primary", "text-white", "w-100", "mb-2"], [1, "d-flex", "flex-row", "flex-wrap", "mb-1"], [1, "col-6", "pe-md-1"], ["id", "precioLista", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "precioLista"], [1, "col-6", "ps-md-1"], ["id", "fechaUltAct", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "fechaUltAct"], ["id", "precioVenta", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "precioVenta"], ["id", "precioCosto", "type", "text", "readonly", "", 1, "form-control", 3, "value"], ["for", "precioCosto"], ["class", "modal-footer"], ["DATOSARTICULO", ""], ["STOCKARTICULO", ""], [1, "btn", "btn-sm", "btn-success", "position-absolute", "top-0", "end-0", 3, "disabled", "click"], [1, "mdi", "mdi-plus"], [1, "modal-header"], [1, "modal-title"], [1, "btn", "btn-success", 3, "disabled", "click"], ["class", "mdi mdi-plus"], ["href", "javascript:void(0)", 1, "text-inherit"], [2, "width", "100px", "height", "100px", 3, "src", "click", "error"], ["width", "100px", "height", "100px"], [1, "btn", "btn-secondary", 3, "click"], [1, "mdi", "mdi-close"], [1, "btn", "btn-primary", 3, "click"], [1, "mdi", "mdi-barcode-scan"], [1, "tabs-container", "position-relative"], [1, "tabs-wrapper"], ["ngbNav", "", 1, "nav", "nav-pills", "nav-justified", "d-flex", "flex-nowrap", "rounded", "fs-6", 3, "activeId", "destroyOnHide"], ["consultaTabs", "ngbNav"], [2, "height", "auto", "overflow-y", "auto", 3, "ngbNavOutlet"], [1, "p-2", "rounded", 3, "ngbNavItem"], ["ngbNavLink", ""], [3, "ngClass"], ["ngbNavContent", ""], [3, "ngTemplateOutlet"], ["class", "p-2 rounded", 3, "ngbNavItem"], ["ngbNav", "", 1, "nav-tabs", "justify-content-start", "mt-2", 3, "activeId", "destroyOnHide"], ["ngbDropdown", "", "role", "presentation", 1, "nav-item"], ["type", "button", "ngbDropdownToggle", "", 1, "nav-link"], ["ngbDropdownMenu", ""], ["ngbDropdownItem", "", 3, "click"], [2, "height", "auto", "overflow-y", "auto", 3, "hidden"], ["ngbDropdownItem", ""], ["style", "height: auto; overflow-y: auto", 3, "hidden"], [1, "modal-footer"], [3, "articulo", "modal"], [3, "idArticulo", "modal"]],
    template: function FeatureConsultaArticuloComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, FeatureConsultaArticuloComponent_Conditional_1_Template, 2, 4, "button", 0)(2, FeatureConsultaArticuloComponent_Conditional_2_Template, 6, 2, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 2)(4, "div", 3)(5, "div")(6, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](7, FeatureConsultaArticuloComponent_Conditional_7_Template, 2, 1, "a", 5)(8, FeatureConsultaArticuloComponent_Conditional_8_Template, 1, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](9, "div")(10, "div", 6)(11, "input", 7, 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function FeatureConsultaArticuloComponent_Template_input_ngModelChange_11_listener($event) {
          return ctx.codigoBusqueda = $event;
        })("keydown", function FeatureConsultaArticuloComponent_Template_input_keydown_11_listener($event) {
          return ctx.buscarArticulo($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](13, FeatureConsultaArticuloComponent_Conditional_13_Template, 2, 0, "button", 9)(14, FeatureConsultaArticuloComponent_Conditional_14_Template, 2, 0, "button", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](16, "input", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](17, "label", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](18, "Nombre");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](19, "div", 14)(20, "div", 15)(21, "div", 11)(22, "textarea", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](23);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "label", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](25, "Descripci\u00F3n");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "div", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](27, " Precios del art\u00EDculo ");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](28, "div", 19)(29, "div", 20)(30, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](31, "input", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](32, "label", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](33, "Lista de Precio");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](34, "div", 23)(35, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](36, "input", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](37, "label", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](38, "Fecha Ult. Act.");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](39, "div", 19)(40, "div", 20)(41, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](42, "input", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](43, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](44, "label", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](45, "Precio Neto");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](46, "div", 23)(47, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](48, "input", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](49, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](50, "label", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](51, "Precio Final");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](52, FeatureConsultaArticuloComponent_Conditional_52_Template, 7, 3)(53, FeatureConsultaArticuloComponent_Conditional_53_Template, 13, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](54, FeatureConsultaArticuloComponent_Conditional_54_Template, 3, 0, "div", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](55, FeatureConsultaArticuloComponent_ng_template_55_Template, 1, 2, "ng-template", null, 31, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"])(57, FeatureConsultaArticuloComponent_ng_template_57_Template, 1, 2, "ng-template", null, 32, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        let tmp_14_0;
        let tmp_15_0;
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx.modal ? "modal-content vh-100" : "m-3 position-relative");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, !ctx.modal ? 1 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](2, ctx.modal ? 2 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx.modal ? "overlay overlay-block cursor-default modal-body " : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx.modal || ctx.isMobile() ? "col-auto text-center mb-2" : "col-12 mb-2");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](7, ctx.articulo ? 7 : 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx.modal || ctx.isMobile() ? "col" : "col-12");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx.codigoBusqueda);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](13, ctx.articulo ? 13 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](14, ctx.isMobile() ? 14 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx.articulo == null ? null : ctx.articulo.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx.articulo == null ? null : ctx.articulo.Descripcion);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx.listaPrecios == null ? null : ctx.listaPrecios.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx.articulo == null ? null : ctx.articulo.FechaUpdatePrecioVenta);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBindV"](43, 22, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](34, _c4, ctx.getPrecioNeto(ctx.articulo), (tmp_14_0 = ctx.articulo == null ? null : ctx.articulo.Moneda.Simbolo) !== null && tmp_14_0 !== undefined ? tmp_14_0 : "$")));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBindV"](49, 28, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](37, _c4, ctx.getPrecioFinal(ctx.articulo), (tmp_15_0 = ctx.articulo == null ? null : ctx.articulo.Moneda.Simbolo) !== null && tmp_15_0 !== undefined ? tmp_15_0 : "$")));
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](52, ctx.modal || ctx.isMobile() ? 52 : 53);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](54, ctx.modal ? 54 : -1);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgTemplateOutlet, _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_6__.FormatCodigoInputDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_14__.NgModel, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbDropdownMenu, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbDropdownItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavLink, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.NgbNavOutlet, primeng_skeleton__WEBPACK_IMPORTED_MODULE_15__.Skeleton, _datos_articulo_datos_articulo_component__WEBPACK_IMPORTED_MODULE_7__.DatosArticuloComponent, _stock_articulo_stock_articulo_component__WEBPACK_IMPORTED_MODULE_8__.StockArticuloComponent, _angular_common__WEBPACK_IMPORTED_MODULE_10__.CurrencyPipe]
  });
}

/***/ }),

/***/ 9352:
/*!*******************************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-consulta-articulo/stock-articulo/stock-articulo.component.ts ***!
  \*******************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   StockArticuloComponent: () => (/* binding */ StockArticuloComponent)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/button */ 40707);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! primeng/table */ 94267);













function StockArticuloComponent_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr", 8)(1, "th", 9)(2, "div", 10)(3, "i", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function StockArticuloComponent_Conditional_1_ng_template_1_Template_i_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r8.expandAll());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "i", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function StockArticuloComponent_Conditional_1_ng_template_1_Template_i_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r9);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r10.collapseAll());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8, "Sucursal");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
}
function StockArticuloComponent_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](2, "p-button", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const sucursal_r11 = ctx.$implicit;
    const expanded_r13 = ctx.expanded;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("pRowToggler", sucursal_r11)("text", true)("rounded", true)("plain", true)("icon", expanded_r13 ? "pi pi-chevron-down" : "pi pi-chevron-right");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](sucursal_r11.Sucursal.Codigo);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](sucursal_r11.Sucursal.Nombre);
  }
}
function StockArticuloComponent_Conditional_1_ng_template_3_ng_template_4_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Comprometido");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function StockArticuloComponent_Conditional_1_ng_template_3_ng_template_4_Conditional_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, "Reservado");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function StockArticuloComponent_Conditional_1_ng_template_3_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr", 8)(1, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Dep\u00F3sito");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Disponible");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6, "F\u00EDsico");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, StockArticuloComponent_Conditional_1_ng_template_3_ng_template_4_Conditional_7_Template, 2, 0, "th")(8, StockArticuloComponent_Conditional_1_ng_template_3_ng_template_4_Conditional_8_Template, 2, 0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](7, !ctx_r15.ocultarComprometido ? 7 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](8, !ctx_r15.ocultarReservado ? 8 : -1);
  }
}
const _c0 = a0 => ({
  "text-danger": a0
});
function StockArticuloComponent_Conditional_1_ng_template_3_ng_template_5_Conditional_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const deposito_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](6, _c0, deposito_r19.Comprometido < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](2, 2, deposito_r19.Comprometido, "1.2-2", "es-AR"), " ");
  }
}
function StockArticuloComponent_Conditional_1_ng_template_3_ng_template_5_Conditional_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const deposito_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](6, _c0, deposito_r19.Reservado < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](2, 2, deposito_r19.Reservado, "1.2-2", "es-AR"), " ");
  }
}
function StockArticuloComponent_Conditional_1_ng_template_3_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "td", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](5, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "td", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](8, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, StockArticuloComponent_Conditional_1_ng_template_3_ng_template_5_Conditional_9_Template, 3, 8, "td", 19)(10, StockArticuloComponent_Conditional_1_ng_template_3_ng_template_5_Conditional_10_Template, 3, 8, "td", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const deposito_r19 = ctx.$implicit;
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](deposito_r19.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵclassMap"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](16, _c0, deposito_r19.Disponible < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](5, 8, deposito_r19.Disponible, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](18, _c0, deposito_r19.Cantidad < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](8, 12, deposito_r19.Cantidad, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](9, !ctx_r16.ocultarComprometido ? 9 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](10, !ctx_r16.ocultarReservado ? 10 : -1);
  }
}
function StockArticuloComponent_Conditional_1_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td", 14)(2, "div", 15)(3, "p-table", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, StockArticuloComponent_Conditional_1_ng_template_3_ng_template_4_Template, 9, 2, "ng-template", 2)(5, StockArticuloComponent_Conditional_1_ng_template_3_ng_template_5_Template, 11, 20, "ng-template", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const sucursal_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", sucursal_r14.Depositos);
  }
}
function StockArticuloComponent_Conditional_1_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td", 20)(2, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, " No hay dep\u00F3sitos con stock para este art\u00EDculo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
}
function StockArticuloComponent_Conditional_1_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td", 20)(2, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, " Cargando dep\u00F3sitos de sucursales... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
}
function StockArticuloComponent_Conditional_1_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" Stock disponible: ", ctx_r7.getFormulaStockDisponible(), " ");
  }
}
function StockArticuloComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p-table", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, StockArticuloComponent_Conditional_1_ng_template_1_Template, 9, 0, "ng-template", 2)(2, StockArticuloComponent_Conditional_1_ng_template_2_Template, 7, 7, "ng-template", 3)(3, StockArticuloComponent_Conditional_1_ng_template_3_Template, 6, 1, "ng-template", 4)(4, StockArticuloComponent_Conditional_1_ng_template_4_Template, 4, 0, "ng-template", 5)(5, StockArticuloComponent_Conditional_1_ng_template_5_Template, 4, 0, "ng-template", 6)(6, StockArticuloComponent_Conditional_1_ng_template_6_Template, 3, 1, "ng-template", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", ctx_r0.stockPorSucursal)("scrollable", true)("rowHover", true)("expandedRowKeys", ctx_r0.expandedRows);
  }
}
function StockArticuloComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " Debe consultar un art\u00EDculo para ver su stock por sucursal. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function StockArticuloComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
function StockArticuloComponent_Conditional_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1, " No hay depositos con stock para este art\u00EDculo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
}
const _forTrack1 = ($index, $item) => $item.Id;
function StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Conditional_8_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const deposito_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](6, _c0, deposito_r36.Comprometido < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" Comprometido: ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](2, 2, deposito_r36.Comprometido, "1.2-2", "es-AR"), " ");
  }
}
function StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Conditional_8_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const deposito_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](6, _c0, deposito_r36.Reservado < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" Reservado: ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](2, 2, deposito_r36.Reservado, "1.2-2", "es-AR"), " ");
  }
}
function StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Conditional_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 34)(1, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](3, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Conditional_8_Conditional_4_Template, 3, 8, "div", 35)(5, StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Conditional_8_Conditional_5_Template, 3, 8, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const deposito_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
    const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](8, _c0, deposito_r36.Cantidad < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" F\u00EDsico: ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](3, 4, deposito_r36.Cantidad, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](4, !ctx_r41.ocultarComprometido ? 4 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](5, !ctx_r41.ocultarReservado ? 5 : -1);
  }
}
function StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 29)(1, "div", 30)(2, "strong");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](6, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Template_i_click_7_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r48);
      const deposito_r36 = restoredCtx.$implicit;
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](deposito_r36.Desplegado = !deposito_r36.Desplegado);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Conditional_8_Template, 6, 10, "div", 33);
  }
  if (rf & 2) {
    const deposito_r36 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](deposito_r36.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](9, _c0, deposito_r36.Disponible < 0));
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind3"](6, 5, deposito_r36.Disponible, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", deposito_r36.Desplegado ? "mdi mdi-chevron-up pointer" : "mdi mdi-chevron-down pointer");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](8, deposito_r36.Desplegado ? 8 : -1);
  }
}
function StockArticuloComponent_Conditional_2_Conditional_3_For_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "p", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](2, StockArticuloComponent_Conditional_2_Conditional_3_For_4_For_3_Template, 9, 11, null, null, _forTrack1);
  }
  if (rf & 2) {
    const sucursal_r30 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", sucursal_r30.Sucursal.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](sucursal_r30.Depositos);
  }
}
function StockArticuloComponent_Conditional_2_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeaterCreate"](3, StockArticuloComponent_Conditional_2_Conditional_3_For_4_Template, 4, 1, null, null, _forTrack1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" Stock disponible: ", ctx_r28.getFormulaStockDisponible(), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrepeater"](ctx_r28.stockPorSucursal);
  }
}
function StockArticuloComponent_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, StockArticuloComponent_Conditional_2_Conditional_0_Template, 2, 0, "div", 24)(1, StockArticuloComponent_Conditional_2_Conditional_1_Template, 2, 0)(2, StockArticuloComponent_Conditional_2_Conditional_2_Template, 2, 0)(3, StockArticuloComponent_Conditional_2_Conditional_3_Template, 5, 1);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](0, !ctx_r1.idArticulo ? 0 : ctx_r1.loadingStock ? 1 : ctx_r1.stockPorSucursal.length === 0 ? 2 : ctx_r1.stockPorSucursal.length > 0 ? 3 : -1);
  }
}
class StockArticuloComponent {
  constructor(articuloService, auth, confGral) {
    this.articuloService = articuloService;
    this.auth = auth;
    this.confGral = confGral;
    this.loadingStock = false;
    this.stockPorSucursal = [];
    this.ocultarComprometido = false;
    this.ocultarReservado = false;
    this.expandedRows = {};
  } // Assuming you have a service to fetch stock data
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_6__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_7__["default"], 'es-AR');
    this.ocultarComprometido = this.confGral._config.OcultarComprometidoStockArticulo;
    this.ocultarReservado = this.confGral._config.OcultarReservadoStockArticulo;
    if (this.idArticulo) {
      this.cargarStockArticulo();
    }
  }
  ngOnChanges(changes) {
    //checkear si viene un idArticulo distinto del que ya estaba y distinto de undefined
    if (changes['idArticulo'] && changes['idArticulo'].currentValue !== changes['idArticulo'].previousValue) {
      if (changes['idArticulo'].currentValue) {
        this.cargarStockArticulo();
      } else {
        this.stockPorSucursal = [];
      }
    }
  }
  expandAll() {
    this.expandedRows = this.stockPorSucursal.reduce((acc, p) => (acc[p.Sucursal.Id] = true) && acc, {});
  }
  collapseAll() {
    this.expandedRows = {};
  }
  cargarStockArticulo() {
    let datos = {
      Id: this.idArticulo,
      ExcluirDepositoCero: 'S',
      BajaDepositos: 'N',
      BajaSucursales: 'N',
      IdEmpresa: this.auth.usuario.IdEmpresa,
      //IdSucursal: this.auth.usuario.IdSucursal,
      PageNumber: -1
    };
    this.loadingStock = true;
    this.articuloService.getStockArticulo(datos).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.map)(res => {
      if (res.Data && res.Data.length > 0) {
        const formatDeposito = res.Data.map(item => {
          return {
            Id: item.Id,
            IdDeposito: item.Deposito.Id,
            Nombre: item.Deposito.Nombre,
            Numero: item.Deposito.Numero,
            Cantidad: item.Cantidad,
            Comprometido: item.Comprometido,
            Reservado: item.Reservado,
            Disponible: this.getStockDisponible(item),
            Desplegado: false,
            Sucursal: item.Deposito.Sucursal
          };
        });
        const groupedBySucursal = formatDeposito.reduce((acc, item) => {
          const sucursalId = item.Sucursal.Id;
          if (!acc[sucursalId]) {
            acc[sucursalId] = {
              Sucursal: item.Sucursal,
              Depositos: []
            };
          }
          acc[sucursalId].Depositos.push(item);
          return acc;
        }, {});
        return Object.values(groupedBySucursal);
      } else {
        return [];
      }
    })).subscribe({
      next: res => {
        this.loadingStock = false;
        this.stockPorSucursal = res;
      },
      error: err => {
        this.loadingStock = true;
      }
    });
  }
  getStockDisponible(stockDeposito) {
    // Assuming stockDisponible is a property in stockDeposito
    return (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.GetStockDisponible)(stockDeposito.Cantidad, stockDeposito.Comprometido, stockDeposito.Reservado, this.confGral._config.FormulaStockDisponible);
  }
  getFormulaStockDisponible() {
    const formula = src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.FormulaStockDisponible.find(item => item.Id == this.confGral._config.FormulaStockDisponible);
    return formula ? formula.Nombre : 'No disponible';
  }
  isMobile() {
    return window.innerWidth < 768; // Adjust the breakpoint as needed
  }
  static #_ = this.ɵfac = function StockArticuloComponent_Factory(t) {
    return new (t || StockArticuloComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_2__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_3__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_4__.ConfigGeneralService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
    type: StockArticuloComponent,
    selectors: [["app-stock-articulo"]],
    inputs: {
      idArticulo: "idArticulo",
      modal: "modal"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵNgOnChangesFeature"]],
    decls: 3,
    vars: 1,
    consts: [[1, "w-100", "h-100"], ["id", "tablaStockArticuloByDeposito", "styleClass", "p-datatable-gridlines p-datatable-sm ", "dataKey", "Sucursal.Id", "scrollHeight", "flex", 3, "value", "scrollable", "rowHover", "expandedRowKeys"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "rowexpansion"], ["pTemplate", "emptymessage"], ["pTemplate", "loading"], ["pTemplate", "footer"], [1, "text-center"], [2, "width", "5rem"], [1, "d-flex", "gap-2", "justify-content-center"], [1, "mdi", "mdi-chevron-down", "pointer", "font-size-20", 3, "click"], [1, "mdi", "mdi-chevron-up", "pointer", "font-size-20", 3, "click"], ["type", "button", "pRipple", "", 3, "pRowToggler", "text", "rounded", "plain", "icon"], ["colspan", "7"], [1, "p-2"], ["dataKey", "IdDeposito", "styleClass", "p-datatable-sm", 3, "value"], [1, "text-end"], [1, "text-end", 3, "ngClass"], ["class", "text-end", 3, "ngClass"], ["colspan", "12"], [1, "alert", "alert-danger", "text-center"], [1, "alert", "alert-info", "text-center"], ["colspan", "12", 1, "text-start", "bg-primary", "font-size-10", "text-white"], ["class", "alert alert-danger text-center"], [1, "fa", "fa-spinner", "fa-spin", "fa-2x"], [1, "text-center", "bg-primary", "text-white", "w-100", "p-1", "font-size-12"], [1, "overflow-auto", 2, "height", "auto"], [1, "fw-bold", "bg-primary-subtle", "mb-1", "text-center", "p-2"], [1, "d-flex", "flex-row", "align-items-center", "bg-light", "p-2", "mb-1", "font-size-12", "border", "rounded"], [1, "flex-grow-1", "flex-wrap"], [1, "text-end", "me-2", 3, "ngClass"], [3, "ngClass", "click"], ["class", "p-2 font-size-10 bg-light-subtle"], [1, "p-2", "font-size-10", "bg-light-subtle"], [3, "ngClass"]],
    template: function StockArticuloComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, StockArticuloComponent_Conditional_1_Template, 7, 4, "p-table", 1)(2, StockArticuloComponent_Conditional_2_Template, 4, 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵconditional"](1, ctx.modal && !ctx.isMobile() ? 1 : 2);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_9__.PrimeTemplate, primeng_button__WEBPACK_IMPORTED_MODULE_10__.Button, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, primeng_table__WEBPACK_IMPORTED_MODULE_11__.Table, primeng_table__WEBPACK_IMPORTED_MODULE_11__.RowToggler, _angular_common__WEBPACK_IMPORTED_MODULE_6__.DecimalPipe],
    styles: ["[_nghost-%COMP%]     .p-datatable-table > .p-datatable-thead > tr > th {\n  background-color: var(--bs-primary); \n\n  color: white !important; \n\n}\n\n[_nghost-%COMP%]     .bg-custom-color {\n  background-color: var(--bs-primary) !important; \n\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-header {\n  border-width: 1px 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-footer {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-paginator-top {\n  border-width: 0 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {\n  border-width: 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {\n  border-width: 1px 0 0 1px !important;\n  border-color: var(--bs-primary) !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n  border-width: 1px 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {\n  border-width: 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {\n  border-width: 1px 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}"]
  });
}

/***/ }),

/***/ 83503:
/*!*******************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-general/feature-general.component.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FeatureGeneralComponent: () => (/* binding */ FeatureGeneralComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* 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 _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../comprobante-scoped.service */ 6170);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var _ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../ui/select-loading/select-loading.component */ 24718);
/* harmony import */ var _ui_input_time_input_time_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../ui/input-time/input-time.component */ 71902);












function FeatureGeneralComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "input", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "label");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "Sucursal");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r0.getNombreSucursal());
  }
}
function FeatureGeneralComponent_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "select-loading", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("valueSelect", function FeatureGeneralComponent_Conditional_4_Template_select_loading_valueSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r4);
      const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r3.formData.controls.IdSucursal.setValue(+$event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Seleccionar")("defaultValueDis", true)("items", ctx_r1.sucursales)("valueSelected", ctx_r1.formData.controls.IdSucursal.value)("loading", ctx_r1.loadingSucursales);
  }
}
function FeatureGeneralComponent_Conditional_5_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "select-loading", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("valueSelect", function FeatureGeneralComponent_Conditional_5_Conditional_0_Template_select_loading_valueSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.formData.controls.IdNombrePrecio.setValue(+$event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Seleccionar")("defaultValueDis", true)("items", ctx_r5.listaPrecios)("valueSelected", ctx_r5.formData.controls.IdNombrePrecio.value)("loading", ctx_r5.loadingListaPrecios)("deshabilitado", ctx_r5.formData.controls.IdNombrePrecio.status === "DISABLED");
  }
}
function FeatureGeneralComponent_Conditional_5_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "input", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "label");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Tipo precio");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r6.getNombreTipoPrecio());
  }
}
function FeatureGeneralComponent_Conditional_5_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "select-loading", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("valueSelect", function FeatureGeneralComponent_Conditional_5_Conditional_6_Template_select_loading_valueSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r15);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r14.setVendedorSelected(+$event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Seleccionar")("defaultValueDis", true)("items", ctx_r7.vendedores)("valueSelected", ctx_r7.formData.controls.IdEmpleado.value)("loading", ctx_r7.loadingVendedores)("deshabilitado", ctx_r7.formData.controls.IdEmpleado.status === "DISABLED");
  }
}
function FeatureGeneralComponent_Conditional_5_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "input", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "label");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Vendedor");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r8.getVendedorSelectedNombre());
  }
}
function FeatureGeneralComponent_Conditional_5_option_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "option", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const condVta_r16 = ctx.$implicit;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", condVta_r16.Id)("readOnly", condVta_r16.Id === 1 && !ctx_r9.permisos.selectContado || condVta_r16.Id === 2 && !ctx_r9.permisos.selectCtaCte);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", condVta_r16.Nombre, " ");
  }
}
function FeatureGeneralComponent_Conditional_5_Conditional_21_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "select-loading", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("valueSelect", function FeatureGeneralComponent_Conditional_5_Conditional_21_Template_select_loading_valueSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r17.formData.controls.IdCanal.setValue(+$event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("defaultValue", -1)("defaultString", "Seleccionar")("items", ctx_r10.canales)("valueSelected", ctx_r10.formData.controls.IdCanal.value)("loading", ctx_r10.loadingCanales)("deshabilitado", ctx_r10.formData.controls.IdCanal.status === "DISABLED");
  }
}
function FeatureGeneralComponent_Conditional_5_Conditional_22_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "input", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "label");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Canal");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", ctx_r11.getNombreCanal());
  }
}
function FeatureGeneralComponent_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, FeatureGeneralComponent_Conditional_5_Conditional_0_Template, 1, 7, "select-loading", 5)(1, FeatureGeneralComponent_Conditional_5_Conditional_1_Template, 4, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "div", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "input", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "label", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, "Fecha precio");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](6, FeatureGeneralComponent_Conditional_5_Conditional_6_Template, 1, 7, "select-loading", 8)(7, FeatureGeneralComponent_Conditional_5_Conditional_7_Template, 4, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "div", 9)(9, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](10, "input", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "F.Envio");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "app-input-time", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("valorEmit", function FeatureGeneralComponent_Conditional_5_Template_app_input_time_valorEmit_13_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r20);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r19.setHoraEnvio($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](14, "div", 2)(15, "select", 14)(16, "option", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17, "Seleccionar");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, FeatureGeneralComponent_Conditional_5_option_18_Template, 2, 3, "option", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](19, "label", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](20, "Cond. Vta");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](21, FeatureGeneralComponent_Conditional_5_Conditional_21_Template, 1, 6, "select-loading", 18)(22, FeatureGeneralComponent_Conditional_5_Conditional_22_Template, 4, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](23, "div", 19)(24, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](25, "input", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](26, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](27, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](28, "Emitir factura pendiente de despacho");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](0, ctx_r2.permisos.modifListaPrecio ? 0 : 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("readonly", !ctx_r2.permisos.modifFechaPrecio);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](6, ctx_r2.permisos.modifVendedor ? 6 : 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("disabled", ctx_r2.visualizar)("valor", ctx_r2.getHoraEnvio())("showErrors", false)("floatLabel", true);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("value", -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r2.condVtas);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](21, ctx_r2.permisos.modifCanal ? 21 : 22);
  }
}
class FeatureGeneralComponent {
  constructor(fb, auth, comprobanteScopedService, confGralService, cdr) {
    this.fb = fb;
    this.auth = auth;
    this.comprobanteScopedService = comprobanteScopedService;
    this.confGralService = confGralService;
    this.cdr = cdr;
    this.canales = [];
    this.loadingCanales = false;
    this.vendedores = [];
    this.loadingVendedores = false;
    this.listaPrecios = [];
    this.loadingListaPrecios = false;
    this.sucursales = [];
    this.loadingSucursales = false;
    this.visualizar = false;
    this.edicion = false;
    //TODO SP SAD-261 supondremos que siempre se envian todos los permisos , en caso contrario debermos implementar un merge , por ahora no se hara
    this.permisos = this.getPermisosIniciales();
    this.emitFeatureGeneral = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.formData = this.fb.group({});
    this.condVtas = [{
      Id: 1,
      Nombre: 'Contado'
    }, {
      Id: 2,
      Nombre: 'Cta. Cte.'
    }];
  }
  ngOnInit() {
    //this.setVendedorPredeterminado(this.vendPredeterminado);
    this.initForm();
    this.formData.valueChanges.subscribe(data => {
      this.onEmit();
    });
  }
  ngOnChanges(changes) {
    if (changes['data'] && changes['data'].currentValue) {
      const newValues = {
        IdSucursal: this.data?.IdSucursal ?? -1,
        IdNombrePrecio: this.data?.IdNombrePrecio ?? -1,
        IdEmpleado: this.data?.IdEmpleado ?? -1,
        IdCanal: this.data?.IdCanal ?? -1,
        IdFormaPago: this.data?.IdFormaPago ?? 1,
        FechaPrecio: this.data?.FechaPrecio ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'YYYY-MM-DD'),
        FechaVencimiento: this.data?.FechaVencimiento ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'YYYY-MM-DD'),
        HoraEnvio: this.data?.HoraEnvio ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'HH:mm'),
        FacturarPendienteDespacho: this.getPendienteDespacho(this.data?.FacturarPendienteDespacho)
      };
      const patch = {};
      Object.keys(newValues).forEach(key => {
        if (this.formData.get(key) && this.formData.get(key).value !== newValues[key]) {
          patch[key] = newValues[key];
        }
      });
      if (Object.keys(patch).length > 0) {
        this.formData.patchValue(patch);
        //Si es modo visualizar deshabilito el formulario
        if (this.visualizar) {
          this.formData.disable();
        }
      }
    }
  }
  initForm() {
    this.formData.addControl('IdSucursal', this.fb.control(this.data?.IdSucursal ?? -1, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required])));
    switch (this.tipoComprobante) {
      case 19:
        this.formData.addControl('IdNombrePrecio', this.fb.control({
          value: this.data?.IdNombrePrecio ?? -1
        }, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.min(0)])));
        this.formData.addControl('FechaPrecio', this.fb.control(this.data?.FechaPrecio ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'YYYY-MM-DD'), _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required));
        this.formData.addControl('IdEmpleado', this.fb.control(this.data?.IdEmpleado ?? -1, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.min(0)])));
        this.formData.addControl('IdCanal', this.fb.control({
          value: this.data?.IdCanal ?? -1
        }, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.min(0)])));
        this.formData.addControl('IdFormaPago', this.fb.control(this.data?.IdFormaPago ?? 1, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.min(0)])));
        this.formData.addControl('FechaVencimiento', this.fb.control(this.data?.FechaVencimiento ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'YYYY-MM-DD')));
        this.formData.addControl('HoraEnvio', this.fb.control(this.data?.HoraEnvio ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'HH:mm')));
        this.formData.addControl('FacturarPendienteDespacho', this.fb.control(this.data?.FacturarPendienteDespacho == 'S' ? true : false, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_8__.Validators.required])));
        break;
      default:
        console.log('No se ha definido el formulario para este tipo de comprobante');
        break;
    }
    this.onEmit();
  }
  getPermisosIniciales() {
    return {
      modifSucursal: true,
      modifListaPrecio: true,
      modifVendedor: true,
      modifCanal: true,
      modifFechaPrecio: true
    };
  }
  onEmit() {
    this.emitFeatureGeneral.emit({
      label: 'General',
      data: {
        ...this.formData.value,
        IdFormaPago: +this.formData.value.IdFormaPago,
        FacturarPendienteDespacho: this.formData.value.FacturarPendienteDespacho ? 'S' : 'N'
      },
      valido: this.formData.valid
    });
  }
  getVendedores() {
    return [...this.vendedores];
  }
  getVendedorSelected() {
    return this.formData.get('IdEmpleado')?.value;
  }
  getVendedorSelectedNombre() {
    const vendedor = this.vendedores.find(v => v.Id === this.formData.get('IdEmpleado')?.value);
    return vendedor ? vendedor.Nombre : '';
  }
  setVendedorSelected($event) {
    this.formData.controls.IdEmpleado.setValue($event);
  }
  getPendienteDespacho(pendienteDesp) {
    if (pendienteDesp === 'N') {
      return false;
    } else if (pendienteDesp === 'S') {
      return true;
    } else {
      return false;
    }
  }
  getNombreTipoPrecio() {
    const tipoPrecio = this.listaPrecios.find(lp => lp.Id === this.formData.get('IdNombrePrecio')?.value);
    return tipoPrecio ? tipoPrecio.Nombre : '';
  }
  getNombreSucursal() {
    const sucursal = this.sucursales.find(s => s.Id === this.formData.get('IdSucursal')?.value);
    return sucursal ? sucursal.Nombre : '';
  }
  getNombreVendedor() {
    const vendedor = this.vendedores.find(v => v.Id === this.formData.get('IdEmpleado')?.value);
    return vendedor ? vendedor.Nombre : '';
  }
  getNombreCanal() {
    const canal = this.canales.find(c => c.Id === this.formData.get('IdCanal')?.value);
    return canal ? canal.Nombre : '';
  }
  getHoraEnvio() {
    return this.formData.get('HoraEnvio')?.value || (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'HH:mm');
  }
  setHoraEnvio(hora) {
    this.formData.controls.HoraEnvio.setValue(hora);
  }
  getSucursal() {
    return this.formData.get('IdSucursal')?.value || -1;
  }
  static #_ = this.ɵfac = function FeatureGeneralComponent_Factory(t) {
    return new (t || FeatureGeneralComponent)(_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_auth_service__WEBPACK_IMPORTED_MODULE_1__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_2__.ComprobanteScopedService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_3__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_7__.ChangeDetectorRef));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: FeatureGeneralComponent,
    selectors: [["app-feature-general"]],
    inputs: {
      data: "data",
      tipoComprobante: "tipoComprobante",
      canales: "canales",
      loadingCanales: "loadingCanales",
      vendedores: "vendedores",
      loadingVendedores: "loadingVendedores",
      listaPrecios: "listaPrecios",
      loadingListaPrecios: "loadingListaPrecios",
      sucursales: "sucursales",
      loadingSucursales: "loadingSucursales",
      visualizar: "visualizar",
      edicion: "edicion",
      permisos: "permisos"
    },
    outputs: {
      emitFeatureGeneral: "emitFeatureGeneral"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵNgOnChangesFeature"]],
    decls: 6,
    vars: 3,
    consts: [[1, "m-3"], [1, "form-grid", 3, "formGroup"], [1, "form-floating", "mb-3"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], ["idSelect", "sucursal", "label", "Sucursal", 3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "loading", "valueSelect"], ["idSelect", "tipoPrecio", "label", "Tipo precio", 3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "loading", "deshabilitado"], ["id", "fechaPrecio", "type", "date", "formControlName", "FechaPrecio", 1, "form-control", 3, "readonly"], ["for", "fechaPrecio"], ["idSelect", "vendedor", "label", "Vendedor", 3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "loading", "deshabilitado"], [1, "input-group", "mb-3"], [1, "form-floating"], ["id", "fechaVenc", "type", "date", "formControlName", "FechaVencimiento", 1, "form-control"], ["for", "fechaVenc"], ["id", "horaEnvio", "label", "H.Envio", 3, "disabled", "valor", "showErrors", "floatLabel", "valorEmit"], ["id", "formaPago", "formControlName", "IdFormaPago", 1, "form-select", "form-control"], ["disabled", "", 3, "value"], [3, "value", "readOnly", 4, "ngFor", "ngForOf"], ["for", "formaPago", "campoObligatorio", ""], ["idSelect", "canal", "label", "Canal", 3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "deshabilitado"], [1, "d-flex"], [1, "input-group-text"], ["type", "checkbox", "formControlName", "FacturarPendienteDespacho", 1, "form-check-input"], [1, "text-wrap"], ["idSelect", "tipoPrecio", "label", "Tipo precio", 3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], ["idSelect", "vendedor", "label", "Vendedor", 3, "defaultValue", "defaultString", "defaultValueDis", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"], [3, "value", "readOnly"], ["idSelect", "canal", "label", "Canal", 3, "defaultValue", "defaultString", "items", "valueSelected", "loading", "deshabilitado", "valueSelect"]],
    template: function FeatureGeneralComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "form", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, FeatureGeneralComponent_Conditional_3_Template, 3, 1)(4, FeatureGeneralComponent_Conditional_4_Template, 1, 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, FeatureGeneralComponent_Conditional_5_Template, 29, 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("formGroup", ctx.formData);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](3, !ctx.permisos.modifSucursal || ctx.edicion || ctx.formData.controls.IdSucursal.status === "DISABLED" ? 3 : 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵconditional"](5, ctx.tipoComprobante === 19 ? 5 : -1);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_4__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormControlName, _ui_select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_5__.SelectLoadingComponent, _ui_input_time_input_time_component__WEBPACK_IMPORTED_MODULE_6__.InputTimeComponent],
    styles: ["[_nghost-%COMP%]     input:focus, [_nghost-%COMP%]     input[type=date]::-webkit-calendar-picker-indicator:focus, [_nghost-%COMP%]     button:focus, [_nghost-%COMP%]     app-input-number input:focus, [_nghost-%COMP%]     select:focus, [_nghost-%COMP%]     select-loading select:focus, [_nghost-%COMP%]     textarea:focus {\n  outline: none;\n  box-shadow: 0 0 5px var(--bs-primary);\n}"]
  });
}

/***/ }),

/***/ 23794:
/*!*****************************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-ofertas/card-desc-especial/card-desc-especial.component.ts ***!
  \*****************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


class CardDescEspecialComponent {
  constructor() {}
  static #_ = this.ɵfac = function CardDescEspecialComponent_Factory(t) {
    return new (t || CardDescEspecialComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: CardDescEspecialComponent,
    selectors: [["app-card-desc-especial"]],
    inputs: {
      descuento: "descuento"
    },
    decls: 12,
    vars: 1,
    consts: [[1, "d-flex", "justify-content-center", "justify-content-md-start"], [1, "card", "mb-2", "border", "rounded", "card-descuento", "position-relative"], ["pTooltip", "Descuento Especial", 1, "position-absolute", "top-0", "end-0", "mt-1", "me-2", "text-white"], [1, "bx", "bxs-discount", "font-size-24"], [1, "card-body", "text-center"], [1, "card-percent"], [1, "rounded", "text-white"], [1, "font-size-12", "mb-2"], [1, "mdi", "mdi-clock"]],
    template: function CardDescEspecialComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "span", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4)(5, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6)(8, "p", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " Vigencia");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " dd/mm/yyyy - dd/mm/yyyy ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.descuento.PjeDescuento, "%");
      }
    },
    dependencies: [primeng_tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip],
    styles: [".card-descuento[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, var(--bs-secondary), var(--bs-light));\n  position: relative;\n  overflow: hidden;\n  width: 100%;\n  padding: 8px 12px;\n  border-radius: 8px;\n  color: var(--bs-white);\n}\n.card-descuento[_ngcontent-%COMP%]   .card-percent[_ngcontent-%COMP%] {\n  font-size: 32px;\n  font-weight: bold;\n  background: linear-gradient(135deg, var(--bs-success), var(--bs-success-bg-subtle));\n  -webkit-background-clip: text;\n  -webkit-text-fill-color: transparent;\n  background-clip: text;\n  color: transparent;\n}\n.card-descuento[_ngcontent-%COMP%]::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 4px;\n  height: 100%;\n  border-radius: 8px 0 0 8px;\n  background: linear-gradient(180deg, var(--bs-success), var(--bs-success-bg-subtle) 80%);\n  z-index: 2;\n  transition: background 0.4s;\n}\n.card-descuento[_ngcontent-%COMP%]::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  pointer-events: none;\n  border-radius: 8px;\n  background: linear-gradient(120deg, var(--bs-secondary), #434343 30%, var(--bs-secondary) 70%, var(--bs-light));\n  background-size: 200% 200%;\n  opacity: 0.5;\n  animation: _ngcontent-%COMP%_gradient-move 5s ease-in-out infinite;\n}\n@keyframes _ngcontent-%COMP%_gradient-move {\n  0% {\n    background-position: 0% 50%;\n  }\n  50% {\n    background-position: 100% 50%;\n  }\n  100% {\n    background-position: 0% 50%;\n  }\n}"]
  });
}

/***/ }),

/***/ 57133:
/*!*********************************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-ofertas/card-oferta-temporal/card-oferta-temporal.component.ts ***!
  \*********************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CardOfertaTemporalComponent: () => (/* binding */ CardOfertaTemporalComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);



const _c0 = a0 => [a0, "ARS", "symbol", "1.2-2", "es-AR"];
class CardOfertaTemporalComponent {
  constructor() {}
  static #_ = this.ɵfac = function CardOfertaTemporalComponent_Factory(t) {
    return new (t || CardOfertaTemporalComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: CardOfertaTemporalComponent,
    selectors: [["app-card-oferta-temporal"]],
    inputs: {
      ofertaPT: "ofertaPT"
    },
    decls: 21,
    vars: 22,
    consts: [[1, "card", "card-oferta"], ["pTooltip", "Oferta temporal", 1, "position-absolute", "top-0", "end-0", "mt-1", "me-2", "text-white"], [1, "mdi", "mdi-tag-outline", "font-size-24"], [1, "mdi", "mdi-clock", "font-size-24"], [1, "card-body", "text-center"], [1, "card-title", "text-white", "fw-bold", "font-size-18", "mt-2"], [1, "card-text", "text-white"], [1, "mdi", "mdi-clock", "font-size-16"], [1, "d-flex", "justify-content-around"], [1, "card-price"], [1, "mb-1"]],
    template: function CardOfertaTemporalComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "span", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 2)(3, "i", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4)(5, "h5", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "p", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 8)(11, "div", 9)(12, "p", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Neto");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](15, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 9)(17, "p", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Final");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](20, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" (", ctx.ofertaPT.CodigoOferta, ") ", ctx.ofertaPT.NombreOferta, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx.ofertaPT.FechaInicioOferta, " - ", ctx.ofertaPT.FechaFinOferta, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBindV"](15, 6, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](18, _c0, ctx.ofertaPT.PrecioNeto)), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBindV"](20, 12, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](20, _c0, ctx.ofertaPT.PrecioFinal)), " ");
      }
    },
    dependencies: [primeng_tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip, _angular_common__WEBPACK_IMPORTED_MODULE_2__.CurrencyPipe],
    styles: [".card-oferta[_ngcontent-%COMP%] {\n  background: linear-gradient(315deg, var(--bs-secondary), #434343 40%, var(--bs-light) 100%);\n  position: relative;\n  overflow: hidden;\n  width: 100%;\n  padding: 8px 12px;\n  border-radius: 8px;\n  color: var(--bs-white);\n}\n.card-oferta[_ngcontent-%COMP%]::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 4px;\n  height: 100%;\n  border-radius: 8px 0 0 8px;\n  background: linear-gradient(180deg, var(--bs-success), var(--bs-success-bg-subtle) 80%);\n  z-index: 2;\n  transition: background 0.4s;\n}\n.card-oferta[_ngcontent-%COMP%]::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  pointer-events: none;\n  border-radius: 8px;\n  background: linear-gradient(120deg, var(--bs-secondary), #434343 30%, var(--bs-secondary) 70%, var(--bs-light));\n  background-size: 200% 200%;\n  opacity: 0.5;\n  animation: _ngcontent-%COMP%_gradient-move 5s ease-in-out infinite;\n}\n@keyframes _ngcontent-%COMP%_gradient-move {\n  0% {\n    background-position: 0% 50%;\n  }\n  50% {\n    background-position: 100% 50%;\n  }\n  100% {\n    background-position: 0% 50%;\n  }\n}\n.card-oferta[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%] {\n  font-size: 16px;\n  display: -webkit-box;\n  line-clamp: 2;\n  -webkit-line-clamp: 2; \n\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.card-price[_ngcontent-%COMP%] {\n  font-size: 16px;\n  font-weight: 500;\n  color: var(--bs-white);\n}"]
  });
}

/***/ }),

/***/ 89110:
/*!***************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-ofertas/card-oferta/card-oferta.component.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


class CardOfertaComponent {
  constructor() {}
  static #_ = this.ɵfac = function CardOfertaComponent_Factory(t) {
    return new (t || CardOfertaComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: CardOfertaComponent,
    selectors: [["app-card-oferta"]],
    inputs: {
      oferta: "oferta"
    },
    decls: 12,
    vars: 6,
    consts: [[1, "card", "card-oferta"], ["pTooltip", "Oferta", 1, "position-absolute", "top-0", "end-0", "mt-1", "me-2", "text-white"], [1, "mdi", "mdi-tag-outline", "font-size-24"], [1, "card-body", "text-center"], [1, "card-title", "text-white", "fw-bold", "font-size-18", "mt-2"], [1, "card-text"], [1, "text-truncate", 3, "pTooltip"], [1, "mdi", "mdi-clock", "font-size-16"]],
    template: function CardOfertaComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "span", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "h5", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "p", 5)(7, "span", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "i", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" (", ctx.oferta.Codigo, ") ", ctx.oferta.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("pTooltip", ctx.oferta.Descripcion);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.oferta.Descripcion);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx.oferta.FechaInicio, " - ", ctx.oferta.FechaFin, " ");
      }
    },
    dependencies: [primeng_tooltip__WEBPACK_IMPORTED_MODULE_1__.Tooltip],
    styles: [".card-oferta[_ngcontent-%COMP%] {\n  background: linear-gradient(315deg, var(--bs-secondary), #434343 40%, var(--bs-light) 100%);\n  position: relative;\n  overflow: hidden;\n  width: 100%;\n  padding: 8px 12px;\n  border-radius: 8px;\n  color: var(--bs-white);\n}\n.card-oferta[_ngcontent-%COMP%]::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 4px;\n  height: 100%;\n  border-radius: 8px 0 0 8px;\n  background: linear-gradient(180deg, var(--bs-success), var(--bs-success-bg-subtle) 80%);\n  z-index: 2;\n  transition: background 0.4s;\n}\n.card-oferta[_ngcontent-%COMP%]::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  pointer-events: none;\n  border-radius: 8px;\n  background: linear-gradient(120deg, var(--bs-secondary), #434343 30%, var(--bs-secondary) 70%, var(--bs-light));\n  background-size: 200% 200%;\n  opacity: 0.5;\n  animation: _ngcontent-%COMP%_gradient-move 5s ease-in-out infinite;\n}\n@keyframes _ngcontent-%COMP%_gradient-move {\n  0% {\n    background-position: 0% 50%;\n  }\n  50% {\n    background-position: 100% 50%;\n  }\n  100% {\n    background-position: 0% 50%;\n  }\n}\n.card-oferta[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%] {\n  font-size: 16px;\n  display: -webkit-box;\n  line-clamp: 2;\n  -webkit-line-clamp: 2; \n\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.card-oferta[_ngcontent-%COMP%]   .card-text[_ngcontent-%COMP%] {\n  display: -webkit-box;\n  line-clamp: 4;\n  -webkit-line-clamp: 4; \n\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.card-price[_ngcontent-%COMP%] {\n  font-size: 16px;\n  font-weight: 500;\n  color: var(--bs-white);\n}"]
  });
}

/***/ }),

/***/ 99722:
/*!*******************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/feature-ofertas/feature-ofertas.component.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FeatureOfertasComponent: () => (/* binding */ FeatureOfertasComponent)
/* harmony export */ });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-cliente/seleccionar-cliente.component */ 45198);
/* harmony import */ var src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/pages/dashboards/core/seleccionar-articulo/seleccionar-articulo.component */ 62656);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 65879);
/* 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_core_cliente_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/articulo.service */ 44355);
/* harmony import */ var src_app_core_services_core_oferta_item_pt_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/core/oferta-item-pt.service */ 72551);
/* harmony import */ var src_app_core_services_core_oferta_item_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/oferta-item.service */ 67301);
/* harmony import */ var src_app_core_services_core_descuentoEspecial_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/descuentoEspecial.service */ 21073);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/table */ 94267);
/* harmony import */ var _ui_seleccionar_seleccionar_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../ui/seleccionar/seleccionar.component */ 79355);
/* harmony import */ var _card_oferta_temporal_card_oferta_temporal_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./card-oferta-temporal/card-oferta-temporal.component */ 57133);
/* harmony import */ var _card_desc_especial_card_desc_especial_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./card-desc-especial/card-desc-especial.component */ 23794);





















function FeatureOfertasComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 5)(1, "h5", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2);
    _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__["ɵɵtextInterpolate1"](" ", ctx_r0.busqueda ? "Consulta de Ofertas" : "Ofertas Aplicadas", " ");
  }
}
function FeatureOfertasComponent_Conditional_3_option_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "option", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const lista_r8 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", lista_r8.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", lista_r8.Nombre, " ");
  }
}
function FeatureOfertasComponent_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "form", 2)(1, "div", 7)(2, "div", 8)(3, "app-seleccionar", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("emitSelect", function FeatureOfertasComponent_Conditional_3_Template_app_seleccionar_emitSelect_3_listener($event) {
      _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.seleccionarArticuloResult($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](5, "input", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](6, "div", 8)(7, "select", 11)(8, "option", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](9, "No aplica");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](10, FeatureOfertasComponent_Conditional_3_option_10_Template, 2, 2, "option", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](11, "div", 8)(12, "app-seleccionar", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("emitSelect", function FeatureOfertasComponent_Conditional_3_Template_app_seleccionar_emitSelect_12_listener($event) {
      _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.seleccionarClienteResult($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](13, "div", 15)(14, "button", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function FeatureOfertasComponent_Conditional_3_Template_button_click_14_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.consultarOfertasYDescuentos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](15, " Buscar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("formGroup", ctx_r1.formControl);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("service", ctx_r1.articuloService)("buscarPor", "codigo")("componente", ctx_r1.articuloComp)("multiple", false)("placeholder", "Buscar articulo...")("searchLength", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx_r1.listasPrecios);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("service", ctx_r1.clienteService)("buscarPor", "codigo")("componente", ctx_r1.clienteComp)("multiple", false)("placeholder", "Buscar cliente...")("search", ctx_r1.codigoCliente)("searchLength", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("disabled", ctx_r1.formControl.invalid);
  }
}
function FeatureOfertasComponent_Conditional_4_For_1_For_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-card-oferta-temporal", 21);
  }
  if (rf & 2) {
    const ofertaPT_r22 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ofertaPT", ofertaPT_r22);
  }
}
function FeatureOfertasComponent_Conditional_4_For_1_For_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-card-desc-especial", 22);
  }
  if (rf & 2) {
    const descuento_r27 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("descuento", descuento_r27);
  }
}
const _c0 = a0 => ({
  "custom-selected-oferta": a0
});
function FeatureOfertasComponent_Conditional_4_For_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 18)(1, "h3", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterCreate"](4, FeatureOfertasComponent_Conditional_4_For_1_For_5_Template, 1, 1, "app-card-oferta-temporal", 21, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterCreate"](6, FeatureOfertasComponent_Conditional_4_For_1_For_7_Template, 1, 1, "app-card-desc-especial", 22, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterTrackByIndex"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const articulo_r15 = ctx.$implicit;
    const $index_r16 = ctx.$index;
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](3, _c0, $index_r16 === 0 && ctx_r13.idArticulo));
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate2"](" (", articulo_r15.CodigoArticulo, ") ", articulo_r15.Articulo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeater"](articulo_r15.OfertasPT);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeater"](articulo_r15.DescuentosEspeciales);
  }
}
function FeatureOfertasComponent_Conditional_4_ForEmpty_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " No hay ofertas aplicadas. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function FeatureOfertasComponent_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterCreate"](0, FeatureOfertasComponent_Conditional_4_For_1_Template, 8, 5, "div", 18, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterTrackByIndex"], false, FeatureOfertasComponent_Conditional_4_ForEmpty_2_Template, 2, 0, "div", 24);
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeater"](ctx_r2.ofertasXArticulo);
  }
}
function FeatureOfertasComponent_Conditional_5_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "h4");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, "Ofertas Temporales");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function FeatureOfertasComponent_Conditional_5_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "tr", 32)(1, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "th", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](4, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](6, "Fecha Inicio");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](7, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](8, "Fecha Fin");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](9, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](10, "Precio Neto");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](11, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](12, "Precio Final");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](13, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](14, "Lista Precio");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
}
const _c1 = a0 => [a0, "ARS", "symbol", "1.2-2", "es-AR"];
function FeatureOfertasComponent_Conditional_5_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "td", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](7, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](9, "td", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](11, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](12, "td", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipe"](14, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](15, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const oferta_r37 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate"](oferta_r37.CodigoOferta);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate"](oferta_r37.NombreOferta);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate"](oferta_r37.FechaInicioOferta);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate"](oferta_r37.FechaFinOferta);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBindV"](11, 7, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](19, _c1, oferta_r37.PrecioNeto)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpipeBindV"](14, 13, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵpureFunction1"](21, _c1, oferta_r37.PrecioFinal)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", oferta_r37.PrecioVta, " ");
  }
}
function FeatureOfertasComponent_Conditional_5_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "tr")(1, "td", 36)(2, "div", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, " No hay ofertas temporales para este art\u00EDculo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
  }
}
function FeatureOfertasComponent_Conditional_5_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "tr")(1, "td", 36)(2, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](3, " Cargando ofertas temporales... ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
  }
}
function FeatureOfertasComponent_Conditional_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 25)(1, "p-table", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, FeatureOfertasComponent_Conditional_5_ng_template_2_Template, 2, 0, "ng-template", 27)(3, FeatureOfertasComponent_Conditional_5_ng_template_3_Template, 15, 0, "ng-template", 28)(4, FeatureOfertasComponent_Conditional_5_ng_template_4_Template, 17, 23, "ng-template", 29)(5, FeatureOfertasComponent_Conditional_5_ng_template_5_Template, 4, 0, "ng-template", 30)(6, FeatureOfertasComponent_Conditional_5_ng_template_6_Template, 4, 0, "ng-template", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("value", ctx_r3.ofertasTemporales)("resizableColumns", true)("scrollable", true);
  }
}
function FeatureOfertasComponent_Conditional_6_For_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-card-oferta-temporal", 21);
  }
  if (rf & 2) {
    const ofertaPT_r41 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ofertaPT", ofertaPT_r41);
  }
}
function FeatureOfertasComponent_Conditional_6_ForEmpty_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " No hay ofertas temporales para este art\u00EDculo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function FeatureOfertasComponent_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "h4", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, "Ofertas Temporales");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](2, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterCreate"](3, FeatureOfertasComponent_Conditional_6_For_4_Template, 1, 1, "app-card-oferta-temporal", 21, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterTrackByIndex"], false, FeatureOfertasComponent_Conditional_6_ForEmpty_5_Template, 2, 0, "div", 24);
    _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"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeater"](ctx_r4.ofertasTemporales);
  }
}
function FeatureOfertasComponent_Conditional_7_For_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](0, "app-card-desc-especial", 22);
  }
  if (rf & 2) {
    const descuento_r48 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("descuento", descuento_r48);
  }
}
function FeatureOfertasComponent_Conditional_7_ForEmpty_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, " No hay descuentos especiales para este art\u00EDculo. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
}
function FeatureOfertasComponent_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "h4", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](1, "Descuentos Especiales");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](2, "div", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterCreate"](3, FeatureOfertasComponent_Conditional_7_For_4_Template, 1, 1, "app-card-desc-especial", 22, _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeaterTrackByIndex"], false, FeatureOfertasComponent_Conditional_7_ForEmpty_5_Template, 2, 0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrepeater"](ctx_r5.descuentosEspeciales);
  }
}
function FeatureOfertasComponent_Conditional_8_Template(rf, ctx) {
  if (rf & 1) {
    const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 39)(1, "button", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function FeatureOfertasComponent_Conditional_8_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r54);
      const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r53.closeModal());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "Cerrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
  }
}
class FeatureOfertasComponent {
  constructor(modalService, fb, clienteService, articuloService, ofertaPTService, ofertaService, descuentoEspecialService) {
    this.modalService = modalService;
    this.fb = fb;
    this.clienteService = clienteService;
    this.articuloService = articuloService;
    this.ofertaPTService = ofertaPTService;
    this.ofertaService = ofertaService;
    this.descuentoEspecialService = descuentoEspecialService;
    this.ofertasXArticulo = [];
    this.modal = false;
    this.listasPrecios = [];
    this.busqueda = false;
    this.listaPrecio = [];
    this.clienteComp = src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_1__.SeleccionarClienteComponent;
    this.articuloComp = src_app_pages_dashboards_core_seleccionar_articulo_seleccionar_articulo_component__WEBPACK_IMPORTED_MODULE_2__.SeleccionarArticuloComponent;
    this.ofertas = [];
    this.ofertasTemporales = [];
    this.descuentosEspeciales = [];
  }
  ngOnInit() {
    this.ofertasXArticulo.sort((a, b) => {
      if (a.IdArticulo === this.idArticulo) return -1;
      if (b.IdArticulo === this.idArticulo) return 1;
      return 0;
    });
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_13__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_14__["default"]);
    this.formControl = this.fb.group({
      IdArticulo: [, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.Validators.required],
      Fecha: [this.fecha ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'YYYY-MM-DD'), _angular_forms__WEBPACK_IMPORTED_MODULE_15__.Validators.required],
      IdListaPrecios: [this.idListaPrecios ?? -1],
      CheckDescuentos: [true],
      IdCliente: []
    });
  }
  ngOnChanges(changes) {
    if (changes['idArticulo']) {
      if (this.idArticulo) {
        this.ofertasXArticulo.sort((a, b) => {
          if (a.IdArticulo === this.idArticulo) return -1;
          if (b.IdArticulo === this.idArticulo) return 1;
          return 0;
        });
        if (!this.modal) {
          const contenedor = document.getElementById('contenedor-sidebar-2');
          if (contenedor) {
            setTimeout(() => {
              contenedor.scrollTo({
                top: 0,
                behavior: 'smooth'
              });
            });
          }
        }
      }
    }
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  closeModal() {
    this.modalService.close();
  }
  seleccionarArticuloResult($event) {
    this.formControl.get('IdArticulo')?.setValue($event.result);
  }
  seleccionarClienteResult($event) {
    this.formControl.get('IdCliente')?.setValue($event.result);
  }
  //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETAs
  // consultarOfertas() {
  //   let datos: any = {
  //     OfertaActiva: 'S',
  //     OfertaBajaLogica: 'N',
  //     IdsArticulos: this.formControl.get('IdArticulo')?.value
  //   };
  //   if (this.formControl.get('IdListaPrecios')?.value != -1) {
  //     datos.IdListaPrecios = this.formControl.get('IdListaPrecios')?.value;
  //   }
  //   if (
  //     this.formControl.get('Fecha')?.value != '' &&
  //     this.formControl.get('Fecha')?.value != undefined
  //   ) {
  //     datos.Fecha = formatFecha(this.formControl.get('Fecha')?.value);
  //   }
  //   const susc = this.ofertaService.getPorArticulo(datos).subscribe((res) => {
  //     this.ofertas = res.Data.length > 0 ? res.Data[0].Ofertas : [];
  //   });
  //   susc.unsubscribe;
  // }
  consultarOfertasTemporales() {
    let datos = {
      OfertaActiva: 'S',
      OfertaBajaLogica: 'N',
      IdsArticulo: this.formControl.get('IdArticulo')?.value
    };
    if (this.formControl.get('IdListaPrecios')?.value != -1) {
      //datos.IdsListaPrecio = this.formControl.get('IdListaPrecios')?.value;
      datos.IdsListaPrecioItem = this.formControl.get('IdListaPrecios')?.value;
    }
    if (this.formControl.get('Fecha')?.value != '' && this.formControl.get('Fecha')?.value != null) {
      datos.Fecha = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.formatFecha)(this.formControl.get('Fecha')?.value);
    }
    const susc = this.ofertaPTService.getPorArticulo(datos).subscribe(res => {
      this.ofertasTemporales = res.Data.length > 0 ? res.Data[0].Ofertas : [];
    });
    susc.unsubscribe;
  }
  consultarDescuentosEspeciales() {
    let data = {
      IdsArticulos: this.formControl.get('IdArticulo')?.value,
      IdsClientes: this.formControl.get('IdCliente')?.value,
      Fecha: (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.formatFecha)(this.formControl.get('Fecha')?.value)
    };
    const susc = this.descuentoEspecialService.fetch(data).subscribe(res => {
      this.descuentosEspeciales = res.Data || [];
    });
    susc.unsubscribe;
  }
  consultarOfertasYDescuentos() {
    //TODO SP SAD-315 se oculta temporalmente para version 6.0 BETA
    //this.consultarOfertas();
    this.consultarOfertasTemporales();
    if (this.formControl.get('IdCliente')?.value != null && this.formControl.get('IdCliente')?.value >= -1) {
      this.consultarDescuentosEspeciales();
    } else {
      this.descuentosEspeciales = [];
    }
  }
  static #_ = this.ɵfac = function FeatureOfertasComponent_Factory(t) {
    return new (t || FeatureOfertasComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_16__.NgbActiveModal, 8), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_4__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_articulo_service__WEBPACK_IMPORTED_MODULE_5__.ArticuloService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_oferta_item_pt_service__WEBPACK_IMPORTED_MODULE_6__.OfertaItemPtService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_oferta_item_service__WEBPACK_IMPORTED_MODULE_7__.OfertaItemService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_core_services_core_descuentoEspecial_service__WEBPACK_IMPORTED_MODULE_8__.DescuentoEspecialService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({
    type: FeatureOfertasComponent,
    selectors: [["app-feature-ofertas"]],
    inputs: {
      ofertasXArticulo: "ofertasXArticulo",
      modal: "modal",
      fecha: "fecha",
      idListaPrecios: "idListaPrecios",
      listasPrecios: "listasPrecios",
      codigoCliente: "codigoCliente",
      idArticulo: "idArticulo",
      busqueda: "busqueda"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵNgOnChangesFeature"]],
    decls: 9,
    vars: 11,
    consts: [["class", "modal-header"], [2, "min-height", "200px"], [3, "formGroup"], ["class", "mt-3"], ["class", "modal-footer"], [1, "modal-header"], [1, "modal-title"], [1, "row", "gap-2", "position-relative"], [1, "col-12", "col-md-5"], [3, "service", "buscarPor", "componente", "multiple", "placeholder", "searchLength", "emitSelect"], ["type", "date", "name", "Fecha", "id", "Fecha", "formControlName", "Fecha", 1, "form-control"], ["name", "IdListaPrecios", "id", "IdListaPrecios", "formControlName", "IdListaPrecios", 1, "form-select"], ["value", "-1"], [3, "value", 4, "ngFor", "ngForOf"], [3, "service", "buscarPor", "componente", "multiple", "placeholder", "search", "searchLength", "emitSelect"], [1, "d-flex", "justify-content-center", "justify-content-md-end", "mt-1"], [1, "btn", "btn-primary", 3, "disabled", "click"], [3, "value"], [3, "ngClass"], [1, "mt-2"], [1, "d-flex", "flex-column", "justify-content-center", "gap-2"], [3, "ofertaPT"], [3, "descuento"], [1, "alert", "alert-info", "text-center"], ["class", "alert alert-info text-center"], [1, "mt-3"], ["dataKey", "IdOferta", "styleClass", "p-datatable-sm", "columnResizeMode", "expand", "scrollHeight", "400px", 3, "value", "resizableColumns", "scrollable"], ["pTemplate", "caption"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], ["pTemplate", "loading"], [1, "text-center"], ["colspan", "2"], ["colspan", "2", 1, "text-wrap"], [1, "text-end"], ["colspan", "12"], [1, "alert", "alert-danger", "text-center"], [1, "d-flex", "flex-column", "flex-md-row", "justify-content-center", "justify-content-md-start", "gap-2"], [1, "modal-footer"], [1, "btn", "btn-secondary", 3, "click"]],
    template: function FeatureOfertasComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](1, FeatureOfertasComponent_Conditional_1_Template, 3, 1, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](2, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, FeatureOfertasComponent_Conditional_3_Template, 16, 16, "form", 2)(4, FeatureOfertasComponent_Conditional_4_Template, 3, 1)(5, FeatureOfertasComponent_Conditional_5_Template, 7, 3, "div", 3)(6, FeatureOfertasComponent_Conditional_6_Template, 6, 1)(7, FeatureOfertasComponent_Conditional_7_Template, 6, 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](8, FeatureOfertasComponent_Conditional_8_Template, 3, 0, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassMap"](ctx.modal ? "modal-content vh-custom" : "m-3 position-relative");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](1, ctx.modal ? 1 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵclassMap"](ctx.modal ? "overlay overlay-block cursor-default modal-body " : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](3, ctx.busqueda ? 3 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](4, !ctx.busqueda ? 4 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](5, ctx.busqueda && !ctx.isMobile() ? 5 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](6, ctx.busqueda && ctx.isMobile() ? 6 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](7, ctx.busqueda ? 7 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵconditional"](8, ctx.modal ? 8 : -1);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_17__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_15__["ɵNgNoValidate"], _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, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormControlName, primeng_table__WEBPACK_IMPORTED_MODULE_18__.Table, _ui_seleccionar_seleccionar_component__WEBPACK_IMPORTED_MODULE_9__.SeleccionarComponent, _card_oferta_temporal_card_oferta_temporal_component__WEBPACK_IMPORTED_MODULE_10__.CardOfertaTemporalComponent, _card_desc_especial_card_desc_especial_component__WEBPACK_IMPORTED_MODULE_11__.CardDescEspecialComponent, _angular_common__WEBPACK_IMPORTED_MODULE_13__.CurrencyPipe],
    styles: ["[_nghost-%COMP%]     .p-datatable-table > .p-datatable-thead > tr > th {\n  background-color: var(--bs-primary); \n\n  color: white !important; \n\n}\n\n[_nghost-%COMP%]     .bg-custom-color {\n  background-color: var(--bs-primary) !important; \n\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-header {\n  border-width: 1px 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-footer {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-paginator-top {\n  border-width: 0 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {\n  border-width: 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {\n  border-width: 1px 0 0 1px !important;\n  border-color: var(--bs-primary) !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n  border-width: 1px 1px 0 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {\n  border-width: 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n  border-width: 1px 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {\n  border-width: 1px 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {\n  border-width: 0 0 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {\n  border-width: 0 1px 1px 1px !important;\n  border-color: var(--bs-primary) !important;\n}\n\n@media (max-width: 768px) {\n  .vh-custom[_ngcontent-%COMP%] {\n    height: 100vh !important;\n  }\n}\n\n.custom-selected-oferta[_ngcontent-%COMP%] {\n  padding: 8px;\n  background-color: rgba(var(--bs-primary-rgb), 0.07);\n  border: 2px solid var(--bs-primary);\n  border-radius: 8px;\n}"]
  });
}

/***/ }),

/***/ 14503:
/*!********************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/features-comprobante/features-comprobante.component.ts ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FeaturesComprobanteComponent: () => (/* binding */ FeaturesComprobanteComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 69384);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../comprobante-scoped.service */ 6170);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _feature_general_feature_general_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./feature-general/feature-general.component */ 83503);
/* harmony import */ var _feature_consulta_articulo_feature_consulta_articulo_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./feature-consulta-articulo/feature-consulta-articulo.component */ 12703);
/* harmony import */ var _feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./feature-ofertas/feature-ofertas.component */ 99722);















const _c0 = ["tabsWrapper"];
const _c1 = ["GENERAL"];
const _c2 = ["OFERTAS"];
const _c3 = ["CONSULTAARTICULO"];
function FeaturesComprobanteComponent_ng_container_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "a", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeaturesComprobanteComponent_ng_container_9_Template_a_click_1_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r12);
      const i_r10 = restoredCtx.index;
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r11.navChange(i_r10));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const tab_r9 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", tab_r9.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](tab_r9.label);
  }
}
function FeaturesComprobanteComponent_ng_container_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainer"](2, 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const tab_r13 = ctx.$implicit;
    const i_r14 = ctx.index;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("id", "contenedor-sidebar-" + i_r14)("hidden", ctx_r2.navActive !== i_r14);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngTemplateOutlet", tab_r13.component);
  }
}
function FeaturesComprobanteComponent_ng_template_13_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "app-feature-general", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitFeatureGeneral", function FeaturesComprobanteComponent_ng_template_13_Template_app_feature_general_emitFeatureGeneral_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r15.onFeature($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("visualizar", ctx_r3.visualizar)("edicion", ctx_r3.edicion)("data", ctx_r3.dataGeneral)("tipoComprobante", ctx_r3.tipoComprobante)("canales", ctx_r3.canales)("vendedores", ctx_r3.vendedores)("sucursales", ctx_r3.sucursales)("vendPredeterminado", ctx_r3.vendPredeterminado)("vendZonaCliente", ctx_r3.vendZonaCliente)("listaPrecios", ctx_r3.listaPrecios)("permisos", ctx_r3.permisos)("loadingVendedores", ctx_r3.comprobanteScopedService.loadingVendedores)("loadingCanales", ctx_r3.comprobanteScopedService.loadingCanales)("loadingSucursales", ctx_r3.comprobanteScopedService.loadingSucursales)("loadingListaPrecios", ctx_r3.comprobanteScopedService.loadingListaPrecios);
  }
}
function FeaturesComprobanteComponent_ng_template_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "app-feature-ofertas", 16);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("modal", false)("idArticulo", ctx_r5.idArticuloOferta)("ofertasXArticulo", ctx_r5.ofertasAplicadas);
  }
}
const _c4 = () => ["Datos", "Stock"];
const _c5 = a0 => ({
  tabs: a0
});
function FeaturesComprobanteComponent_ng_template_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "app-feature-consulta-articulo", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitCodigoBusqueda", function FeaturesComprobanteComponent_ng_template_17_Template_app_feature_consulta_articulo_emitCodigoBusqueda_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r18);
      const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r17.codigoConsultaArt = $event);
    })("emitirArticulo", function FeaturesComprobanteComponent_ng_template_17_Template_app_feature_consulta_articulo_emitirArticulo_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r18);
      const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r19.onArticuloCargado($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("modal", false)("configuraciones", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](5, _c4)))("codigo", ctx_r7.codigoConsultaArt)("listaPrecios", ctx_r7.getListaPrecioSelected())("navActive", ctx_r7.navActiveConsultaArt);
  }
}
class FeaturesComprobanteComponent {
  onMouseDown(event) {
    event.preventDefault(); // Evita la selección de texto
    this.isDragging = true;
    this.startX = event.pageX - this.tabsWrapper.nativeElement.offsetLeft;
    this.scrollLeft = this.tabsWrapper.nativeElement.scrollLeft;
  }
  onMouseMove(event) {
    if (!this.isDragging) return;
    event.preventDefault();
    const x = event.pageX - this.tabsWrapper.nativeElement.offsetLeft;
    const walk = (x - this.startX) * 1; // Ajusta la velocidad del desplazamiento
    this.tabsWrapper.nativeElement.scrollLeft = this.scrollLeft - walk;
  }
  onMouseUp() {
    this.isDragging = false;
  }
  constructor(fb, config, comprobanteScopedService, auth, cdr) {
    this.fb = fb;
    this.config = config;
    this.comprobanteScopedService = comprobanteScopedService;
    this.auth = auth;
    this.cdr = cdr;
    this.visualizar = false;
    this.edicion = false; // Indica si es una edición de un comprobante existente
    this.emitFeatureAction = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.listaPrecios = [];
    this.canales = [];
    this.vendedores = [];
    this.sucursales = [];
    this.vendZonaCliente = false;
    this.vendPredeterminado = -1;
    this.canalPredeterminado = -1;
    this.navActive = 0;
    this.permisos = {
      modifSucursal: false,
      modifListaPrecio: false,
      modifVendedor: false,
      modifCanal: false,
      modifFechaPrecio: false,
      consultarArticulo: true
    };
    this.tabs = [];
    this.codigoConsultaArt = '';
    this.navActiveConsultaArt = 0;
    this.ofertasAplicadas = [];
    this.isDragging = false;
    this.startX = 0;
    this.scrollLeft = 0;
  }
  ngOnInit() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      //SE CARGA NRO TIPO COMPROBANTE y PERMISOS
      _this.tipoComprobante = _this.comprobanteScopedService.tipoComprobante;
      _this.cargarPermisos();
      //SE CARGAN LISTAS PRECIOS, CANALES, VENDEDORES, SUCURSALES
      _this.comprobanteScopedService.listaPrecios$.subscribe(res => {
        _this.listaPrecios = res;
      });
      _this.comprobanteScopedService.canales$.subscribe(res => {
        _this.canales = res;
      });
      _this.comprobanteScopedService.vendedores$.subscribe(res => {
        _this.vendedores = res;
      });
      _this.comprobanteScopedService.sucursales$.subscribe(res => {
        _this.sucursales = res;
      });
      //SE CARGAN DATOS DE CONFIGURACION
      if (_this.config._config.ComprobanteFilterVendZonaCliente == 'S') {
        _this.vendZonaCliente = true;
      }
      if (_this.config._config.ComprobanteVendPred != -1) {
        _this.vendPredeterminado = _this.config._config.ComprobanteVendPred;
      }
      if (_this.config._config.ComprobanteCanalPred != -1) {
        _this.canalPredeterminado = _this.config._config.ComprobanteCanalPred;
      }
      //SE INICIALIZAN TABS Y FEATURES
      _this.initTabs();
      _this.initFeatures();
      //Observo cambios en el header del comprobante para actualizar listas precios, vendedores y recargar articulos si es necesario
      _this.comprobanteScopedService.formHeaderComprobante$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_10__.pairwise)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_11__.map)(([prev, curr]) => ({
        prev,
        curr
      }))).subscribe( /*#__PURE__*/function () {
        var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (res) {
          if (res.curr && res.curr.data?.Cliente?.IdCliente != res.prev?.data?.Cliente?.IdCliente) {
            try {
              yield _this.comprobanteScopedService.cargarVendedores(res.curr.data.Cliente);
              const idEmpleado = _this.dataGeneral.IdEmpleado && _this.estaVendedor(_this.dataGeneral.IdEmpleado) ? _this.dataGeneral.IdEmpleado : _this.getEmpleadoPredeterminado(_this.vendedores);
              _this.dataGeneral = {
                ..._this.dataGeneral,
                IdEmpleado: idEmpleado
              };
            } catch (error) {
              console.error('Error al cargar vendedores:', error);
            }
          }
          if (res.prev && res.curr && res.curr.data?.Cliente?.IdCliente != res.prev?.data?.Cliente?.IdCliente) {
            if (_this.comprobanteScopedService.articulos.articulos.length > 0) {
              _this.comprobanteScopedService.recargarArticulos(true);
            }
            const idNombrePrecio = _this.comprobanteScopedService.getListaPrecioPorCliente(res.curr.data.Cliente, _this.listaPrecios)?.Id ?? (_this.listaPrecios.length > 0 ? _this.listaPrecios[0].Id : -1);
            _this.dataGeneral = {
              ..._this.dataGeneral,
              IdNombrePrecio: idNombrePrecio
            };
          }
          if (res.prev && res.curr && res.curr?.data?.Fecha != res.prev?.data?.Fecha) {
            if (_this.comprobanteScopedService.articulos.articulos.length > 0) {
              _this.comprobanteScopedService.recargarArticulos(true);
            }
            _this.dataGeneral = {
              ..._this.dataGeneral,
              FechaPrecio: res.curr.data.Fecha
            };
          }
          //SP IMPORTANTE SI QUEREMOS DEBUGGEAR AQUI USAR CONSOLE.LOG DEBIDO AL ASYNC EL DEVTOOLS y zone.js NO MUESTRA this
          //muestra todo undefined con debugger
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
      // Quiero escuchar articulos$ para saber si se disparo alguna actions
      _this.comprobanteScopedService.articulos$.subscribe(res => {
        if (res.articulos && res.articulos.length > 0) {
          _this.ofertasAplicadas = (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.FiltrarOfertasAplicables)(_this.comprobanteScopedService.getOfertasAplicables(), res.articulos);
        } else {
          _this.ofertasAplicadas = [];
        }
        if (res.actions && res.actions.label) {
          switch (res.actions.label) {
            case 'CA':
              _this.navActive = _this.getTabId('Consulta Art.'); // Cambia a la pestaña de Consulta Art.
              _this.codigoConsultaArt = res.actions.params;
              break;
            case 'COA':
              _this.navActive = _this.getTabId('Ofertas'); // Cambia a la pestaña de Consulta Ofertas.
              _this.idArticuloOferta = res.actions.params;
              break;
            default:
              console.log('No se ha definido la acción');
              break;
          }
        }
      });
      // this.comprobanteScopedService.ofertasAplicables$.subscribe((ofertas) => {
      // });
    })();
  }
  ngAfterViewChecked() {
    // Detectar cambios para que se actualice la vista después de que se modifique el DOM
    this.cdr.detectChanges();
  }
  getTabId(tabLabel) {
    const index = this.tabs.findIndex(tab => tab.label === tabLabel);
    return index;
  }
  estaVendedor(idEmpleado) {
    return this.vendedores.findIndex(v => v.Id === idEmpleado) !== -1;
  }
  initFeatures() {
    this.comprobanteScopedService.objectComprobante$.subscribe(res => {
      if (res) {
        switch (this.tipoComprobante) {
          case 19:
            this.dataGeneral = {
              IdSucursal: res.IdSucursal,
              IdNombrePrecio: res.IdNombrePrecio,
              FechaPrecio: res.FechaPrecio,
              IdEmpleado: res.IdEmpleado,
              IdCanal: res.IdCanal,
              FechaVencimiento: res.FechaVencimiento,
              HoraEnvio: res.HoraEnvio,
              IdFormaPago: res.IdFormaPago,
              FacturarPendienteDespacho: res.FacturarPendienteDespacho
            };
            break;
          default:
            console.log('No se ha definido el tipo de comprobante');
            break;
        }
      }
    });
  }
  initTabs() {
    switch (this.tipoComprobante) {
      case 19:
        this.tabs.push({
          label: 'General',
          icon: 'mdi mdi-form-select',
          component: this.generalTemplate
        });
        break;
      default:
        console.log('No se ha definido el tipo de comprobante');
        break;
    }
    if (!this.isMobile() && !this.visualizar) {
      if (this.permisos.consultarArticulo) {
        this.tabs.push({
          label: 'Consulta Art.',
          icon: 'mdi mdi-text-box-search-outline',
          component: this.consultaArticuloTemplate
        });
      }
      this.tabs.push({
        label: 'Ofertas',
        icon: 'mdi mdi-sale',
        component: this.ofertasTemplate
      });
    }
  }
  getListaPrecioPorCliente(cliente, listaPrecios) {
    if (!cliente || !listaPrecios || listaPrecios.length === 0) {
      return null;
    } else {
      return (
        //SP Esto es para la version modal , deshabilitado por ahora
        //listaPrecios.find((lp: any) => lp.Id == cliente.PrecioVta.Id) || null
        listaPrecios.find(lp => lp.Id == cliente.IdPrecioVentaUsado) || null
      );
    }
  }
  getEmpleadoPredeterminado(vendedores) {
    if (!vendedores || vendedores.length === 0) return -1;
    let index = vendedores.findIndex(v => v.Id == this.vendPredeterminado);
    return index != -1 ? vendedores[index].Id : vendedores[0].Id;
  }
  getCanalPredeterminado(canales) {
    let index = canales.findIndex(c => c.Id == this.canalPredeterminado);
    return index != -1 ? this.canales[index].Id : canales.length > 0 ? canales[0].Id : -1;
  }
  onFeature($event) {
    switch ($event.label) {
      case 'General':
        this.dataGeneral = {
          ...$event.data
        };
        this.comprobanteScopedService.setTabComprobante({
          ...$event
        });
        break;
      case 'Consulta Art.':
        this.codigoConsultaArt = $event.data.codigo;
        this.navActiveConsultaArt = 0;
        this.comprobanteScopedService.setTabComprobante({
          ...$event
        });
        break;
      case 'Ofertas':
        this.navActiveConsultaArt = 1;
        this.comprobanteScopedService.setTabComprobante({
          ...$event
        });
        break;
      default:
        console.log('No se ha definido el tab');
        break;
    }
  }
  cargarPermisos() {
    if (this.tipoComprobante == 19) {
      this.permisos.modifListaPrecio = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_LISTA_PRECIOS_COMPROBANTE);
      this.permisos.modifCanal = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_CANAL_COMPROBANTE);
      this.permisos.modifSucursal = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_SUCURSAL_COMPROBANTE);
      this.permisos.modifVendedor = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_VENDEDOR_COMPROBANTE);
      this.permisos.modifFechaPrecio = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_MODIF_FECHA_LISTA_PRECIOS_COMPROBANTE);
      this.permisos.selectContado = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_EMITIR_COMPROBANTE_CONTADO);
      this.permisos.selectCtaCte = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_1__.PERMISO_EMITIR_COMPROBANTE_CTA_CTE);
      // this.permisos.consultarArticulo = this.auth.hasPermiso(
      //   PERMISOS.PERMISO_CONSULTA_ARTICULO_COMPROBANTE
      // );
    }
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  navChange(id) {
    this.navActive = id;
  }
  getListaPrecioSelected() {
    return this.listaPrecios.find(lp => lp.Id === this.dataGeneral.IdNombrePrecio) || null;
  }
  onArticuloCargado(articulo) {
    this.emitFeatureAction.emit({
      tab: 'Consulta Art.',
      action: 'agregar',
      data: articulo
    });
  }
  static #_ = this.ɵfac = function FeaturesComprobanteComponent_Factory(t) {
    return new (t || FeaturesComprobanteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_12__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_3__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__.ComprobanteScopedService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_9__.ChangeDetectorRef));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: FeaturesComprobanteComponent,
    selectors: [["app-features-comprobante"]],
    viewQuery: function FeaturesComprobanteComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c1, 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c2, 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c3, 7);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.tabsWrapper = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.generalTemplate = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.ofertasTemplate = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.consultaArticuloTemplate = _t.first);
      }
    },
    inputs: {
      visualizar: "visualizar",
      edicion: "edicion"
    },
    outputs: {
      emitFeatureAction: "emitFeatureAction"
    },
    decls: 19,
    vars: 6,
    consts: [["ngbNav", "", 1, "nav-tabs", "justify-content-start", 3, "activeId", "destroyOnHide", "activeIdChange"], ["mainNavMobile", "ngbNav"], ["ngbDropdown", "", "role", "presentation", 1, "nav-item"], ["type", "button", "ngbDropdownToggle", "", 1, "nav-link", 2, "border", "1px solid var(--bs-border-color)"], [3, "ngClass"], ["ngbDropdownMenu", ""], [4, "ngFor", "ngForOf"], [1, "float-end", "mt-2", "me-3", "pointer", 3, "click"], [1, "bx", "bx-undo", "font-size-20"], ["GENERAL", ""], ["OFERTAS", ""], ["CONSULTAARTICULO", ""], ["ngbDropdownItem", "", 3, "click"], [2, "height", "calc(100% - 40px)", "overflow-y", "auto", "border", "1px solid var(--bs-border-color)", 3, "id", "hidden"], [3, "ngTemplateOutlet"], [3, "visualizar", "edicion", "data", "tipoComprobante", "canales", "vendedores", "sucursales", "vendPredeterminado", "vendZonaCliente", "listaPrecios", "permisos", "loadingVendedores", "loadingCanales", "loadingSucursales", "loadingListaPrecios", "emitFeatureGeneral"], [3, "modal", "idArticulo", "ofertasXArticulo"], [3, "modal", "configuraciones", "codigo", "listaPrecios", "navActive", "emitCodigoBusqueda", "emitirArticulo"]],
    template: function FeaturesComprobanteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "ul", 0, 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("activeIdChange", function FeaturesComprobanteComponent_Template_ul_activeIdChange_0_listener($event) {
          return ctx.navActive = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "li", 2)(3, "button", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](4, "i", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, " \u00A0 ");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](9, FeaturesComprobanteComponent_ng_container_9_Template, 6, 2, "ng-container", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "span", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function FeaturesComprobanteComponent_Template_span_click_10_listener() {
          return ctx.navChange(0);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](11, "i", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](12, FeaturesComprobanteComponent_ng_container_12_Template, 3, 3, "ng-container", 6)(13, FeaturesComprobanteComponent_ng_template_13_Template, 1, 15, "ng-template", null, 9, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"])(15, FeaturesComprobanteComponent_ng_template_15_Template, 1, 3, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"])(17, FeaturesComprobanteComponent_ng_template_17_Template, 1, 8, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("activeId", ctx.navActive)("destroyOnHide", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx.tabs[ctx.navActive] == null ? null : ctx.tabs[ctx.navActive].icon);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"]((ctx.tabs[ctx.navActive] == null ? null : ctx.tabs[ctx.navActive].label) || "Funcionalidades");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx.tabs);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx.tabs);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_13__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgTemplateOutlet, _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, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbDropdownItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__.NgbNav, _feature_general_feature_general_component__WEBPACK_IMPORTED_MODULE_6__.FeatureGeneralComponent, _feature_consulta_articulo_feature_consulta_articulo_component__WEBPACK_IMPORTED_MODULE_7__.FeatureConsultaArticuloComponent, _feature_ofertas_feature_ofertas_component__WEBPACK_IMPORTED_MODULE_8__.FeatureOfertasComponent],
    styles: ["@charset \"UTF-8\";\n.tabs-container[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  position: relative;\n  background-color: var(--bs-primary-bg);\n}\n\n.tabs-wrapper[_ngcontent-%COMP%] {\n  flex: 1;\n  overflow-x: auto;\n  white-space: nowrap; \n\n  scroll-behavior: smooth; \n\n  cursor: grab; \n\n  -webkit-user-select: none;\n          user-select: none;\n  scrollbar-width: none; \n\n}\n\n.tabs-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar {\n  display: none; \n\n}\n\n.tabs-wrapper[_ngcontent-%COMP%]:active {\n  cursor: grabbing; \n\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n  display: inline-flex; \n\n  gap: 0.5rem; \n\n}"]
  });
}

/***/ }),

/***/ 17018:
/*!****************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/footer-comprobante/footer-comprobante.component.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FooterComprobanteComponent: () => (/* binding */ FooterComprobanteComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 69384);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 37398);
/* 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 _descuentos_generales_descuentos_generales_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../descuentos-generales/descuentos-generales.component */ 81665);
/* harmony import */ var src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/metodos/comprobantes */ 36575);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../comprobante-scoped.service */ 6170);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 96814);













const _c0 = ["OBS"];
function FooterComprobanteComponent_li_3_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "i");
  }
  if (rf & 2) {
    const tab_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵclassMap"](tab_r4.icon);
  }
}
function FooterComprobanteComponent_li_3_ng_template_4_ng_template_0_Template(rf, ctx) {}
function FooterComprobanteComponent_li_3_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](0, FooterComprobanteComponent_li_3_ng_template_4_ng_template_0_Template, 0, 0, "ng-template", 20);
  }
  if (rf & 2) {
    const tab_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngTemplateOutlet", tab_r4.component);
  }
}
function FooterComprobanteComponent_li_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "li", 16)(1, "button", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, FooterComprobanteComponent_li_3_i_2_Template, 1, 2, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, FooterComprobanteComponent_li_3_ng_template_4_Template, 1, 1, "ng-template", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const tab_r4 = ctx.$implicit;
    const i_r5 = ctx.index;
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngbNavItem", i_r5 + 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", tab_r4.icon);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", tab_r4.label, " ");
  }
}
function FooterComprobanteComponent_ng_template_30_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "textarea", 23);
  }
}
function FooterComprobanteComponent_ng_template_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](1, FooterComprobanteComponent_ng_template_30_Conditional_1_Template, 1, 0, "textarea", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("formGroup", ctx_r2.formFooterComprobante);
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵconditional"](1, ctx_r2.formFooterComprobante.get("Descripcion") ? 1 : -1);
  }
}
const _c1 = () => ({
  height: "70%"
});
const _c2 = () => ({
  height: "100%"
});
const _c3 = () => ({
  height: "30%"
});
const _c4 = (a0, a1) => ({
  "btn-outline-warning": a0,
  "btn-warning": a1
});
const _c5 = a0 => ({
  "text-danger": a0
});
const _c6 = a0 => [a0, "ARS", "symbol", "1.2-2", "es-AR"];
class FooterComprobanteComponent {
  constructor(fb, modalService, comprobanteScopedService, auth) {
    this.fb = fb;
    this.modalService = modalService;
    this.comprobanteScopedService = comprobanteScopedService;
    this.auth = auth;
    this.visualizar = false;
    this.articulosSignal = (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.signal)([]);
    this.active = 1;
    this.tabs = [];
    this.permisos = {
      modifDescGeneral: false
    };
    //SIGNALS
    this.articulosLength = (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.computed)(() => this.articulosSignal().length);
    this.subTotal = (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.computed)(() => {
      if (this.articulosLength() == 0 || this.articulosSignal() == null) {
        return 0;
      } else {
        //sumatoria de los precios finales de los articulos
        return this.articulosSignal().reduce((acc, art) => acc + (art.TotalFinal || 0), 0);
      }
    });
    this.descGeneral = (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.signal)({
      Importe1: 0,
      Desc1: 0,
      Desc2: 0,
      Desc3: 0,
      TotalDescuento: 0,
      TotalPorcentaje: 0
    });
    this.totalFinal = (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.computed)(() => this.subTotal() - this.descGeneral()?.TotalDescuento || 0);
    this.formFooterComprobante = this.fb.group({});
  }
  ngOnInit() {
    this.cargarPermisos();
    this.tipoComprobante = this.comprobanteScopedService.tipoComprobante;
    this.comprobanteScopedService.articulos$.subscribe(res => {
      this.articulosSignal.set([...res.articulos]);
      this.descGeneral.set({
        Importe1: this.subTotal() * (this.descGeneral().Desc1 / 100),
        Desc1: this.descGeneral().Desc1,
        Desc2: this.descGeneral().Desc2,
        Desc3: this.descGeneral().Desc3,
        TotalDescuento: (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.totalDescuentoGral)({
          Subtotal: this.subTotal(),
          ...this.descGeneral()
        }),
        TotalPorcentaje: this.descGeneral().TotalPorcentaje
      });
      this.onEmitFooter();
    });
    this.comprobanteScopedService.formHeaderComprobante$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.pairwise)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.map)(([prev, curr]) => ({
      prev,
      curr
    }))).subscribe(({
      prev,
      curr
    }) => {
      if (!curr?.data.Cliente) {
        this.resetSignalDescuentosGenerales();
      } else {
        if (!prev && curr?.data.Cliente) {
          this.descGeneral.set({
            Importe1: this.subTotal() * (curr?.data.Cliente.Descuento / 100),
            Desc1: this.comprobanteScopedService.objectComprobante.PjeDescuento1,
            Desc2: this.comprobanteScopedService.objectComprobante.PjeDescuento2,
            Desc3: this.comprobanteScopedService.objectComprobante.PjeDescuento3,
            TotalDescuento: (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.totalDescuentoGral)({
              Subtotal: this.subTotal(),
              Desc1: this.comprobanteScopedService.objectComprobante.PjeDescuento1,
              Desc2: this.comprobanteScopedService.objectComprobante.PjeDescuento2,
              Desc3: this.comprobanteScopedService.objectComprobante.PjeDescuento3
            }),
            TotalPorcentaje: (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.GetPjeDescuento)((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.GetPjeDescuento)(this.comprobanteScopedService.objectComprobante.PjeDescuento1, this.comprobanteScopedService.objectComprobante.PjeDescuento2), this.comprobanteScopedService.objectComprobante.PjeDescuento3)
          });
        }
        if (prev && prev?.data.Cliente?.IdCliente !== curr?.data.Cliente?.IdCliente) {
          this.descGeneral.set({
            Importe1: this.subTotal() * (curr?.data.Cliente.Descuento / 100),
            Desc1: curr?.data.Cliente.Descuento,
            Desc2: curr?.data.Cliente.Descuento2,
            Desc3: curr?.data.Cliente.Descuento3,
            TotalDescuento: (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.totalDescuentoGral)({
              Subtotal: this.subTotal(),
              Desc1: curr?.data.Cliente.Descuento,
              Desc2: curr?.data.Cliente.Descuento2,
              Desc3: curr?.data.Cliente.Descuento3
            }),
            TotalPorcentaje: (0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.GetPjeDescuento)((0,src_app_core_utils_metodos_comprobantes__WEBPACK_IMPORTED_MODULE_2__.GetPjeDescuento)(curr?.data.Cliente.Descuento, curr?.data.Cliente.Descuento2), curr?.data.Cliente.Descuento3)
          });
        }
        this.onEmitFooter();
      }
    });
    this.initTabs();
    this.inicializarFormulario();
    this.suscForm = this.formFooterComprobante.valueChanges.subscribe(() => {
      this.onEmitFooter();
    });
  }
  cargarPermisos() {
    this.permisos.modifDescGeneral = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_3__.PERMISO_APLICAR_DESCUENTO_GENERAL_COMPROBANTE);
  }
  initTabs() {
    if (this.tipoComprobante == 19) {
      this.tabs.push({
        label: 'Obs.',
        icon: 'mdi mdi-chat-processing-outline',
        component: this.obsTemplate
      });
    }
  }
  inicializarFormulario() {
    this.comprobanteScopedService.objectComprobante$.subscribe(res => {
      if (res) {
        switch (this.comprobanteScopedService.tipoComprobante) {
          case 19:
            if (!this.formFooterComprobante.get('Descripcion')) {
              this.formFooterComprobante.addControl('Descripcion', this.fb.control({
                value: res.Descripcion ?? '',
                disabled: this.visualizar
              }, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_9__.Validators.maxLength(500)])));
            } else {
              this.formFooterComprobante.get('Descripcion').setValue(res.Descripcion ?? '', {
                emitEvent: false
              });
            }
            break;
          default:
            console.log('TIPO DE COMPROBANTE NO SOPORTADO');
            break;
        }
      }
      this.onEmitFooter();
    });
  }
  onEmitFooter() {
    this.comprobanteScopedService.setFooterComprobante({
      DescGeneral: {
        ...this.descGeneral()
      },
      SubTotal: this.subTotal(),
      TotalFinal: this.totalFinal(),
      data: this.formFooterComprobante.value,
      valido: this.formFooterComprobante.valid
    });
  }
  descuentosGenerales() {
    let modalRef = this.modalService.open(_descuentos_generales_descuentos_generales_component__WEBPACK_IMPORTED_MODULE_1__.DescuentosGeneralesComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_0__.getOptionsModal)('md'));
    modalRef.componentInstance.visualizar = this.visualizar || !this.permisos.modifDescGeneral;
    modalRef.componentInstance.DescData = {
      Subtotal: this.subTotal(),
      Importe1: this.descGeneral()?.Importe1 || 0,
      Desc1: this.descGeneral()?.Desc1 || 0,
      Desc2: this.descGeneral()?.Desc2 || 0,
      Desc3: this.descGeneral()?.Desc3 || 0,
      TotalPorcentaje: this.descGeneral()?.TotalPorcentaje || 0,
      TotalDescuento: this.descGeneral()?.TotalDescuento || 0
    };
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.descGeneral.set(resolve);
        this.onEmitFooter();
      }
    });
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  resetSignalDescuentosGenerales() {
    this.descGeneral.set({
      Importe1: 0,
      Desc1: 0,
      Desc2: 0,
      Desc3: 0,
      TotalDescuento: 0,
      TotalPorcentaje: 0
    });
  }
  static #_ = this.ɵfac = function FooterComprobanteComponent_Factory(t) {
    return new (t || FooterComprobanteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_4__.ComprobanteScopedService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_5__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({
    type: FooterComprobanteComponent,
    selectors: [["app-footer-comprobante"]],
    viewQuery: function FooterComprobanteComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵviewQuery"](_c0, 7);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵloadQuery"]()) && (ctx.obsTemplate = _t.first);
      }
    },
    inputs: {
      visualizar: "visualizar"
    },
    decls: 32,
    vars: 55,
    consts: [[1, "col-12", "col-md-8", "position-relative", "d-flex", "flex-column", 3, "ngStyle"], ["ngbNav", "", 1, "nav-tabs", "w-100", "position-sticky", "top-0", "bg-light", "fs-6", 3, "activeId", "destroyOnHide", "activeIdChange"], ["secondNav", "ngbNav"], [3, "ngbNavItem", 4, "ngFor", "ngForOf"], [1, "flex-grow-1", "overflow-auto", "w-100", 3, "ngbNavOutlet"], [1, "col-12", "col-md-4", "overflow-y-auto", 3, "ngStyle"], [1, "p-2", "fs-6"], [1, "d-flex", "justify-content-end", "text-muted", "mb-2"], [1, "btn", "btn-sm", 3, "ngClass", "click"], [1, "mdi", "mdi-percent-outline"], [1, "d-flex", "justify-content-between", "text-muted", "mb-2"], [3, "ngClass"], [1, "my-2", "border", "border-primary"], [1, "d-flex", "justify-content-between", "fw-bold", "fs-3"], [1, "text-base"], ["OBS", ""], [3, "ngbNavItem"], ["ngbNavLink", ""], [3, "class", 4, "ngIf"], ["ngbNavContent", ""], [3, "ngTemplateOutlet"], [1, "col-12", "col-md-8", "m-2", 3, "formGroup"], ["class", "form-control", "id", "observacion", "name", "observacion", "formControlName", "Descripcion", "rows", "4"], ["id", "observacion", "name", "observacion", "formControlName", "Descripcion", "rows", "4", 1, "form-control"]],
    template: function FooterComprobanteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 0)(1, "ul", 1, 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("activeIdChange", function FooterComprobanteComponent_Template_ul_activeIdChange_1_listener($event) {
          return ctx.active = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, FooterComprobanteComponent_li_3_Template, 5, 3, "li", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](4, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "div", 5)(6, "div", 6)(7, "div", 7)(8, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function FooterComprobanteComponent_Template_button_click_8_listener() {
          return ctx.descuentosGenerales();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](9, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](10, "div", 10)(11, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](12, "Subtotal:");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](15, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "div", 10)(17, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](18, "Pje Dto./Rec");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](19, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](20);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](21, "percent");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](22, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](23, "hr", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](24, "div", 13)(25, "span", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](26, "Total:");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](27, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](28);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipe"](29, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](30, FooterComprobanteComponent_ng_template_30_Template, 2, 2, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵreference"](2);
        let tmp_6_0;
        let tmp_9_0;
        let tmp_10_0;
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngStyle", ctx.isMobile() ? _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](36, _c1) : _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](37, _c2));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("activeId", ctx.active)("destroyOnHide", false);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx.tabs);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngbNavOutlet", _r0);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngStyle", ctx.isMobile() ? _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](38, _c3) : _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction0"](39, _c2));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction2"](40, _c4, ((tmp_6_0 = ctx.descGeneral()) == null ? null : tmp_6_0.TotalPorcentaje) <= 0, ((tmp_6_0 = ctx.descGeneral()) == null ? null : tmp_6_0.TotalPorcentaje) > 0));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](43, _c5, ctx.subTotal() < 0));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBindV"](15, 14, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](45, _c6, ctx.subTotal())), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](47, _c5, ((tmp_9_0 = ctx.descGeneral()) == null ? null : tmp_9_0.TotalDescuento) < 0));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBind3"](21, 20, ((tmp_10_0 = ctx.descGeneral()) == null ? null : tmp_10_0.TotalPorcentaje) / 100, "1.2-2", "es-AR"), " / ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBindV"](22, 24, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](49, _c6, (tmp_10_0 = ctx.descGeneral()) == null ? null : tmp_10_0.TotalDescuento)), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](51, _c5, ctx.totalFinal() < 0));
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpipeBindV"](29, 30, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](53, _c6, ctx.totalFinal())), " ");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgTemplateOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_11__.NgStyle, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatusGroup, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavContent, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNav, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavItem, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavItemRole, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavLinkButton, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavLinkBase, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbNavOutlet, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormControlName, _angular_common__WEBPACK_IMPORTED_MODULE_11__.PercentPipe, _angular_common__WEBPACK_IMPORTED_MODULE_11__.CurrencyPipe],
    styles: ["[_nghost-%COMP%]     input:focus, [_nghost-%COMP%]     input[type=date]::-webkit-calendar-picker-indicator:focus, [_nghost-%COMP%]     button:focus, [_nghost-%COMP%]     app-input-number input:focus, [_nghost-%COMP%]     select:focus, [_nghost-%COMP%]     select-loading select:focus, [_nghost-%COMP%]     textarea:focus {\n  outline: none;\n  box-shadow: 0 0 5px var(--bs-primary);\n}"]
  });
}

/***/ }),

/***/ 81629:
/*!****************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/header-comprobante/header-comprobante.component.ts ***!
  \****************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HeaderComprobanteComponent: () => (/* binding */ HeaderComprobanteComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/alertCustom.service */ 53206);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/metodos/metodos */ 38002);
/* harmony import */ var src_app_pages_dashboards_core_cargar_cliente_ocasional_cargar_cliente_ocasional_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/pages/dashboards/core/cargar-cliente-ocasional/cargar-cliente-ocasional.component */ 45804);
/* 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 _angular_common__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/permisos/permisos-comprobantes */ 28196);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/services/core/cliente.service */ 60189);
/* harmony import */ var src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/services/core/canal.service */ 84003);
/* harmony import */ var src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/services/core/empleado.service */ 23835);
/* harmony import */ var src_app_core_services_core_lista_precio_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/core/services/core/lista-precio.service */ 48881);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);
/* harmony import */ var src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/services/configGeneral.service */ 99757);
/* harmony import */ var _comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../comprobante-scoped.service */ 6170);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../core/directives/campo-obligatorio.directive */ 61528);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _ui_hotkeys_info_hotkeys_info_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../ui/hotkeys-info/hotkeys-info.component */ 2429);



























function HeaderComprobanteComponent_Conditional_7_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](0, "i", 22);
  }
}
function HeaderComprobanteComponent_Conditional_7_Conditional_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "i", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function HeaderComprobanteComponent_Conditional_7_Conditional_3_Template_i_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r6.recargarNumeroComprobante());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function HeaderComprobanteComponent_Conditional_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](1, HeaderComprobanteComponent_Conditional_7_Conditional_1_Template, 1, 0, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](3, HeaderComprobanteComponent_Conditional_7_Conditional_3_Template, 1, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](1, _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpipeBind1"](2, 1, ctx_r0._nroComprLoad$) ? 1 : 3);
  }
}
function HeaderComprobanteComponent_Conditional_14_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function HeaderComprobanteComponent_Conditional_14_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r8.onClick());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function HeaderComprobanteComponent_Conditional_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function HeaderComprobanteComponent_Conditional_19_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r10.getInfoClienteSeleccionado());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
}
function HeaderComprobanteComponent_div_25_Conditional_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function HeaderComprobanteComponent_div_25_Conditional_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r13.onSave());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](1, "i", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("disabled", !ctx_r12.validToSave());
  }
}
function HeaderComprobanteComponent_div_25_Template(rf, ctx) {
  if (rf & 1) {
    const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 28)(1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](2, "app-hotkeys-info", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](4, HeaderComprobanteComponent_div_25_Conditional_4_Template, 2, 1, "button", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "button", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("click", function HeaderComprobanteComponent_div_25_Template_button_click_5_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵrestoreView"](_r16);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵresetView"](ctx_r15.onClose());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](6, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("hotkeys", ctx_r3.notaPedidoHotkeys);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](4, !ctx_r3.visualizar ? 4 : -1);
  }
}
const _c0 = () => ({
  standalone: true
});
class HeaderComprobanteComponent {
  constructor(fb, modalService, clienteService, canalService, empleadoService, alert, listaPrecioService, auth, config, comprobanteScopedService, router, cdr) {
    this.fb = fb;
    this.modalService = modalService;
    this.clienteService = clienteService;
    this.canalService = canalService;
    this.empleadoService = empleadoService;
    this.alert = alert;
    this.listaPrecioService = listaPrecioService;
    this.auth = auth;
    this.config = config;
    this.comprobanteScopedService = comprobanteScopedService;
    this.router = router;
    this.cdr = cdr;
    this.visualizar = false;
    this.edicion = false;
    this.formHeaderComprobante = this.fb.group({
      TipoComprobante: [{
        value: null,
        disabled: true
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.min(0)])],
      Numero: [{
        value: '',
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.min(0)])],
      Fecha: [{
        value: null,
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required],
      Cliente: [{
        value: null,
        disabled: this.visualizar
      }, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.Validators.required]
    });
    this.suscForm = [];
    this.canales = [];
    this.empleados = [];
    this.listaPrecios = [];
    this.codigoCliente = '';
    this.clienteCollapsed = true;
    this._nroComprLoad$ = new rxjs__WEBPACK_IMPORTED_MODULE_18__.BehaviorSubject(false);
    //public nroComprLoad: boolean = false; // Indica si se está cargando el número del comprobante
    //Configuraciones
    this.configFilterVendZonaCliente = false;
    this.configFilterVendPred = -1;
    this.configFilterCanalPred = -1;
    this.permisos = {
      modifFecha: false,
      modifCliente: true
    };
    this.notaPedidoHotkeys = {
      nav: [{
        hotkey: 'Alt + 1',
        description: 'Moverse a la cabecera'
      }, {
        hotkey: 'Alt + 2',
        description: 'Moverse a la carga de artículos'
      }, {
        hotkey: 'Alt + 3',
        description: 'Moverse al resumen'
      }],
      actions: [{
        hotkey: 'Alt + A - F9',
        description: 'Guardar comprobante'
      }, {
        hotkey: 'Alt + C',
        description: 'Cancelar comprobante'
      }, {
        hotkey: 'Alt + F3',
        description: 'Búsqueda y selección (cliente,artículos)'
      }, {
        hotkey: 'Alt + Q',
        description: 'Busqueda y selección de artículos'
      }, {
        hotkey: 'Alt + W',
        description: 'Descuentos generales'
      }, {
        hotkey: 'F8',
        description: 'Abrir consulta de artículo'
      }, {
        hotkey: 'Alt + B',
        description: 'Abrir consulta de ofertas'
      }]
    };
    this.notaPedidoHotkeysVisualizar = {
      nav: [],
      actions: [{
        hotkey: 'Alt + C',
        description: 'Cerrar comprobante'
      }, {
        hotkey: 'Alt + D',
        description: 'Descuentos generales'
      }]
    };
  }
  ngOnInit() {
    this.cargarPermisos();
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_19__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_20__["default"]);
    if (this.visualizar) {
      this.notaPedidoHotkeys = this.notaPedidoHotkeysVisualizar;
    }
    this.tipoComprobante = this.comprobanteScopedService.tipoComprobante;
    this.inicializarFormulario();
    this.formHeaderComprobante.valueChanges.subscribe(changes => {
      if (changes.Fecha == '') {
        this.formHeaderComprobante.get('Fecha').setValue((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'YYYY-MM-DD'), {
          emitEvent: false
        });
      }
      this.onEmitHeader();
    });
  }
  ngAfterViewInit() {
    if (!this.isMobile()) {
      this.comprobanteScopedService.focusElement('Cliente');
    }
  }
  ngAfterViewChecked() {
    this.cdr.detectChanges(); // Detectar cambios para evitar problemas de cambio de vista
  }
  cargarPermisos() {
    this.permisos.modifFecha = this.auth.hasPermiso(src_app_core_utils_permisos_permisos_comprobantes__WEBPACK_IMPORTED_MODULE_6__.PERMISO_MODIF_FECHA_COMPROBANTE);
    // this.permisos.modifCliente = this.auth.hasPermiso(
    //   PERMISOS.PERMISO_MODIF_CLIENTE_COMPROBANTE
    // );
  }
  inicializarFormulario() {
    var _this = this;
    this.formHeaderComprobante.get('TipoComprobante').setValue(this.tipoComprobante);
    this.comprobanteScopedService.objectComprobante$.subscribe( /*#__PURE__*/function () {
      var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (res) {
        if (res) {
          let clienteInicial = null;
          try {
            /**
             * SP SAD-376 se obtiene configuracion de cliente consumidor final  o ocacional segun corresponda
             */
            let fetchCliente = yield _this.comprobanteScopedService.getClienteInicial(res.Cliente?.IdCliente ?? _this.getIdClienteInicial());
            if (res.Cliente) {
              clienteInicial = {
                ...res?.Cliente,
                ClienteZonas: fetchCliente?.Data?.ClienteZonas || []
              };
            } else {
              clienteInicial = _this.procesarCliente(fetchCliente.Data);
            }
          } catch (err) {
            _this.alert.showBasicAlert('Error', 'No se pudo cargar el cliente inicial', 'error');
          }
          // Cargar vendedores
          // await this.comprobanteScopedService.cargarVendedores(clienteInicial);
          // if (res.IdEmpleado) {
          //   let hayVendedor =
          //     this.comprobanteScopedService.vendedores.findIndex(
          //       (v) => v.Id === res.IdEmpleado
          //     );
          //   if (hayVendedor != -1) {
          //     let vendedorObj =
          //       await this.comprobanteScopedService.getVendedorById(
          //         res.IdEmpleado
          //       );
          //     if (vendedorObj) {
          //       this.comprobanteScopedService.setVendedores([
          //         vendedorObj,
          //         ...this.comprobanteScopedService.vendedores
          //       ]);
          //     }
          //   }
          // }
          _this.resetClienteValores();
          _this.formHeaderComprobante.get('Numero').setValue(res?.Numero ?? '', {
            emitEvent: false
          });
          _this.formHeaderComprobante.get('Cliente').setValue(clienteInicial, {
            emitEvent: false
          });
          if (clienteInicial) {
            _this.codigoCliente = clienteInicial.Codigo || '';
          }
          _this.formHeaderComprobante.get('Fecha').setValue(res?.Fecha ?? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_1__.format)(new Date(), 'YYYY-MM-DD'), {
            emitEvent: false
          });
          _this.onEmitHeader();
        }
      });
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }());
  }
  /**
   * SP SAD-376 se obtiene configuracion de cliente consumidor final  o ocacional segun corresponda
   * @returns Id del cliente a setear
   */
  getIdClienteInicial() {
    const modo = Number(this.config._config.ClienteIniciaFacturacion);
    if (modo === 0) {
      return Number(this.config._config.ClienteConsumidorFinal) || 0;
    }
    if (modo === 1) {
      return Number(this.config._config.ClienteOcasional) || 0;
    }
    // fallback seguro
    return Number(this.config._config.ClienteConsumidorFinal) || Number(this.config._config.ClienteOcasional) || 0;
  }
  onEmitHeader() {
    this.comprobanteScopedService.setFormHeaderComprobante({
      data: this.formHeaderComprobante.value,
      valido: this.formHeaderComprobante.valid
    });
  }
  onClick() {
    if (this.codigoCliente != '' && this.codigoCliente != null) {
      this.getCliente();
    } else {
      this.buscarClientes();
    }
  }
  onKeyboard($event) {
    if (this.codigoCliente != '' && this.codigoCliente != null && $event.key === 'Enter') {
      this.getCliente();
    }
    if ($event.altKey && $event.key === 'F3') {
      this.buscarClientes();
    }
  }
  /**
   * SP SAD-164 metodo requerido procesar el cliente obtenido por get de clientes y transformarlo al formato que requiere el comprobante
   * @param cliente
   * @returns
   */
  procesarCliente(cliente) {
    const objRes = {
      IdCliente: cliente.Id,
      IdClienteVenta: cliente.IdClienteVenta,
      Codigo: cliente.Codigo,
      NombreCompleto: cliente.NombreFiscal,
      NombreComercial: cliente.Nombre,
      Calle: cliente.CalleFiscal,
      CalleComercial: cliente.Calle ?? null,
      Numero: cliente.NumeroFiscal,
      NumeroComercial: cliente.Numero ?? null,
      Piso: cliente.PisoFiscal ?? '',
      Depto: cliente.Departamento,
      IdLocalidad: cliente.Localidad?.Id ?? null,
      IdProvincia: cliente.Localidad?.Provincia?.Id ?? null,
      IdTipoDoc: cliente.TipoDocumento?.Id ?? null,
      NroDoc: cliente.NroDoc,
      Telefono: cliente.TelefonoCelular ?? cliente.Telefono ?? '',
      Email: cliente.Email ?? '',
      IdRespIVA: cliente.RespIva?.Id ?? null,
      IdPrecioVentaUsado: cliente.PrecioVta.Id ?? -1,
      Descuento: cliente.Descuento ?? 0,
      Descuento2: cliente.Descuento2 ?? 0,
      Descuento3: cliente.Descuento3 ?? 0,
      EstadoCliente: cliente.EstadoCliente ?? '',
      ClienteZonas: cliente.ClienteZonas ?? []
    };
    return objRes;
  }
  /**
   * SP SAD-164 metodo para procesar los datos del cliente ocasional al requerido por el comprobante
   * @param clienteO
   * @param form
   * @returns
   */
  procesarClienteOcasional(clienteO, form) {
    const objRes = {
      ...clienteO,
      NombreCompleto: form.Nombre,
      NombreComercial: form.Nombre,
      /**
       * SP SAD-367 correccion de error de tipo en IdRespIVA
       */
      IdRespIVA: form.IdRespIVA,
      Calle: form.Calle,
      CalleComercial: form.Calle,
      Numero: form.NroCalle,
      NumeroComercial: form.NroCalle,
      IdLocalidad: form.Localidad.Id,
      IdProvincia: form.Localidad.Provincia.Id,
      IdTipoDoc: form.TipoDoc,
      NroDoc: form.NroDoc
    };
    return objRes;
  }
  getCliente() {
    var _this2 = this;
    let datos = {
      Codigo: this.codigoCliente
    };
    if (this.config._config.ComprobanteFilterVendZonaCliente == 'S') {
      datos.IncluirZona = 'S';
    }
    const susc = this.clienteService.fetch(datos).subscribe( /*#__PURE__*/function () {
      var _ref2 = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (res) {
        if (res.Data.length == 0) {
          _this2.alert.showBasicAlert('Error', 'No se encontraron clientes con el código ingresado', 'error');
        } else {
          if (res.Data[0].EstadoCliente == 'I') {
            _this2.alert.showBasicAlert('Advertencia', 'El cliente seleccionado se encuentra inactivo, no es posible generar un comprobante con este cliente', 'warning');
            // pedir el cliente inicial usando el id calculado
            let fetchCliente = yield _this2.comprobanteScopedService.getClienteInicial(_this2.getIdClienteInicial());
            _this2.formHeaderComprobante.get('Cliente').setValue(_this2.procesarCliente(fetchCliente.Data));
          } else {
            if (_this2.config._config.ClienteOcasional == res.Data[0].Id) {
              if (_this2.formHeaderComprobante.get('Cliente').value && _this2.formHeaderComprobante.get('Cliente').value.Id == _this2.config._config.ClienteOcasional) {
                _this2.getFormClienteOcasional(_this2.formHeaderComprobante.get('Cliente').value, true);
              } else {
                _this2.getFormClienteOcasional(_this2.procesarCliente(res.Data[0]));
              }
            } else {
              _this2.formHeaderComprobante.get('Cliente').setValue(_this2.procesarCliente(res.Data[0]));
            }
          }
        }
      });
      return function (_x2) {
        return _ref2.apply(this, arguments);
      };
    }());
  }
  getInfoClienteSeleccionado() {
    this.getFormClienteOcasional(this.formHeaderComprobante.get('Cliente').value, true, true);
  }
  getFormClienteOcasional(clienteOcasional, edicion = false, visualizar = false) {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_cargar_cliente_ocasional_cargar_cliente_ocasional_component__WEBPACK_IMPORTED_MODULE_4__.CargarClienteOcasionalComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.getOptionsModal)(window.innerWidth < 768 ? 'fullscreen' : 'lg'));
    if (edicion) {
      modalRef.componentInstance.clienteOcasional = {
        Nombre: clienteOcasional.NombreCompleto,
        IdRespIVA: clienteOcasional.IdRespIVA ?? 1,
        TipoDoc: clienteOcasional.IdTipoDoc ?? 3,
        NroDoc: clienteOcasional.NroDoc,
        Calle: clienteOcasional.Calle,
        NroCalle: clienteOcasional.Numero,
        IdProvincia: clienteOcasional.IdProvincia ?? -1,
        IdLocalidad: clienteOcasional.IdLocalidad ?? -1
      };
    }
    modalRef.componentInstance.visualizar = clienteOcasional.IdCliente != this.config._config.ClienteOcasional && visualizar || this.visualizar;
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formHeaderComprobante.get('Cliente').setValue(this.procesarClienteOcasional(clienteOcasional, resolve));
      }
    }).catch(err => {
      if (!this.formHeaderComprobante.get('Cliente')) {
        this.resetClienteValores();
      } else {
        this.codigoCliente = this.formHeaderComprobante.get('Cliente').value?.Codigo || '';
      }
    });
  }
  buscarClientes() {
    const modalRef = this.modalService.open(src_app_pages_dashboards_core_seleccionar_cliente_seleccionar_cliente_component__WEBPACK_IMPORTED_MODULE_5__.SeleccionarClienteComponent, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_3__.getOptionsModal)(window.innerWidth < 768 ? 'fullscreen' : 'xl'));
    modalRef.componentInstance.filtros = {
      Multiple: false,
      FocusInicial: 'nombre'
    };
    modalRef.result.then(resolve => {
      if (resolve !== undefined) {
        this.formHeaderComprobante.get('Cliente').setValue(this.procesarCliente(resolve.ClienteObj));
        this.codigoCliente = resolve.ClienteObj.Codigo;
      }
    });
  }
  hayCliente() {
    return this.formHeaderComprobante.get('Cliente')?.value != null;
  }
  getNombreCliente() {
    if (this.formHeaderComprobante.get('Cliente')?.value != null) {
      return this.formHeaderComprobante.get('Cliente')?.value.NombreCompleto;
    } else {
      return '';
    }
  }
  getNumeroComprobante() {
    if (this.formHeaderComprobante.get('Numero')?.value != null) {
      return this.formHeaderComprobante.get('Numero')?.value;
    } else {
      return '';
    }
  }
  getTipoComprobanteNombre() {
    switch (this.tipoComprobante) {
      case 19:
        return 'Nota de pedido';
      case 18:
        return 'Comprobante de venta';
      case 17:
        return 'Nota de crédito';
      case 16:
        return 'Nota de débito';
      case 15:
        return 'Factura de venta';
      case 14:
        return 'Factura de crédito';
      default:
        return '';
    }
  }
  recargarNumeroComprobante() {
    var _this3 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      _this3._nroComprLoad$.next(true);
      const res = yield _this3.comprobanteScopedService.getNumeroComprobante();
      _this3._nroComprLoad$.next(false);
      _this3.formHeaderComprobante.get('Numero').setValue(res);
    })();
  }
  borrarCliente() {
    this.formHeaderComprobante.get('Cliente').setValue(undefined);
    this.resetClienteValores();
  }
  resetClienteValores() {
    this.codigoCliente = '';
  }
  topWindowAndFocusTo(idElement) {
    setTimeout(() => {
      const interval = setInterval(() => {
        const element = document.getElementById(idElement);
        if (element) {
          clearInterval(interval);
          document.getElementById(idElement).focus();
          window.scrollTo({
            top: 0,
            behavior: 'smooth'
          });
          document.getElementById(idElement).click();
        }
      }, 50);
    }, 0);
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  onClose() {
    // if (!this.visualizar) {
    //   this.alert
    //     .showReturnAlert(
    //       '¿Está seguro que desea cerrar la nota de pedido?',
    //       'Se perderán los datos no guardados',
    //       'warning',
    //       'Cerrar',
    //       'Cancelar',
    //       true,
    //       'warning'
    //     )
    //     .then((result) => {
    //       if (result.value) {
    //         this.router.navigate(['/dashboards/notas-de-pedido']);
    //       }
    //     });
    // } else {
    this.router.navigate(['/dashboards/notas-de-pedido']);
    //}
  }
  onSave() {
    var _this4 = this;
    /**
     * SP SAD-376 Se agrega validacion para evitar multiples guardados
     */
    if (!this.comprobanteScopedService.tryStartSave()) {
      return; // ya hay un guardado en curso
    }
    //SP SAD-376 forzar el cierre de la celda en edicion
    this.comprobanteScopedService.requestCloseEditing();
    if (this.validToSave()) {
      let result = this.comprobanteScopedService.armarObjetoEnvioComprobante(this.edicion);
      if (!this.edicion) {
        this.comprobanteScopedService.postComprobante(result).subscribe({
          next: res => {
            if (res) {
              this.alert.showReturnAlert('Comprobante - ' + res.Numero + ' generado correctamente', '¿Desea descargar el comprobante?', 'warning', 'Aceptar', 'Cancelar', true, 'warning').then( /*#__PURE__*/function () {
                var _ref3 = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (result) {
                  if (result.value) {
                    _this4.comprobanteScopedService.imprimirComprobante(res);
                  } else {
                    if (_this4.config._config.ComprobanteSerie == 'S') {
                      _this4.comprobanteScopedService.setArticulos({
                        articulos: []
                      });
                      yield _this4.comprobanteScopedService.inicializarObjComprobante(undefined);
                      _this4.comprobanteScopedService.setOfertasAplicables([]);
                      //SAD-376 se reinicia el subject que controla si termino de guardar
                      _this4.comprobanteScopedService.endSave();
                    } else {
                      //SAD-376 se reinicia el subject que controla si termino de guardar
                      _this4.comprobanteScopedService.endSave();
                      _this4.router.navigate(['/dashboards/notas-de-pedido'], {
                        state: {
                          skipExitConfirmation: true
                        }
                      });
                    }
                  }
                });
                return function (_x3) {
                  return _ref3.apply(this, arguments);
                };
              }());
            }
          },
          error: err => {
            this.comprobanteScopedService.endSave();
          }
        });
      } else {
        this.comprobanteScopedService.putComprobante(result).subscribe({
          next: res => {
            this.alert.showReturnAlert('Comprobante - ' + res.Numero + ' modificado correctamente', '¿Desea descargar el comprobante?', 'warning', 'Aceptar', 'Cancelar', true, 'warning').then( /*#__PURE__*/function () {
              var _ref4 = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (result) {
                if (result.value) {
                  _this4.comprobanteScopedService.imprimirComprobante(res, true);
                } else {
                  //SAD-376 se reinicia el subject que controla si termino de guardar
                  _this4.comprobanteScopedService.endSave();
                  _this4.router.navigate(['/dashboards/notas-de-pedido'], {
                    state: {
                      skipExitConfirmation: true
                    }
                  });
                }
              });
              return function (_x4) {
                return _ref4.apply(this, arguments);
              };
            }());
          },
          error: err => {
            this.comprobanteScopedService.endSave();
          }
        });
      }
    } else {
      console.log('El comprobante no es valido, no se puede guardar');
    }
  }
  validToSave() {
    return this.comprobanteScopedService.comprobanteValido();
  }
  static #_ = this.ɵfac = function HeaderComprobanteComponent_Factory(t) {
    return new (t || HeaderComprobanteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_cliente_service__WEBPACK_IMPORTED_MODULE_7__.ClienteService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_canal_service__WEBPACK_IMPORTED_MODULE_8__.CanalService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_empleado_service__WEBPACK_IMPORTED_MODULE_9__.EmpleadoService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_core_lista_precio_service__WEBPACK_IMPORTED_MODULE_10__.ListaPrecioService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_11__.AuthService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](src_app_core_services_configGeneral_service__WEBPACK_IMPORTED_MODULE_12__.ConfigGeneralService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_comprobante_scoped_service__WEBPACK_IMPORTED_MODULE_13__.ComprobanteScopedService), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_22__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_16__.ChangeDetectorRef));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵdefineComponent"]({
    type: HeaderComprobanteComponent,
    selectors: [["app-header-comprobante"]],
    inputs: {
      visualizar: "visualizar",
      edicion: "edicion"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵProvidersFeature"]([src_app_core_services_alertCustom_service__WEBPACK_IMPORTED_MODULE_2__.AlertCustomService])],
    decls: 26,
    vars: 14,
    consts: [[1, "d-flex", "flex-column", "flex-md-row", "justify-content-center", "justify-content-md-around", "gap-1", 3, "formGroup"], [1, "col-12", "col-md-2"], [1, "form-control", "text-muted", "position-relative"], [1, "mb-0", "text-truncate"], [1, "mb-0"], ["class", "position-absolute top-50 end-0 translate-middle-y me-2 pointer"], [1, "col-12", "col-md-6"], [1, "input-group"], [1, "form-floating", 2, "width", "15%"], ["id", "Cliente", "type", "text", "mask", "0*", "placeholder", "C\u00F3digo", "autofocus", "", 1, "form-control", 3, "ngModel", "readonly", "disabled", "ngModelOptions", "ngModelChange", "keydown"], ["for", "Cliente", "campoObligatorio", "", 1, "form-label"], ["class", "btn btn-primary"], [1, "form-floating", 2, "width", "50%"], ["id", "NombreCliente", "type", "text", "readonly", "", "tabindex", "-1", 1, "form-control", 2, "pointer-events", "none", 3, "value"], ["for", "NombreCliente", "campoObligatorio", "", 1, "form-label"], ["class", "btn btn-info"], [1, "form-floating"], ["type", "date", "formControlName", "Fecha", 1, "form-control", 3, "readonly"], ["for", "Fecha", "campoObligatorio", "", 1, "form-label"], ["class", "col-auto align-self-center", 4, "ngIf"], [1, "position-absolute", "top-50", "end-0", "translate-middle-y", "me-2", "pointer"], ["class", "bx bx-sync bx-spin font-size-16 align-middle"], [1, "bx", "bx-sync", "bx-spin", "font-size-16", "align-middle"], [1, "bx", "bx-sync", "font-size-16", "align-middle", 3, "click"], [1, "btn", "btn-primary", 3, "click"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-info", 3, "click"], [1, "mdi", "mdi-account"], [1, "col-auto", "align-self-center"], [3, "hotkeys"], ["type", "button", "class", "btn btn-success", 3, "disabled"], ["type", "button", 1, "btn", "btn-secondary", 3, "click"], [1, "mdi", "mdi-close"], ["type", "button", 1, "btn", "btn-success", 3, "disabled", "click"], [1, "mdi", "mdi-content-save"]],
    template: function HeaderComprobanteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "p", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](5, "p", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](7, HeaderComprobanteComponent_Conditional_7_Template, 4, 3, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](8, "div", 6)(9, "div", 7)(10, "div", 8)(11, "input", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵlistener"]("ngModelChange", function HeaderComprobanteComponent_Template_input_ngModelChange_11_listener($event) {
          return ctx.codigoCliente = $event;
        })("keydown", function HeaderComprobanteComponent_Template_input_keydown_11_listener($event) {
          return !ctx.visualizar || !ctx.permisos.modifCliente ? ctx.onKeyboard($event) : null;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](12, "label", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](13, "C\u00F3d.");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](14, HeaderComprobanteComponent_Conditional_14_Template, 2, 0, "button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](15, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](16, "input", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](17, "label", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](18, "Cliente");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](19, HeaderComprobanteComponent_Conditional_19_Template, 2, 0, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](20, "div", 1)(21, "div", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelement"](22, "input", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementStart"](23, "label", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtext"](24, "Fecha");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtemplate"](25, HeaderComprobanteComponent_div_25_Template, 7, 2, "div", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("formGroup", ctx.formHeaderComprobante);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate"](ctx.getTipoComprobanteNombre());
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵtextInterpolate1"]("N.\u00BA ", ctx.getNumeroComprobante(), "");
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](7, !ctx.edicion && !ctx.visualizar ? 7 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngModel", ctx.codigoCliente)("readonly", ctx.visualizar || !ctx.permisos.modifCliente)("disabled", ctx.visualizar)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵpureFunction0"](13, _c0));
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](14, !ctx.visualizar && ctx.permisos.modifCliente ? 14 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("value", ctx.getNombreCliente());
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵconditional"](19, ctx.getNombreCliente() != "" ? 19 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("readonly", ctx.visualizar || !ctx.permisos.modifFecha);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_16__["ɵɵproperty"]("ngIf", !ctx.isMobile());
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_19__.NgIf, _core_directives_campo_obligatorio_directive__WEBPACK_IMPORTED_MODULE_14__.CampoObligatorioDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.NgModel, ngx_mask__WEBPACK_IMPORTED_MODULE_23__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_17__.FormControlName, _ui_hotkeys_info_hotkeys_info_component__WEBPACK_IMPORTED_MODULE_15__.HotkeysInfoComponent, _angular_common__WEBPACK_IMPORTED_MODULE_19__.AsyncPipe],
    styles: ["[_nghost-%COMP%]     input:focus, [_nghost-%COMP%]     input[type=date]::-webkit-calendar-picker-indicator:focus, [_nghost-%COMP%]     button:focus, [_nghost-%COMP%]     app-input-number input:focus, [_nghost-%COMP%]     select:focus, [_nghost-%COMP%]     select-loading select:focus, [_nghost-%COMP%]     textarea:focus {\n  outline: none;\n  box-shadow: 0 0 5px var(--bs-primary);\n}"]
  });
}

/***/ }),

/***/ 92264:
/*!***************************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/trazabilidad-comprobante/trazabilidad-card/trazabilidad-card.component.ts ***!
  \***************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


function TrazabilidadCardComponent_Conditional_19_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TrazabilidadCardComponent_Conditional_19_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.node.expanded = !ctx_r2.node.expanded);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r0.node.expanded ? "mdi mdi-chevron-up" : "mdi mdi-chevron-down");
  }
}
function TrazabilidadCardComponent_Conditional_23_For_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-trazabilidad-card", 16);
  }
  if (rf & 2) {
    const nodeChildren_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("node", nodeChildren_r5);
  }
}
function TrazabilidadCardComponent_Conditional_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](0, TrazabilidadCardComponent_Conditional_23_For_1_Template, 1, 1, "app-trazabilidad-card", 16, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx_r1.node.children);
  }
}
const _c0 = a0 => [a0, "ARS", "symbol", "1.2-2", "es-AR"];
class TrazabilidadCardComponent {
  constructor() {
    this.esRaiz = false;
  }
  ngOnInit() {
    // Initialization logic can go here
  }
  static #_ = this.ɵfac = function TrazabilidadCardComponent_Factory(t) {
    return new (t || TrazabilidadCardComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: TrazabilidadCardComponent,
    selectors: [["app-trazabilidad-card"]],
    inputs: {
      esRaiz: "esRaiz",
      node: "node"
    },
    decls: 24,
    vars: 17,
    consts: [[1, "card", "mb-3", "shadow-sm"], [1, "card-header", "pb-3", "bg-white"], [1, "d-flex", "align-items-start", "justify-content-between"], [1, "d-flex", "align-items-start", "gap-3", "flex-shrink-1", "flex-grow-1"], [1, "px-2", "py-1", "rounded-pill", "bg-secondary", "bg-opacity-25"], [1, "mdi", "mdi-note-text-outline"], [2, "flex", "1 1 0%"], [1, "d-flex", "justify-content-between", "align-items-center", "mb-1"], [1, "fw-semibold"], [1, "badge-sm", "rounded-pill", "bg-primary", "text-white", "mb-2"], [1, "d-flex", "justify-content-between", "items-center", "text-xs", "text-gray-500"], [1, "fw-semibold", "text-muted"], ["class", "ms-2 btn btn-sm btn-outline-secondary rounded"], [1, "card-body", "pt-0"], [1, "font-size-12", "text-muted"], [1, "ms-2", "btn", "btn-sm", "btn-outline-secondary", "rounded", 3, "click"], [3, "node"]],
    template: function TrazabilidadCardComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div")(1, "div", 0)(2, "div", 1)(3, "div", 2)(4, "div", 3)(5, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6)(8, "div", 7)(9, "h5", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10)(14, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, TrazabilidadCardComponent_Conditional_19_Template, 2, 2, "button", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 13)(21, "div", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, TrazabilidadCardComponent_Conditional_23_Template, 2, 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](!ctx.esRaiz ? "ms-1 border-start-2 border-secondary-200 ps-1" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.node.data.TipoComp, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.node.data.NroComp, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.node.data.Fecha);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBindV"](18, 9, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](15, _c0, ctx.node.data.MontoComp)));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](19, (ctx.node.children == null ? null : ctx.node.children.length) > 0 ? 19 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.node.data.Cliente, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](23, ctx.node.expanded ? 23 : -1);
      }
    },
    dependencies: [TrazabilidadCardComponent, _angular_common__WEBPACK_IMPORTED_MODULE_1__.CurrencyPipe]
  });
}

/***/ }),

/***/ 26944:
/*!****************************************************************************************************!*\
  !*** ./src/app/shared/comprobantes/trazabilidad-comprobante/trazabilidad-comprobante.component.ts ***!
  \****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TrazabilidadComprobanteComponent: () => (/* binding */ TrazabilidadComprobanteComponent)
/* harmony export */ });
/* harmony import */ var src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes-gen */ 14719);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/services/general/pedido-venta.service */ 83456);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_treetable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/treetable */ 63514);
/* harmony import */ var _trazabilidad_card_trazabilidad_card_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./trazabilidad-card/trazabilidad-card.component */ 92264);










function TrazabilidadComprobanteComponent_Conditional_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "app-trazabilidad-card", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  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"]("node", ctx_r0.trazabilidadProcesada[0])("esRaiz", true);
  }
}
function TrazabilidadComprobanteComponent_Conditional_28_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "th", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "p-treeTableTogglerAll");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "th", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "th", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6, "Tipo");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "th", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "Categor\u00EDa");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "th", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "N\u00FAmero");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12, "Monto");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "th", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14, "Cliente");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
const _c0 = a0 => [a0, "ARS", "symbol", "1.2-2", "es-AR"];
function TrazabilidadComprobanteComponent_Conditional_28_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr", 25)(1, "td", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "p-treeTableToggler", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "td", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "currency");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "td", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const rowNode_r4 = ctx.$implicit;
    const rowData_r5 = ctx.rowData;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ttRow", rowNode_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("rowNode", rowNode_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", rowData_r5.Fecha, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rowData_r5.TipoComp);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rowData_r5.Categoria);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rowData_r5.NroComp);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBindV"](13, 8, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](14, _c0, rowData_r5.MontoComp)), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rowData_r5.Cliente);
  }
}
const _c1 = () => ({
  "min-width": "50rem"
});
function TrazabilidadComprobanteComponent_Conditional_28_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 18)(1, "p-treeTable", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, TrazabilidadComprobanteComponent_Conditional_28_ng_template_2_Template, 15, 0, "ng-template", 20)(3, TrazabilidadComprobanteComponent_Conditional_28_ng_template_3_Template, 16, 16, "ng-template", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  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"]("value", ctx_r1.trazabilidadProcesada)("scrollable", true)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](3, _c1));
  }
}
class TrazabilidadComprobanteComponent {
  constructor(modalActive, pedidoVentaService) {
    this.modalActive = modalActive;
    this.pedidoVentaService = pedidoVentaService;
    this.modal = false;
    this.tipoComprobante = 'venta';
    this.trazabilidadComprobanteVenta = [];
    this.trazabilidadComprobanteCompra = []; // Placeholder for compra data
    this.trazabilidadProcesada = []; // Placeholder for processed data
  }
  ngOnInit() {
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_4__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_5__["default"], 'es-AR'); // Register locale for date formatting
    if (this.tipoComprobante === 'venta') {
      this.cargarTrazabilidadVenta();
    } else if (this.tipoComprobante === 'compra') {
      this.cargarTrazabilidadCompra();
    }
  }
  cargarTrazabilidadVenta() {
    switch (this.idTipoComprobante) {
      case src_app_core_utils_constantes_constantes_gen__WEBPACK_IMPORTED_MODULE_0__.NOTA_PEDIDO_ID:
        // Factura
        this.cargarTrazabilidadNotaPedido();
        break;
      default:
        console.log('Tipo de comprobante no soportado para trazabilidad:', this.idTipoComprobante);
        break;
    }
  }
  cargarTrazabilidadNotaPedido() {
    const susc = this.pedidoVentaService.getTrazabilidad(this.idComprobante).subscribe({
      next: response => {
        if (response.Data && response.Data.length > 0) {
          this.trazabilidadComprobanteVenta = response.Data;
          this.trazabilidadProcesada = this.procesarTrazabilidad(response.Data);
        } else {
          this.trazabilidadProcesada = [];
          this.trazabilidadComprobanteVenta = [];
        }
      },
      error: error => {
        this.modalActive.dismiss();
      }
    });
  }
  cargarTrazabilidadCompra() {
    //TODO : Implementar lógica para cargar trazabilidad de compra
  }
  procesarTrazabilidad(data) {
    if (!data || data.length === 0) {
      return [];
    }
    // Crear un mapa para acceso rápido por IdComp
    const nodosMap = new Map();
    // Crear todos los nodos primero
    data.forEach(item => {
      const nodo = {
        key: item.IdComp.toString(),
        label: `${item.TipoComp} - ${item.NroComp}`,
        data: item,
        children: [],
        expanded: true,
        type: 'comprobante',
        icon: this.getIconoComprobante(item.TipoComp)
      };
      nodosMap.set(item.IdComp, nodo);
    });
    // Construir las relaciones padre-hijo
    const nodosRaiz = [];
    data.forEach(item => {
      const nodoActual = nodosMap.get(item.IdComp);
      if (nodoActual) {
        // Si tiene padre válido y el padre existe en el mapa
        if (item.IdCompPadre && item.IdCompPadre !== 0 && item.IdCompPadre !== item.IdComp) {
          const nodoPadre = nodosMap.get(item.IdCompPadre);
          if (nodoPadre && nodoPadre.children) {
            nodoPadre.children.push(nodoActual);
          } else {
            // El padre no existe en los datos, tratar como raíz
            nodosRaiz.push(nodoActual);
          }
        } else {
          // Es un nodo raíz (sin padre o padre es 0)
          nodosRaiz.push(nodoActual);
        }
      }
    });
    // Ordenar los nodos por fecha para mejor visualización
    this.ordenarNodosPorFecha(nodosRaiz);
    return nodosRaiz;
  }
  getIconoComprobante(tipoComp) {
    const iconos = {
      Factura: 'pi pi-file-o',
      Boleta: 'pi pi-file',
      'Nota de Crédito': 'pi pi-minus-circle',
      'Nota de Débito': 'pi pi-plus-circle',
      Guía: 'pi pi-send'
    };
    return iconos[tipoComp] || 'pi pi-file';
  }
  ordenarNodosPorFecha(nodos) {
    nodos.sort((a, b) => {
      const fechaA = new Date(a.data.Fecha).getTime();
      const fechaB = new Date(b.data.Fecha).getTime();
      return fechaA - fechaB;
    });
    // Ordenar recursivamente los hijos
    nodos.forEach(nodo => {
      if (nodo.children && nodo.children.length > 0) {
        this.ordenarNodosPorFecha(nodo.children);
      }
    });
  }
  isMobile() {
    return window.innerWidth < 768;
  }
  static #_ = this.ɵfac = function TrazabilidadComprobanteComponent_Factory(t) {
    return new (t || TrazabilidadComprobanteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_core_services_general_pedido_venta_service__WEBPACK_IMPORTED_MODULE_1__.PedidoVentaService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: TrazabilidadComprobanteComponent,
    selectors: [["app-trazabilidad-comprobante"]],
    inputs: {
      idComprobante: "idComprobante",
      modal: "modal",
      tipoComprobante: "tipoComprobante",
      idTipoComprobante: "idTipoComprobante"
    },
    decls: 32,
    vars: 20,
    consts: [[1, "modal-title"], [1, "modal-body"], [1, "info-section"], [1, "form-floating", "mb-3", "col-12", "col-md-5", "col-xl-3"], ["type", "text", "id", "numero", "readonly", "", 1, "form-control", 3, "value"], ["for", "numero"], ["type", "text", "id", "tipo", "readonly", "", 1, "form-control", 3, "value"], ["for", "tipo"], ["type", "text", "id", "fecha", "readonly", "", 1, "form-control", 3, "value"], ["for", "fecha"], ["type", "text", "id", "monto", "readonly", "", 1, "form-control", 3, "value"], ["for", "monto"], ["type", "text", "id", "cliente", "readonly", "", 1, "form-control", 3, "value"], ["for", "cliente"], ["class", "mobile-info-section"], [1, "btn", "btn-success", 3, "click"], [1, "mobile-info-section"], [3, "node", "esRaiz"], [1, "table-section"], ["scrollHeight", "flex", "styleClass", "p-treetable-gridlines p-treetable-sm", 3, "value", "scrollable", "tableStyle"], ["pTemplate", "header"], ["pTemplate", "body"], ["width", "10%"], [1, "text-start"], [1, "text-end"], [3, "ttRow"], ["width", "10%", 1, "text-center"], [3, "rowNode"]],
    template: function TrazabilidadComprobanteComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div")(1, "div")(2, "h5", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Trazabilidad del Comprobante");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "div", 1)(5, "div", 2)(6, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](7, "input", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "label", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "N\u00FAmero");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](11, "input", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "label", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Tipo");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](15, "input", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "label", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, "Fecha");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](18, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](20, "currency");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "label", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](22, "Monto");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](24, "input", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "label", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Cliente");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](27, TrazabilidadComprobanteComponent_Conditional_27_Template, 2, 2, "div", 14)(28, TrazabilidadComprobanteComponent_Conditional_28_Template, 4, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "div")(30, "button", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function TrazabilidadComprobanteComponent_Template_button_click_30_listener() {
          return ctx.modalActive.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](31, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassMap"](ctx.modal ? "modal-content" : "page-content");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassMap"](ctx.modal ? "modal-header" : "header-content");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ctx.trazabilidadComprobanteVenta[0] == null ? null : ctx.trazabilidadComprobanteVenta[0].NroComp);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ctx.trazabilidadComprobanteVenta[0] == null ? null : ctx.trazabilidadComprobanteVenta[0].TipoComp);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ctx.trazabilidadComprobanteVenta[0] == null ? null : ctx.trazabilidadComprobanteVenta[0].Fecha);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBindV"](20, 12, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](18, _c0, ctx.trazabilidadComprobanteVenta[0] == null ? null : ctx.trazabilidadComprobanteVenta[0].MontoComp)));
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ctx.trazabilidadComprobanteVenta[0] == null ? null : ctx.trazabilidadComprobanteVenta[0].Cliente);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵconditional"](27, ctx.isMobile() ? 27 : 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassMap"]("text-center text-md-end " + (ctx.modal ? "modal-footer" : "page-footer"));
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_7__.PrimeTemplate, primeng_treetable__WEBPACK_IMPORTED_MODULE_8__.TreeTable, primeng_treetable__WEBPACK_IMPORTED_MODULE_8__.TreeTableToggler, primeng_treetable__WEBPACK_IMPORTED_MODULE_8__.TTRow, _trazabilidad_card_trazabilidad_card_component__WEBPACK_IMPORTED_MODULE_2__.TrazabilidadCardComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.CurrencyPipe],
    styles: ["[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {\n  background-color: var(--bs-primary) !important;\n  color: white !important;\n}\n\n[_nghost-%COMP%]     .bg-custom-color {\n  background-color: var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td {\n  border-top: 1px solid var(--bs-primary) !important;\n  border-bottom: none !important;\n  border-left: none !important;\n  border-right: none !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td {\n  border-bottom: 1px solid var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td:first-child {\n  border-left: 1px solid var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td:last-child {\n  border-right: 1px solid var(--bs-primary) !important;\n}\n\n[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {\n  border: none !important;\n  font-size: 13px !important;\n}\n\n[_nghost-%COMP%]     .p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td {\n  border: none !important;\n}\n\n.info-section[_ngcontent-%COMP%] {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 0.25rem;\n  flex-direction: row;\n  justify-content: start;\n  align-items: start;\n}\n\n.table-section[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  justify-content: start;\n  align-items: start;\n}\n\n.modal-content[_ngcontent-%COMP%], .page-content[_ngcontent-%COMP%] {\n  height: 100vh;\n}"]
  });
}

/***/ }),

/***/ 20287:
/*!***********************************************************************************************!*\
  !*** ./src/app/shared/reportes/comprobantes/nota-de-pedido/cmprb-nota-de-pedido.component.ts ***!
  \***********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CmprbNotaDePedidoComponent: () => (/* binding */ CmprbNotaDePedidoComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var _tauri_apps_api_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tauri-apps/api/core */ 68697);
/* harmony import */ var _tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tauri-apps/api/path */ 38888);
/* harmony import */ var _tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tauri-apps/plugin-fs */ 21040);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 24036);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/services/core/empresa.service */ 10984);
/* harmony import */ var src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/auth.service */ 90304);












function CmprbNotaDePedidoComponent_For_77_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "td", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "td", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "td", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](9, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "td", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](12, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "td", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](15, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const articulo_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](articulo_r1.Codigo);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", articulo_r1.Articulo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](articulo_r1.Cantidad);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](9, 6, articulo_r1.PrecioFinal, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](12, 10, articulo_r1.PjeDescuento, "1.2-2", "es-AR"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](15, 14, articulo_r1.TotalFinal, "1.2-2", "es-AR"), " ");
  }
}
class CmprbNotaDePedidoComponent {
  constructor(datosCmprb, configService, empresaService, auth) {
    this.datosCmprb = datosCmprb;
    this.configService = configService;
    this.empresaService = empresaService;
    this.auth = auth;
    this.existeArticulosSinControl = false;
    // MC SINWEB-268 Arreglo simplemente para generar X columnas para que rellene los Avances
    this.avances = [];
  }
  ngOnInit() {
    var _this = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      (0,_angular_common__WEBPACK_IMPORTED_MODULE_8__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_9__["default"]);
      _this.datosEmpresa = yield _this.getEmpresaDatos(_this.auth.usuario.IdEmpresa);
      if (window.isTauri) {
        (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_2__.resourceDir)().then( /*#__PURE__*/function () {
          var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resourcePath) {
            const filePath = yield (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_2__.join)(resourcePath, 'resources/images/logo-empresa.png');
            const imgExists = yield (0,_tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_3__.exists)(filePath);
            if (imgExists) {
              _this.logoURL = (0,_tauri_apps_api_core__WEBPACK_IMPORTED_MODULE_1__.convertFileSrc)(filePath);
            }
          });
          return function (_x) {
            return _ref.apply(this, arguments);
          };
        }());
      } else {
        _this.logoURL = _this.configService.config.cliente.logo;
      }
    })();
  }
  handleMissingImage(ev) {
    this.logoURL = 'assets/images/utils/img-not-found.jpeg';
  }
  getSubTotal() {
    return this.datosCmprb?.Articulos.map(articulo => articulo.TotalFinal).reduce((acc, curr) => acc + curr, 0);
  }
  getEmpresaDatos(id) {
    var _this2 = this;
    return (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* () {
      try {
        const response = yield (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.firstValueFrom)(_this2.empresaService.SerchById(id));
        return response;
      } catch (error) {
        return null;
      }
    })();
  }
  static #_ = this.ɵfac = function CmprbNotaDePedidoComponent_Factory(t) {
    return new (t || CmprbNotaDePedidoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"]('datosCmprb'), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_4__.ConfigService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_core_empresa_service__WEBPACK_IMPORTED_MODULE_5__.EmpresaService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_auth_service__WEBPACK_IMPORTED_MODULE_6__.AuthService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: CmprbNotaDePedidoComponent,
    selectors: [["app-cmprb-nota-de-pedido"]],
    decls: 111,
    vars: 33,
    consts: [[1, "reporte-container"], [1, "sheet"], [1, "header"], [1, "brand"], [1, "logo"], ["alt", "", 1, "img-fluid", 2, "width", "200px", "height", "100px", 3, "src", "error"], [1, "info"], [2, "font-weight", "700"], [1, "xbox"], [1, "notebox"], [1, "note-meta"], [2, "font-weight", "700", "font-size", "15px"], [2, "margin-top", "8px"], [1, "client-block"], [1, "client-item"], [1, "d-flex", "gap-1"], [1, "items"], [1, "code-col"], [1, "cant-col"], [1, "price-col"], [2, "width", "80px", "text-align", "right"], [1, "imp-col"], [1, "d-flex", "justify-content-between", "flex-wrap"], [1, "seller"], [2, "margin-top", "6px"], [1, "totals-wrap"], [1, "totals"], [1, "total", "d-flex", "justify-content-between", "flex-wrap"], [1, "obs-box"], [2, "white-space", "pre-wrap"], [2, "text-align", "right"]],
    template: function CmprbNotaDePedidoComponent_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)(5, "img", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("error", function CmprbNotaDePedidoComponent_Template_img_error_5_listener($event) {
          return ctx.handleMissingImage($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "div", 6)(7, "div", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](14, "X");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](15, "div", 9)(16, "h2");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17, "NOTA DE PEDIDO");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "div", 10)(19, "div", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](20);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](21, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](22);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](23, "div", 12);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](24, " DOCUMENTO NO V\u00C1LIDO COMO FACTURA \u00B7 ORIGINAL ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](25, "div", 13)(26, "div", 14)(27, "div", 15)(28, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](29, "Cliente:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](30, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](31);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](32, "div", 15)(33, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](34, "Domicilio:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](35, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](36);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](37, "div", 14)(38, "div", 15)(39, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](40, "C\u00F3digo:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](41, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](42);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](43, "div", 15)(44, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](45);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](46, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](47);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](48, "div", 14)(49, "div", 15)(50, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](51, "Forma de Pago:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](52, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](53);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](54, "div", 15)(55, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](56, "I.V.A.:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](57, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](58);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](59, "div", 16)(60, "table")(61, "thead")(62, "tr")(63, "th", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](64, "C\u00F3digo");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](65, "th");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](66, "Art\u00EDculo");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](67, "th", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](68, "Cant.");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](69, "th", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](70, "Precio");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](71, "th", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](72, "% Desc.");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](73, "th", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](74, "Importe");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](75, "tbody");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterCreate"](76, CmprbNotaDePedidoComponent_For_77_Template, 16, 18, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeaterTrackByIndex"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](78, "div", 22)(79, "div", 23)(80, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](81);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](82, "div", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](83, "Dominio: _______________________");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](84, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](85, "Kil\u00F3metros: ____________________");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](86, "div", 25)(87, "div", 26)(88, "div", 22)(89, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](90, "Sub Total:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](91, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](92);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](93, "number");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](94, "div", 22)(95, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](96, "Descuento:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](97, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](98);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](99, "number");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](100, "div", 27)(101, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](102, "TOTAL $");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](103, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](104);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](105, "number");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](106, "div", 28)(107, "strong");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](108, "Observaci\u00F3n:");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](109, "div", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](110);
        _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"]("src", ctx.logoURL, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx.datosEmpresa == null ? null : ctx.datosEmpresa.NombreComercial, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"](" ", ctx.datosEmpresa.Localidad == null ? null : ctx.datosEmpresa.Localidad.Nombre, " - ", ctx.datosEmpresa.Direccion, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"]("Tel: (", ctx.datosEmpresa.Telefono, ") \u00B7 ", ctx.datosEmpresa.Web, "");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" N\u00BA: ", ctx.datosCmprb.Numero, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb.Fecha);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.ClienteVenta == null ? null : ctx.datosCmprb.ClienteVenta.NombreComercial);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.ClienteVenta == null ? null : ctx.datosCmprb.ClienteVenta.DomicilioComercial);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.ClienteVenta == null ? null : ctx.datosCmprb.ClienteVenta.Codigo);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("", ctx.datosCmprb == null ? null : ctx.datosCmprb.ClienteVenta == null ? null : ctx.datosCmprb.ClienteVenta.TipoDocumento == null ? null : ctx.datosCmprb.ClienteVenta.TipoDocumento.TipoDoc, ":");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.ClienteVenta == null ? null : ctx.datosCmprb.ClienteVenta.NroDoc);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.FormaPago == null ? null : ctx.datosCmprb.FormaPago.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.ClienteVenta == null ? null : ctx.datosCmprb.ClienteVenta.RespIva == null ? null : ctx.datosCmprb.ClienteVenta.RespIva.Nombre);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](18);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrepeater"](ctx.datosCmprb == null ? null : ctx.datosCmprb.Articulos);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"](" Vendedor: (", ctx.datosCmprb == null ? null : ctx.datosCmprb.Vendedor == null ? null : ctx.datosCmprb.Vendedor.Codigo, ")", ctx.datosCmprb == null ? null : ctx.datosCmprb.Vendedor == null ? null : ctx.datosCmprb.Vendedor.Nombre, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](93, 21, ctx.getSubTotal(), "1.2-2", "es-AR"));
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](99, 25, ctx.datosCmprb == null ? null : ctx.datosCmprb.PjeDescuento, "1.2-2", "es-AR"), " % ");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](105, 29, ctx.datosCmprb == null ? null : ctx.datosCmprb.Importe, "1.2-2", "es-AR"));
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx.datosCmprb == null ? null : ctx.datosCmprb.Descripcion);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.DecimalPipe],
    styles: ["@charset \"UTF-8\";\n.reporte-container[_ngcontent-%COMP%] {\n  background: #fff;\n  color: #111;\n  width: 100%;\n  overflow-x: auto;\n}\n@media (max-width: 992px) {\n  .reporte-container[_ngcontent-%COMP%] {\n    width: -moz-fit-content;\n    width: fit-content;\n    padding-right: 1rem;\n  }\n}\n\n.sheet[_ngcontent-%COMP%] {\n  border: 1px solid #1a1a1a;\n  padding: 20px;\n  border-radius: 10px;\n  box-sizing: border-box;\n}\n\n.header[_ngcontent-%COMP%] {\n  display: grid;\n  grid-template-columns: 1fr 80px 360px;\n  gap: 12px;\n  align-items: stretch;\n}\n\n.brand[_ngcontent-%COMP%] {\n  border: 1px solid #1a1a1a;\n  border-radius: 10px 0 0 10px;\n  padding: 14px;\n  display: flex;\n  gap: 14px;\n  align-items: center;\n}\n\n.logo[_ngcontent-%COMP%] {\n  width: 200px;\n  height: 100px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.brand[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%] {\n  font-size: 12px;\n  color: #666;\n}\n\n.xbox[_ngcontent-%COMP%] {\n  border: 1px solid #1a1a1a;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-weight: 800;\n  font-size: 28px;\n  border-radius: 4px;\n  height: 100%;\n}\n\n.notebox[_ngcontent-%COMP%] {\n  border: 1px solid #1a1a1a;\n  border-radius: 0 10px 10px 0;\n  padding: 12px 18px;\n  box-sizing: border-box;\n  text-align: left;\n}\n\n.notebox[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%] {\n  margin: 0;\n  font-size: 18px;\n  letter-spacing: 0.6px;\n  color: #000;\n  font-weight: bold;\n}\n\n.note-meta[_ngcontent-%COMP%] {\n  margin-top: 6px;\n  font-size: 13px;\n  color: #666;\n}\n\n.client-block[_ngcontent-%COMP%] {\n  margin-top: 14px;\n  border: 1px solid #1a1a1a;\n  border-radius: 8px;\n  padding: 10px 14px;\n  display: grid;\n  grid-template-columns: 1fr 220px 220px;\n  gap: 10px;\n  align-items: center;\n  font-size: 13px;\n}\n\n.client-item[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n}\n\n.client-item[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%] {\n  font-weight: 700;\n}\n\n.items[_ngcontent-%COMP%] {\n  margin-top: 14px;\n  border: 1px solid #1a1a1a;\n  border-radius: 6px;\n  overflow: hidden;\n}\n\ntable[_ngcontent-%COMP%] {\n  width: 100%;\n  border-collapse: collapse;\n  font-size: 13px;\n}\n\nthead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%] {\n  background: #f6f6f6;\n  border-bottom: 1px solid #1a1a1a;\n  padding: 8px 10px;\n  text-align: left;\n  font-weight: 700;\n  font-size: 13px;\n}\n\ntbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%] {\n  padding: 8px 10px;\n  border-bottom: 1px dashed #d0d0d0;\n  vertical-align: top;\n}\n\ntbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:last-child   td[_ngcontent-%COMP%] {\n  border-bottom: none;\n}\n\n.code-col[_ngcontent-%COMP%] {\n  width: 120px;\n  font-family: monospace;\n  font-size: 12px;\n}\n\n.cant-col[_ngcontent-%COMP%] {\n  width: 60px;\n  text-align: center;\n}\n\n.price-col[_ngcontent-%COMP%] {\n  width: 120px;\n  text-align: right;\n}\n\n.imp-col[_ngcontent-%COMP%] {\n  width: 130px;\n  text-align: right;\n}\n\n.totals-wrap[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: flex-end;\n  margin-top: 8px;\n}\n\n.totals[_ngcontent-%COMP%] {\n  width: 220px;\n  border: 1px solid #1a1a1a;\n  border-radius: 6px;\n  padding: 10px;\n  font-size: 13px;\n  background: #fff;\n}\n\n.totals[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: space-between;\n  padding: 6px 0;\n}\n\n.totals[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%] {\n  font-weight: 800;\n  font-size: 16px;\n  border-top: 1px solid #e1e1e1;\n  padding-top: 8px;\n  margin-top: 8px;\n}\n\n.notes[_ngcontent-%COMP%] {\n  margin-top: 16px;\n  font-size: 12px;\n  color: #666;\n}\n\n.seller[_ngcontent-%COMP%] {\n  margin-top: 8px;\n  font-size: 13px;\n}\n\n.obs-box[_ngcontent-%COMP%] {\n  position: relative;\n  width: 100%;\n  box-sizing: border-box;\n  padding: 12px; \n\n  padding-top: 22px; \n\n  min-height: 150px; \n\n  border: 1px solid #1a1a1a;\n  border-radius: 8px; \n\n  background: #fff;\n  margin-top: 16px;\n}\n\n.obs-box[_ngcontent-%COMP%]    > strong[_ngcontent-%COMP%] {\n  position: absolute;\n  top: -7.5px; \n\n  left: 12px; \n\n  background: #fff; \n\n  padding: 0 6px;\n  font-weight: 700;\n  font-size: 12px;\n  line-height: 1;\n}\n\n.obs-box[_ngcontent-%COMP%]    > div[_ngcontent-%COMP%] {\n  white-space: pre-wrap; \n\n}"]
  });
}

/***/ }),

/***/ 73319:
/*!*******************************************************************************************!*\
  !*** ./src/app/shared/reportes/core/configuracion-cmprb/configuracion-cmprb.component.ts ***!
  \*******************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ConfiguracionCmprbComponent: () => (/* binding */ ConfiguracionCmprbComponent)
/* 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 _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 _ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../ui/checkbox/checkbox.component */ 79468);
/* harmony import */ var _ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../ui/input-number/input-number.component */ 62271);









function ConfiguracionCmprbComponent_ng_container_7_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "label", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "app-input-number", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("emitValue", function ConfiguracionCmprbComponent_ng_container_7_ng_container_2_Template_app_input_number_emitValue_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r6);
      const config_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.setConfigValue(config_r1.key, $event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const config_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](config_r1.nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ctx_r2.getConfigValue(config_r1.key))("decimals", 0)("isInvalid", ctx_r2.getConfigValue(config_r1.key) === null)("isValid", ctx_r2.getConfigValue(config_r1.key))("disabled", ctx_r2.isConfigDisabled(config_r1.key));
  }
}
function ConfiguracionCmprbComponent_ng_container_7_ng_container_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "label", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "app-checkbox", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("emitAction", function ConfiguracionCmprbComponent_ng_container_7_ng_container_3_Template_app_checkbox_emitAction_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r10);
      const config_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r8.setConfigValue(config_r1.key, !ctx_r8.getConfigValue(config_r1.key)));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const config_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", ctx_r3.getConfigValue(config_r1.key))("title", config_r1.nombre);
  }
}
function ConfiguracionCmprbComponent_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, ConfiguracionCmprbComponent_ng_container_7_ng_container_2_Template, 4, 6, "ng-container", 10)(3, ConfiguracionCmprbComponent_ng_container_7_ng_container_3_Template, 3, 2, "ng-container", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const config_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", config_r1.tipo == "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", config_r1.tipo == "checkbox");
  }
}
class ConfiguracionCmprbComponent {
  constructor(modal, fb, vh) {
    this.modal = modal;
    this.fb = fb;
    this.vh = vh;
    this.ConfigGroup = this.fb.group({});
    this.arregloConfiguracion = [];
    this.subscriptions = [];
  }
  ngOnInit() {
    this.loadForm();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sub => sub.unsubscribe());
  }
  loadForm() {
    let dependencies = [];
    for (let key in this.configuracionComprobante) {
      if (this.configuracionComprobante[key].tipo == 'checkbox') {
        this.ConfigGroup.addControl(key, this.fb.control(this.configuracionComprobante[key].valor));
      }
      if (this.configuracionComprobante[key].tipo == 'number') {
        this.ConfigGroup.addControl(key, this.fb.control(this.configuracionComprobante[key].valor));
        this.ConfigGroup.controls[key].setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.compose([_angular_forms__WEBPACK_IMPORTED_MODULE_4__.Validators.required]));
        if (this.configuracionComprobante[key].depends_on_check) {
          dependencies.push({
            key: key,
            depends_on: this.configuracionComprobante[key].depends_on_check
          });
        }
      }
      let nuevaConfig = this.configuracionComprobante[key];
      nuevaConfig.key = key;
      this.arregloConfiguracion.push(nuevaConfig);
    }
    this.vh.inicializar();
    this.vh.formGroup = this.ConfigGroup;
    // MC SINWEB-354 Una vez creado el form, recorre y busca campos que dependan de otros
    if (dependencies.length > 0) {
      dependencies.forEach(dep => {
        if (this.ConfigGroup.controls[dep.depends_on].value) {
          this.ConfigGroup.controls[dep.key].enable();
        } else {
          this.ConfigGroup.controls[dep.key].disable();
        }
        this.subscriptions.push(this.ConfigGroup.controls[dep.depends_on].valueChanges.subscribe(value => {
          if (value) {
            this.ConfigGroup.controls[dep.key].enable();
          } else {
            this.ConfigGroup.controls[dep.key].disable();
          }
        }));
      });
    }
  }
  guardarConfig() {
    for (let key in this.configuracionComprobante) {
      this.configuracionComprobante[key].valor = this.ConfigGroup.controls[key].value;
    }
    this.modal.close(this.configuracionComprobante);
  }
  getConfigValue(config) {
    return this.ConfigGroup.get(config)?.value;
  }
  setConfigValue(config, valor) {
    this.ConfigGroup.controls[config].setValue(valor);
  }
  isConfigDisabled(config) {
    return this.ConfigGroup.controls[config]?.disabled;
  }
  static #_ = this.ɵfac = function ConfiguracionCmprbComponent_Factory(t) {
    return new (t || ConfiguracionCmprbComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormBuilder), _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: ConfiguracionCmprbComponent,
    selectors: [["app-configuracion-cmprb"]],
    inputs: {
      configuracionComprobante: "configuracionComprobante"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 13,
    vars: 1,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], [1, "row", "p-1"], [4, "ngFor", "ngForOf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "click"], [1, "col-lg-6"], [4, "ngIf"], [1, "control-label"], [1, "my-1", 3, "title", "value", "decimals", "isInvalid", "isValid", "disabled", "emitValue"], [1, "form-label"], ["colorDisabled", "secondary", "colorUncheked", "primary", "colorChecked", "success", 1, "my-1", 3, "value", "title", "emitAction"]],
    template: function ConfiguracionCmprbComponent_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, " Configuraci\u00F3n de impresi\u00F3n de comprobante ");
        _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, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, ConfiguracionCmprbComponent_ng_container_7_Template, 4, 2, "ng-container", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "div", 6)(9, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ConfiguracionCmprbComponent_Template_button_click_9_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "button", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ConfiguracionCmprbComponent_Template_button_click_11_listener() {
          return ctx.guardarConfig();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.arregloConfiguracion);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _ui_checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_1__.CheckboxComponent, _ui_input_number_input_number_component__WEBPACK_IMPORTED_MODULE_2__.InputNumberComponent]
  });
}

/***/ }),

/***/ 80162:
/*!***********************************************************************************!*\
  !*** ./src/app/shared/reportes/core/impresion-cmprb/impresion-cmprb.component.ts ***!
  \***********************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ImpresionCmprbComponent: () => (/* binding */ ImpresionCmprbComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var jspdf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jspdf */ 38919);
/* harmony import */ var html2canvas__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! html2canvas */ 74456);
/* harmony import */ var html2canvas__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(html2canvas__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_shared_reportes_core_configuracion_cmprb_configuracion_cmprb_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/reportes/core/configuracion-cmprb/configuracion-cmprb.component */ 73319);
/* 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);







const _c0 = ["dynamicContent"];
function ImpresionCmprbComponent_ng_container_4_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);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"]("- ", ctx_r4.tipoNombreComprobante, "");
  }
}
function ImpresionCmprbComponent_ng_container_4_ng_container_3_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"](" (Nro: ", ctx_r5.nroComprobante, ")");
  }
}
function ImpresionCmprbComponent_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, " Impresi\u00F3n de Comprobante ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, ImpresionCmprbComponent_ng_container_4_ng_container_2_Template, 2, 1, "ng-container", 4)(3, ImpresionCmprbComponent_ng_container_4_ng_container_3_Template, 2, 1, "ng-container", 4);
    _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"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.tipoNombreComprobante);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.nroComprobante);
  }
}
function ImpresionCmprbComponent_div_5_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](0);
  }
}
function ImpresionCmprbComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, ImpresionCmprbComponent_div_5_ng_container_1_Template, 1, 0, "ng-container", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  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"]("ngComponentOutlet", ctx_r1.tipocomprobante)("ngComponentOutletInjector", ctx_r1.dynamicInjector)("ngComponentOutletContent", ctx_r1.dynamicContent);
  }
}
function ImpresionCmprbComponent_button_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ImpresionCmprbComponent_button_9_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r7.abrirConfiguracion());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Configuraci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
}
function ImpresionCmprbComponent_ng_container_10_i_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "i", 14);
  }
}
function ImpresionCmprbComponent_ng_container_10_Template(rf, ctx) {
  if (rf & 1) {
    const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ImpresionCmprbComponent_ng_container_10_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r11);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r10.imprimir());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Imprimir ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, ImpresionCmprbComponent_ng_container_10_i_3_Template, 1, 0, "i", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r3.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r3.isLoading);
  }
}
class ImpresionCmprbComponent {
  constructor(modal, cdr, modalService) {
    this.modal = modal;
    this.cdr = cdr;
    this.modalService = modalService;
    this.configuracionComprobante = null;
    this.modalClose = false;
    this.nombreFile = 'comprobante.pdf';
    this.isLoading = false;
    this.mostrarConfiguracion = false;
  }
  ngOnInit() {
    this.dynamicInjector = _angular_core__WEBPACK_IMPORTED_MODULE_3__.Injector.create({
      providers: [{
        provide: 'datosCmprb',
        useValue: this.datosComprobante
      }, {
        provide: 'configCmprb',
        useValue: this.configuracionComprobante
      }]
    });
    this.mostrarConfiguracion = this.configuracionComprobante != null;
  }
  imprimir() {
    this.isLoading = true;
    this.cdr.markForCheck();
    const modal = document.getElementById('imprimible');
    if (!modal) {
      console.error('No se encontró el modal para imprimir.');
      this.isLoading = false;
      return;
    }
    // Guardamos los estilos originales del modal
    const originalOverflow = modal.style.overflow;
    modal.style.overflow = 'visible';
    const options = {
      background: 'white',
      scale: window.devicePixelRatio > 1 ? window.devicePixelRatio : 2,
      useCORS: true,
      allowTaint: true,
      scrollY: -window.scrollY,
      scrollX: -window.scrollX,
      width: modal.scrollWidth,
      height: modal.scrollHeight
    };
    html2canvas__WEBPACK_IMPORTED_MODULE_1___default()(modal, options).then(canvas => {
      const img = canvas.toDataURL('image/PNG');
      const doc = new jspdf__WEBPACK_IMPORTED_MODULE_0__.jsPDF('p', 'pt', 'a4');
      const imgWidth = 595; // Ancho de A4 en puntos
      const imgHeight = canvas.height * imgWidth / canvas.width;
      let position = 0;
      const pageHeight = 842; // Alto de A4 en puntos
      let heightLeft = imgHeight;
      doc.addImage(img, 'PNG', 0, position, imgWidth, imgHeight, undefined, 'FAST');
      while (heightLeft > pageHeight) {
        position -= pageHeight;
        doc.addPage();
        doc.addImage(img, 'PNG', 0, position, imgWidth, imgHeight, undefined, 'FAST');
        heightLeft -= pageHeight;
      }
      doc.save(this.nombreFile);
    }).catch(error => {
      console.error('Error al generar el PDF:', error);
    }).finally(() => {
      // Restauramos el estilo original del modal
      modal.style.overflow = originalOverflow;
      this.isLoading = false;
    });
  }
  abrirConfiguracion() {
    const modalRef = this.modalService.open(src_app_shared_reportes_core_configuracion_cmprb_configuracion_cmprb_component__WEBPACK_IMPORTED_MODULE_2__.ConfiguracionCmprbComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-2',
      windowClass: 'modal-z-index-2',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.configuracionComprobante = this.configuracionComprobante;
    modalRef.result.then(nuevaConfig => {
      this.configuracionComprobante = nuevaConfig;
      this.ngOnInit();
    });
  }
  static #_ = this.ɵfac = function ImpresionCmprbComponent_Factory(t) {
    return new (t || ImpresionCmprbComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__.ChangeDetectorRef), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: ImpresionCmprbComponent,
    selectors: [["impresion-cmprb"]],
    viewQuery: function ImpresionCmprbComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c0, 7);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.dynamicContent = _t.first);
      }
    },
    inputs: {
      tipocomprobante: "tipocomprobante",
      datosComprobante: "datosComprobante",
      configuracionComprobante: "configuracionComprobante",
      tipoNombreComprobante: "tipoNombreComprobante",
      nroComprobante: "nroComprobante",
      modalClose: "modalClose",
      nombreFile: "nombreFile"
    },
    decls: 11,
    vars: 4,
    consts: [["name", "viewport", "content", "width=device-width, initial-scale=1.0", "id", "viewportMeta"], [1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [4, "ngIf"], ["class", "overlay overlay-block cursor-default modal-body", "id", "imprimible", "data-bs-theme", "light", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", "class", "btn btn-warning btn-elevate mr-2", 3, "click", 4, "ngIf"], ["id", "imprimible", "data-bs-theme", "light", 1, "overlay", "overlay-block", "cursor-default", "modal-body"], [4, "ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent"], ["type", "button", 1, "btn", "btn-warning", "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 ImpresionCmprbComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "meta", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 1)(2, "div", 2)(3, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, ImpresionCmprbComponent_ng_container_4_Template, 4, 2, "ng-container", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](5, ImpresionCmprbComponent_div_5_Template, 2, 3, "div", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 6)(7, "button", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ImpresionCmprbComponent_Template_button_click_7_listener() {
          return ctx.modalClose ? ctx.modal.close(true) : 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, ImpresionCmprbComponent_button_9_Template, 2, 0, "button", 8)(10, ImpresionCmprbComponent_ng_container_10_Template, 4, 2, "ng-container", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.datosComprobante);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.tipocomprobante);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.mostrarConfiguracion);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.tipocomprobante);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgComponentOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf],
    styles: [".back-z-index-2 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1064 !important;\n}"]
  });
}

/***/ }),

/***/ 43595:
/*!*******************************************************************************************************!*\
  !*** ./src/app/shared/reportes/produccion/cmprb-orden-produccion/cmprb-orden-produccion.component.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CmprbOrdenProduccionComponent: () => (/* binding */ CmprbOrdenProduccionComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_shared_reportes_produccion_cmprb_orden_produccion_configuracion_orden_produccion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/reportes/produccion/cmprb-orden-produccion/configuracion-orden-produccion */ 77787);
/* harmony import */ var _tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tauri-apps/api/path */ 38888);
/* harmony import */ var _tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tauri-apps/plugin-fs */ 21040);
/* harmony import */ var _tauri_apps_api_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tauri-apps/api/core */ 68697);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 96814);









function CmprbOrdenProduccionComponent_ng_template_5_Template(rf, ctx) {}
function CmprbOrdenProduccionComponent_ng_template_6_tr_31_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "td")(2, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Urgencia:");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tr_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "td", 20)(2, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, "Descripci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "span", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx_r4.datosCmprb.Descripcion);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_thead_49_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "thead")(1, "tr")(2, "th", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Materia Prima ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "tr", 23)(5, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, "Nombre");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "th", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, "Cant. Unitaria");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "th", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "Cant. Necesaria");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](14, "Unidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tbody_50_ng_container_1_tr_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "td", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](7, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "td", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](10, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const componente_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](componente_r12.Articulo.Codigo);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](componente_r12.Articulo.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](7, 5, componente_r12.CantidadUnitaria, "1.2-5", "es"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](10, 9, componente_r12.CantidadNecesaria, "1.2-5", "es"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](componente_r12.Unidad.Nombre);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tbody_50_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, CmprbOrdenProduccionComponent_ng_template_6_tbody_50_ng_container_1_tr_1_Template, 13, 13, "tr", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const componente_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", componente_r12.Articulo.ConStock === "S");
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tbody_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, CmprbOrdenProduccionComponent_ng_template_6_tbody_50_ng_container_1_Template, 2, 1, "ng-container", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r6.datosCmprb.Articulos[0].Componentes);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_thead_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "thead")(1, "tr")(2, "th", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Art\u00EDculos sin control de stock ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "tr", 23)(5, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6, "C\u00F3digo");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, "Nombre Materia Prima");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, "Cant. Necesaria");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "Unidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tbody_52_ng_container_1_tr_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](5, "td", 27)(6, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const componente_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](componente_r16.Articulo.Codigo);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](componente_r16.Articulo.Nombre);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tbody_52_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, CmprbOrdenProduccionComponent_ng_template_6_tbody_52_ng_container_1_tr_1_Template, 7, 2, "tr", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const componente_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", componente_r16.Articulo.ConStock === "N");
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_tbody_52_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, CmprbOrdenProduccionComponent_ng_template_6_tbody_52_ng_container_1_Template, 2, 1, "ng-container", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r8.datosCmprb.Articulos[0].Componentes);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_div_53_tr_20_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr")(1, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](7, "td")(8, "td")(9, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const Proceso_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](Proceso_r20.Orden);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](Proceso_r20.Operacion.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](Proceso_r20.Maquina ? Proceso_r20.Maquina.NroSerie : "");
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_div_53_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 28)(1, "table", 29)(2, "thead")(3, "tr")(4, "th", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, " Ruta de producci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "tr", 23)(7, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, "Orden");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, "Operaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "M\u00E1quina");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "th", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](14, "Responsable");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](15, "th", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](16, "Cantidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](17, "th", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](18, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](19, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](20, CmprbOrdenProduccionComponent_ng_template_6_div_53_tr_20_Template, 10, 3, "tr", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r9.datosCmprb.Articulos[0].Proceso);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_div_54_tr_27_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "td")(2, "td")(3, "td")(4, "td")(5, "td")(6, "td")(7, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_div_54_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 16)(1, "table", 6)(2, "thead")(3, "tr")(4, "th", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, " Avances ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "tr", 23)(7, "th", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, " Operaci\u00F3n ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "th", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, "Cantidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "th", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12, "Tiempos");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "tr", 23)(14, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](15, "Requerida");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17, "Realizada");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](19, "Fallida");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](20, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](21, "Preparaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](22, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](23, "Ejecuci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](24, "th", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](25, "Espera");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](26, "tbody");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](27, CmprbOrdenProduccionComponent_ng_template_6_div_54_tr_27_Template, 8, 0, "tr", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r10.avances);
  }
}
function CmprbOrdenProduccionComponent_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 5)(1, "table", 6)(2, "tbody")(3, "tr")(4, "td", 7)(5, "img", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("error", function CmprbOrdenProduccionComponent_ng_template_6_Template_img_error_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r24);
      const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r23.handleMissingImage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "td", 7)(7, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, "Orden de Producci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "div", 10)(10, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](11, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](13, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](14, "div", 10)(15, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](16, "Nro.");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "tr")(19, "td", 7)(20, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](21, "Responsable");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](23, "td")(24, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](25, "Fecha Solicitud");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](27, "td")(28, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](29, "Fecha Estimada");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](31, CmprbOrdenProduccionComponent_ng_template_6_tr_31_Template, 4, 0, "tr", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](32, "tr")(33, "td", 13)(34, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](35, "Art\u00EDculo a producir");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](36, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](37, "span", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](38);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](39, "td", 15)(40, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](41, "Cantidad");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](42, "br");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](43, "span", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](45, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](46, CmprbOrdenProduccionComponent_ng_template_6_tr_46_Template, 7, 1, "tr", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](47, "div", 16)(48, "table", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](49, CmprbOrdenProduccionComponent_ng_template_6_thead_49_Template, 15, 0, "thead", 12)(50, CmprbOrdenProduccionComponent_ng_template_6_tbody_50_Template, 2, 1, "tbody", 12)(51, CmprbOrdenProduccionComponent_ng_template_6_thead_51_Template, 13, 0, "thead", 12)(52, CmprbOrdenProduccionComponent_ng_template_6_tbody_52_Template, 2, 1, "tbody", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](53, CmprbOrdenProduccionComponent_ng_template_6_div_53_Template, 21, 1, "div", 18)(54, CmprbOrdenProduccionComponent_ng_template_6_div_54_Template, 28, 1, "div", 19);
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", ctx_r1.logoURL, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind2"](13, 17, ctx_r1.today, "dd/MM/yyyy"), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r1.datosCmprb.Numero, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r1.datosCmprb.Responsable.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r1.datosCmprb.FechaSolicitud, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r1.datosCmprb.FechaEstimada, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getValorConfig("URGENCIA"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"]("(", ctx_r1.datosCmprb.Articulos[0].Articulo.Codigo, ") ", ctx_r1.datosCmprb.Articulos[0].Articulo.Nombre, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](45, 20, ctx_r1.datosCmprb.Articulos[0].CantidadSolicitada));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getValorConfig("DESCRIPCION"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getValorConfig("MATERIA_PRIMA"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getValorConfig("MATERIA_PRIMA"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.existeArticulosSinControl && ctx_r1.getValorConfig("SIN_CONTROL"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.existeArticulosSinControl && ctx_r1.getValorConfig("SIN_CONTROL"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getValorConfig("RUTA_PRODUCCION"));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r1.getValorConfig("AVANCE"));
  }
}
class CmprbOrdenProduccionComponent {
  constructor(datosCmprb, configCmprb, configService) {
    this.datosCmprb = datosCmprb;
    this.configCmprb = configCmprb;
    this.configService = configService;
    this.existeArticulosSinControl = false;
    // MC SINWEB-268 Arreglo simplemente para generar X columnas para que rellene los Avances
    this.avances = [];
  }
  ngOnInit() {
    var _this = this;
    this.today = new Date();
    this.checkArticulosSinControl();
    if (this.configCmprb === null) {
      this.configCmprb = src_app_shared_reportes_produccion_cmprb_orden_produccion_configuracion_orden_produccion__WEBPACK_IMPORTED_MODULE_2__.Configuracion_cmprb;
    }
    this.avances = Array(this.getValorConfig('LINEAS_AVANCE')).fill(0).map((x, i) => i);
    // MC SINWEB-861
    if (window.isTauri) {
      (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_3__.resourceDir)().then( /*#__PURE__*/function () {
        var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resourcePath) {
          const filePath = yield (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_3__.join)(resourcePath, 'resources/images/logo-empresa.png');
          const imgExists = yield (0,_tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_4__.exists)(filePath);
          if (imgExists) {
            _this.logoURL = (0,_tauri_apps_api_core__WEBPACK_IMPORTED_MODULE_5__.convertFileSrc)(filePath);
          }
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
    } else {
      this.logoURL = this.configService.config.cliente.logo;
    }
  }
  checkArticulosSinControl() {
    this.datosCmprb.Articulos[0].Componentes.forEach(comp => {
      if (comp.Articulo.ConStock === src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.FALSO) {
        this.existeArticulosSinControl = true;
      }
    });
  }
  getValorConfig(nombre) {
    return this.configCmprb[nombre].valor;
  }
  handleMissingImage(ev) {
    this.logoURL = 'assets/images/utils/img-not-found.jpeg';
  }
  static #_ = this.ɵfac = function CmprbOrdenProduccionComponent_Factory(t) {
    return new (t || CmprbOrdenProduccionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"]('datosCmprb'), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"]('configCmprb'), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_6__.ConfigService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: CmprbOrdenProduccionComponent,
    selectors: [["app-cmprb-orden-produccion"]],
    decls: 8,
    vars: 1,
    consts: [[1, "reporte-container"], [1, "table-responsive"], [1, "table", "table-centered", "table-nowrap", "tableRound"], [3, "ngTemplateOutlet"], ["COMPROBANTE", ""], [1, "table", "px-2"], [1, "table", "table-centered", "table-nowrap"], ["colspan", "2"], ["alt", "", 1, "img-fluid", 2, "width", "200px", "height", "100px", 3, "src", "error"], [1, "cmprbTitle"], [1, "fs-5"], [1, "cmprbSubt"], [4, "ngIf"], ["colspan", "3"], [1, "fs-4"], ["colspan", "1"], [1, "table", "px-2", "tableRoundGray"], [1, "table", "table-centered", "table-nowrap", "borderless", "tableNotSpacing"], ["class", "table px-2 tableRoundGray tableNotSpacing", 4, "ngIf"], ["class", "table px-2 tableRoundGray", 4, "ngIf"], ["colspan", "4", 2, "word-wrap", "break-word", "min-width", "100px", "max-width", "100px"], [1, "fs-7", "descripcion", 2, "white-space", "pre-wrap"], ["colspan", "6", "scope", "colgroup", 1, "text-center", "headerTitle"], [1, "headerRound"], ["scope", "col"], ["scope", "col", 1, "text-right"], [4, "ngFor", "ngForOf"], [1, "text-right"], [1, "table", "px-2", "tableRoundGray", "tableNotSpacing"], [1, "table", "table-centered", "table-nowrap", "borderless"], ["scope", "col", 2, "width", "15%"], ["scope", "col", 2, "width", "10%"], ["colspan", "7", "scope", "colgroup", 1, "text-center", "headerTitle"], ["scope", "col", "rowspan", "2", 1, "text-center", 2, "vertical-align", "baseline"], ["colspan", "3", 1, "text-center"]],
    template: function CmprbOrdenProduccionComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "table", 2)(3, "tbody")(4, "tr");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, CmprbOrdenProduccionComponent_ng_template_5_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](6, CmprbOrdenProduccionComponent_ng_template_6_Template, 55, 22, "ng-template", null, 4, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngTemplateOutlet", _r2);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgTemplateOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_8__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_8__.DatePipe],
    styles: [".reporte-container[_ngcontent-%COMP%] {\n  background: #fff;\n  color: #111;\n  width: 100%;\n  overflow-x: auto;\n}\n@media (max-width: 992px) {\n  .reporte-container[_ngcontent-%COMP%] {\n    width: -moz-fit-content;\n    width: fit-content;\n    padding-right: 1rem;\n  }\n}\n\n.tableRound[_ngcontent-%COMP%] {\n  border-collapse: separate;\n  border-spacing: 10;\n  border: solid black 1px;\n  border-radius: 20px;\n  -moz-border-radius: 10px;\n  -webkit-border-radius: 5px;\n}\n\n.table[_ngcontent-%COMP%] {\n  max-width: 1095px !important;\n}\n\n.cmprbSubt[_ngcontent-%COMP%] {\n  font-weight: bold;\n  font-size: 13px;\n  padding-right: 5px;\n}\n\n.tableRoundGray[_ngcontent-%COMP%] {\n  border-collapse: separate;\n  border-spacing: 10;\n  border: solid rgb(193, 193, 193) 1px;\n  border-radius: 15px;\n  -moz-border-radius: 10px;\n  -webkit-border-radius: 5px;\n}\n\n.cmprbTitle[_ngcontent-%COMP%] {\n  font-weight: bold;\n  font-size: 22px;\n}\n\n.headerRound[_ngcontent-%COMP%] {\n  background-color: rgb(193, 193, 193);\n}\n\n.headerTitle[_ngcontent-%COMP%] {\n  font-size: 15px;\n  font-weight: bold;\n}\n\n.borderless[_ngcontent-%COMP%] {\n  border: solid white 1px;\n}\n\n.tableNotSpacing[_ngcontent-%COMP%]   td[_ngcontent-%COMP%] {\n  padding-top: 2px;\n  padding-bottom: 2px;\n}"]
  });
}

/***/ }),

/***/ 77787:
/*!*****************************************************************************************************!*\
  !*** ./src/app/shared/reportes/produccion/cmprb-orden-produccion/configuracion-orden-produccion.ts ***!
  \*****************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Configuracion_cmprb: () => (/* binding */ Configuracion_cmprb)
/* harmony export */ });
const Configuracion_cmprb = {
  URGENCIA: {
    nombre: "Mostrar 'urgencia'",
    tipo: 'checkbox',
    valor: true
  },
  DESCRIPCION: {
    nombre: "Mostrar 'descripción'",
    tipo: 'checkbox',
    valor: true
  },
  MATERIA_PRIMA: {
    nombre: 'Mostrar Materia Prima',
    tipo: 'checkbox',
    valor: true
  },
  SIN_CONTROL: {
    nombre: 'Mostrar artículos sin control de stock',
    tipo: 'checkbox',
    valor: false
  },
  RUTA_PRODUCCION: {
    nombre: 'Mostrar Ruta de producción',
    tipo: 'checkbox',
    valor: true
  },
  AVANCE: {
    nombre: 'Mostrar Avances',
    tipo: 'checkbox',
    valor: true
  },
  LINEAS_AVANCE: {
    nombre: 'Cantidad de lineas blancas en Avances',
    tipo: 'number',
    valor: 15,
    depends_on_check: 'AVANCE'
  }
};

/***/ }),

/***/ 1288:
/*!****************************************************!*\
  !*** ./src/app/shared/reportes/reportes.module.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ReportesModule: () => (/* binding */ ReportesModule)
/* harmony export */ });
/* harmony import */ var _produccion_cmprb_orden_produccion_cmprb_orden_produccion_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./produccion/cmprb-orden-produccion/cmprb-orden-produccion.component */ 43595);
/* harmony import */ var _core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core/impresion-cmprb/impresion-cmprb.component */ 80162);
/* harmony import */ var _rma_cmprb_reclamo_cmprb_reclamo_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./rma/cmprb-reclamo/cmprb-reclamo.component */ 81590);
/* harmony import */ var _core_configuracion_cmprb_configuracion_cmprb_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/configuracion-cmprb/configuracion-cmprb.component */ 73319);
/* harmony import */ var _ui_ui_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ui/ui.module */ 52540);
/* harmony import */ var _comprobantes_nota_de_pedido_cmprb_nota_de_pedido_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./comprobantes/nota-de-pedido/cmprb-nota-de-pedido.component */ 20287);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 65879);







class ReportesModule {
  static #_ = this.ɵfac = function ReportesModule_Factory(t) {
    return new (t || ReportesModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineNgModule"]({
    type: ReportesModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjector"]({
    imports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_4__.UIModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsetNgModuleScope"](ReportesModule, {
    declarations: [_produccion_cmprb_orden_produccion_cmprb_orden_produccion_component__WEBPACK_IMPORTED_MODULE_0__.CmprbOrdenProduccionComponent, _core_impresion_cmprb_impresion_cmprb_component__WEBPACK_IMPORTED_MODULE_1__.ImpresionCmprbComponent, _rma_cmprb_reclamo_cmprb_reclamo_component__WEBPACK_IMPORTED_MODULE_2__.CmprbReclamoComponent, _core_configuracion_cmprb_configuracion_cmprb_component__WEBPACK_IMPORTED_MODULE_3__.ConfiguracionCmprbComponent, _comprobantes_nota_de_pedido_cmprb_nota_de_pedido_component__WEBPACK_IMPORTED_MODULE_5__.CmprbNotaDePedidoComponent],
    imports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_4__.UIModule]
  });
})();

/***/ }),

/***/ 81590:
/*!******************************************************************************!*\
  !*** ./src/app/shared/reportes/rma/cmprb-reclamo/cmprb-reclamo.component.ts ***!
  \******************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CmprbReclamoComponent: () => (/* binding */ CmprbReclamoComponent)
/* harmony export */ });
/* harmony import */ var C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ 15861);
/* harmony import */ var _tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tauri-apps/api/path */ 38888);
/* harmony import */ var _tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tauri-apps/plugin-fs */ 21040);
/* harmony import */ var _tauri_apps_api_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tauri-apps/api/core */ 68697);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/services/config.service */ 56375);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);







function CmprbReclamoComponent_ng_template_5_Template(rf, ctx) {}
function CmprbReclamoComponent_ng_template_6_td_30_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td")(1, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "Fecha Revisi\u00F3n T\u00E9cnica:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r3.datosCmprb.FechaRevisionTecnico, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_67_td_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td", 19)(1, "div", 20)(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Lugar:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r16.datosCmprb.ComprLugar, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_67_td_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td", 19)(1, "div", 20)(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Fecha:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r17.datosCmprb.ComprFecha, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_67_td_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td")(1, "div")(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Nro.Compra:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r18.datosCmprb.ComprNumero, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_67_td_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td", 19)(1, "div")(2, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3, "Nro.Comprobante:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r19.datosCmprb.ComprobanteVenta.Numero, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_67_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "table", 16)(1, "thead")(2, "tr", 17)(3, "th", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Datos de Compra ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "tbody")(6, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, CmprbReclamoComponent_ng_template_6_table_67_td_7_Template, 5, 1, "td", 29)(8, CmprbReclamoComponent_ng_template_6_table_67_td_8_Template, 5, 1, "td", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](10, CmprbReclamoComponent_ng_template_6_table_67_td_10_Template, 5, 1, "td", 14)(11, CmprbReclamoComponent_ng_template_6_table_67_td_11_Template, 5, 1, "td", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.datosCmprb.ComprLugar != null);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.datosCmprb.ComprFecha != null);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.datosCmprb.ComprNumero != null);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r4.datosCmprb.ComprobanteVenta !== null);
  }
}
function CmprbReclamoComponent_ng_template_6_table_68_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "table", 16)(1, "thead")(2, "tr", 17)(3, "th", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Defecto ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "tbody")(6, "tr")(7, "td", 19)(8, "div", 20)(9, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](10, "Nombre:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "td")(13, "div", 20)(14, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "Tipo de defecto:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](17, "tr")(18, "td", 19)(19, "div")(20, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](21, "Observaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](23, "td")(24, "div")(25, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](26, "Observaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r5.datosCmprb.RMADefecto.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r5.datosCmprb.RMADefecto.TipoDefecto.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r5.datosCmprb.RMADefecto.Observacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r5.datosCmprb.RMADefecto.TipoDefecto.Observacion, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_69_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "td", 19)(2, "div")(3, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const atributo_r21 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", atributo_r21.RMAAtributo.Nombre, ":");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", atributo_r21.Valor, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_table_69_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "table", 16)(1, "thead")(2, "tr", 17)(3, "th", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Atributos ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "tbody")(6, "tr", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, CmprbReclamoComponent_ng_template_6_table_69_ng_container_7_Template, 6, 2, "ng-container", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r6.datosCmprb.Atributos);
  }
}
function CmprbReclamoComponent_ng_template_6_hr_94_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "hr", 28);
  }
}
function CmprbReclamoComponent_ng_template_6_tr_95_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div")(3, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Estado de resoluci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r8.getEstadoResolucion(ctx_r8.datosCmprb.RMAEstado.Id == 2 ? ctx_r8.datosCmprb.RMAProveedor.RMAResolucion.EstadoResolucion : ctx_r8.datosCmprb.RMACliente.RMAResolucion.EstadoResolucion), " ");
  }
}
function CmprbReclamoComponent_ng_template_6_tr_96_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div")(3, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Resoluci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r9.datosCmprb.RMAEstado.Id == 2 ? ctx_r9.datosCmprb.RMAProveedor.RMAResolucion.Nombre : ctx_r9.datosCmprb.RMACliente.RMAResolucion.Nombre, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_tr_97_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div")(3, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, "Nro.Reclamo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r10.datosCmprb.RMAProveedor.NumeroReclamo, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_hr_98_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "hr", 28);
  }
}
function CmprbReclamoComponent_ng_template_6_ng_container_99_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "tr")(2, "td")(3, "div")(4, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Fecha de env\u00EDo al proveedor:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "tr")(8, "td")(9, "div")(10, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Observaci\u00F3n de env\u00EDo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r12.datosCmprb.RMAProveedor.FechaEnvio, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r12.datosCmprb.RMAProveedor.ObservacionEnvio, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_ng_container_100_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "tr")(2, "td")(3, "div")(4, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Fecha de resoluci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "tr")(8, "td")(9, "div")(10, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Observaci\u00F3n de resoluci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r13.datosCmprb.RMAProveedor.FechaResolucion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r13.datosCmprb.RMAProveedor.ObservacionResolucion, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_hr_101_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "hr", 28);
  }
}
function CmprbReclamoComponent_ng_template_6_ng_container_102_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "tr")(2, "td")(3, "div")(4, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Fecha de resoluci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "tr")(8, "td")(9, "div")(10, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Fecha de notificaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](13, "tr")(14, "td")(15, "div")(16, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17, "Fecha de entrega:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "tr")(20, "td")(21, "div")(22, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](23, "Observaci\u00F3n cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r15.datosCmprb.RMACliente.FechaResolucion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r15.datosCmprb.RMACliente.FechaNotificacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r15.datosCmprb.RMACliente.FechaEntrega, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r15.datosCmprb.RMAProveedor.ObservacionResolucion, " ");
  }
}
function CmprbReclamoComponent_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 5)(1, "table", 6)(2, "tbody")(3, "tr")(4, "td", 7)(5, "img", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("error", function CmprbReclamoComponent_ng_template_6_Template_img_error_5_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r23);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r22.handleMissingImage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "td", 7)(7, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8, "Reclamo de Garant\u00EDa");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](9, "div")(10, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Nro");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "div")(15, "span", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](16, "Fecha");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](17, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](19, "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "tr")(21, "td")(22, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](23, "Fecha Recepci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](24);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](25, "td", 13)(26, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](27, "Cliente:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](29, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](30, CmprbReclamoComponent_ng_template_6_td_30_Template, 4, 1, "td", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](31, "div")(32, "div", 15)(33, "table", 16)(34, "thead")(35, "tr", 17)(36, "th", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](37, " Datos Generales ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](38, "tbody")(39, "tr")(40, "td", 19)(41, "div", 20)(42, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](43, "Art\u00EDculo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](44);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](45, "td", 19)(46, "div", 20)(47, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](48, "Nro.Serie:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](49);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](50, "tr")(51, "td", 19)(52, "div")(53, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](54, "Proveedor:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](55);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](56, "td")(57, "div")(58, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](59, "Motivo:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](60);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](61, "tr")(62, "td")(63, "div", 21)(64, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](65, "Observaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](66);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](67, CmprbReclamoComponent_ng_template_6_table_67_Template, 12, 4, "table", 22)(68, CmprbReclamoComponent_ng_template_6_table_68_Template, 28, 4, "table", 22)(69, CmprbReclamoComponent_ng_template_6_table_69_Template, 8, 1, "table", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](70, "table", 16)(71, "thead")(72, "tr", 17)(73, "th", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](74, " Seguimiento ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](75, "tbody")(76, "tr")(77, "td")(78, "div", 20)(79, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](80, "Estado:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](81);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](82, "tr")(83, "td")(84, "div")(85, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](86, "Observaci\u00F3n:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](87);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](88, "tr")(89, "td")(90, "div", 7)(91, "span", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](92, "Responsable:");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](93);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](94, CmprbReclamoComponent_ng_template_6_hr_94_Template, 1, 0, "hr", 24)(95, CmprbReclamoComponent_ng_template_6_tr_95_Template, 6, 1, "tr", 14)(96, CmprbReclamoComponent_ng_template_6_tr_96_Template, 6, 1, "tr", 14)(97, CmprbReclamoComponent_ng_template_6_tr_97_Template, 6, 1, "tr", 14)(98, CmprbReclamoComponent_ng_template_6_hr_98_Template, 1, 0, "hr", 24)(99, CmprbReclamoComponent_ng_template_6_ng_container_99_Template, 13, 2, "ng-container", 14)(100, CmprbReclamoComponent_ng_template_6_ng_container_100_Template, 13, 2, "ng-container", 14)(101, CmprbReclamoComponent_ng_template_6_hr_101_Template, 1, 0, "hr", 24)(102, CmprbReclamoComponent_ng_template_6_ng_container_102_Template, 25, 4, "ng-container", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](103, "div", 25)(104, "div", 26)(105, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](106, "hr", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](107, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](108, "Firma");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](109, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](110, "hr", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](111, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](112, "Aclaraci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](113, "div", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](114, "hr", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](115, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](116, "Documento");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("src", ctx_r1.logoURL, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ctx_r1.datosCmprb.NumeroReclamo);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind2"](19, 29, ctx_r1.today, "dd/MM/yyyy"), "");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r1.datosCmprb.FechaHoraRecepcion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" (", ctx_r1.datosCmprb.Cliente.Codigo, ") ", ctx_r1.datosCmprb.Cliente.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.FechaRevisionTecnico !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](14);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"]("(", ctx_r1.datosCmprb.Articulo.Codigo, ") ", ctx_r1.datosCmprb.Articulo.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r1.datosCmprb.NroSerie, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate2"](" (", ctx_r1.datosCmprb.Proveedor.Codigo, ") ", ctx_r1.datosCmprb.Proveedor.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r1.datosCmprb.MotivoReclamo, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r1.datosCmprb.Observacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.mostrarDatosDeCompra());
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id < 3 || ctx_r1.datosCmprb.RMAEstado.Id == 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (ctx_r1.datosCmprb.RMAEstado.Id < 3 || ctx_r1.datosCmprb.RMAEstado.Id == 5) && ctx_r1.datosCmprb.Atributos !== null);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](12);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r1.datosCmprb.RMAEstado.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", ctx_r1.datosCmprb.RMAEstado.Observacion, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", ctx_r1.datosCmprb.RMAEstado.Id == 2 ? "(" + ctx_r1.datosCmprb.RMAProveedor.Empleado.Codigo + ") " + ctx_r1.datosCmprb.RMAProveedor.Empleado.Nombre : "(" + ctx_r1.datosCmprb.Empleado.Codigo + ") " + ctx_r1.datosCmprb.Empleado.Nombre, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id !== 1 && ctx_r1.datosCmprb.RMAEstado.Id !== 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id !== 1 && ctx_r1.datosCmprb.RMAEstado.Id !== 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id !== 1 && ctx_r1.datosCmprb.RMAEstado.Id !== 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id !== 1 && ctx_r1.datosCmprb.RMAEstado.Id !== 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id >= 2 && ctx_r1.datosCmprb.RMAEstado.Id != 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id >= 2 && ctx_r1.datosCmprb.RMAEstado.Id != 5 && ctx_r1.datosCmprb.RMAProveedor.RMAResolucion.Id >= 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id >= 2 && ctx_r1.datosCmprb.RMAEstado.Id != 5 && ctx_r1.datosCmprb.RMAProveedor.RMAResolucion.Id > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id >= 3 && ctx_r1.datosCmprb.RMAEstado.Id != 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r1.datosCmprb.RMAEstado.Id >= 3 && ctx_r1.datosCmprb.RMAEstado.Id != 5);
  }
}
class CmprbReclamoComponent {
  constructor(datosCmprb, configService) {
    this.datosCmprb = datosCmprb;
    this.configService = configService;
    this.existeArticulosSinControl = false;
  }
  ngOnInit() {
    var _this = this;
    this.today = new Date();
    // MC SINWEB-861
    if (window.isTauri) {
      (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_1__.resourceDir)().then( /*#__PURE__*/function () {
        var _ref = (0,C_ProgramData_Jenkins_jenkins_workspace_Testing_tags_6_0_16b_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function* (resourcePath) {
          const filePath = yield (0,_tauri_apps_api_path__WEBPACK_IMPORTED_MODULE_1__.join)(resourcePath, 'resources/images/logo-empresa.png');
          const imgExists = yield (0,_tauri_apps_plugin_fs__WEBPACK_IMPORTED_MODULE_2__.exists)(filePath);
          if (imgExists) {
            _this.logoURL = (0,_tauri_apps_api_core__WEBPACK_IMPORTED_MODULE_3__.convertFileSrc)(filePath);
          }
        });
        return function (_x) {
          return _ref.apply(this, arguments);
        };
      }());
    } else {
      this.logoURL = this.configService.config.cliente.logo;
    }
  }
  mostrarDatosDeCompra() {
    if (this.datosCmprb.RMAEstado.Id !== 1 && this.datosCmprb.RMAEstado.Id !== 5) {
      return false;
    }
    if (this.datosCmprb.ComprLugar == null && this.datosCmprb.ComprFecha == null && this.datosCmprb.ComprNumero == null && this.datosCmprb.ComprovanteVenta == null) {
      return false;
    }
    return true;
  }
  getEstadoResolucion(estado) {
    switch (estado) {
      case 'R':
        return 'Rechazado';
        break;
      case 'A':
        return 'Aprobado';
        break;
      case 'D':
        return 'A dictaminar';
        break;
      default:
        return '';
        break;
    }
  }
  handleMissingImage(ev) {
    this.logoURL = 'assets/images/utils/img-not-found.jpeg';
  }
  static #_ = this.ɵfac = function CmprbReclamoComponent_Factory(t) {
    return new (t || CmprbReclamoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"]('datosCmprb'), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_core_services_config_service__WEBPACK_IMPORTED_MODULE_4__.ConfigService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
    type: CmprbReclamoComponent,
    selectors: [["app-cmprb-reclamo"]],
    decls: 8,
    vars: 1,
    consts: [[1, "reporte-container"], [1, "table-responsive"], [1, "table", "table-centered", "table-nowrap", "tableRound"], [3, "ngTemplateOutlet"], ["COMPROBANTE", ""], [1, "table", "px-2"], [1, "table", "table-centered", "table-nowrap"], ["colspan", "2"], ["alt", "", 1, "img-fluid", 2, "width", "200px", "height", "100px", 3, "src", "error"], [1, "cmprbTitle"], [1, "cmprbSubt2"], [1, "font-size-16"], [1, "cmprbSubt"], ["colspan", "3"], [4, "ngIf"], [1, "table", "px-2", "pt-3", "tableRoundGray"], [1, "table", "table-centered", "table-nowrap", "borderless", "tableNotSpacing"], [1, "border", "border-1", "border-dark"], ["colspan", "4", "scope", "colgroup", 1, "text-left", "headerTitle"], [1, "col-6"], [1, "mt-3"], [1, ""], ["class", "table table-centered table-nowrap borderless tableNotSpacing", 4, "ngIf"], ["scope", "colgroup", 1, "text-left", "headerTitle", "headerSeguimiento"], ["class", "separator", 4, "ngIf"], [1, "w-100", "my-2"], [1, "row"], [1, "col-4", "text-center"], [1, "separator"], ["class", "col-6", 4, "ngIf"], [1, "d-flex", "flex-wrap", "px-0"], [4, "ngFor", "ngForOf"]],
    template: function CmprbReclamoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "table", 2)(3, "tbody")(4, "tr");
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, CmprbReclamoComponent_ng_template_5_Template, 0, 0, "ng-template", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](6, CmprbReclamoComponent_ng_template_6_Template, 117, 32, "ng-template", null, 4, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngTemplateOutlet", _r2);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgTemplateOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_6__.DatePipe],
    styles: [".reporte-container[_ngcontent-%COMP%] {\n  background: #fff;\n  color: #111;\n  width: 100%;\n  overflow-x: auto;\n}\n@media (max-width: 992px) {\n  .reporte-container[_ngcontent-%COMP%] {\n    width: -moz-fit-content;\n    width: fit-content;\n    padding-right: 1rem;\n  }\n}\n\n.tableRound[_ngcontent-%COMP%] {\n  border-collapse: separate;\n  border-spacing: 10;\n  border: solid black 1px;\n  border-radius: 20px;\n  -moz-border-radius: 10px;\n  -webkit-border-radius: 5px;\n}\n\n.table[_ngcontent-%COMP%] {\n  max-width: 1095px !important;\n}\n\n.cmprbSubt[_ngcontent-%COMP%] {\n  font-weight: bold;\n  font-size: 12px;\n  padding-right: 5px;\n}\n\n.cmprbSubt2[_ngcontent-%COMP%] {\n  font-weight: bold;\n  font-size: 16px;\n  padding-right: 5px;\n}\n\n.tableRoundGray[_ngcontent-%COMP%] {\n  border-collapse: separate;\n  border-spacing: 10;\n  border: solid rgb(193, 193, 193) 1px;\n  border-radius: 15px;\n  -moz-border-radius: 10px;\n  -webkit-border-radius: 5px;\n}\n\n.cmprbTitle[_ngcontent-%COMP%] {\n  font-weight: bold;\n  font-size: 20px;\n}\n\n.headerRound[_ngcontent-%COMP%] {\n  background-color: rgb(193, 193, 193);\n}\n\n.headerTitle[_ngcontent-%COMP%] {\n  font-size: 15px;\n  font-weight: bold;\n}\n\n.borderless[_ngcontent-%COMP%] {\n  border: solid white 1px;\n}\n\n.tableNotSpacing[_ngcontent-%COMP%]   td[_ngcontent-%COMP%] {\n  padding-top: 2px;\n  padding-bottom: 2px;\n  word-break: break-all;\n}\n\n.separator[_ngcontent-%COMP%] {\n  padding: 0px;\n  border: 0.5px solid gray;\n  opacity: 0.5;\n}\n\n.headerSeguimiento[_ngcontent-%COMP%] {\n  background-color: #d9d9d9;\n}"]
  });
}

/***/ }),

/***/ 56208:
/*!*****************************************!*\
  !*** ./src/app/shared/shared.module.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SharedModule: () => (/* binding */ SharedModule)
/* harmony export */ });
/* harmony import */ var _reportes_reportes_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reportes/reportes.module */ 1288);
/* harmony import */ var _widget_widget_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./widget/widget.module */ 67040);
/* harmony import */ var _ui_ui_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ui/ui.module */ 52540);
/* harmony import */ var _comprobantes_comprobantes_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./comprobantes/comprobantes.module */ 23069);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);





class SharedModule {
  static #_ = this.ɵfac = function SharedModule_Factory(t) {
    return new (t || SharedModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({
    type: SharedModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({
    imports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_2__.UIModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_1__.WidgetModule, _reportes_reportes_module__WEBPACK_IMPORTED_MODULE_0__.ReportesModule, _comprobantes_comprobantes_module__WEBPACK_IMPORTED_MODULE_3__.ComprobantesModule, _ui_ui_module__WEBPACK_IMPORTED_MODULE_2__.UIModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_1__.WidgetModule, _reportes_reportes_module__WEBPACK_IMPORTED_MODULE_0__.ReportesModule, _comprobantes_comprobantes_module__WEBPACK_IMPORTED_MODULE_3__.ComprobantesModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](SharedModule, {
    imports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_2__.UIModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_1__.WidgetModule, _reportes_reportes_module__WEBPACK_IMPORTED_MODULE_0__.ReportesModule, _comprobantes_comprobantes_module__WEBPACK_IMPORTED_MODULE_3__.ComprobantesModule],
    exports: [_ui_ui_module__WEBPACK_IMPORTED_MODULE_2__.UIModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_1__.WidgetModule, _reportes_reportes_module__WEBPACK_IMPORTED_MODULE_0__.ReportesModule, _comprobantes_comprobantes_module__WEBPACK_IMPORTED_MODULE_3__.ComprobantesModule]
  });
})();

/***/ }),

/***/ 79468:
/*!**********************************************************!*\
  !*** ./src/app/shared/ui/checkbox/checkbox.component.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CheckboxComponent: () => (/* binding */ CheckboxComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeng/tooltip */ 33259);




const _c0 = a0 => ({
  color: a0
});
function CheckboxComponent_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "svg", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "path", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](1, _c0, ctx_r0.disabled ? ctx_r0.getColor(ctx_r0.colorDisabled) : ctx_r0.getColor(ctx_r0.colorUncheked)));
  }
}
function CheckboxComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "svg", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "path", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](1, _c0, ctx_r1.disabled ? ctx_r1.getColor(ctx_r1.colorDisabled) : ctx_r1.getColor(ctx_r1.colorChecked)));
  }
}
const _c1 = (a0, a1) => ({
  "border-color": a0,
  cursor: a1
});
class CheckboxComponent {
  constructor() {
    //SP SINWEB-61 valor actual del checkbox
    this.value = false;
    //SP SINWEB-61 titulo del checkbox
    this.title = '';
    //SP SINWEB-61 clase base de boostrap usada para el color del checkbox no seleccioando
    this.colorUncheked = 'primary';
    //SP SINWEB-61 clase base de boostrap usada para el color del checkbox seleccionado
    this.colorChecked = 'success';
    //SP SINWEB-61 clase base de boostrap usada para el color del checkbox disabled
    this.colorDisabled = 'info';
    //SP SINWEB-62 input que indica cuando se desabilita el componente
    this.disabled = false;
    this.tooltip = '';
    this.emitAction = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  ngOnInit() {}
  emitir() {
    this.emitAction.emit();
  }
  //SP SINWEB-61 metodo para obtener los colores de las clases base , queda como mejora usar las variables del template , por ahora hardcodeado
  getColor(color) {
    switch (color) {
      case 'success':
        return '#34c38f';
      case 'danger':
        return '#f46a6a';
      case 'warning':
        return '#f1b44c';
      case 'primary':
        return '#0070af';
      case 'secondary':
        return '#74788d';
      case 'info':
        return '#50a5f1';
      case 'light':
        return '#eff2f7';
      case 'dark':
        return '#343a40';
      default:
        return 'dark';
    }
  }
  static #_ = this.ɵfac = function CheckboxComponent_Factory(t) {
    return new (t || CheckboxComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: CheckboxComponent,
    selectors: [["app-checkbox"]],
    inputs: {
      idCheck: "idCheck",
      value: "value",
      title: "title",
      colorUncheked: "colorUncheked",
      colorChecked: "colorChecked",
      colorDisabled: "colorDisabled",
      disabled: "disabled",
      tooltip: "tooltip"
    },
    outputs: {
      emitAction: "emitAction"
    },
    decls: 8,
    vars: 14,
    consts: [[1, "me-2"], ["tooltipPosition", "right", 1, "checkbox-container", 3, "pTooltip"], ["type", "checkbox", "name", "", 3, "id", "disabled", "click"], [1, "svg-container", "mb-0", 3, "for", "ngStyle"], [4, "ngIf"], [3, "ngStyle"], ["viewBox", "0 0 20 20", 1, "svg-icon", 3, "ngStyle"], ["stroke", "currentColor", "fill", "currentColor", "d", "M15.898,4.045c-0.271-0.272-0.713-0.272-0.986,0l-4.71,4.711L5.493,4.045c-0.272-0.272-0.714-0.272-0.986,0s-0.272,0.714,0,0.986l4.709,4.711l-4.71,4.711c-0.272,0.271-0.272,0.713,0,0.986c0.136,0.136,0.314,0.203,0.492,0.203c0.179,0,0.357-0.067,0.493-0.203l4.711-4.711l4.71,4.711c0.137,0.136,0.314,0.203,0.494,0.203c0.178,0,0.355-0.067,0.492-0.203c0.273-0.273,0.273-0.715,0-0.986l-4.711-4.711l4.711-4.711C16.172,4.759,16.172,4.317,15.898,4.045z"], ["stroke", "currentColor", "fill", "currentColor", "d", "M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z"]],
    template: function CheckboxComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "input", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CheckboxComponent_Template_input_click_2_listener() {
          return ctx.emitir();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, CheckboxComponent_div_4_Template, 3, 3, "div", 4)(5, CheckboxComponent_div_5_Template, 3, 3, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "span", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("pTooltip", ctx.tooltip);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx.idCheck ? ctx.idCheck : ctx.title)("disabled", ctx.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("for", ctx.idCheck ? ctx.idCheck : ctx.title)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](9, _c1, ctx.disabled ? ctx.getColor(ctx.colorDisabled) : !ctx.value ? ctx.getColor(ctx.colorUncheked) : ctx.getColor(ctx.colorChecked), ctx.disabled ? "default" : "pointer"));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.value);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.value);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](12, _c0, ctx.disabled ? ctx.getColor(ctx.colorDisabled) : !ctx.value ? ctx.getColor(ctx.colorUncheked) : ctx.getColor(ctx.colorChecked)));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgStyle, primeng_tooltip__WEBPACK_IMPORTED_MODULE_2__.Tooltip],
    styles: ["input[type=checkbox][_ngcontent-%COMP%] {\n  appearance: none;\n  -webkit-appearance: none;\n}\n\n.svg-icon[_ngcontent-%COMP%] {\n  width: 1em;\n  height: 1em;\n}\n\n.svg-icon[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%] {\n  stroke: #4691f6;\n  stroke-width: 1;\n}\n\n.checkbox-container[_ngcontent-%COMP%] {\n  display: flex;\n  cursor: default;\n  align-items: center;\n  margin-bottom: 12px;\n  font-size: 16px;\n  font-weight: 600;\n  gap: 5px;\n}\n\n.svg-container[_ngcontent-%COMP%] {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  height: 30px;\n  width: 30px;\n  border-radius: 50%;\n  border: 3px solid;\n  cursor: pointer;\n}\n\n.svg-container[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%] {\n  padding-top: 2px;\n  height: 20px;\n  width: 20px;\n}"]
  });
}

/***/ }),

/***/ 536:
/*!******************************************************************!*\
  !*** ./src/app/shared/ui/code-scanner/code-scanner.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CodeScannerComponent: () => (/* binding */ CodeScannerComponent)
/* harmony export */ });
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var _zxing_library__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @zxing/library */ 7296);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @zxing/ngx-scanner */ 59481);






function CodeScannerComponent_button_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CodeScannerComponent_button_5_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r2);
      const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r1.toggleFlash());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r0.flashEnabled ? "btn-danger" : "btn-success");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r0.flashEnabled ? "Apagar Flash" : "Encender Flash", " ");
  }
}
class CodeScannerComponent {
  constructor(modal) {
    this.modal = modal;
    this.formatosCompatibles = [_zxing_library__WEBPACK_IMPORTED_MODULE_0__.BarcodeFormat.QR_CODE, _zxing_library__WEBPACK_IMPORTED_MODULE_0__.BarcodeFormat.EAN_13];
    this.tryHarder = true;
    this.flashEnabled = false;
    this.code = '';
    this.flashAvailable$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__.BehaviorSubject(false);
  }
  ngOnInit() {}
  ngOnDestroy() {}
  exitoScanner(event) {
    this.code = event;
    this.modal.close(event);
  }
  camaraNoEncontrada(event) {
    this.modal.close('ERROR_CAMARA');
  }
  onHasPermission(has) {
    if (!has) {
      this.modal.close('ERROR_PERMISO');
    }
  }
  flashCompatible(isCompatible) {
    this.flashAvailable$.next(isCompatible || false);
  }
  toggleFlash() {
    this.flashEnabled = !this.flashEnabled;
  }
  static #_ = this.ɵfac = function CodeScannerComponent_Factory(t) {
    return new (t || CodeScannerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: CodeScannerComponent,
    selectors: [["app-code-scanner"]],
    decls: 10,
    vars: 6,
    consts: [[1, "modal-content"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", 2, "min-height", "200px"], [3, "formats", "tryHarder", "torch", "scanSuccess", "camerasNotFound", "torchCompatible", "permissionResponse"], [1, "modal-footer", "d-flex", "justify-content-between"], ["type", "button", "class", "btn mr-2", 3, "ngClass", "click", 4, "ngIf"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "mr-2", 3, "ngClass", "click"]],
    template: function CodeScannerComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "zxing-scanner", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("scanSuccess", function CodeScannerComponent_Template_zxing_scanner_scanSuccess_2_listener($event) {
          return ctx.exitoScanner($event);
        })("camerasNotFound", function CodeScannerComponent_Template_zxing_scanner_camerasNotFound_2_listener($event) {
          return ctx.camaraNoEncontrada($event);
        })("torchCompatible", function CodeScannerComponent_Template_zxing_scanner_torchCompatible_2_listener($event) {
          return ctx.flashCompatible($event);
        })("permissionResponse", function CodeScannerComponent_Template_zxing_scanner_permissionResponse_2_listener($event) {
          return ctx.onHasPermission($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3)(4, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CodeScannerComponent_button_5_Template, 2, 2, "button", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "async");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div")(8, "button", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CodeScannerComponent_Template_button_click_8_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formats", ctx.formatosCompatibles)("tryHarder", ctx.tryHarder)("torch", ctx.flashEnabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 4, ctx.flashAvailable$));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_5__.ZXingScannerComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.AsyncPipe],
    styles: ["[_nghost-%COMP%]   zxing-scanner[_ngcontent-%COMP%]  {\n  object-fit: contain;\n}"]
  });
}

/***/ }),

/***/ 80493:
/*!*******************************************************************************************************!*\
  !*** ./src/app/shared/ui/cron-generator/cron-generator-advanced/cron-generator-advanced.component.ts ***!
  \*******************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CronGeneratorAdvancedComponent: () => (/* binding */ CronGeneratorAdvancedComponent)
/* harmony export */ });
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @sbzen/ng-cron */ 13479);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 56223);






class CronGeneratorAdvancedComponent {
  constructor(modal) {
    this.modal = modal;
    this.cronoLocale = {
      common: {
        month: {
          january: 'Enero',
          february: 'Febrero',
          march: 'Marzo',
          april: 'Abril',
          may: 'Mayo',
          june: 'Junio',
          july: 'Julio',
          august: 'Agosto',
          september: 'Septiembre',
          october: 'Octubre',
          november: 'Noviembre',
          december: 'Diciembre'
        },
        dayOfWeek: {
          sunday: 'Domingo',
          monday: 'Lunes',
          tuesday: 'Martes',
          wednesday: 'Miércoles',
          thursday: 'Jueves',
          friday: 'Viernes',
          saturday: 'Sábado'
        },
        dayOfMonth: {
          '1st': '1',
          '2nd': '2',
          '3rd': '3',
          '4th': '4',
          '5th': '5',
          '6th': '6',
          '7th': '7',
          '8th': '8',
          '9th': '9',
          '10th': '10',
          '11th': '11',
          '12th': '12',
          '13th': '13',
          '14th': '14',
          '15th': '15',
          '16th': '16',
          '17th': '17',
          '18th': '18',
          '19th': '19',
          '20th': '20',
          '21st': '21',
          '22nd': '22',
          '23rd': '23',
          '24th': '24',
          '25th': '25',
          '26th': '26',
          '27th': '27',
          '28th': '28',
          '29th': '29',
          '30th': '30',
          '31st': '31'
        }
      },
      tabs: {
        seconds: 'Segundos',
        minutes: 'Minutos',
        hours: 'Horas',
        day: 'Días',
        month: 'Meses',
        year: 'Años'
      },
      unix: {
        day: {
          every: {
            label: 'Cada día'
          },
          dayOfWeekIncrement: {
            label1: 'Cada',
            label2: 'días de la semana'
          },
          dayOfMonthIncrement: {
            label1: 'Cada',
            label2: 'días del mes'
          },
          dayOfWeekAnd: {
            label: 'Especifica que días de la semana'
          },
          dayOfMonthAnd: {
            label: 'Especifica que días del mes'
          }
        },
        month: {
          every: {
            label: 'Cada mes'
          },
          increment: {
            label1: 'Cada',
            label2: 'meses'
          },
          and: {
            label: 'Especifica los meses'
          },
          range: {
            label1: 'Cada mes entre',
            label2: 'yo'
          }
        },
        minute: {
          every: {
            label: 'Cada minuto'
          },
          increment: {
            label1: 'Cada',
            label2: 'minutos'
          },
          and: {
            label: 'Especifica los minutos'
          },
          range: {
            label1: 'Cada minuto entre el minuto',
            label2: 'y'
          }
        },
        hour: {
          every: {
            label: 'Cada hora'
          },
          increment: {
            label1: 'Cada',
            label2: 'horas'
          },
          and: {
            label: 'Especifica las horas'
          },
          range: {
            label1: 'Cada hora entre la hora',
            label2: 'y'
          }
        }
      }
    };
    this.cronValue = '* * * * *';
  }
  ngOnInit() {}
  translateCron(cron) {
    return cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(cron, {
      locale: 'es'
    });
  }
  modalClose() {
    let result = lodash__WEBPACK_IMPORTED_MODULE_1__.replace(this.cronValue, '?', '*');
    this.modal.close(result);
  }
  static #_ = this.ɵfac = function CronGeneratorAdvancedComponent_Factory(t) {
    return new (t || CronGeneratorAdvancedComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
    type: CronGeneratorAdvancedComponent,
    selectors: [["app-cron-generator-advanced"]],
    inputs: {
      cronValue: "cronValue"
    },
    decls: 16,
    vars: 3,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], [1, "row", "mb-4"], [1, "col-12"], ["name", "cron", 3, "ngModel", "localization", "ngModelChange"], [1, "row", "justify-content-center"], [1, "col-auto", "alert", "alert-primary"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "click"]],
    template: function CronGeneratorAdvancedComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "h4", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Configuraci\u00F3n avanzada ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3)(5, "div", 4)(6, "div", 5)(7, "bs5-unix-cron", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CronGeneratorAdvancedComponent_Template_bs5_unix_cron_ngModelChange_7_listener($event) {
          return ctx.cronValue = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 7)(9, "div", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 9)(12, "button", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CronGeneratorAdvancedComponent_Template_button_click_12_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, " Cancelar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "button", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CronGeneratorAdvancedComponent_Template_button_click_14_listener() {
          return ctx.modalClose();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.cronValue)("localization", ctx.cronoLocale);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.translateCron(ctx.cronValue), " ");
      }
    },
    dependencies: [_sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_4__.Bs5UnixCronComponent, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n[_nghost-%COMP%]     .p-treeselect {\n  height: 36.75px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-treeselect-label {\n  font-size: 0.8125rem;\n  padding: 8px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-tree-container {\n  font-size: 0.8125rem;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-overlay {\n  top: 37px !important;\n}\n\n.fw-500[_ngcontent-%COMP%] {\n  font-weight: 500;\n}\n\n .back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"]
  });
}

/***/ }),

/***/ 30965:
/*!**********************************************************************!*\
  !*** ./src/app/shared/ui/cron-generator/cron-generator.component.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   CronGeneratorComponent: () => (/* binding */ CronGeneratorComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/services/viewHelper.service */ 90556);
/* harmony import */ var _cron_generator_advanced_cron_generator_advanced_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cron-generator-advanced/cron-generator-advanced.component */ 80493);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/tooltip */ 33259);











function CronGeneratorComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 34)(1, "h4", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Configuraci\u00F3n de periodicidad ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
}
function CronGeneratorComponent_option_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r12 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r12);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r12, " ");
  }
}
function CronGeneratorComponent_option_23_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r13);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r13, " ");
  }
}
function CronGeneratorComponent_option_32_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r14 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r14);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r14, " ");
  }
}
function CronGeneratorComponent_option_37_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r15 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r15);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r15, " ");
  }
}
function CronGeneratorComponent_option_46_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r16 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r16);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r16, " ");
  }
}
function CronGeneratorComponent_option_51_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r17 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r17);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r17, " ");
  }
}
function CronGeneratorComponent_option_60_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r18 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r18);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r18, " ");
  }
}
function CronGeneratorComponent_option_65_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r19 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r19);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r19, " ");
  }
}
function CronGeneratorComponent_option_74_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r20 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r20.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r20.name, " ");
  }
}
function CronGeneratorComponent_option_79_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "option", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r21 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", i_r21.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", i_r21.name, " ");
  }
}
function CronGeneratorComponent_div_94_Template(rf, ctx) {
  if (rf & 1) {
    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 37)(1, "button", 38);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_div_94_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r23);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r22.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "button", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_div_94_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r23);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r24.modalClose());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, " Aceptar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
  }
}
class CronGeneratorComponent {
  constructor(modal, fb, vh, modalService) {
    this.modal = modal;
    this.fb = fb;
    this.vh = vh;
    this.modalService = modalService;
    this.subscriptions = [];
    this.isModal = false;
    this.modalTitle = 'Configurar periodicidad';
    //@Input() cronValue: string = '* * * * *'
    this.emitValue = new _angular_core__WEBPACK_IMPORTED_MODULE_4__.EventEmitter();
    this.cronValue = ['*', '*', '*', '*', '*'];
    this.formCron = this.fb.group({
      Minuto: ['*'],
      MinutoInt: ['*'],
      Hora: ['*'],
      HoraInt: ['*'],
      Dia: ['*'],
      DiaInt: ['*'],
      Mes: ['*'],
      MesInt: ['*'],
      DiaSemana: ['*'],
      DiaSemanaInt: ['*']
    });
    this.semanaOptions = [{
      id: 1,
      name: 'Lunes'
    }, {
      id: 2,
      name: 'Martes'
    }, {
      id: 3,
      name: 'Miércoles'
    }, {
      id: 4,
      name: 'Jueves'
    }, {
      id: 5,
      name: 'Viernes'
    }, {
      id: 6,
      name: 'Sábado'
    }, {
      id: 7,
      name: 'Domingo'
    }];
    this.semanaDiasOptions = [{
      id: 1,
      name: 'Cada 1 día'
    }, {
      id: 2,
      name: 'Cada 2 días'
    }, {
      id: 3,
      name: 'Cada 3 días'
    }, {
      id: 4,
      name: 'Cada 4 días'
    }, {
      id: 5,
      name: 'Cada 5 días'
    }, {
      id: 6,
      name: 'Cada 6 días'
    }, {
      id: 7,
      name: 'Cada 7 días'
    }];
  }
  ngOnInit() {
    this.vh.formGroup = this.formCron;
    this.controlarForm();
  }
  ngOnDestroy() {
    this.subscriptions.forEach(sub => sub.unsubscribe());
  }
  controlarForm() {
    this.subscriptions.push(this.formCron.get('Minuto').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[0] = value;
        this.formCron.get('MinutoInt').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[0] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('MinutoInt').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[0] = '*/' + value;
        this.formCron.get('Minuto').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[0] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('Hora').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[1] = value;
        this.formCron.get('HoraInt').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[1] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('HoraInt').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[1] = '*/' + value;
        this.formCron.get('Hora').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[1] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('Dia').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[2] = value;
        this.formCron.get('DiaInt').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[2] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('DiaInt').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[2] = '*/' + value;
        this.formCron.get('Dia').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[2] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('Mes').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[3] = value;
        this.formCron.get('MesInt').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[3] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('MesInt').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[3] = '*/' + value;
        this.formCron.get('Mes').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[3] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('DiaSemana').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[4] = value;
        this.formCron.get('DiaSemanaInt').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[4] = '*';
      }
    }));
    this.subscriptions.push(this.formCron.get('DiaSemanaInt').valueChanges.subscribe(value => {
      if (value !== '*') {
        this.cronValue[4] = '*/' + value;
        this.formCron.get('DiaSemana').reset('*', {
          emitEvent: false
        });
      } else {
        this.cronValue[4] = '*';
      }
    }));
  }
  translateCron(cron) {
    return cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(cron, {
      locale: 'es'
    });
  }
  onChangeCronValue($event) {
    if (this.isModal) {
      let result = lodash__WEBPACK_IMPORTED_MODULE_1__.replace($event, '?', '*');
      this.emitValue.emit(result);
    }
  }
  modalClose() {
    let result = lodash__WEBPACK_IMPORTED_MODULE_1__.replace(this.cronValue.join(' '), '?', '*');
    this.modal.close(result);
  }
  range(start, end) {
    return [...Array(end - start + 1).keys()].map(i => i + start);
  }
  openAvanzado() {
    const modalRef = this.modalService.open(_cron_generator_advanced_cron_generator_advanced_component__WEBPACK_IMPORTED_MODULE_3__.CronGeneratorAdvancedComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-last',
      windowClass: 'modal-z-index-last',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.cronValue = this.cronValue.join(' ');
    modalRef.result.then(result => {
      this.cronValue = result.split(' ');
      this.modalClose();
    });
  }
  setCronValue(type) {
    if (type == 'Cada10Min') {
      this.cronValue = ['*/10', '*', '*', '*', '*'];
      this.formCron.get('MinutoInt').setValue('10');
      this.formCron.get('Hora').setValue('*');
      this.formCron.get('HoraInt').setValue('*');
      this.formCron.get('Dia').setValue('*');
      this.formCron.get('DiaInt').setValue('*');
      this.formCron.get('Mes').setValue('*');
      this.formCron.get('MesInt').setValue('*');
      this.formCron.get('DiaSemana').setValue('*');
      this.formCron.get('DiaSemanaInt').setValue('*');
    }
    if (type == 'CadaHora') {
      this.cronValue = ['0', '*', '*', '*', '*'];
      this.formCron.get('Minuto').setValue('0');
      this.formCron.get('Hora').setValue('*');
      this.formCron.get('HoraInt').setValue('*');
      this.formCron.get('Dia').setValue('*');
      this.formCron.get('DiaInt').setValue('*');
      this.formCron.get('Mes').setValue('*');
      this.formCron.get('MesInt').setValue('*');
      this.formCron.get('DiaSemana').setValue('*');
      this.formCron.get('DiaSemanaInt').setValue('*');
    }
    if (type == 'Diario') {
      this.cronValue = ['0', '0', '*', '*', '*'];
      this.formCron.get('Minuto').setValue('0');
      this.formCron.get('Hora').setValue('0');
      this.formCron.get('Dia').setValue('*');
      this.formCron.get('DiaInt').setValue('*');
      this.formCron.get('Mes').setValue('*');
      this.formCron.get('MesInt').setValue('*');
      this.formCron.get('DiaSemana').setValue('*');
      this.formCron.get('DiaSemanaInt').setValue('*');
    }
    if (type == 'Semanal') {
      this.cronValue = ['0', '0', '*', '*', '1'];
      this.formCron.get('Minuto').setValue('0');
      this.formCron.get('Hora').setValue('0');
      this.formCron.get('Dia').setValue('*');
      this.formCron.get('DiaInt').setValue('*');
      this.formCron.get('Mes').setValue('*');
      this.formCron.get('MesInt').setValue('*');
      this.formCron.get('DiaSemana').setValue('1');
    }
    if (type == 'Mensual') {
      this.cronValue = ['0', '0', '1', '*', '*'];
      this.formCron.get('Minuto').setValue('0');
      this.formCron.get('Hora').setValue('0');
      this.formCron.get('Dia').setValue('1');
      this.formCron.get('Mes').setValue('*');
      this.formCron.get('MesInt').setValue('*');
      this.formCron.get('DiaSemana').setValue('*');
      this.formCron.get('DiaSemanaInt').setValue('*');
    }
  }
  reset() {
    this.cronValue = ['*', '*', '*', '*', '*'];
    this.formCron.reset({
      Minuto: '*',
      MinutoInt: '*',
      Hora: '*',
      HoraInt: '*',
      Dia: '*',
      DiaInt: '*',
      Mes: '*',
      MesInt: '*',
      DiaSemana: '*',
      DiaSemanaInt: '*'
    }, {
      emitEvent: false
    });
  }
  static #_ = this.ɵfac = function CronGeneratorComponent_Factory(t) {
    return new (t || CronGeneratorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__.NgbActiveModal), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService), _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: CronGeneratorComponent,
    selectors: [["app-cron-generator"]],
    inputs: {
      isModal: "isModal",
      modalTitle: "modalTitle"
    },
    outputs: {
      emitValue: "emitValue"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_2__.ViewHelperService])],
    decls: 95,
    vars: 16,
    consts: [[3, "ngClass"], ["class", "modal-header", 4, "ngIf"], [1, "row", "mb-4"], [1, "col-12", "text-start"], ["type", "button", "pTooltip", "Limpiar campos", 1, "btn", "btn-danger", "btn-elevate", "mr-2", 3, "click"], [1, "mdi", "mdi-restore"], [1, "d-flex", "flex-column-reverse", "flex-lg-row"], [1, "col-12", "col-lg-10"], [3, "formGroup"], [1, "row", "form-group", "mb-3"], [1, "col-12", "col-lg-3", "mb-2", "mb-lg-0"], [1, "text-muted", "font-size-20"], [1, "col-6", "col-lg-4"], ["formControlName", "Minuto", 1, "form-select"], ["value", "*"], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "MinutoInt", 1, "form-select"], ["formControlName", "Hora", 1, "form-select"], ["formControlName", "HoraInt", 1, "form-select"], ["formControlName", "Dia", 1, "form-select"], ["formControlName", "DiaInt", 1, "form-select"], ["formControlName", "Mes", 1, "form-select"], ["formControlName", "MesInt", 1, "form-select"], ["formControlName", "DiaSemana", 1, "form-select"], ["formControlName", "DiaSemanaInt", 1, "form-select"], [1, "col-auto", "text-center", "d-flex", "flex-row", "flex-lg-column", "gap-2"], ["type", "button", 1, "btn", "btn-info", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-warning", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-dark", "btn-elevate", "mr-2", 3, "click"], ["type", "button", 1, "btn", "btn-primary", "btn-elevate", "mr-2", 3, "click"], [1, "row", "justify-content-center"], [1, "col-auto", "alert", "alert-primary"], ["class", "modal-footer position-relative", 4, "ngIf"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title"], [3, "value"], [1, "modal-footer", "position-relative"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "click"]],
    template: function CronGeneratorComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, CronGeneratorComponent_div_1_Template, 3, 0, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "div", 0)(3, "div", 2)(4, "div", 3)(5, "button", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_Template_button_click_5_listener() {
          return ctx.reset();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](6, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 6)(8, "div", 7)(9, "form", 8)(10, "div", 9)(11, "div", 10)(12, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "Minuto:");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "div", 12)(15, "select", 13)(16, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](17, "Cada minuto");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](18, CronGeneratorComponent_option_18_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "div", 12)(20, "select", 16)(21, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "\u00BFCada cuantos minutos?");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](23, CronGeneratorComponent_option_23_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "div", 9)(25, "div", 10)(26, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](27, "Hora:");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](28, "div", 12)(29, "select", 17)(30, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](31, "Cada hora");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](32, CronGeneratorComponent_option_32_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](33, "div", 12)(34, "select", 18)(35, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](36, "\u00BFCada cuantas horas?");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](37, CronGeneratorComponent_option_37_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "div", 9)(39, "div", 10)(40, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](41, "D\u00EDa del mes:");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](42, "div", 12)(43, "select", 19)(44, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](45, "Cada d\u00EDa");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](46, CronGeneratorComponent_option_46_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](47, "div", 12)(48, "select", 20)(49, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](50, "\u00BFCada cuantos d\u00EDas?");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](51, CronGeneratorComponent_option_51_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](52, "div", 9)(53, "div", 10)(54, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](55, "Mes:");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](56, "div", 12)(57, "select", 21)(58, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](59, "Cada Mes");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](60, CronGeneratorComponent_option_60_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](61, "div", 12)(62, "select", 22)(63, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](64, "\u00BFCada cuantos meses?");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](65, CronGeneratorComponent_option_65_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](66, "div", 9)(67, "div", 10)(68, "span", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](69, "D\u00EDa de la semana:");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](70, "div", 12)(71, "select", 23)(72, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](73, "Cada d\u00EDa de la semana");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](74, CronGeneratorComponent_option_74_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](75, "div", 12)(76, "select", 24)(77, "option", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](78, "\u00BFToda los d\u00EDas de la semana?");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](79, CronGeneratorComponent_option_79_Template, 2, 2, "option", 15);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](80, "div", 25)(81, "button", 26);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_Template_button_click_81_listener() {
          return ctx.setCronValue("Cada10Min");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](82, " Cada 10 Minutos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](83, "button", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_Template_button_click_83_listener() {
          return ctx.setCronValue("CadaHora");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](84, " Cada Hora ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](85, "button", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_Template_button_click_85_listener() {
          return ctx.setCronValue("Diario");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](86, " Diariamente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](87, "button", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_Template_button_click_87_listener() {
          return ctx.setCronValue("Semanal");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](88, " Semanalmente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](89, "button", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function CronGeneratorComponent_Template_button_click_89_listener() {
          return ctx.setCronValue("Mensual");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](90, " Mensualmente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](91, "div", 31)(92, "div", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](93);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](94, CronGeneratorComponent_div_94_Template, 5, 0, "div", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx.isModal ? "modal-content" : "d-block");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.isModal);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", ctx.isModal ? "overlay overlay-block cursor-default modal-body" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("formGroup", ctx.formCron);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(0, 59));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(1, 59));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(0, 23));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(1, 23));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(1, 31));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(1, 31));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(1, 12));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.range(1, 12));
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.semanaOptions);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.semanaDiasOptions);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](14);
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", ctx.translateCron(ctx.cronValue.join(" ")), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.isModal);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_8__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormControlName],
    styles: [".pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}\n\n[_nghost-%COMP%]     .p-treeselect {\n  height: 36.75px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-treeselect-label {\n  font-size: 0.8125rem;\n  padding: 8px;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-tree-container {\n  font-size: 0.8125rem;\n}\n\n[_nghost-%COMP%]     .p-treeselect .p-overlay {\n  top: 37px !important;\n}\n\n.fw-500[_ngcontent-%COMP%] {\n  font-weight: 500;\n}\n\n .back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"]
  });
}

/***/ }),

/***/ 29706:
/*!************************************************************!*\
  !*** ./src/app/shared/ui/data-list/data-list.component.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   DataListComponent: () => (/* binding */ DataListComponent)
/* harmony export */ });
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primeng/button */ 40707);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/table */ 94267);








function DataListComponent_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11)(1, "input", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function DataListComponent_ng_template_7_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r4.searchValue = $event);
    })("input", function DataListComponent_ng_template_7_Template_input_input_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](_r0.filterGlobal($event.target.value, "contains"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "button", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("onClick", function DataListComponent_ng_template_7_Template_button_onClick_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r7.clear(_r0));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.searchValue);
  }
}
function DataListComponent_ng_template_8_Conditional_1_th_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r10.columns[0].Nombre, ") ", ctx_r10.columns[1].Nombre, " ");
  }
}
function DataListComponent_ng_template_8_Conditional_1_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r11.columns[0].Nombre);
  }
}
function DataListComponent_ng_template_8_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, DataListComponent_ng_template_8_Conditional_1_th_0_Template, 2, 2, "th", 14)(1, DataListComponent_ng_template_8_Conditional_1_th_1_Template, 2, 1, "th", 14);
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.columns.length > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.columns.length <= 1);
  }
}
function DataListComponent_ng_template_8_Conditional_2_th_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r13 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](col_r13.Nombre);
  }
}
function DataListComponent_ng_template_8_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, DataListComponent_ng_template_8_Conditional_2_th_0_Template, 2, 1, "th", 15);
  }
  if (rf & 2) {
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r9.columns);
  }
}
function DataListComponent_ng_template_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, DataListComponent_ng_template_8_Conditional_1_Template, 2, 2)(2, DataListComponent_ng_template_8_Conditional_2_Template, 1, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, ctx_r2.type == "default" ? 1 : 2);
  }
}
function DataListComponent_ng_template_9_Conditional_1_td_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const data_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", ctx_r17.getValor(data_r14, ctx_r17.columns[0].Key), ") ", ctx_r17.getValor(data_r14, ctx_r17.columns[1].Key), " ");
  }
}
function DataListComponent_ng_template_9_Conditional_1_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const data_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r18.getValor(data_r14, ctx_r18.columns[0].Key), " ");
  }
}
function DataListComponent_ng_template_9_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, DataListComponent_ng_template_9_Conditional_1_td_0_Template, 2, 2, "td", 14)(1, DataListComponent_ng_template_9_Conditional_1_td_1_Template, 2, 1, "td", 14);
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.columns.length > 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.columns.length <= 1);
  }
}
function DataListComponent_ng_template_9_Conditional_2_td_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r22 = ctx.$implicit;
    const data_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r21.getValor(data_r14, col_r22.Key));
  }
}
function DataListComponent_ng_template_9_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, DataListComponent_ng_template_9_Conditional_2_td_0_Template, 2, 1, "td", 15);
  }
  if (rf & 2) {
    const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r16.columns);
  }
}
function DataListComponent_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, DataListComponent_ng_template_9_Conditional_1_Template, 2, 2)(2, DataListComponent_ng_template_9_Conditional_2_Template, 1, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, ctx_r3.type == "default" ? 1 : 2);
  }
}
const _c0 = () => ({
  "min-width": "100%"
});
class DataListComponent {
  constructor(modal) {
    this.modal = modal;
    this.title = '';
    this.data = [];
    this.type = 'default';
  }
  ngOnInit() {}
  getValor(dato, camino) {
    return lodash__WEBPACK_IMPORTED_MODULE_0__.get(dato, camino, '');
  }
  clear(table) {
    table.clear();
    this.searchValue = '';
  }
  getGlobalFilters() {
    return this.columns.length > 0 ? this.type == 'custom' ? this.columns.map(c => c.Key) : this.columns.length > 1 ? [this.columns[0].Key, this.columns[1].Key] : [this.columns[0].Key] : [];
  }
  static #_ = this.ɵfac = function DataListComponent_Factory(t) {
    return new (t || DataListComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: DataListComponent,
    selectors: [["app-data-list"]],
    inputs: {
      title: "title",
      data: "data",
      columns: "columns",
      type: "type"
    },
    decls: 13,
    vars: 6,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body", "pb-0"], ["scrollHeight", "400px", "tableStyleClass", "table table-striped table-hover", 3, "value", "scrollable", "tableStyle", "globalFilterFields"], ["dataList1", ""], ["pTemplate", "caption"], ["pTemplate", "header"], ["pTemplate", "body"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", "mr-2", 3, "click"], [1, "input-group", "py-2"], ["pInputText", "", "type", "text", "placeholder", "Buscar...", 1, "form-control", 3, "ngModel", "ngModelChange", "input"], ["pButton", "", "label", "Borrar", "icon", "pi pi-filter-slash", 1, "btn", "btn-outline-primary", 3, "onClick"], [4, "ngIf"], [4, "ngFor", "ngForOf"]],
    template: function DataListComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3)(5, "p-table", 4, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, DataListComponent_ng_template_7_Template, 3, 1, "ng-template", 6)(8, DataListComponent_ng_template_8_Template, 3, 1, "ng-template", 7)(9, DataListComponent_ng_template_9_Template, 3, 1, "ng-template", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 9)(11, "button", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DataListComponent_Template_button_click_11_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.title, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.data)("scrollable", true)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](5, _c0))("globalFilterFields", ctx.getGlobalFilters());
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_3__.PrimeTemplate, primeng_button__WEBPACK_IMPORTED_MODULE_4__.ButtonDirective, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, primeng_table__WEBPACK_IMPORTED_MODULE_7__.Table],
    styles: [".back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"]
  });
}

/***/ }),

/***/ 2429:
/*!******************************************************************!*\
  !*** ./src/app/shared/ui/hotkeys-info/hotkeys-info.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   HotkeysInfoComponent: () => (/* binding */ HotkeysInfoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/overlaypanel */ 88454);




function HotkeysInfoComponent_ng_template_4_div_1_li_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 17)(1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const nav_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](nav_r5.description);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](nav_r5.hotkey);
  }
}
function HotkeysInfoComponent_ng_template_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11)(1, "div", 12)(2, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Navegaci\u00F3n");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 14)(5, "ul", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, HotkeysInfoComponent_ng_template_4_div_1_li_6_Template, 5, 2, "li", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.hotkeys.nav);
  }
}
function HotkeysInfoComponent_ng_template_4_div_2_li_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 17)(1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const action_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](action_r7.description);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](action_r7.hotkey);
  }
}
function HotkeysInfoComponent_ng_template_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11)(1, "div", 19)(2, "span", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Funciones");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 14)(5, "ul", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, HotkeysInfoComponent_ng_template_4_div_2_li_6_Template, 5, 2, "li", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.hotkeys.actions);
  }
}
function HotkeysInfoComponent_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, HotkeysInfoComponent_ng_template_4_div_1_Template, 7, 1, "div", 6)(2, HotkeysInfoComponent_ng_template_4_div_2_Template, 7, 1, "div", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 7)(4, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Presione las teclas indicadas para activar cada funci\u00F3n. Estos atajos est\u00E1n dise\u00F1ados para mejorar su experiencia de navegaci\u00F3n. ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.hotkeys.nav.length > 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.hotkeys.actions.length > 0);
  }
}
const _c0 = () => ({
  width: "600px"
});
class HotkeysInfoComponent {
  constructor() {}
  ngOnInit() {}
  static #_ = this.ɵfac = function HotkeysInfoComponent_Factory(t) {
    return new (t || HotkeysInfoComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: HotkeysInfoComponent,
    selectors: [["app-hotkeys-info"]],
    inputs: {
      hotkeys: "hotkeys"
    },
    decls: 5,
    vars: 5,
    consts: [[1, "fs-2", "pointer", 3, "click"], [1, "mdi", "mdi-keyboard-outline"], [3, "baseZIndex", "showCloseIcon"], ["op", ""], ["pTemplate", "content"], [1, "m-3"], ["class", "card shortcut-card", 4, "ngIf"], ["role", "alert", 1, "alert", "alert-info", "my-1"], [1, "d-flex", "align-items-center"], [1, "mdi", "mdi-information-outline", "fs-4"], [1, "ms-2", "fs-6"], [1, "card", "shortcut-card"], [1, "card-header", "bg-primary", "text-white", "p-2"], [1, "fs-5", "mb-0"], [1, "card-body", "fs-6", "p-2"], [1, "list-group", "list-group-flush"], ["class", "list-group-item d-flex justify-content-between align-items-center", 4, "ngFor", "ngForOf"], [1, "list-group-item", "d-flex", "justify-content-between", "align-items-center"], [1, "key"], [1, "card-header", "bg-success", "text-white", "p-2"]],
    template: function HotkeysInfoComponent_Template(rf, ctx) {
      if (rf & 1) {
        const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function HotkeysInfoComponent_Template_a_click_0_listener($event) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8);
          const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
          return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](_r0.toggle($event));
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "i", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p-overlayPanel", 2, 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, HotkeysInfoComponent_ng_template_4_Template, 8, 2, "ng-template", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](4, _c0));
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("baseZIndex", 9999)("showCloseIcon", true);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_1__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_3__.OverlayPanel],
    styles: [".shortcut-card[_ngcontent-%COMP%] {\n  transition: transform 0.3s, box-shadow 0.3s;\n  margin-bottom: 1rem;\n}\n\n.shortcut-card[_ngcontent-%COMP%]:hover {\n  transform: translateY(-5px);\n  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);\n}\n\n.key[_ngcontent-%COMP%] {\n  background-color: #f8f9fa;\n  border: 1px solid #dee2e6;\n  border-radius: 4px;\n  padding: 0.2rem 0.5rem;\n  font-family: monospace;\n  font-weight: bold;\n  color: var(--bs-body-color);\n}\n\n.header-section[_ngcontent-%COMP%] {\n  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);\n  color: white;\n}"]
  });
}

/***/ }),

/***/ 75871:
/*!************************************************************************!*\
  !*** ./src/app/shared/ui/input-date-time/input-date-time.component.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InputDateTimeComponent: () => (/* binding */ InputDateTimeComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* 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 primeng_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_calendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primeng/calendar */ 78743);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_inputmask__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/inputmask */ 59663);
/* harmony import */ var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/overlaypanel */ 88454);
/* harmony import */ var primeng_inputgroup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/inputgroup */ 55897);
/* harmony import */ var primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primeng/inputgroupaddon */ 41757);












const _c0 = ["op"];
function InputDateTimeComponent_p_inputGroupAddon_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p-inputGroupAddon", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function InputDateTimeComponent_p_inputGroupAddon_2_Template_p_inputGroupAddon_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r5.mostrar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
}
function InputDateTimeComponent_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  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__["ɵɵtextInterpolate1"](" ", ctx_r1.msgValido, "\n");
  }
}
function InputDateTimeComponent_ng_container_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r9.msgErrors[i_r8], " ");
  }
}
function InputDateTimeComponent_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, InputDateTimeComponent_ng_container_4_div_1_Template, 2, 1, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const err_r7 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", err_r7 && ctx_r2.showErrors && ctx_r2.touched);
  }
}
function InputDateTimeComponent_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p-calendar", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function InputDateTimeComponent_ng_template_7_Template_p_calendar_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r11.valorSelect = $event);
    })("onSelect", function InputDateTimeComponent_ng_template_7_Template_p_calendar_onSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r12);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r13.selectValor($event));
    })("onClickOutside", function InputDateTimeComponent_ng_template_7_Template_p_calendar_onClickOutside_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r12);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r14.close());
    })("onClearClick", function InputDateTimeComponent_ng_template_7_Template_p_calendar_onClearClick_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r12);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r15.clear());
    })("onTodayClick", function InputDateTimeComponent_ng_template_7_Template_p_calendar_onTodayClick_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r12);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r16.today());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("showTime", true)("hourFormat", 24)("ngModel", ctx_r4.valorSelect)("inline", true)("showButtonBar", true)("maxDate", ctx_r4.maxDateAux);
  }
}
class InputDateTimeComponent {
  onClickOrTouch(event) {
    //event.preventDefault();
    this.touched = true;
    this.touchedEmit.emit(true);
  }
  constructor(primengConfig) {
    this.primengConfig = primengConfig;
    this.valor = '';
    this.errors = [];
    this.msgErrors = [];
    this.msgValido = 'Fecha válida';
    this.disabled = false;
    this.showErrors = false;
    this.valorInicial = '';
    this.valorSelect = undefined;
    this.maxDateAux = null;
    this.touched = false;
    this.regex = /^\d{2}\/(0[1-9]|1[0-2])\/\d{4} \d{2}:\d{2}$/;
    this.valorEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.touchedEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.valorInicial = this.valor;
    if (this.valor) {
      let [date, time] = this.valor.split(' ');
      if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaIncompleta)(this.valor)) {
        this.valorSelect = null;
      } else {
        this.valorSelect = new Date((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(date) + ' ' + time);
      }
    } else {
      this.valorSelect = null;
    }
  }
  ngOnChanges(changes) {
    if (changes.valor) {
      if (changes.valor.currentValue) {
        this.valorInicial = changes.valor.currentValue;
        let [date, time] = changes.valor.currentValue.split(' ');
        if ((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.fechaIncompleta)(this.valor)) {
          this.valorSelect = null;
        } else {
          this.valorSelect = new Date((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(date) + ' ' + time);
        }
      } else {
        this.valorInicial = '';
        this.valorSelect = null;
      }
    }
  }
  ngOnInit() {
    this.primengConfig.setTranslation({
      monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
      today: 'Hoy',
      clear: 'Borrar'
    });
    if (this.maxDate) {
      this.maxDateAux = new Date(this.maxDate);
    }
  }
  selectValor($event) {
    let date = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date($event), 'DD/MM/YYYY HH:mm');
    this.valorInicial = date;
    this.valorEmit.emit(this.valorInicial);
  }
  close() {
    this.op.hide();
  }
  clear() {
    this.valorInicial = '';
    this.valorSelect = null;
    this.valorEmit.emit(this.valorInicial);
  }
  today() {
    this.valorInicial = this.sanitizeDate((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'DD/MM/YYYY HH:mm'));
    let [date, time] = this.valorInicial.split(' ');
    this.valorSelect = new Date((0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_1__.formatFechaComp)(date) + ' ' + time);
    this.valorEmit.emit(this.valorInicial);
  }
  inputChange($event) {
    if (this.valorInicial == 'dd/mm/aaaa hh:mm') {
      this.valorEmit.emit('');
    } else {
      this.valorEmit.emit(this.valorInicial);
    }
  }
  sanitizeDate(date) {
    let [dia, mes, resto] = date.split('/');
    let [anio, hora] = resto.split(' ');
    let [horas, minutos] = hora.split(':');
    const maxMes = 12;
    if (Number.isInteger(+mes) && +mes > maxMes) {
      mes = maxMes.toString();
    }
    const maxDias = Number.isInteger(+mes) && Number.isInteger(+anio) ? (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.monthEnd)(anio + '-' + mes + '-' + '01').getDate() : 31;
    if (Number.isInteger(+dia) && +dia > maxDias) {
      dia = maxDias.toString();
    }
    if (Number.isInteger(+horas) && +horas > 23) {
      horas = '23';
    }
    if (Number.isInteger(+minutos) && +minutos > 59) {
      minutos = '59';
    }
    let fechaFinal = dia + '/' + mes + '/' + anio + ' ' + horas + ':' + minutos;
    if (this.maxDate) {
      const [diaMax, mesMax, anioMax] = this.maxDate.split('/');
      if ((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.diffDays)(anio + '-' + mes + '-' + dia, anioMax + '-' + mesMax + '-' + diaMax) > 0) {
        fechaFinal = this.maxDate + ' 00:00';
      }
    }
    return fechaFinal;
  }
  inputComplete() {
    this.valorInicial = this.sanitizeDate(this.valorInicial);
    this.valorSelect = new Date(this.valorInicial);
    this.valorEmit.emit(this.valorInicial);
  }
  mostrar($event) {
    this.op.toggle($event);
    this.touchedEmit.emit(true);
  }
  errores() {
    return this.errors.some(error => error);
  }
  static #_ = this.ɵfac = function InputDateTimeComponent_Factory(t) {
    return new (t || InputDateTimeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](primeng_api__WEBPACK_IMPORTED_MODULE_3__.PrimeNGConfig));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
    type: InputDateTimeComponent,
    selectors: [["app-input-date-time"]],
    viewQuery: function InputDateTimeComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.op = _t.first);
      }
    },
    hostBindings: function InputDateTimeComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function InputDateTimeComponent_click_HostBindingHandler($event) {
          return ctx.onClickOrTouch($event);
        })("touchend", function InputDateTimeComponent_touchend_HostBindingHandler($event) {
          return ctx.onClickOrTouch($event);
        });
      }
    },
    inputs: {
      valor: "valor",
      errors: "errors",
      msgErrors: "msgErrors",
      msgValido: "msgValido",
      disabled: "disabled",
      showErrors: "showErrors",
      maxDate: "maxDate"
    },
    outputs: {
      valorEmit: "valorEmit",
      touchedEmit: "touchedEmit"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵNgOnChangesFeature"]],
    decls: 8,
    vars: 7,
    consts: [["mask", "99/99/9999 99:99", "placeholder", "dd/mm/aaaa hh:mm", "slotChar", "dd/mm/aaaa hh:mm", "characterPattern", "^\\d{2}\\/(0[1-9]|1[0-2])\\/\\d{4} \\d{2}:\\d{2}$", 3, "ngModel", "styleClass", "autoClear", "disabled", "ngModelChange", "onComplete", "onInput"], [3, "click", 4, "ngIf"], ["class", "valid-msg", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["styleClass", "date-overlay-panel"], ["op", ""], ["pTemplate", ""], [3, "click"], [1, "pi", "pi-calendar"], [1, "valid-msg"], ["class", "invalid-msg animate__animated animate__shakeX", 4, "ngIf"], [1, "invalid-msg", "animate__animated", "animate__shakeX"], ["dateFormat", "DD/MM/YYYY hh:mm", "dataType", "date", 3, "showTime", "hourFormat", "ngModel", "inline", "showButtonBar", "maxDate", "ngModelChange", "onSelect", "onClickOutside", "onClearClick", "onTodayClick"]],
    template: function InputDateTimeComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p-inputGroup")(1, "p-inputMask", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function InputDateTimeComponent_Template_p_inputMask_ngModelChange_1_listener($event) {
          return ctx.valorInicial = $event;
        })("onComplete", function InputDateTimeComponent_Template_p_inputMask_onComplete_1_listener() {
          return ctx.inputComplete();
        })("onInput", function InputDateTimeComponent_Template_p_inputMask_onInput_1_listener($event) {
          return ctx.inputChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, InputDateTimeComponent_p_inputGroupAddon_2_Template, 2, 0, "p-inputGroupAddon", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, InputDateTimeComponent_div_3_Template, 2, 1, "div", 2)(4, InputDateTimeComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p-overlayPanel", 4, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, InputDateTimeComponent_ng_template_7_Template, 1, 6, "ng-template", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.valorInicial)("styleClass", ctx.showErrors && ctx.touched ? !ctx.errores() ? "form-control is-valid" : "form-control is-invalid" : "form-control")("autoClear", false)("disabled", ctx.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.errores() && ctx.showErrors && ctx.touched);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.errors);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_3__.PrimeTemplate, primeng_calendar__WEBPACK_IMPORTED_MODULE_4__.Calendar, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, primeng_inputmask__WEBPACK_IMPORTED_MODULE_7__.InputMask, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_8__.OverlayPanel, primeng_inputgroup__WEBPACK_IMPORTED_MODULE_9__.InputGroup, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_10__.InputGroupAddon],
    styles: [".valid-msg[_ngcontent-%COMP%] {\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: var(--bs-form-valid-color);\n}\n\n.invalid-msg[_ngcontent-%COMP%] {\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: var(--bs-form-invalid-color);\n}\n\n  .p-overlaypanel-content {\n  padding: 0px !important;\n}\n\n  .p-calendar .p-datepicker {\n  font-size: 12px !important;\n}\n\n  .p-ripple.p-element.p-monthpicker-month,   .p-datepicker-header,   .p-ripple.p-element.p-yearpicker-year {\n  padding: 0.1rem !important;\n}\n\n  .p-inputgroup-addon {\n  padding: 0;\n  cursor: pointer;\n  border: left 0;\n}\n  .p-inputgroup-addon i {\n  font-size: 12px;\n}\n  .p-inputgroup-addon:hover {\n  border: 1px solid var(--bs-primary) !important;\n}\n\n  body[data-bs-theme=dark] .p-inputgroup-addon {\n  background-color: transparent;\n}\n\n  body[data-bs-theme=light] .p-inputgroup-addon {\n  background-color: #ffffff;\n}\n\n  .p-inputtext.p-component.p-element.p-inputmask {\n  width: 100%;\n  padding: 0.5rem;\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n  p-inputmask.p-element {\n  width: 100%;\n}\n\n  .p-inputtext.p-component.p-element.p-inputmask:disabled {\n  background-color: var(--bs-body-bg) !important;\n  opacity: 1 !important;\n}\n\n  .p-calendar {\n  width: 100%;\n}\n  .p-calendar   button {\n  width: auto;\n}\n  .p-calendar   th,   .p-calendar td {\n  text-align: center;\n  padding: 0.2rem;\n}\n  .p-calendar   span {\n  text-align: center;\n  font-size: 0.8125rem;\n}\n\n  .date-overlay-panel.p-overlaypanel.p-component {\n  z-index: 9998 !important;\n}"]
  });
}

/***/ }),

/***/ 62271:
/*!******************************************************************!*\
  !*** ./src/app/shared/ui/input-number/input-number.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InputNumberComponent: () => (/* binding */ InputNumberComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-mask */ 43735);







const _c0 = ["miInput"];
function InputNumberComponent_label_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r0.title);
  }
}
class InputNumberComponent {
  clickout(event) {
    if (!this.eRef.nativeElement.contains(event.target) && this.valueAux !== '' && this.valueAux !== null) {
      const result = parseFloat(this.valueAux.split('.').join('').replace(',', '.')).toFixed(this.decimals).replace('.', ',');
      this.valueAux = result;
    }
  }
  constructor(router, eRef, renderer) {
    this.router = router;
    this.eRef = eRef;
    this.renderer = renderer;
    this.id = '';
    this.title = '';
    this.placeholder = '';
    this.tooltip = '';
    this.disabled = false;
    this.allowNegatives = false;
    //SP SINWEB-106 input correspondiente al control de validacion que venga desde fuera.
    this.isInvalid = false;
    this.isValid = false;
    this.value = 0;
    //SP SINWEB-106 input correspondiente a la cantidad de digitos antes de la "," decimal.
    this.limite = '10000000000000';
    //SP SINWEB-106 input correspondiente a cantidad de decimales
    this.decimals = 2;
    this.prefix = '';
    this.suffix = '';
    this.valueAux = '0';
    this.emitValue = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
    this.emitKeyAction = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  ngOnInit() {}
  ngOnChanges(changes) {
    if (changes.value) {
      this.valueAux = changes.value.currentValue !== null && changes.value.currentValue !== undefined ? changes.value.currentValue.toString().replace('.', ',') : null;
    }
  }
  focus() {
    if (this.miInput && this.miInput.nativeElement) {
      setTimeout(() => {
        this.miInput.nativeElement.focus();
        this.miInput.nativeElement.select();
      }, 0);
    }
  }
  emitInput() {
    //Original
    //const valueTransform = parseFloat(this.valueAux.replace(/\./g, '').replace(',', '.'))
    // this.emitValue.emit(isNaN(valueTransform) ? null : valueTransform);
    //SP SINWEB-318
    if (this.valueAux == null) {
      this.emitValue.emit(null);
    } else {
      let valueTransform = parseFloat(this.valueAux.replace(/\./g, '').replace(',', '.'));
      this.emitValue.emit(isNaN(valueTransform) ? null : valueTransform);
    }
  }
  emitAction() {
    this.emitKeyAction.emit();
  }
  static #_ = this.ɵfac = function InputNumberComponent_Factory(t) {
    return new (t || InputNumberComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_1__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.Renderer2));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: InputNumberComponent,
    selectors: [["app-input-number"]],
    viewQuery: function InputNumberComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.miInput = _t.first);
      }
    },
    hostBindings: function InputNumberComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function InputNumberComponent_click_HostBindingHandler($event) {
          return ctx.clickout($event);
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresolveDocument"]);
      }
    },
    inputs: {
      id: "id",
      title: "title",
      placeholder: "placeholder",
      tooltip: "tooltip",
      disabled: "disabled",
      allowNegatives: "allowNegatives",
      isInvalid: "isInvalid",
      isValid: "isValid",
      value: "value",
      limite: "limite",
      decimals: "decimals",
      prefix: "prefix",
      suffix: "suffix",
      templateErrors: "templateErrors"
    },
    outputs: {
      emitValue: "emitValue",
      emitKeyAction: "emitKeyAction"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
    decls: 5,
    vars: 17,
    consts: [[1, "d-block"], ["class", "form-label", 4, "ngIf"], ["type", "text", "thousandSeparator", ".", "tooltipPosition", "top", 1, "form-control", "form-control-solid", 3, "id", "ngModel", "mask", "separatorLimit", "allowNegativeNumbers", "dropSpecialCharacters", "pTooltip", "disabled", "placeholder", "prefix", "suffix", "ngModelChange", "input", "keyup.enter"], ["miInput", ""], [3, "ngTemplateOutlet"], [1, "form-label"]],
    template: function InputNumberComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, InputNumberComponent_label_1_Template, 2, 1, "label", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 2, 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_2_listener($event) {
          return ctx.valueAux = $event;
        })("input", function InputNumberComponent_Template_input_input_2_listener() {
          return ctx.emitInput();
        })("keyup.enter", function InputNumberComponent_Template_input_keyup_enter_2_listener() {
          return ctx.emitAction();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](4, 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.title != "");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("is-invalid", ctx.isInvalid)("is-valid", ctx.isValid);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx.id)("ngModel", ctx.valueAux)("mask", "separator." + ctx.decimals)("separatorLimit", ctx.limite)("allowNegativeNumbers", ctx.allowNegatives)("dropSpecialCharacters", false)("pTooltip", ctx.tooltip)("disabled", ctx.disabled)("placeholder", ctx.placeholder)("prefix", ctx.prefix)("suffix", ctx.suffix);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx.templateErrors);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgTemplateOutlet, primeng_tooltip__WEBPACK_IMPORTED_MODULE_3__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgModel, ngx_mask__WEBPACK_IMPORTED_MODULE_5__.NgxMaskDirective]
  });
}

/***/ }),

/***/ 77947:
/*!********************************************************************!*\
  !*** ./src/app/shared/ui/input-periodo/input-periodo.component.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InputPeriodoComponent: () => (/* binding */ InputPeriodoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_calendar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/calendar */ 78743);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_inputmask__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng/inputmask */ 59663);
/* harmony import */ var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/overlaypanel */ 88454);
/* harmony import */ var primeng_inputgroup__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/inputgroup */ 55897);
/* harmony import */ var primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primeng/inputgroupaddon */ 41757);











const _c0 = ["op"];
function InputPeriodoComponent_p_inputGroupAddon_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p-inputGroupAddon", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InputPeriodoComponent_p_inputGroupAddon_2_Template_p_inputGroupAddon_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r5.mostrar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function InputPeriodoComponent_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Periodo correcto\n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function InputPeriodoComponent_ng_container_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index;
    const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r9.msgErrors[i_r8], " ");
  }
}
function InputPeriodoComponent_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, InputPeriodoComponent_ng_container_4_div_1_Template, 2, 1, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const err_r7 = ctx.$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", err_r7 && ctx_r2.showErrors && ctx_r2.touched);
  }
}
function InputPeriodoComponent_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p-calendar", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("onSelect", function InputPeriodoComponent_ng_template_7_Template_p_calendar_onSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12);
      const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r11.selectValor($event));
    })("onClearClick", function InputPeriodoComponent_ng_template_7_Template_p_calendar_onClearClick_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r13.clear());
    })("onTodayClick", function InputPeriodoComponent_ng_template_7_Template_p_calendar_onTodayClick_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r14.today());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.valorInicial)("inline", true)("maxDate", ctx_r4.maxDateAux)("showButtonBar", true)("showClearButton", false);
  }
}
const _c1 = () => ({
  width: "200px"
});
class InputPeriodoComponent {
  onClickOrTouch(event) {
    //event.preventDefault();
    this.touched = true;
    this.touchedEmit.emit(true);
  }
  constructor(primengConfig) {
    this.primengConfig = primengConfig;
    this.valor = '';
    this.errors = [];
    this.msgErrors = [];
    this.disabled = false;
    this.showErrors = false;
    this.valorInicial = '';
    this.touched = false;
    this.regex = /^(0[1-9]|1[0-2])\/\d{4}$/;
    this.valorEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.touchedEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.valorInicial = this.valor;
  }
  ngOnChanges(changes) {
    if (changes.valor) {
      this.valorInicial = changes.valor.currentValue;
    }
  }
  ngOnInit() {
    this.primengConfig.setTranslation({
      monthNamesShort: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'],
      today: 'Hoy',
      clear: 'Borrar'
    });
  }
  selectValor($event) {
    let date = new Date(Date.parse($event));
    this.valorInicial = `${(date.getMonth() + 1).toString().padStart(2, '0')}/${date.getFullYear().toString().padStart(4, '0')}`;
    this.op.hide();
    this.valorEmit.emit(this.valorInicial);
  }
  inputChange($event) {
    if (this.valorInicial == 'mm/aaaa') {
      this.valorEmit.emit('');
    } else {
      if (!this.regex.test($event.target.value)) {
        this.valorEmit.emit($event.target.value);
      }
    }
  }
  inputComplete($event) {
    this.valorInicial = this.sanitizeDate(this.valorInicial);
    this.valorEmit.emit(this.valorInicial);
  }
  mostrar($event) {
    this.op.toggle($event);
  }
  errores() {
    return this.errors.some(error => error);
  }
  sanitizeDate(date) {
    let [mes, anio] = date.split('/');
    const maxMes = 12;
    if (Number.isInteger(+mes) && +mes > maxMes) {
      mes = maxMes.toString();
    }
    let fechaFinal = mes + '/' + anio;
    if (this.maxDate) {
      const [mesMax, anioMax] = this.maxDate.split('/');
      if ((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.diffMonths)(anio + '-' + mes, anioMax + '-' + mesMax) > 0) {
        fechaFinal = this.maxDate;
      }
    }
    return fechaFinal;
  }
  clear() {
    this.valorInicial = '';
    this.valorEmit.emit(this.valorInicial);
  }
  today() {
    this.valorInicial = this.sanitizeDate((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'MM/YYYY'));
    this.valorEmit.emit(this.valorInicial);
  }
  static #_ = this.ɵfac = function InputPeriodoComponent_Factory(t) {
    return new (t || InputPeriodoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](primeng_api__WEBPACK_IMPORTED_MODULE_2__.PrimeNGConfig));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: InputPeriodoComponent,
    selectors: [["app-input-periodo"]],
    viewQuery: function InputPeriodoComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.op = _t.first);
      }
    },
    hostBindings: function InputPeriodoComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InputPeriodoComponent_click_HostBindingHandler($event) {
          return ctx.onClickOrTouch($event);
        })("touchend", function InputPeriodoComponent_touchend_HostBindingHandler($event) {
          return ctx.onClickOrTouch($event);
        });
      }
    },
    inputs: {
      valor: "valor",
      errors: "errors",
      msgErrors: "msgErrors",
      disabled: "disabled",
      showErrors: "showErrors",
      maxDate: "maxDate"
    },
    outputs: {
      valorEmit: "valorEmit",
      touchedEmit: "touchedEmit"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]],
    decls: 8,
    vars: 10,
    consts: [["mask", "99/9999", "placeholder", "mm/aaaa", "slotChar", "mm/aaaa", "characterPattern", "^(0[1-9]|1[0-2])\\/\\d{4}$", 3, "ngModel", "styleClass", "autoClear", "disabled", "ngModelChange", "onComplete", "onInput"], [3, "click", 4, "ngIf"], ["class", "valid-msg", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["styleClass", "date-overlay-panel"], ["op", ""], ["pTemplate", ""], [3, "click"], [1, "pi", "pi-calendar"], [1, "valid-msg"], ["class", "invalid-msg animate__animated animate__shakeX", 4, "ngIf"], [1, "invalid-msg", "animate__animated", "animate__shakeX"], ["view", "month", "dateFormat", "mm/yy", "dataType", "date", 3, "ngModel", "inline", "maxDate", "showButtonBar", "showClearButton", "onSelect", "onClearClick", "onTodayClick"]],
    template: function InputPeriodoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p-inputGroup")(1, "p-inputMask", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function InputPeriodoComponent_Template_p_inputMask_ngModelChange_1_listener($event) {
          return ctx.valorInicial = $event;
        })("onComplete", function InputPeriodoComponent_Template_p_inputMask_onComplete_1_listener($event) {
          return ctx.inputComplete($event);
        })("onInput", function InputPeriodoComponent_Template_p_inputMask_onInput_1_listener($event) {
          return ctx.inputChange($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, InputPeriodoComponent_p_inputGroupAddon_2_Template, 2, 0, "p-inputGroupAddon", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, InputPeriodoComponent_div_3_Template, 2, 0, "div", 2)(4, InputPeriodoComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "p-overlayPanel", 4, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, InputPeriodoComponent_ng_template_7_Template, 1, 5, "ng-template", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.valorInicial)("styleClass", ctx.showErrors && ctx.touched ? !ctx.errores() ? "form-control is-valid" : "form-control is-invalid" : "form-control")("autoClear", false)("disabled", ctx.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.errores() && ctx.showErrors && ctx.touched);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.errors);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](9, _c1));
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_2__.PrimeTemplate, primeng_calendar__WEBPACK_IMPORTED_MODULE_3__.Calendar, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, primeng_inputmask__WEBPACK_IMPORTED_MODULE_6__.InputMask, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_7__.OverlayPanel, primeng_inputgroup__WEBPACK_IMPORTED_MODULE_8__.InputGroup, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_9__.InputGroupAddon],
    styles: [".valid-msg[_ngcontent-%COMP%] {\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: var(--bs-form-valid-color);\n}\n\n.invalid-msg[_ngcontent-%COMP%] {\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: var(--bs-form-invalid-color);\n}\n\n  .p-overlaypanel-content {\n  padding: 0px !important;\n}\n\n  .p-calendar .p-datepicker {\n  font-size: 12px !important;\n}\n\n  .p-ripple.p-element.p-monthpicker-month,   .p-datepicker-header,   .p-ripple.p-element.p-yearpicker-year {\n  padding: 0.1rem !important;\n}\n\n  .p-inputgroup-addon {\n  padding: 0;\n  cursor: pointer;\n  border: left 0;\n}\n  .p-inputgroup-addon i {\n  font-size: 12px;\n}\n  .p-inputgroup-addon:hover {\n  border: 1px solid var(--bs-primary) !important;\n}\n\n  body[data-bs-theme=dark] .p-inputgroup-addon {\n  background-color: transparent;\n}\n\n  body[data-bs-theme=light] .p-inputgroup-addon {\n  background-color: #ffffff;\n}\n\n  .p-inputtext.p-component.p-element.p-inputmask {\n  width: 100%;\n  padding: 0.5rem;\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n  p-inputmask.p-element {\n  width: 100%;\n}\n\n  .p-inputtext.p-component.p-element.p-inputmask:disabled {\n  background-color: var(--bs-body-bg) !important;\n  opacity: 1 !important;\n}\n\n  .date-overlay-panel.p-overlaypanel.p-component {\n  z-index: 9998 !important;\n}\n\n  .p-calendar {\n  width: 100%;\n}\n  .p-calendar   button {\n  width: auto;\n}\n  .p-calendar   th,   .p-calendar td {\n  text-align: center;\n  padding: 0.2rem;\n}\n  .p-calendar   span {\n  text-align: center;\n  font-size: 0.8125rem;\n}\n\n  .date-overlay-panel.p-overlaypanel.p-component {\n  z-index: 9998 !important;\n}\n\n  .p-calendar {\n  width: 100%;\n}\n  .p-calendar   button {\n  width: auto;\n}\n  .p-calendar   th,   .p-calendar td {\n  text-align: center;\n  padding: 0.2rem;\n}\n  .p-calendar   span {\n  text-align: center;\n  font-size: 0.8125rem;\n}"]
  });
}

/***/ }),

/***/ 71902:
/*!**************************************************************!*\
  !*** ./src/app/shared/ui/input-time/input-time.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   InputTimeComponent: () => (/* binding */ InputTimeComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _formkit_tempo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @formkit/tempo */ 58444);
/* harmony import */ var primeng_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_calendar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/calendar */ 78743);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primeng/overlaypanel */ 88454);
/* harmony import */ var primeng_inputgroup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/inputgroup */ 55897);
/* harmony import */ var primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/inputgroupaddon */ 41757);










const _c0 = ["time"];
function InputTimeComponent_label_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "label", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("for", ctx_r0.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r0.label);
  }
}
function InputTimeComponent_p_inputGroupAddon_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p-inputGroupAddon", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InputTimeComponent_p_inputGroupAddon_4_Template_p_inputGroupAddon_click_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r6.mostrar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function InputTimeComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Hora correcta\n");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function InputTimeComponent_ng_container_6_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index;
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r10.msgErrors[i_r9], " ");
  }
}
function InputTimeComponent_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, InputTimeComponent_ng_container_6_div_1_Template, 2, 1, "div", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const err_r8 = ctx.$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", err_r8 && ctx_r3.showErrors && ctx_r3.touched);
  }
}
function InputTimeComponent_ng_template_9_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p-calendar", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("onSelect", function InputTimeComponent_ng_template_9_Template_p_calendar_onSelect_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r12.selectValor($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 15)(2, "a", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InputTimeComponent_ng_template_9_Template_a_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13);
      const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r14.actual());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Ahora");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InputTimeComponent_ng_template_9_Template_a_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r15.reset());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Borrar");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("timeOnly", true)("ngModel", ctx_r5.selectValue)("inline", true);
  }
}
const _c1 = () => ({
  width: "100px"
});
class InputTimeComponent {
  onClickOrTouch(event) {
    //event.preventDefault();
    this.touched = true;
    this.touchedEmit.emit(true);
  }
  constructor() {
    this.valor = '';
    this.disabled = false;
    this.errors = [];
    this.msgErrors = [];
    this.showErrors = false;
    this.floatLabel = false;
    this.label = 'Hora';
    this.valorEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.touchedEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
    this.initialValue = '';
    this.touched = false;
    this.initialValue = this.valor;
    if (this.valor != '') {
      let [hour, min] = this.valor.split(':');
      this.selectValue = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addMinute)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addHour)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.dayStart)(new Date()), +hour), +min);
    } else {
      this.selectValue = new Date();
    }
  }
  ngOnChanges(changes) {
    if (changes.valor) {
      if (changes.valor.currentValue != '') {
        let [hour, min] = changes.valor.currentValue.split(':');
        this.initialValue = hour + ':' + min;
        this.selectValue = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addMinute)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addHour)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.dayStart)(new Date()), +hour), +min);
      } else {
        this.initialValue = '';
        this.selectValue = new Date();
      }
    }
  }
  onInput($event) {
    this.initialValue = $event.target.value;
    if ($event.target.value != '') {
      let [hour, min] = $event.target.value.split(':');
      this.selectValue = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addMinute)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.addHour)((0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.dayStart)(new Date()), +hour), +min);
      this.valorEmit.emit(this.initialValue);
    } else {
      this.selectValue = new Date();
      this.valorEmit.emit('');
    }
  }
  selectValor($event) {
    this.initialValue = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)($event, 'HH:mm');
    this.valorEmit.emit(this.initialValue);
  }
  mostrar($event) {
    this.time.toggle($event);
  }
  actual() {
    this.initialValue = (0,_formkit_tempo__WEBPACK_IMPORTED_MODULE_0__.format)(new Date(), 'HH:mm');
    this.valorEmit.emit(this.initialValue);
  }
  reset() {
    this.initialValue = '';
    this.valorEmit.emit('');
  }
  errores() {
    return this.errors.some(error => error);
  }
  static #_ = this.ɵfac = function InputTimeComponent_Factory(t) {
    return new (t || InputTimeComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: InputTimeComponent,
    selectors: [["app-input-time"]],
    viewQuery: function InputTimeComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.time = _t.first);
      }
    },
    hostBindings: function InputTimeComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function InputTimeComponent_click_HostBindingHandler($event) {
          return ctx.onClickOrTouch($event);
        })("touchend", function InputTimeComponent_touchend_HostBindingHandler($event) {
          return ctx.onClickOrTouch($event);
        });
      }
    },
    inputs: {
      id: "id",
      valor: "valor",
      disabled: "disabled",
      errors: "errors",
      msgErrors: "msgErrors",
      showErrors: "showErrors",
      floatLabel: "floatLabel",
      label: "label"
    },
    outputs: {
      valorEmit: "valorEmit",
      touchedEmit: "touchedEmit"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]],
    decls: 10,
    vars: 12,
    consts: [["type", "time", "baseZIndex", "9998", 1, "form-control", "digits", 3, "ngModel", "readonly", "ngClass", "ngModelChange", "input"], [3, "for", 4, "ngIf"], [3, "click", 4, "ngIf"], ["class", "valid-msg", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["styleClass", "date-overlay-panel"], ["time", ""], ["pTemplate", ""], [3, "for"], [3, "click"], [1, "pi", "pi-clock"], [1, "valid-msg"], ["class", "invalid-msg animate__animated animate__shakeX", 4, "ngIf"], [1, "invalid-msg", "animate__animated", "animate__shakeX"], ["inputId", "calendar-timeonly", "panelStyleClass", "border-0", "hourFormat", "24", 3, "timeOnly", "ngModel", "inline", "onSelect"], [1, "d-flex", "font-size-12", "justify-content-center"], [1, "px-2", "pb-2", "pointer", 3, "click"]],
    template: function InputTimeComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p-inputGroup")(1, "div")(2, "input", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function InputTimeComponent_Template_input_ngModelChange_2_listener($event) {
          return ctx.initialValue = $event;
        })("input", function InputTimeComponent_Template_input_input_2_listener($event) {
          return ctx.onInput($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, InputTimeComponent_label_3_Template, 2, 2, "label", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, InputTimeComponent_p_inputGroupAddon_4_Template, 2, 0, "p-inputGroupAddon", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, InputTimeComponent_div_5_Template, 2, 0, "div", 3)(6, InputTimeComponent_ng_container_6_Template, 2, 1, "ng-container", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "p-overlayPanel", 5, 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, InputTimeComponent_ng_template_9_Template, 6, 3, "ng-template", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMap"](ctx.floatLabel ? "form-floating" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.initialValue)("readonly", ctx.disabled)("ngClass", ctx.showErrors && ctx.touched ? !ctx.errores() ? "form-control is-valid" : "form-control is-invalid" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.floatLabel);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showErrors && !ctx.errores() && ctx.touched);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.errors);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleMap"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](11, _c1));
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_2__.PrimeTemplate, primeng_calendar__WEBPACK_IMPORTED_MODULE_3__.Calendar, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_6__.OverlayPanel, primeng_inputgroup__WEBPACK_IMPORTED_MODULE_7__.InputGroup, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_8__.InputGroupAddon],
    styles: ["input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator {\n  visibility: hidden;\n}\n\ninput[type=time][_ngcontent-%COMP%] {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n  .p-inputgroup-addon {\n  padding: 0;\n  cursor: pointer;\n  border: left 0;\n}\n  .p-inputgroup-addon i {\n  font-size: 12px;\n}\n  .p-inputgroup-addon:hover {\n  border: 1px solid var(--bs-primary) !important;\n}\n\n  body[data-bs-theme=dark] .p-inputgroup-addon {\n  background-color: transparent;\n}\n\n  body[data-bs-theme=light] .p-inputgroup-addon {\n  background-color: #ffffff;\n}\n\n  .p-overlaypanel-content {\n  padding: 0px !important;\n}\n\n  .date-overlay-panel.p-overlaypanel.p-component {\n  z-index: 9998 !important;\n}\n\n  .p-calendar.p-calendar-timeonly {\n  width: 100%;\n}\n  .p-calendar.p-calendar-timeonly   button {\n  width: 1.25rem;\n}\n  .p-calendar.p-calendar-timeonly   span {\n  font-size: 0.8125rem;\n}\n\n.valid-msg[_ngcontent-%COMP%] {\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: var(--bs-form-valid-color);\n}\n\n.invalid-msg[_ngcontent-%COMP%] {\n  width: 100%;\n  margin-top: 0.25rem;\n  font-size: 80%;\n  color: var(--bs-form-invalid-color);\n}"]
  });
}

/***/ }),

/***/ 28336:
/*!******************************************************!*\
  !*** ./src/app/shared/ui/loader/loader.component.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LoaderComponent: () => (/* binding */ LoaderComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _core_services_loader_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/services/loader.service */ 93096);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);



function LoaderComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 1)(1, "div", 2)(2, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "div", 4)(4, "div", 4)(5, "div", 4)(6, "div", 4)(7, "div", 4)(8, "div", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
  }
}
class LoaderComponent {
  constructor(loaderService) {
    this.loaderService = loaderService;
    this.loading = true;
    this.loaderService._loading.subscribe(v => {
      setTimeout(() => {
        this.loading = v;
      }, 1500);
    });
  }
  ngOnInit() {}
  static #_ = this.ɵfac = function LoaderComponent_Factory(t) {
    return new (t || LoaderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_core_services_loader_service__WEBPACK_IMPORTED_MODULE_0__.LoaderService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: LoaderComponent,
    selectors: [["app-loader"]],
    decls: 1,
    vars: 1,
    consts: [["id", "preloader", 4, "ngIf"], ["id", "preloader"], ["id", "status"], [1, "spinner-chase"], [1, "chase-dot"]],
    template: function LoaderComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, LoaderComponent_div_0_Template, 9, 0, "div", 0);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.loading);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf]
  });
}

/***/ }),

/***/ 44192:
/*!************************************************!*\
  !*** ./src/app/shared/ui/log/log.component.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   LogComponent: () => (/* binding */ LogComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _table_table_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../table/table.component */ 99585);






function LogComponent_a_21_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
function LogComponent_a_22_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LogComponent_a_22_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.borrarBusqueda());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
}
const _c0 = () => [5, 10, 20];
class LogComponent {
  constructor(fb, modal) {
    this.fb = fb;
    this.modal = modal;
    // SP SINWEB-56 se le puede pasar un registro de actividad ya en un json
    this.logArray = [];
    this.filterForm = this.fb.group({
      Busqueda: [''],
      FechaDesde: [''],
      FechaHasta: ['']
    });
    this.cantSearch = 5;
    this.order = 1;
    this.sentido = 'Desc';
    this.page = 1;
    // SP SINWEB-56 array que siempre tendra lo ultimo filtrado del array original
    this.arrayFiltrado = [];
    // SP SINWEB-56 este es el array que se ve en la tabla
    this.arrayView = [];
  }
  ngOnInit() {
    if (this.logData) {
      this.logArray = this.transformToObject(this.splitLogData());
      this.arrayFiltrado = this.logArray;
      this.actualizarArrayView();
    }
  }
  // SP SINWEB-56 este metodo toma el logData enviado por input y lo tranforma en un arrays de arrays separando por el splitOp
  splitLogData() {
    const separatorsRegex = new RegExp(`[${this.splitSeparators.join('\\')}]`);
    const aux = this.logData.split(this.splitOp).map(element => element.split(separatorsRegex).map(splitElement => splitElement.trim()).filter(splitElement => splitElement.length > 0));
    //SP SINWEB-99 una vez separados todos las columnas se juntan todas las columnas menos las primeras 3 para obtener el mensaje.
    const result = aux.map(innerArr => {
      const firstThree = innerArr.slice(0, 3);
      const rest = innerArr.slice(3).join('\r\n');
      return [...firstThree, rest];
    });
    return result;
  }
  // SP SINWEB-56 este metodo toma un array de arrays y lo transforma en un array object , usando las columnsKeys pasadas por input
  transformToObject(array) {
    array.unshift(this.columnsKeys);
    const arrayDeObjetos = array.slice(1).reduce((acumulador, subArray) => {
      const objeto = subArray.reduce((obj, valor, indice) => {
        obj[array[0][indice]] = valor;
        return obj;
      }, {});
      acumulador.push(objeto);
      return acumulador;
    }, []);
    return arrayDeObjetos;
  }
  // SP SINWEB-56 metodo que actualiza las variables de orden  y actualiza el array view
  orderObject(event) {
    this.order = event.id;
    this.sentido = event.sentido;
    this.actualizarArrayView();
  }
  // SP SINWEB-56 metodo que actualiza variables de pagina y actualiza el array view
  changePageObject(event) {
    this.page = event;
    this.actualizarArrayView();
  }
  changeCantSearchObject(event) {
    this.cantSearch = event;
    this.actualizarArrayView();
  }
  // SP SINWEB-56 metodo que filtra el array usando el filterForm
  filterArray() {
    let busquedaMatch = false;
    let dateMatch = false;
    let dateDesde = this.filterForm.get('FechaDesde').value !== '' ? new Date(this.filterForm.get('FechaDesde').value.replace(/-/g, '\/')) : null;
    let dateHasta = this.filterForm.get('FechaHasta').value !== '' ? new Date(this.filterForm.get('FechaHasta').value.replace(/-/g, '\/')) : null;
    dateDesde ? dateDesde.setHours(0, 0, 0, 0) : null;
    dateHasta ? dateHasta.setHours(23, 59, 59, 59) : null;
    let busqueda = this.filterForm.get('Busqueda').value;
    this.arrayFiltrado = this.logArray.filter(dato => {
      const fecha = this.transformDate(dato.Fecha);
      if (busqueda == '') {
        busquedaMatch = true;
      } else {
        //SP SINWEB-99 se quitan los acentos y las mayuscular para buscar.
        busquedaMatch = (dato.Usuario ? dato.Usuario.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase().includes(busqueda) || dato.Usuario.includes(busqueda) : false) || (dato.Registro ? dato.Registro.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase().includes(busqueda) || dato.Registro.includes(busqueda) : false) || (dato.Mensaje ? dato.Mensaje.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase().includes(busqueda) || dato.Mensaje.includes(busqueda) : false);
      }
      if (dateDesde && dateHasta) {
        dateMatch = fecha >= dateDesde && fecha <= dateHasta;
      }
      if (!dateDesde && dateHasta) {
        dateMatch = fecha <= dateHasta;
      }
      if (!dateHasta && dateDesde) {
        dateMatch = fecha >= dateDesde;
      }
      if (!dateDesde && !dateHasta) {
        dateMatch = true;
      }
      return dateMatch && busquedaMatch;
    });
    this.page = 1;
    this.actualizarArrayView();
  }
  actualizarArrayView() {
    this.arrayView = this.arrayFiltrado.sort((a, b) => {
      if (this.columnsKeys[this.order - 1] === 'Fecha') {
        const dateA = this.transformDate(a.Fecha).getTime();
        const dateB = this.transformDate(b.Fecha).getTime();
        return this.sentido === 'Asc' ? dateA - dateB : dateB - dateA;
      } else {
        if (a[this.columnsKeys[this.order - 1]] < b[this.columnsKeys[this.order - 1]]) {
          return this.sentido === 'Asc' ? 1 : -1;
        }
        if (a[this.columnsKeys[this.order - 1]] > b[this.columnsKeys[this.order - 1]]) {
          return this.sentido === 'Desc' ? 1 : -1;
        }
        return 0;
      }
    }).slice((this.page - 1) * this.cantSearch, (this.page - 1) * this.cantSearch + this.cantSearch);
  }
  // SP SINWEB-56 metodo de transformacion de fecha
  transformDate(date) {
    const partesFecha = date.split(' ');
    const partesFechaDMY = partesFecha[0].split('/');
    const partesFechaHMS = partesFecha[1].split(':');
    return new Date(partesFechaDMY[2], partesFechaDMY[1] - 1, partesFechaDMY[0], partesFechaHMS[0], partesFechaHMS[1], partesFechaHMS[2]);
  }
  // SP SINWEB-56 metodo pasado a la tabla generica para colorear las tablas dependiendo el mensaje del campo registro
  obtenerEstadoRegistro(registro, context) {
    if (!context) return '';
    const objEncontrado = context.find(row => registro.includes(row.registro));
    return objEncontrado ? `table-${objEncontrado.color}` : '';
  }
  getBusqueda() {
    return this.filterForm.get('Busqueda').value;
  }
  borrarBusqueda() {
    this.filterForm.get('Busqueda').reset('');
    this.filterArray();
  }
  static #_ = this.ɵfac = function LogComponent_Factory(t) {
    return new (t || LogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: LogComponent,
    selectors: [["app-log"]],
    inputs: {
      logData: "logData",
      title: "title",
      logArray: "logArray",
      splitOp: "splitOp",
      splitSeparators: "splitSeparators",
      columnsKeys: "columnsKeys",
      columns: "columns",
      coloresRow: "coloresRow"
    },
    decls: 27,
    vars: 17,
    consts: [[1, "modal-content"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title", "h4"], [1, "overlay", "overlay-block", "cursor-default", "modal-body"], [1, "row", "my-3", 3, "formGroup"], [1, "col-12", "col-lg-4"], [1, "form-label"], ["type", "date", "formControlName", "FechaDesde", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits", 3, "change"], ["type", "date", "formControlName", "FechaHasta", "onkeypress", "return false", "onkeydown", "return false", 1, "form-control", "digits", 3, "change"], ["pTooltip", "Busca por usuario, registro y mensaje", 1, "bx", "bxs-info-circle", "font-size-16", "align-middle"], [1, "input-group"], ["type", "text", "formControlName", "Busqueda", 1, "form-control", "form-text", "mt-0", 3, "change", "keyup"], ["class", "btn btn-primary", 4, "ngIf"], ["class", "btn btn-secondary", 3, "click", 4, "ngIf"], ["claseRowField", "Registro", 3, "columns", "cant_search", "order", "page", "sentido", "pageOptions", "datos", "totalItems", "claseRow", "claseRowFunc", "context", "acciones", "orderPage", "changePage", "cantSearch"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-success", "btn-elevate", "mr-2", 3, "click"], [1, "btn", "btn-primary"], [1, "bx", "bx-search-alt-2"], [1, "btn", "btn-secondary", 3, "click"], [1, "bx", "bx-x"]],
    template: function LogComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3)(5, "form", 4)(6, "div", 5)(7, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Fecha Registro Desde");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "input", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function LogComponent_Template_input_change_9_listener() {
          return ctx.filterArray();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 5)(11, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Fecha Registro Hasta");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "input", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function LogComponent_Template_input_change_13_listener() {
          return ctx.filterArray();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 5)(15, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "B\u00FAsqueda ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "span");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "i", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 10)(20, "input", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function LogComponent_Template_input_change_20_listener() {
          return ctx.filterArray();
        })("keyup", function LogComponent_Template_input_keyup_20_listener() {
          return ctx.filterArray();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, LogComponent_a_21_Template, 2, 0, "a", 12)(22, LogComponent_a_22_Template, 2, 0, "a", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "app-table", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("orderPage", function LogComponent_Template_app_table_orderPage_23_listener($event) {
          return ctx.orderObject($event);
        })("changePage", function LogComponent_Template_app_table_changePage_23_listener($event) {
          return ctx.changePageObject($event);
        })("cantSearch", function LogComponent_Template_app_table_cantSearch_23_listener($event) {
          return ctx.changeCantSearchObject($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 15)(25, "button", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LogComponent_Template_button_click_25_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Registro de cambios ", ctx.title, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.filterForm);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.getBusqueda().length <= 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.getBusqueda().length > 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("columns", ctx.columns)("cant_search", ctx.cantSearch)("order", ctx.order)("page", ctx.page)("sentido", ctx.sentido)("pageOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](16, _c0))("datos", ctx.arrayView)("totalItems", ctx.arrayFiltrado.length)("claseRow", true)("claseRowFunc", ctx.obtenerEstadoRegistro)("context", ctx.coloresRow)("acciones", false);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, primeng_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControlName, _table_table_component__WEBPACK_IMPORTED_MODULE_0__.TableComponent]
  });
}

/***/ }),

/***/ 69246:
/*!******************************************************************!*\
  !*** ./src/app/shared/ui/order-column/order-column.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   OrderColumnComponent: () => (/* binding */ OrderColumnComponent)
/* 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__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);




class OrderColumnComponent {
  constructor() {
    //public sentido : string = 'Desc';
    this.icon = 'mdi mdi-arrow-up-down';
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.orderId = 1;
    this.name = '';
    this.active = false;
    this.onOrder = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
  }
  ngOnInit() {
    if (this.active) {
      this.sentido === 'Desc' ? this.icon = 'mdi mdi-arrow-down' : this.icon = 'mdi mdi-arrow-up';
    }
  }
  orderEvent() {
    this.sentido = this.sentido === 'Desc' ? 'Asc' : 'Desc';
    this.sentido === 'Desc' ? this.icon = 'mdi mdi-arrow-down' : this.icon = 'mdi mdi-arrow-up';
    this.onOrder.emit({
      id: this.orderId,
      sentido: this.sentido
    });
  }
  static #_ = this.ɵfac = function OrderColumnComponent_Factory(t) {
    return new (t || OrderColumnComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: OrderColumnComponent,
    selectors: [["app-order-column"]],
    inputs: {
      sentido: "sentido",
      orderId: "orderId",
      name: "name",
      active: "active"
    },
    outputs: {
      onOrder: "onOrder"
    },
    decls: 3,
    vars: 2,
    consts: [["role", "button", 3, "click"], [3, "ngClass"]],
    template: function OrderColumnComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OrderColumnComponent_Template_span_click_0_listener() {
          return ctx.orderEvent();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](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"]("ngClass", ctx.active ? ctx.icon : "mdi mdi-arrow-up-down");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.name, "\n");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass]
  });
}

/***/ }),

/***/ 88722:
/*!**********************************************************!*\
  !*** ./src/app/shared/ui/pageInfo/pageInfo.component.ts ***!
  \**********************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PageInfoComponent: () => (/* binding */ PageInfoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 56223);




function PageInfoComponent_ng_container_6_option_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r2.defaultValue)("disabled", ctx_r2.defaultValueDis);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.defaultValue, " ");
  }
}
function PageInfoComponent_ng_container_6_option_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4, " ");
  }
}
function PageInfoComponent_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "select", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PageInfoComponent_ng_container_6_Template_select_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r5.valueSelected = $event);
    })("change", function PageInfoComponent_ng_container_6_Template_select_change_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7.changeValue());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, PageInfoComponent_ng_container_6_option_2_Template, 2, 3, "option", 4)(3, PageInfoComponent_ng_container_6_option_3_Template, 2, 2, "option", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r0.valueSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.defaultValue);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.items);
  }
}
function PageInfoComponent_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.defaultValue, " ");
  }
}
class PageInfoComponent {
  constructor() {
    this.page = 1;
    this.totalItems = 0;
    this.defaultValue = '';
    this.defaultValueDis = false;
    this.defaultString = '';
    this.select = true;
    this.items = [];
    this.valueSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  ngOnInit() {}
  changeValue() {
    this.valueSelect.emit(this.valueSelected);
  }
  static #_ = this.ɵfac = function PageInfoComponent_Factory(t) {
    return new (t || PageInfoComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: PageInfoComponent,
    selectors: [["app-page-info"]],
    inputs: {
      page: "page",
      totalItems: "totalItems",
      defaultValue: "defaultValue",
      defaultValueDis: "defaultValueDis",
      defaultString: "defaultString",
      select: "select",
      items: "items",
      valueSelected: "valueSelected"
    },
    outputs: {
      valueSelect: "valueSelect"
    },
    decls: 12,
    vars: 4,
    consts: [[1, "d-flex", "text-nowrap", "gap-2"], [1, "text-muted", "mb-0", "d-inline-block", "align-self-center"], [4, "ngIf"], ["data-cy", "select-pages", 1, "form-select", 3, "ngModel", "ngModelChange", "change"], [3, "value", "disabled", 4, "ngIf"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value", "disabled"], [3, "value"]],
    template: function PageInfoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "p", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " P\u00E1gina ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "b");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " con ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, PageInfoComponent_ng_container_6_Template, 4, 3, "ng-container", 2)(7, PageInfoComponent_ng_container_7_Template, 2, 1, "ng-container", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " de ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "b");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.page);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.select);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.select);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.totalItems);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgModel]
  });
}

/***/ }),

/***/ 52260:
/*!************************************************************!*\
  !*** ./src/app/shared/ui/pagetitle/pagetitle.component.ts ***!
  \************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


function PagetitleComponent_ng_container_7_li_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 9)(1, "a", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r1.label);
  }
}
function PagetitleComponent_ng_container_7_li_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r1.label, " ");
  }
}
function PagetitleComponent_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PagetitleComponent_ng_container_7_li_1_Template, 3, 1, "li", 7)(2, PagetitleComponent_ng_container_7_li_2_Template, 2, 1, "li", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const item_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r1.active);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r1.active);
  }
}
class PagetitleComponent {
  constructor() {}
  ngOnInit() {}
  static #_ = this.ɵfac = function PagetitleComponent_Factory(t) {
    return new (t || PagetitleComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: PagetitleComponent,
    selectors: [["app-page-title"]],
    inputs: {
      breadcrumbItems: "breadcrumbItems",
      title: "title"
    },
    decls: 8,
    vars: 2,
    consts: [[1, "row"], [1, "col-12"], [1, "page-title-box", "d-flex", "align-items-center", "justify-content-between"], [1, "mb-0", "font-size-18"], [1, "page-title-right"], [1, "breadcrumb", "m-0"], [4, "ngFor", "ngForOf"], ["class", "breadcrumb-item", 4, "ngIf"], ["class", "breadcrumb-item active", 4, "ngIf"], [1, "breadcrumb-item"], ["href", "javascript: void(0);"], [1, "breadcrumb-item", "active"]],
    template: function PagetitleComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h4", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4)(6, "ol", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, PagetitleComponent_ng_container_7_Template, 3, 2, "ng-container", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.breadcrumbItems);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf]
  });
}

/***/ }),

/***/ 74813:
/*!**************************************************************!*\
  !*** ./src/app/shared/ui/pagination/pagination.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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



class PaginationComponent {
  constructor() {
    this.currentPage = 1;
    this.total = 0;
    this.limit = 10;
    this.linkNumber = 5;
    this.pageChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  ngOnInit() {}
  pageChange(event) {
    this.pageChanges.emit(event.page + 1);
  }
  static #_ = this.ɵfac = function PaginationComponent_Factory(t) {
    return new (t || PaginationComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: PaginationComponent,
    selectors: [["app-pagination"]],
    inputs: {
      currentPage: "currentPage",
      total: "total",
      limit: "limit",
      linkNumber: "linkNumber"
    },
    outputs: {
      pageChanges: "pageChanges"
    },
    decls: 3,
    vars: 4,
    consts: [["aria-label", "Page navigation example", 1, "mb-0"], ["data-cy", "pagination", 1, "pagination", "mb-0", "gap-2"], [3, "pageLinkSize", "first", "rows", "totalRecords", "onPageChange", "firstChange"]],
    template: function PaginationComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "nav", 0)(1, "ul", 1)(2, "p-paginator", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("onPageChange", function PaginationComponent_Template_p_paginator_onPageChange_2_listener($event) {
          return ctx.pageChange($event);
        })("firstChange", function PaginationComponent_Template_p_paginator_firstChange_2_listener($event) {
          return (ctx.currentPage - 1) * (ctx.limit = $event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("pageLinkSize", ctx.linkNumber)("first", (ctx.currentPage - 1) * ctx.limit)("rows", ctx.limit)("totalRecords", ctx.total);
      }
    },
    dependencies: [primeng_paginator__WEBPACK_IMPORTED_MODULE_1__.Paginator],
    styles: [".p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n  justify-self: flex-end;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n  border-radius: initial !important;\n  background-color: initial !important;\n  height: 37px;\n  min-width: 35px;\n  margin: 0;\n  padding: 0;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n    font-size: 11.375px;\n    height: 27px;\n    min-width: 21px;\n  }\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:active,   .p-paginator .p-paginator-first.p-link:hover:active,  .p-paginator .p-paginator-prev.p-link:hover:active,   .p-paginator .p-paginator-next.p-link:hover:active,  .p-paginator .p-paginator-last.p-link:hover:active,  .p-paginator .p-dropdown.p-link:hover:active {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:not(:active),   .p-paginator .p-paginator-first.p-link:hover:not(:active),  .p-paginator .p-paginator-prev.p-link:hover:not(:active),   .p-paginator .p-paginator-next.p-link:hover:not(:active),  .p-paginator .p-paginator-last.p-link:hover:not(:active),  .p-paginator .p-dropdown.p-link:hover:not(:active) {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .p-link:focus,   .p-paginator .p-paginator-first .p-link:focus,  .p-paginator .p-paginator-prev .p-link:focus,   .p-paginator .p-paginator-next .p-link:focus,  .p-paginator .p-paginator-last .p-link:focus,  .p-paginator .p-dropdown .p-link:focus {\n  outline: 0 none;\n  outline-offset: 0;\n  \n\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-highlight,   .p-paginator .p-paginator-first.p-highlight,  .p-paginator .p-paginator-prev.p-highlight,   .p-paginator .p-paginator-next.p-highlight,  .p-paginator .p-paginator-last.p-highlight,  .p-paginator .p-dropdown.p-highlight {\n  background-color: #0070af !important;\n  color: #fff;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n    font-size: 11.375px;\n  }\n}\n\n .p-paginator .p-dropdown .p-dropdown-label {\n  padding: 8px;\n  align-self: center;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n   .p-paginator .p-dropdown .p-dropdown-label {\n    padding: 6px;\n    font-size: 11.375px;\n  }\n}\n\n  .p-datatable .p-paginator-bottom {\n  border: none;\n}\n\n  .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  justify-content: end;\n}\n@media (max-width: 576px) {\n    .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n    margin-top: 30px;\n    justify-content: center;\n  }\n}\n\n .p-paginator .p-paginator-current {\n  position: absolute;\n  left: 0;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n   .p-paginator .p-paginator-current {\n    left: 50%;\n    bottom: 4%;\n    transform: translateX(-50%);\n  }\n}"]
  });
}

/***/ }),

/***/ 40381:
/*!******************************************************************!*\
  !*** ./src/app/shared/ui/periodicidad/periodicidad.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   PeriodicidadComponent: () => (/* binding */ PeriodicidadComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cronstrue/i18n */ 71640);
/* harmony import */ var cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _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 _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primeng/inputnumber */ 75167);
/* harmony import */ var primeng_radiobutton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primeng/radiobutton */ 21865);
/* harmony import */ var _input_time_input_time_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../input-time/input-time.component */ 71902);










function PeriodicidadComponent_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 40)(1, "h4", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Configuraci\u00F3n de periodicidad ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
}
function PeriodicidadComponent_option_50_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const day_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", day_r4);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", day_r4, " ");
  }
}
function PeriodicidadComponent_option_62_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "option", 42);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const pType_r5 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("value", pType_r5);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", pType_r5, " ");
  }
}
function PeriodicidadComponent_div_80_Template(rf, ctx) {
  if (rf & 1) {
    const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 43)(1, "button", 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_div_80_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r6.modal.dismiss());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, " Cancelar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "button", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_div_80_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r7);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r8.modalClose());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, " Guardar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("disabled", ctx_r3.form.controls.expresionCron.value == "");
  }
}
class PeriodicidadComponent {
  constructor(fb, modal) {
    this.fb = fb;
    this.modal = modal;
    this.isModal = false;
    this.periodicidadEmit = new _angular_core__WEBPACK_IMPORTED_MODULE_3__.EventEmitter();
    this.form = this.fb.group({
      expresionCron: [''],
      expresionCronMsj: [''],
      opcionSelect: [''],
      diarioHora: [''],
      semanalDia: [''],
      semanalHora: [''],
      mensualDia: [0],
      mensualHora: [''],
      periodicoType: ['Dias'],
      periodicoValue: [0]
    });
    this.days = lodash__WEBPACK_IMPORTED_MODULE_1__.range(1, 32);
    this.periodicoType = ['Dias', 'Horas', 'Minutos'];
  }
  ngOnInit() {
    if (this.periodicidad) {
      this.form.controls.expresionCron.setValue(this.periodicidad);
      this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(this.periodicidad, {
        locale: 'es'
      }));
    }
    this.form.disable();
    this.form.controls.opcionSelect.enable();
    this.form.controls.expresionCron.enable();
    this.form.controls.expresionCronMsj.enable();
    this.form.controls.opcionSelect.valueChanges.subscribe(value => {
      this.form.controls.expresionCron.reset('');
      this.form.controls.expresionCronMsj.reset('');
      if (value == 'D') {
        this.form.controls.diarioHora.enable();
        this.form.controls.diarioHora.reset('', {
          emitEvent: false
        });
        this.form.controls.semanalDia.disable();
        this.form.controls.semanalHora.reset('', {
          emitEvent: false
        });
        this.form.controls.semanalHora.disable();
        this.form.controls.mensualDia.reset(0, {
          emitEvent: false
        });
        this.form.controls.mensualDia.disable();
        this.form.controls.mensualHora.reset('', {
          emitEvent: false
        });
        this.form.controls.mensualHora.disable();
        this.form.controls.periodicoType.reset('Dias', {
          emitEvent: false
        });
        this.form.controls.periodicoType.disable();
        this.form.controls.periodicoValue.reset(0, {
          emitEvent: false
        });
        this.form.controls.periodicoValue.disable();
      }
      if (value == 'S') {
        this.form.controls.diarioHora.reset('', {
          emitEvent: false
        });
        this.form.controls.diarioHora.disable();
        this.form.controls.semanalDia.enable();
        this.form.controls.mensualDia.reset(0, {
          emitEvent: false
        });
        this.form.controls.mensualDia.disable();
        this.form.controls.mensualHora.reset('', {
          emitEvent: false
        });
        this.form.controls.mensualHora.disable();
        this.form.controls.periodicoType.reset('Dias', {
          emitEvent: false
        });
        this.form.controls.periodicoType.disable();
        this.form.controls.periodicoValue.reset(0, {
          emitEvent: false
        });
        this.form.controls.periodicoValue.disable();
      }
      if (value == 'M') {
        this.form.controls.diarioHora.reset('', {
          emitEvent: false
        });
        this.form.controls.diarioHora.disable();
        this.form.controls.semanalDia.reset('', {
          emitEvent: false
        });
        this.form.controls.semanalDia.disable();
        this.form.controls.semanalHora.reset('', {
          emitEvent: false
        });
        this.form.controls.semanalHora.disable();
        this.form.controls.mensualDia.enable();
        this.form.controls.periodicoType.reset('Dias', {
          emitEvent: false
        });
        this.form.controls.periodicoType.disable();
        this.form.controls.periodicoValue.reset(0, {
          emitEvent: false
        });
        this.form.controls.periodicoValue.disable();
      }
      if (value == 'P') {
        this.form.controls.diarioHora.reset('', {
          emitEvent: false
        });
        this.form.controls.diarioHora.disable();
        this.form.controls.semanalDia.reset('', {
          emitEvent: false
        });
        this.form.controls.semanalDia.disable();
        this.form.controls.semanalHora.reset('', {
          emitEvent: false
        });
        this.form.controls.semanalHora.disable();
        this.form.controls.mensualDia.reset(0, {
          emitEvent: false
        });
        this.form.controls.mensualDia.disable();
        this.form.controls.mensualHora.reset('', {
          emitEvent: false
        });
        this.form.controls.mensualHora.disable();
        this.form.controls.periodicoType.enable();
        this.form.controls.periodicoValue.enable();
      }
    });
    this.form.controls.diarioHora.valueChanges.subscribe(value => {
      if (value && value != '') {
        let [hora, min] = value.split(':');
        this.form.controls.expresionCron.setValue(`${min} ${hora} * * *`);
        this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} * * *`, {
          locale: 'es'
        }));
      } else {
        this.form.controls.expresionCron.setValue('');
        this.form.controls.expresionCronMsj.setValue('');
      }
    });
    this.form.controls.semanalDia.valueChanges.subscribe(value => {
      if (value && value != '') {
        this.form.controls.semanalHora.enable();
        if (this.form.controls.semanalHora.value) {
          let [hora, min] = this.form.controls.semanalHora.value.split(':');
          this.form.controls.expresionCron.setValue(`${min} ${hora} * * ${value}`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} * * ${value}`, {
            locale: 'es'
          }));
        } else {
          this.form.controls.expresionCron.setValue(`0 0 * * ${value}`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 * * ${value}`, {
            locale: 'es'
          }));
        }
      } else {
        this.form.controls.semanalHora.reset('');
        this.form.controls.semanalHora.disable();
        this.form.controls.expresionCron.setValue('');
        this.form.controls.expresionCronMsj.setValue('');
      }
    });
    this.form.controls.semanalHora.valueChanges.subscribe(value => {
      if (value && value != '') {
        let [hora, min] = value.split(':');
        if (this.form.controls.semanalDia.value) {
          this.form.controls.expresionCron.setValue(`${min} ${hora} * * ${this.form.controls.semanalDia.value}`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} * * ${this.form.controls.semanalDia.value}`, {
            locale: 'es'
          }));
        } else {
          this.form.controls.expresionCron.setValue(`${min} ${hora} * * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} * * *`, {
            locale: 'es'
          }));
        }
      } else {
        if (this.form.controls.semanalDia.value) {
          this.form.controls.expresionCron.setValue(`0 0 * * ${this.form.controls.semanalDia.value}`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 * * ${this.form.controls.semanalDia.value}`, {
            locale: 'es'
          }));
        }
      }
    });
    this.form.controls.mensualDia.valueChanges.subscribe(value => {
      if (value && value != 0) {
        this.form.controls.mensualHora.enable();
        if (this.form.controls.mensualHora.value) {
          let [hora, min] = this.form.controls.mensualHora.value.split(':');
          this.form.controls.expresionCron.setValue(`${min} ${hora} ${value} * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} ${value} * *`, {
            locale: 'es'
          }));
        } else {
          this.form.controls.expresionCron.setValue(`0 0 ${value} * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 ${value} * *`, {
            locale: 'es'
          }));
        }
      } else {
        this.form.controls.mensualHora.reset('');
        this.form.controls.mensualHora.disable();
        this.form.controls.expresionCron.setValue('');
        this.form.controls.expresionCronMsj.setValue('');
      }
    });
    this.form.controls.mensualHora.valueChanges.subscribe(value => {
      if (value && value != '') {
        let [hora, min] = value.split(':');
        if (this.form.controls.mensualDia.value) {
          this.form.controls.expresionCron.setValue(`${min} ${hora} ${this.form.controls.mensualDia.value} * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} ${this.form.controls.mensualDia.value} * *`, {
            locale: 'es'
          }));
        } else {
          this.form.controls.expresionCron.setValue(`${min} ${hora} 1 * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`${min} ${hora} 1 * *`, {
            locale: 'es'
          }));
        }
      } else {
        if (this.form.controls.mensualDia.value) {
          this.form.controls.expresionCron.setValue(`0 0 ${this.form.controls.mensualDia.value} * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 ${this.form.controls.mensualDia.value} * *`, {
            locale: 'es'
          }));
        }
      }
    });
    this.form.controls.periodicoType.valueChanges.subscribe(value => {
      if (value) {
        this.form.controls.periodicoValue.reset(0);
      }
    });
    this.form.controls.periodicoValue.valueChanges.subscribe(value => {
      if (value && value != 0) {
        if (this.form.controls.periodicoType.value == 'Dias') {
          this.form.controls.expresionCron.setValue(`0 0 1/${value} * * `);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 1/${value} * * `, {
            locale: 'es'
          }));
        }
        if (this.form.controls.periodicoType.value == 'Horas') {
          this.form.controls.expresionCron.setValue(`0 0/${value} * * * `);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0/${value} * * *`, {
            locale: 'es'
          }));
        }
        if (this.form.controls.periodicoType.value == 'Minutos') {
          this.form.controls.expresionCron.setValue(`0/${value} * * * *`);
          this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0/${value} * * * * `, {
            locale: 'es'
          }));
        }
      } else {
        this.form.controls.expresionCron.setValue('');
        this.form.controls.expresionCronMsj.setValue('');
      }
    });
  }
  modalClose() {
    if (this.isModal) {
      this.modal.close(this.form.controls.expresionCron.value);
    } else {
      this.periodicidadEmit.emit(this.form.controls.expresionCron.value);
    }
  }
  setPeriodico($event) {
    this.form.controls.periodicoDias.setValue($event.Dias);
    this.form.controls.periodicoHoras.setValue($event.Horas);
    this.form.controls.periodicoMinutos.setValue($event.Minutos);
  }
  getOptionSelect() {
    return this.form.controls.opcionSelect.value;
  }
  getCronMsj() {
    return this.form.controls.expresionCronMsj.value;
  }
  getMaxPValue() {
    if (this.form.controls.periodicoType.value == 'Horas') {
      return 23;
    }
    if (this.form.controls.periodicoType.value == 'Minutos') {
      return 59;
    }
    return 31;
  }
  setCronValue(nombre) {
    this.form.controls.opcionSelect.setValue('');
    this.form.controls.diarioHora.reset('');
    this.form.controls.diarioHora.disable();
    this.form.controls.semanalDia.reset('');
    this.form.controls.semanalDia.disable();
    this.form.controls.semanalHora.reset('');
    this.form.controls.semanalHora.disable();
    this.form.controls.mensualDia.reset(0);
    this.form.controls.mensualDia.disable();
    this.form.controls.mensualHora.reset('');
    this.form.controls.mensualHora.disable();
    this.form.controls.periodicoType.reset('Dias');
    this.form.controls.periodicoType.disable();
    this.form.controls.periodicoValue.reset(0);
    this.form.controls.periodicoValue.disable();
    if (nombre == 'Cada10Min') {
      this.form.controls.expresionCron.setValue(`*/10 * * * *`);
      this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`*/10 * * * *`, {
        locale: 'es'
      }));
    }
    if (nombre == 'CadaHora') {
      this.form.controls.expresionCron.setValue(`0 * * * *`);
      this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 * * * *`, {
        locale: 'es'
      }));
    }
    if (nombre == 'Diario') {
      this.form.controls.expresionCron.setValue(`0 0 * * *`);
      this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 * * *`, {
        locale: 'es'
      }));
    }
    if (nombre == 'Semanal') {
      this.form.controls.expresionCron.setValue(`0 0 * * 1`);
      this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 * * 1`, {
        locale: 'es'
      }));
    }
    if (nombre == 'Mensual') {
      this.form.controls.expresionCron.setValue(`0 0 1 * *`);
      this.form.controls.expresionCronMsj.setValue(cronstrue_i18n__WEBPACK_IMPORTED_MODULE_0___default().toString(`0 0 1 * *`, {
        locale: 'es'
      }));
    }
  }
  /**
   * SP SINWEB-569 metodo setear diarioHora
   * @param $event
   */
  setDiarioHora($event) {
    this.form.controls.diarioHora.setValue($event);
  }
  /**
   * SP SINWEB-568 metodo setear semanalHora
   * @param $event
   */
  setSemanalHora($event) {
    this.form.controls.semanalHora.setValue($event);
  }
  /**
   * SP SINWEB-569 metodo setear mensualHora
   * @param $event
   */
  setMensualHora($event) {
    this.form.controls.mensualHora.setValue($event);
  }
  static #_ = this.ɵfac = function PeriodicidadComponent_Factory(t) {
    return new (t || PeriodicidadComponent)(_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));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
    type: PeriodicidadComponent,
    selectors: [["app-periodicidad"]],
    inputs: {
      isModal: "isModal",
      periodicidad: "periodicidad"
    },
    outputs: {
      periodicidadEmit: "periodicidadEmit"
    },
    decls: 81,
    vars: 24,
    consts: [[3, "ngClass"], ["class", "modal-header", 4, "ngIf"], [1, "row", "justify-content-center"], [1, "col-10", "alert", "alert-primary", "text-center"], [1, "d-flex", "flex-column-reverse", "flex-lg-row", "gap-3"], [1, "col-12", "col-lg-7", "align-self-stretch"], [3, "formGroup"], [1, "card", "shadow-lg", "position-relative"], [1, "card-body"], [1, "position-absolute"], ["inputId", "D", "value", "D", "formControlName", "opcionSelect", "label", "Diariamente"], [1, "row", 2, "margin-top", "40px"], [1, "col-6"], [3, "valor", "disabled", "valorEmit"], ["inputId", "S", "value", "S", "formControlName", "opcionSelect", "label", "Semanalmente"], [1, "d-flex", "gap-2", 2, "margin-top", "40px"], ["formControlName", "semanalDia", 1, "form-select"], ["value", ""], ["value", "1"], ["value", "2"], ["value", "3"], ["value", "4"], ["value", "5"], ["value", "6"], ["value", "7"], ["inputId", "M", "value", "M", "formControlName", "opcionSelect", "label", "Mensualmente"], ["formControlName", "mensualDia", 1, "form-select"], ["value", "0"], [3, "value", 4, "ngFor", "ngForOf"], [1, "card", "shadow-lg", "position-relative", "mb-0"], ["inputId", "P", "value", "P", "formControlName", "opcionSelect", "label", "Peri\u00F3dicamente"], [1, "input-group", "mb-2"], ["formControlName", "periodicoType", 1, "form-select"], ["formControlName", "periodicoValue", 3, "min", "max"], [1, "col"], [1, "card", "shadow-lg", "h-100"], [1, "text-center", "mb-3"], [1, "d-flex", "flex-wrap", "gap-2", "justify-content-center"], ["type", "button", 1, "btn", "btn-outline-dark", "btn-elevate", "mr-2", 3, "click"], ["class", "modal-footer position-relative", 4, "ngIf"], [1, "modal-header"], ["id", "example-modal-sizes-title-lg", 1, "modal-title"], [3, "value"], [1, "modal-footer", "position-relative"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "btn-elevate", 3, "disabled", "click"]],
    template: function PeriodicidadComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, PeriodicidadComponent_div_1_Template, 3, 0, "div", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "div", 0)(3, "div", 2)(4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 4)(7, "div", 5)(8, "form", 6)(9, "div", 7)(10, "div", 8)(11, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](12, "p-radioButton", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "div", 11)(14, "div", 12)(15, "app-input-time", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("valorEmit", function PeriodicidadComponent_Template_app_input_time_valorEmit_15_listener($event) {
          return ctx.setDiarioHora($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "div", 7)(17, "div", 8)(18, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](19, "p-radioButton", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "div", 15)(21, "div", 12)(22, "select", 16)(23, "option", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Seleccione el d\u00EDa de la semana");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "option", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Lunes");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "option", 19);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Martes");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "option", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30, "Miercoles");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "option", 21);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Jueves");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "option", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Viernes");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "option", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](36, "Sabado");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](37, "option", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](38, "Domingo");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "div", 12)(40, "app-input-time", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("valorEmit", function PeriodicidadComponent_Template_app_input_time_valorEmit_40_listener($event) {
          return ctx.setSemanalHora($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](41, "div", 7)(42, "div", 8)(43, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](44, "p-radioButton", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](45, "div", 15)(46, "div", 12)(47, "select", 26)(48, "option", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](49, "Seleccione el d\u00EDa del mes");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](50, PeriodicidadComponent_option_50_Template, 2, 2, "option", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](51, "div", 12)(52, "div", 12)(53, "app-input-time", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("valorEmit", function PeriodicidadComponent_Template_app_input_time_valorEmit_53_listener($event) {
          return ctx.setMensualHora($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](54, "div", 29)(55, "div", 8)(56, "div", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](57, "p-radioButton", 30);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](58, "div", 15)(59, "div", 12)(60, "div", 31)(61, "select", 32);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](62, PeriodicidadComponent_option_62_Template, 2, 2, "option", 28);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](63, "p-inputNumber", 33);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](64, "div", 34)(65, "div", 35)(66, "div", 8)(67, "h5", 36);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](68, "Configuraciones R\u00E1pidas");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](69, "div", 37)(70, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_Template_button_click_70_listener() {
          return ctx.setCronValue("Cada10Min");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](71, " Cada 10 Minutos ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](72, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_Template_button_click_72_listener() {
          return ctx.setCronValue("CadaHora");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](73, " Cada Hora ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](74, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_Template_button_click_74_listener() {
          return ctx.setCronValue("Diario");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](75, " Diariamente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](76, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_Template_button_click_76_listener() {
          return ctx.setCronValue("Semanal");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](77, " Semanalmente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](78, "button", 38);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function PeriodicidadComponent_Template_button_click_78_listener() {
          return ctx.setCronValue("Mensual");
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](79, " Mensualmente ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](80, PeriodicidadComponent_div_80_Template, 5, 1, "div", 39);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx.isModal ? "modal-content" : "d-block");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.isModal);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx.isModal ? "overlay overlay-block cursor-default modal-body" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx.getCronMsj() == "" ? "Seleccione una periodicidad" : ctx.getCronMsj(), " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("formGroup", ctx.form);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-color", ctx.getOptionSelect() != "D" ? "var(--bs-body-bg)" : "var(--bs-card-bg)");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("valor", ctx.form.controls.diarioHora.value)("disabled", ctx.form.controls.diarioHora.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-color", ctx.getOptionSelect() != "S" ? "var(--bs-body-bg)" : "var(--bs-card-bg)");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](23);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("valor", ctx.form.controls.semanalHora.value)("disabled", ctx.form.controls.semanalHora.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-color", ctx.getOptionSelect() != "M" ? "var(--bs-body-bg)" : "var(--bs-card-bg)");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.days);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("valor", ctx.form.controls.mensualHora.value)("disabled", ctx.form.controls.mensualHora.disabled);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("background-color", ctx.getOptionSelect() != "P" ? "var(--bs-body-bg)" : "var(--bs-card-bg)");
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.periodicoType);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("min", 0)("max", ctx.getMaxPValue());
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.isModal);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _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__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatusGroup, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_7__.InputNumber, primeng_radiobutton__WEBPACK_IMPORTED_MODULE_8__.RadioButton, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.FormControlName, _input_time_input_time_component__WEBPACK_IMPORTED_MODULE_2__.InputTimeComponent],
    styles: [".p-inputtext {\n  padding: 7.52px 12px !important;\n  font-size: 0.8125rem;\n  font-weight: 400;\n  line-height: 1.5;\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n  .p-inputtext:disabled {\n  background-color: var(--bs-body-bg);\n}\n\n .back-z-index {\n  z-index: 1055 !important;\n}\n\n .modal-z-index {\n  z-index: 1056 !important;\n}\n\n  .back-z-index-1 {\n  z-index: 1057 !important;\n}\n\n .modal-z-index-1 {\n  z-index: 1058 !important;\n}\n\n  .back-z-index-2 {\n  z-index: 1059 !important;\n}\n\n .modal-z-index-2 {\n  z-index: 1060 !important;\n}\n\n  .back-z-index-3 {\n  z-index: 1061 !important;\n}\n\n .modal-z-index-3 {\n  z-index: 1062 !important;\n}\n\n  .back-z-index-4 {\n  z-index: 1063 !important;\n}\n\n .modal-z-index-4 {\n  z-index: 1064 !important;\n}\n\n  .back-z-index-last {\n  z-index: 1065 !important;\n}\n\n .modal-z-index-last {\n  z-index: 1066 !important;\n}"]
  });
}

/***/ }),

/***/ 79355:
/*!****************************************************************!*\
  !*** ./src/app/shared/ui/seleccionar/seleccionar.component.ts ***!
  \****************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SeleccionarComponent: () => (/* binding */ SeleccionarComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 32013);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ 65619);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ 83620);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ 93997);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ 99397);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ 94664);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 22096);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 37398);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 52572);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs */ 27921);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../core/directives/format-codigo-input.directive */ 48508);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-select/ng-select */ 54807);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ 96814);








const _c0 = ["filterInput"];
function SeleccionarComponent_Conditional_1_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r5 = ctx.item;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("title", "(" + item_r5.Codigo + ")" + item_r5.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", item_r5.Codigo, ")", item_r5.Nombre, " ");
  }
}
function SeleccionarComponent_Conditional_1_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 12)(1, "input", 13, 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function SeleccionarComponent_Conditional_1_ng_template_4_Template_input_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9);
      const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r8.busqueda = $event);
    })("keydown.enter", function SeleccionarComponent_Conditional_1_ng_template_4_Template_input_keydown_enter_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9);
      const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r10.validBusqueda() ? ctx_r10.onSearch(ctx_r10.busqueda) : null);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r3.busqueda);
  }
}
function SeleccionarComponent_Conditional_1_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r11 = ctx.item;
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("title", "(" + item_r11.Codigo + ")" + item_r11.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" (", item_r11.Codigo, ")", item_r11.Nombre, " ");
  }
}
function SeleccionarComponent_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-select", 6, 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function SeleccionarComponent_Conditional_1_Template_ng_select_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r13.seleccionado = $event);
    })("open", function SeleccionarComponent_Conditional_1_Template_ng_select_open_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r15.onOpen());
    })("change", function SeleccionarComponent_Conditional_1_Template_ng_select_change_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14);
      const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r16.seleccionar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "async");
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, SeleccionarComponent_Conditional_1_ng_template_3_Template, 2, 3, "ng-template", 8)(4, SeleccionarComponent_Conditional_1_ng_template_4_Template, 3, 1, "ng-template", 9)(5, SeleccionarComponent_Conditional_1_ng_template_5_Template, 2, 3, "ng-template", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 9, ctx_r0.items$))("placeholder", ctx_r0.placeholder)("bindLabel", "Nombre")("ngModel", ctx_r0.seleccionado)("closeOnSelect", !ctx_r0.multiple)("searchable", false)("clearOnBackspace", false)("selectOnTab", true)("markFirst", false);
  }
}
class SeleccionarComponent {
  constructor(modalService) {
    this.modalService = modalService;
    this.buscarPor = 'nombre';
    this.orden = 1;
    this.sentido = 'asc';
    this.multiple = false;
    this.placeholder = 'Buscar por...';
    this.search = '';
    this.searchLength = 3;
    this.datos = [];
    this.total = 0;
    this.seleccionados = [];
    this.busqueda = '';
    this.loading = false;
    this.searchSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject();
    this.modalDataSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__.BehaviorSubject([]);
    this.emitSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
  }
  ngOnInit() {
    const searchResults$ = this.searchSubject.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.debounceTime)(300), (0,rxjs__WEBPACK_IMPORTED_MODULE_5__.distinctUntilChanged)(), (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.tap)(() => this.loading = true), (0,rxjs__WEBPACK_IMPORTED_MODULE_7__.switchMap)(q => {
      if (!q || q.trim() === '') {
        return (0,rxjs__WEBPACK_IMPORTED_MODULE_8__.of)([]);
      }
      return this.service.fetch(this.setFiltros(q));
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_9__.map)(response => response.Data || []), (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.tap)(data => {
      // Si hay resultados de búsqueda, limpiar datos del modal
      if (data.length > 0) {
        this.modalDataSubject.next([]);
      }
    }), (0,rxjs__WEBPACK_IMPORTED_MODULE_6__.tap)(() => this.loading = false));
    // Combinar resultados de búsqueda con datos del modal
    this.items$ = (0,rxjs__WEBPACK_IMPORTED_MODULE_10__.combineLatest)([searchResults$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_11__.startWith)([])), this.modalDataSubject.asObservable()]).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_9__.map)(([searchData, modalData]) => {
      return modalData.length > 0 ? modalData : searchData;
    }));
    // if (this.select != undefined) {
    //   this.multiple
    //     ? (this.seleccionados = this.select)
    //     : (this.seleccionado = this.select);
    // }
  }
  ngAfterViewInit() {
    //Called after ngAfterContentInit when the component's view has been initialized. Applies to components only.
    //Add 'implements AfterViewInit' to the class.
    if (this.search != undefined && this.search != '') {
      this.busqueda = this.search;
      this.onSearch(this.search);
      //TODO fix
    }
  }
  setFiltros(busqueda) {
    let params = {
      PageNumber: -1,
      Orden: this.orden,
      Sentido: this.sentido == 'asc' ? 'Asc' : 'Desc'
    };
    if (this.buscarPor == 'nombre') {
      params['Nombre'] = busqueda;
    }
    if (this.buscarPor == 'codigo') {
      params['Codigo'] = busqueda;
    }
    // if (this.buscarPor == 'numero') {
    //   params['Numero'] = this.busqueda;
    // }
    // if (this.multiple) {
    //   params['BusquedaMultiple'] = busqueda;
    // }
    return params;
  }
  onSearch(busqueda) {
    this.searchSubject.next(busqueda);
  }
  seleccionar($event) {
    this.emitSelect.emit({
      result: this.seleccionado
    });
  }
  // onSearch($event) {
  //   this.busqueda = $event.target.value;
  // }
  unselect(item) {
    this.seleccionados = this.seleccionados.filter(elem => elem != item.Id);
  }
  unselectAll() {
    this.seleccionados = [];
  }
  selectAll() {
    this.seleccionados = this.datos.map(elem => elem.Id);
  }
  callCompSelect() {
    const modalref = this.modalService.open(this.componente, {
      backdrop: 'static',
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      scrollable: true,
      keyboard: false
    });
    modalref.componentInstance.multiple = this.multiple;
    modalref.result.then(resolve => {
      // if (this.multiple) {
      //   this.seleccionados = _.union(
      //     this.seleccionados,
      //     Object.values(resolve)[0] as Array<number>
      //   );
      //   this.datos = _.unionBy(
      //     this.datos,
      //     Object.values(resolve)[2] as Array<any>,
      //     'Id'
      //   );
      //   this.emitSelect.emit({
      //     result: this.seleccionados,
      //     busqueda: this.busqueda
      //   });
      // } else {
      this.seleccionado = Object.values(resolve)[0];
      const newData = Object.values(resolve)[2];
      // Limpiar búsqueda cuando se selecciona del modal
      this.busqueda = '';
      this.searchSubject.next('');
      this.modalDataSubject.next([newData]);
      this.emitSelect.emit({
        result: this.seleccionado
      });
    });
  }
  onOpen() {
    setTimeout(() => {
      if (this.filterInput && this.filterInput.nativeElement) {
        this.filterInput.nativeElement.focus();
      }
    }, 0);
  }
  validBusqueda() {
    return this.busqueda.length >= this.searchLength;
  }
  static #_ = this.ɵfac = function SeleccionarComponent_Factory(t) {
    return new (t || SeleccionarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: SeleccionarComponent,
    selectors: [["app-seleccionar"]],
    viewQuery: function SeleccionarComponent_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.filterInput = _t.first);
      }
    },
    inputs: {
      service: "service",
      buscarPor: "buscarPor",
      orden: "orden",
      sentido: "sentido",
      componente: "componente",
      multiple: "multiple",
      placeholder: "placeholder",
      search: "search",
      searchLength: "searchLength"
    },
    outputs: {
      emitSelect: "emitSelect"
    },
    decls: 6,
    vars: 2,
    consts: [[1, "input-group", "d-flex", "flex-nowrap"], ["class", "custom", "notFoundText", "Sin resultados...", "bindValue", "Id", 3, "items", "placeholder", "bindLabel", "ngModel", "closeOnSelect", "searchable", "clearOnBackspace", "selectOnTab", "markFirst"], [1, "btn", "btn-primary", 3, "disabled", "click"], [1, "bx", "bx-search"], [1, "btn", "btn-info", 3, "click"], [1, "bx", "bx-navigation"], ["notFoundText", "Sin resultados...", "bindValue", "Id", 1, "custom", 3, "items", "placeholder", "bindLabel", "ngModel", "closeOnSelect", "searchable", "clearOnBackspace", "selectOnTab", "markFirst", "ngModelChange", "open", "change"], ["select", ""], ["ng-label-tmp", ""], ["ng-header-tmp", ""], ["ng-option-tmp", ""], [1, "ng-value-label-custom", 3, "title"], [1, "d-flex"], ["type", "search", "placeholder", "Buscar...", "formatCodigoInput", "", 1, "form-control", 3, "ngModel", "ngModelChange", "keydown.enter"], ["filterInput", ""]],
    template: function SeleccionarComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, SeleccionarComponent_Conditional_1_Template, 6, 11, "ng-select", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "button", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeleccionarComponent_Template_button_click_2_listener() {
          return ctx.onSearch(ctx.busqueda);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function SeleccionarComponent_Template_button_click_4_listener() {
          return ctx.callCompSelect();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵconditional"](1, !ctx.multiple ? 1 : -1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx.validBusqueda());
      }
    },
    dependencies: [_core_directives_format_codigo_input_directive__WEBPACK_IMPORTED_MODULE_0__.FormatCodigoInputDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.NgModel, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__.NgOptionTemplateDirective, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__.NgLabelTemplateDirective, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__.NgHeaderTemplateDirective, _angular_common__WEBPACK_IMPORTED_MODULE_15__.AsyncPipe],
    styles: ["input[type=search][_ngcontent-%COMP%]::-webkit-search-cancel-button {\n  display: block;\n  cursor: pointer;\n}\n\ninput[type=search][_ngcontent-%COMP%]::-webkit-search-cancel-button {\n  display: block;\n  cursor: pointer;\n}\n\n.ng-select.custom[_ngcontent-%COMP%] {\n  flex-grow: 1;\n  min-width: 0;\n}\n\nbutton[_ngcontent-%COMP%] {\n  flex-grow: 0;\n  flex-shrink: 0;\n  width: auto;\n}\n\n.ng-select.custom[_ngcontent-%COMP%]     .ng-select-container .ng-value-container .ng-value {\n  max-width: 100%;\n}\n.ng-select.custom[_ngcontent-%COMP%]     .ng-select-container .ng-value-container .ng-value .ng-value-label {\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  display: block;\n}\n\n.ng-value-label-custom[_ngcontent-%COMP%] {\n  max-width: 100%;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  display: inline-block;\n}\n\n.input-group[_ngcontent-%COMP%]   .ng-select.custom[_ngcontent-%COMP%] {\n  flex: 1 1 auto;\n  min-width: 0;\n}\n.input-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  flex: 0 0 auto;\n}"]
  });
}

/***/ }),

/***/ 24718:
/*!**********************************************************************!*\
  !*** ./src/app/shared/ui/select-loading/select-loading.component.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SelectLoadingComponent: () => (/* binding */ SelectLoadingComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 56223);




function SelectLoadingComponent_select_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "select", 4)(1, "option", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Cargando...");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx_r0.idSelect)("disabled", ctx_r0.deshabilitado);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r0.defaultValue);
  }
}
function SelectLoadingComponent_select_2_option_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r4 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r4.Id);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4.Nombre, " ");
  }
}
function SelectLoadingComponent_select_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "select", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function SelectLoadingComponent_select_2_Template_select_ngModelChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r5.valueSelected = $event);
    })("change", function SelectLoadingComponent_select_2_Template_select_change_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7.changeValue());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "option", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, SelectLoadingComponent_select_2_option_3_Template, 2, 2, "option", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx_r1.idSelect)("disabled", ctx_r1.deshabilitado)("ngModel", ctx_r1.valueSelected);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r1.defaultValue)("disabled", ctx_r1.defaultValueDis);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.defaultString, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.items);
  }
}
function SelectLoadingComponent_label_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("for", ctx_r2.idSelect);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.label);
  }
}
class SelectLoadingComponent {
  constructor(cdr) {
    this.cdr = cdr;
    this.idSelect = '';
    this.defaultValue = '';
    this.defaultValueDis = false;
    this.defaultString = '';
    this.items = [];
    this.deshabilitado = false;
    this.stateControl = '';
    this.valueSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  ngOnInit() {}
  ngOnChanges(changes) {
    if (changes['items'] && changes['items'].currentValue) {
      //   // NO convertir a número, mantener como string
      if (typeof this.valueSelected === 'number') {
        this.valueSelected = this.valueSelected.toString();
      }
      this.cdr.detectChanges();
    }
  }
  changeValue() {
    this.valueSelect.emit(this.valueSelected);
  }
  static #_ = this.ɵfac = function SelectLoadingComponent_Factory(t) {
    return new (t || SelectLoadingComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.ChangeDetectorRef));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: SelectLoadingComponent,
    selectors: [["select-loading"]],
    inputs: {
      idSelect: "idSelect",
      label: "label",
      defaultValue: "defaultValue",
      defaultValueDis: "defaultValueDis",
      defaultString: "defaultString",
      items: "items",
      valueSelected: "valueSelected",
      loading: "loading",
      deshabilitado: "deshabilitado",
      stateControl: "stateControl"
    },
    outputs: {
      valueSelect: "valueSelect"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
    decls: 4,
    vars: 4,
    consts: [[3, "ngClass"], ["class", "form-select form-control", 3, "id", "disabled", 4, "ngIf"], ["class", "form-select form-control", "autocomplete", "on", "data-cy", "select-loading", 3, "id", "disabled", "ngModel", "ngModelChange", "change", 4, "ngIf"], [3, "for", 4, "ngIf"], [1, "form-select", "form-control", 3, "id", "disabled"], ["selected", "", 3, "value"], ["autocomplete", "on", "data-cy", "select-loading", 1, "form-select", "form-control", 3, "id", "disabled", "ngModel", "ngModelChange", "change"], [3, "value", "disabled"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [3, "for"]],
    template: function SelectLoadingComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, SelectLoadingComponent_select_1_Template, 3, 3, "select", 1)(2, SelectLoadingComponent_select_2_Template, 4, 7, "select", 2)(3, SelectLoadingComponent_label_3_Template, 2, 2, "label", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.label ? "form-floating mb-3" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.loading);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.label);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgSelectOption, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgSelectMultipleOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__.SelectControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgModel]
  });
}

/***/ }),

/***/ 54245:
/*!************************************************************************!*\
  !*** ./src/app/shared/ui/select-multiple/select-multiple.component.ts ***!
  \************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   SelectMultipleComponent: () => (/* binding */ SelectMultipleComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-select/ng-select */ 54807);




function SelectMultipleComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3)(1, "span", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectMultipleComponent_ng_template_1_Template_span_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3);
      const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.selectAll());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Todos");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SelectMultipleComponent_ng_template_1_Template_span_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3);
      const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r4.unselectAll());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Limpiar");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
}
const _c0 = () => ({
  standalone: true
});
function SelectMultipleComponent_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  }
  if (rf & 2) {
    const item_r5 = ctx.item;
    const item$_r6 = ctx.item$;
    const index_r7 = ctx.index;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "item-", index_r7, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item$_r6.selected)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](5, _c0));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx_r1.subLabelKey ? "(" + item_r5[ctx_r1.subLabelKey] + ")" : "", " ", item_r5[ctx_r1.labelKey], " ");
  }
}
/**
 * Componente de select multiple
 */
class SelectMultipleComponent {
  constructor(fb) {
    this.fb = fb;
    this.emitSelected = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
  }
  ngOnInit() {}
  modelChanged(event) {
    this.emitSelected.emit(event);
  }
  selectAll() {
    this.selected = this.items.map(x => x[this.valueKey]);
    this.emitSelected.emit(this.selected);
  }
  unselectAll() {
    this.selected = [];
    this.emitSelected.emit(this.selected);
  }
  static #_ = this.ɵfac = function SelectMultipleComponent_Factory(t) {
    return new (t || SelectMultipleComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__.FormBuilder));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: SelectMultipleComponent,
    selectors: [["app-select-multiple"]],
    inputs: {
      items: "items",
      readonly: "readonly",
      selected: "selected",
      labelKey: "labelKey",
      subLabelKey: "subLabelKey",
      valueKey: "valueKey",
      placeholder: "placeholder",
      loading: "loading"
    },
    outputs: {
      emitSelected: "emitSelected"
    },
    decls: 3,
    vars: 9,
    consts: [["notFoundText", "Sin resultados...", "dropdownPosition", "bottom", 3, "loading", "readonly", "items", "multiple", "bindLabel", "closeOnSelect", "bindValue", "placeholder", "ngModel", "ngModelChange"], ["ng-header-tmp", ""], ["ng-option-tmp", ""], [1, "d-block"], [1, "pointer", "text-info", 3, "click"], [1, "pointer", "text-secondary", 3, "click"], ["type", "checkbox", 1, "pointer", 3, "id", "ngModel", "ngModelOptions"]],
    template: function SelectMultipleComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-select", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function SelectMultipleComponent_Template_ng_select_ngModelChange_0_listener($event) {
          return ctx.modelChanged($event);
        })("ngModelChange", function SelectMultipleComponent_Template_ng_select_ngModelChange_0_listener($event) {
          return ctx.selected = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, SelectMultipleComponent_ng_template_1_Template, 6, 0, "ng-template", 1)(2, SelectMultipleComponent_ng_template_2_Template, 2, 6, "ng-template", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("loading", ctx.loading)("readonly", ctx.readonly)("items", ctx.items)("multiple", true)("bindLabel", ctx.labelKey)("closeOnSelect", false)("bindValue", ctx.valueKey)("placeholder", ctx.placeholder)("ngModel", ctx.selected);
      }
    },
    dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_1__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_1__.NgModel, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__.NgOptionTemplateDirective, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__.NgHeaderTemplateDirective],
    styles: [".ng-placeholder {\n  align-self: center !important;\n  top: 7px !important;\n  color: #495057 !important;\n  font-size: 0.8125rem;\n}\n\n.pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}"]
  });
}

/***/ }),

/***/ 63033:
/*!******************************************************!*\
  !*** ./src/app/shared/ui/table2/table2.component.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Table2Component: () => (/* binding */ Table2Component)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _table_modal_info_modal_info_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../table/modal-info/modal-info.component */ 1625);
/* harmony import */ var src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/constantes/constantes */ 74506);
/* harmony import */ var src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../core/utils/metodos/metodos */ 38002);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash */ 6990);
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common/locales/es-AR */ 57414);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var _data_list_data_list_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../data-list/data-list.component */ 29706);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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 primeng_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var primeng_button__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primeng/button */ 40707);
/* harmony import */ var primeng_checkbox__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primeng/checkbox */ 38057);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var primeng_dropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primeng/dropdown */ 53965);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primeng/table */ 94267);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../checkbox/checkbox.component */ 79468);
/* harmony import */ var _times_form_times_form_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../times-form/times-form.component */ 61928);




























const _c0 = ["dt1"];
const _c1 = ["filterInput"];
function Table2Component_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "div", 13)(2, "span", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](4, "lowercase");
    _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"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate2"]("Cantidad de ", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](4, 2, ctx_r0.title), ": ", ctx_r0.totalItems, "");
  }
}
function Table2Component_ng_template_4_div_1_ng_container_1_button_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_ng_container_1_button_1_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r23);
      const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r22.pushRegistroPage(true));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r19.isLoading);
  }
}
function Table2Component_ng_template_4_div_1_ng_container_1_button_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_ng_container_1_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r25);
      const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r24.pushRegistroPage(false));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r20.isLoading);
  }
}
function Table2Component_ng_template_4_div_1_ng_container_1_button_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_ng_container_1_button_4_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r27);
      const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r26.pushTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r21.isLoading);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx_r21.isLoading ? "bx bx-sync bx-spin font-size-16 align-middle" : "mdi mdi-playlist-check");
  }
}
function Table2Component_ng_template_4_div_1_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_4_div_1_ng_container_1_button_1_Template, 2, 1, "button", 24)(2, Table2Component_ng_template_4_div_1_ng_container_1_button_2_Template, 2, 1, "button", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, Table2Component_ng_template_4_div_1_ng_container_1_button_4_Template, 2, 2, "button", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "button", 27);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_ng_container_1_Template_button_click_6_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r29);
      const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r28.removeTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](7, "i", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](8, " \u00A0 ");
    _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__["ɵɵproperty"]("ngIf", !ctx_r16.isPageSelect() && !ctx_r16.anyCanPageSelected());
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r16.isPageSelect() && !ctx_r16.anyCanPageSelected());
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r16.selectAllFunc);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("disabled", ctx_r16.isLoading);
  }
}
function Table2Component_ng_template_4_div_1_button_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_button_2_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r31);
      const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r30.config = !ctx_r30.config);
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  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__["ɵɵproperty"]("tourAnchor", ctx_r17.anchorConfig)("ngClass", !ctx_r17.config ? "mdi mdi-cog-outline mdi-18px align-middle" : "mdi mdi-cog-off-outline mdi-18px align-middle");
  }
}
function Table2Component_ng_template_4_div_1_Conditional_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](0, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "button", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_Conditional_6_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r33);
      const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r32.visualizarSeleccionados());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  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__["ɵɵproperty"]("disabled", ctx_r18.selectedRows.length <= 0);
  }
}
function Table2Component_ng_template_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_4_div_1_ng_container_1_Template, 9, 4, "ng-container", 0)(2, Table2Component_ng_template_4_div_1_button_2_Template, 2, 2, "button", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3, " \u00A0 ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "button", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_1_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r35);
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r34.selectColFrozen(ctx_r34.colIndex));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](5, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](6, Table2Component_ng_template_4_div_1_Conditional_6_Template, 3, 1, "button", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r13.selectRows && ctx_r13.typeSelection == "multiple");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r13.configColumns);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx_r13.blockedCol ? "mdi mdi-lock-outline mdi-18px align-middle" : "mdi mdi-lock-open-variant-outline mdi-18px align-middle");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](6, ctx_r13.selectRows && ctx_r13.typeSelection == "multiple" && ctx_r13.verSeleccionados ? 6 : -1);
  }
}
function Table2Component_ng_template_4_div_5_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r36.orderSelected == null ? null : ctx_r36.orderSelected.label, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx_r36.orderSelected ? ctx_r36.orderSelected.sentido == "Asc" ? "bx bx-up-arrow-alt" : "bx bx-down-arrow-alt" : "");
  }
}
function Table2Component_ng_template_4_div_5_ng_template_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const order_r38 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", order_r38.label, " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", order_r38.sentido == "Asc" ? "bx bx-up-arrow-alt" : "bx bx-down-arrow-alt");
  }
}
function Table2Component_ng_template_4_div_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 38)(1, "p-dropdown", 39);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function Table2Component_ng_template_4_div_5_Template_p_dropdown_ngModelChange_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r40);
      const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r39.orderSelected = $event);
    })("onChange", function Table2Component_ng_template_4_div_5_Template_p_dropdown_onChange_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r40);
      const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r41.apiTable ? ctx_r41.setOrderLazy(ctx_r41.orderSelected) : ctx_r41.setOrderFront(ctx_r41.datos, ctx_r41.orderSelected));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_4_div_5_ng_template_2_Template, 3, 2, "ng-template", 40)(3, Table2Component_ng_template_4_div_5_ng_template_3_Template, 3, 2, "ng-template", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("options", ctx_r14.ordenes)("ngModel", ctx_r14.orderSelected);
  }
}
function Table2Component_ng_template_4_div_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 42)(1, "input", 43, 44);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("input", function Table2Component_ng_template_4_div_6_Template_input_input_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r44);
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](_r1.filterGlobal($event.target.value, "contains"));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "button", 45);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_4_div_6_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r44);
      const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r45.clear(_r1));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("placeholder", ctx_r15.searchMessage);
  }
}
function Table2Component_ng_template_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_4_div_1_Template, 7, 4, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "div", 16)(3, "div", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_4_div_5_Template, 4, 2, "div", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](6, Table2Component_ng_template_4_div_6_Template, 4, 1, "div", 19);
  }
  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"]("ngIf", ctx_r2.datos.length !== 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate4"](" P\u00E1gina ", ctx_r2.page, " con ", ctx_r2.cant_search, " de ", ctx_r2.totalItems, " ", ctx_r2.selectRows ? "(" + ctx_r2.selectedRows.length + " Seleccionados)" : "", " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.ordenes.length != 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.searchFields.length > 0 && !ctx_r2.apiTable);
  }
}
function Table2Component_ng_template_5_th_1_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_5_th_1_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r53);
      const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r52.allCollapse(1));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_5_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "th", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_5_th_1_a_1_Template, 2, 0, "a", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r47.someExpanded(1));
  }
}
function Table2Component_ng_template_5_th_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "th", 54);
  }
}
const _c2 = (a0, a1) => ({
  width: a0,
  "background-color": a1
});
function Table2Component_ng_template_5_ng_container_3_Conditional_1_th_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "th", 55)(1, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "p-sortIcon", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    const colIndex_r55 = ctx_r59.index;
    const col_r54 = ctx_r59.$implicit;
    const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", colIndex_r55 == 0 && ctx_r58.blockedCol ? "frozen" : "")("pSortableColumn", col_r54.Key)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](5, _c2, col_r54.WCol ? col_r54.WCol : "20%", col_r54.ColorBg ? col_r54.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("field", ctx_r58.apiTable ? col_r54.Order : col_r54.Key);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r54.Nombre, " ");
  }
}
function Table2Component_ng_template_5_ng_container_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_5_ng_container_3_Conditional_1_th_0_Template, 4, 8, "th", 56);
  }
  if (rf & 2) {
    const col_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r54.Disabled);
  }
}
function Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_0_th_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "th", 55)(1, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "p-sortIcon", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    const colIndex_r55 = ctx_r64.index;
    const col_r54 = ctx_r64.$implicit;
    const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", colIndex_r55 == 0 && ctx_r63.blockedCol ? "frozen" : "")("pSortableColumn", col_r54.Order)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](5, _c2, col_r54.WCol ? col_r54.WCol : "20%", col_r54.ColorBg ? col_r54.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("field", col_r54.Order);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r54.Nombre, " ");
  }
}
function Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_0_th_0_Template, 4, 8, "th", 56);
  }
  if (rf & 2) {
    const col_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r54.Disabled);
  }
}
function Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_1_th_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "th", 59)(1, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    const colIndex_r55 = ctx_r67.index;
    const col_r54 = ctx_r67.$implicit;
    const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", colIndex_r55 == 0 && ctx_r66.blockedCol ? "frozen" : "")("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](3, _c2, col_r54.WCol ? col_r54.WCol : "20%", col_r54.ColorBg ? col_r54.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r54.Nombre, " ");
  }
}
function Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_1_th_0_Template, 3, 6, "th", 58);
  }
  if (rf & 2) {
    const col_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r54.Disabled);
  }
}
function Table2Component_ng_template_5_ng_container_3_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_0_Template, 1, 1, "th", 55)(1, Table2Component_ng_template_5_ng_container_3_Conditional_2_Conditional_1_Template, 1, 1);
  }
  if (rf & 2) {
    const col_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](0, col_r54.Order ? 0 : 1);
  }
}
function Table2Component_ng_template_5_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, Table2Component_ng_template_5_ng_container_3_Conditional_1_Template, 1, 1, "th", 55)(2, Table2Component_ng_template_5_ng_container_3_Conditional_2_Template, 2, 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, !ctx_r49.apiTable ? 1 : 2);
  }
}
function Table2Component_ng_template_5_th_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "th", 60);
  }
  if (rf & 2) {
    const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx_r50.blockedCol ? "frozen-end" : "");
  }
}
function Table2Component_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_5_th_1_Template, 2, 1, "th", 46)(2, Table2Component_ng_template_5_th_2_Template, 1, 0, "th", 47)(3, Table2Component_ng_template_5_ng_container_3_Template, 3, 1, "ng-container", 48)(4, Table2Component_ng_template_5_th_4_Template, 1, 1, "th", 49);
    _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"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r3.expandRows);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r3.selectRows);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r3.columns);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r3.acciones || ctx_r3.rowsEdit);
  }
}
function Table2Component_ng_template_6_td_1_button_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "button", 64);
  }
  if (rf & 2) {
    const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    const dato_r70 = ctx_r79.$implicit;
    const expanded_r71 = ctx_r79.expanded;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pRowToggler", dato_r70)("icon", expanded_r71 ? "pi pi-chevron-down" : "pi pi-chevron-right");
  }
}
function Table2Component_ng_template_6_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_td_1_button_1_Template, 1, 2, "button", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r74.expandRows && ctx_r74.expandColumns.FirstKey && ctx_r74.buscarValor(dato_r70, ctx_r74.expandColumns.FirstKey).length > 0);
  }
}
function Table2Component_ng_template_6_td_2_p_checkbox_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-checkbox", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("onChange", function Table2Component_ng_template_6_td_2_p_checkbox_1_Template_p_checkbox_onChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r84);
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r82.selectRegistro($event, dato_r70));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r81.buscarSeleccionado(dato_r70.Id))("binary", true);
  }
}
function Table2Component_ng_template_6_td_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td", 50);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_td_2_p_checkbox_1_Template, 1, 2, "p-checkbox", 65);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r75.validateCheckFunc ? ctx_r75.validateCheckFunc(dato_r70) : true);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r113 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "input", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_ng_template_1_Template_input_change_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r113);
      const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
      const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().rowIndex;
      const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r111.setValor($event, col_r87.Key, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r109.buscarValor(dato_r70, col_r87.Key))("mask", col_r87.EditMask);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r110.buscarValor(dato_r70, col_r87.Key), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_ng_template_1_Template, 1, 2, "ng-template", 72)(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_ng_template_2_Template, 2, 4, "ng-template", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r108.buscarValor(dato_r70, col_r87.Key), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_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, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_1_Template, 3, 0, "p-cellEditor")(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Conditional_2_Template, 2, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r90.rowsEdit && ctx_r90.isEditRow(col_r87.Key) ? 1 : 2);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "app-times-form", 75);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("inputChange", function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_ng_template_1_Template_app_times_form_inputChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r128);
      const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
      const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().rowIndex;
      const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r126.setValorTime($event, col_r87.Key, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("vertical", true)("dias", ctx_r124.buscarValor(dato_r70, col_r87.Key).Dias)("horas", ctx_r124.buscarValor(dato_r70, col_r87.Key).Horas)("minutos", ctx_r124.buscarValor(dato_r70, col_r87.Key).Minutos)("segundos", ctx_r124.buscarValor(dato_r70, col_r87.Key).Segundos);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r125.formatearTiempos(ctx_r125.buscarValor(dato_r70, col_r87.Key)), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_ng_template_1_Template, 1, 5, "ng-template", 72)(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_ng_template_2_Template, 2, 4, "ng-template", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r123.formatearTiempos(ctx_r123.buscarValor(dato_r70, col_r87.Key)), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_1_Template, 3, 0, "p-cellEditor")(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Conditional_2_Template, 2, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r91.rowsEdit && ctx_r91.isEditRow(col_r87.Key) ? 1 : 2);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r143 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "input", 76);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_ng_template_1_Template_input_change_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r143);
      const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
      const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().rowIndex;
      const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r141.setValorDate($event, col_r87.Key, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r139 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r139.formatFechaComp(ctx_r139.buscarValor(dato_r70, col_r87.Key)));
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r87.Pipe ? ctx_r140.pipeTransform(ctx_r140.buscarValor(dato_r70, col_r87.Key), col_r87.Pipe) : ctx_r140.buscarValor(dato_r70, col_r87.Key), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_ng_template_1_Template, 1, 1, "ng-template", 72)(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_ng_template_2_Template, 2, 4, "ng-template", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r87.Pipe ? ctx_r138.pipeTransform(ctx_r138.buscarValor(dato_r70, col_r87.Key), col_r87.Pipe) : ctx_r138.buscarValor(dato_r70, col_r87.Key), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_1_Template, 3, 0, "p-cellEditor")(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Conditional_2_Template, 2, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r92.rowsEdit && ctx_r92.isEditRow(col_r87.Key) ? 1 : 2);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r158 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "input", 74);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_ng_template_1_Template_input_change_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r158);
      const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
      const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().rowIndex;
      const ctx_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r156.setValor($event, col_r87.Key, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r154 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r154.buscarValor(dato_r70, col_r87.Key))("mask", col_r87.EditMask ? ctx_r154.colEditMask : "9*");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "div", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r87.Pipe ? ctx_r155.pipeTransform(ctx_r155.buscarValor(dato_r70, col_r87.Key), col_r87.Pipe) : ctx_r155.buscarValor(dato_r70, col_r87.Key), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_ng_template_1_Template, 1, 2, "ng-template", 72)(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_ng_template_2_Template, 3, 4, "ng-template", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "div", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r153 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r87.Pipe ? ctx_r153.pipeTransform(ctx_r153.buscarValor(dato_r70, col_r87.Key), col_r87.Pipe) : ctx_r153.buscarValor(dato_r70, col_r87.Key), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_1_Template, 3, 0, "p-cellEditor")(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Conditional_2_Template, 3, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r93.rowsEdit && ctx_r93.isEditRow(col_r87.Key) ? 1 : 2);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r173 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-checkbox", 66);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("onChange", function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_ng_template_1_Template_p_checkbox_onChange_0_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r173);
      const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
      const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().rowIndex;
      const ctx_r171 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r171.setValorCheckbox($event, col_r87.Key, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r169 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r169.buscarValor(dato_r70, col_r87.Key))("binary", true);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r170 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx_r170.buscarValor(dato_r70, col_r87.Key) != col_r87.FalseValue ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "p-cellEditor");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_ng_template_1_Template, 1, 2, "ng-template", 72)(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_ng_template_2_Template, 2, 5, "ng-template", 73);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_2_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "span", 79);
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r179 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx_r179.buscarValor(dato_r70, col_r87.Key) != col_r87.FalseValue ? col_r87.ConditionCheck(ctx_r179.buscarValoresAcciones(dato_r70, col_r87.KeysCondition)) ? "mdi mdi-alert-circle-outline text-warning font-size-24" : "mdi mdi-check-circle-outline text-success font-size-24" : col_r87.ConditionCheck(ctx_r179.buscarValoresAcciones(dato_r70, col_r87.KeysCondition)) ? "mdi mdi-alert-circle-outline text-warning font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", col_r87.ConditionCheck(ctx_r179.buscarValoresAcciones(dato_r70, col_r87.KeysCondition)) ? col_r87.ConditionTooltip : "");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_2_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "span");
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r180 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx_r180.buscarValor(dato_r70, col_r87.Key) != col_r87.FalseValue ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_2_Conditional_1_Template, 1, 3, "span", 78)(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_2_Conditional_2_Template, 1, 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, col_r87.ConditionCheck && col_r87.KeysCondition ? 1 : 2);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_1_Template, 3, 0, "p-cellEditor")(2, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Conditional_2_Template, 3, 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵconditional"](1, ctx_r94.rowsEdit && ctx_r94.isEditRow(col_r87.Key) ? 1 : 2);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r95.eval(col_r87.Data.Template, col_r87.Data.ArrayKeys, dato_r70), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r96.evalFormula(col_r87.Data.Formula, col_r87.Data.ArrayKeys, dato_r70), " ");
  }
}
const _c3 = a0 => ({
  background: a0
});
function Table2Component_ng_template_6_ng_container_3_td_1_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "span", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](5, _c3, col_r87.ColorKey ? ctx_r97.buscarValor(dato_r70, col_r87.ColorKey) : col_r87.Color));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r97.buscarValor(dato_r70, col_r87.Key));
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "h5")(2, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r202 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    const elem_r194 = ctx_r202.$implicit;
    const i_r195 = ctx_r202.index;
    const ctx_r198 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r197.Style ? value_r197.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r197.Class ? value_r197.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](value_r197.Key ? ctx_r198.buscarValor(elem_r194, value_r197.Key) : i_r195 + 1);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r197.Tooltip)("ngClass", value_r197.Icon);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_2_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r194 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const ctx_r199 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r197.Style ? value_r197.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r197.Class ? value_r197.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", value_r197.Func(ctx_r199.buscarValor(elem_r194, value_r197.Key), dato_r70), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r197.KeyIcon && value_r197.Icon && ctx_r199.buscarValor(elem_r194, value_r197.KeyIcon) == value_r197.ShowIcon);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_3_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r197.Tooltip)("ngClass", value_r197.Icon);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_3_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r194 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r200 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r197.Style ? value_r197.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r197.Class ? value_r197.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r200.buscarValor(elem_r194, value_r197.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r197.KeyIcon && value_r197.Icon && ctx_r200.buscarValor(elem_r194, value_r197.KeyIcon) == value_r197.ShowIcon);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_1_Template, 4, 4, "div", 70)(2, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_2_Template, 3, 5, "div", 70)(3, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_div_3_Template, 3, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r197 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r197.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r197.Type == "list");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !value_r197.Type);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_ng_container_1_Template, 4, 3, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r87.ArrayList);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_div_11_div_1_Template, 2, 4, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r98.buscarValor(dato_r70, col_r87.Key));
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "h5")(2, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r219 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).rowIndex;
    const ctx_r220 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r219.Style ? value_r219.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r219.Class ? value_r219.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](value_r219.Key ? ctx_r220.buscarValor(elem_r216, value_r219.Key) : i_r73 + 1);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r219 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r219.Tooltip)("ngClass", value_r219.Icon);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_div_2_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r219 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r221 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r219.Style ? value_r219.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r219.Class ? value_r219.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r221.buscarValor(elem_r216, value_r219.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r219.KeyIcon && value_r219.Icon && ctx_r221.buscarValor(elem_r216, value_r219.KeyIcon) == value_r219.ShowIcon);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_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, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_div_1_Template, 4, 4, "div", 70)(2, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_div_2_Template, 3, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r219 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r219.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !value_r219.Type);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
const _c4 = (a0, a1) => [a0, a1];
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r234 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "a", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r234);
      const dropButton_r229 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const elem_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
      const ctx_r232 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r232.emitirAccion(dropButton_r229.Accion, dropButton_r229.Lista ? null : dato_r70, dropButton_r229.Todo || dropButton_r229.Lista ? elem_r216 : null));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r229 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const ctx_r231 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !dropButton_r229.disabled ? dropButton_r229.activate ? dropButton_r229.activate(ctx_r231.buscarValoresDrop(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](2, _c4, dato_r70, elem_r216), dropButton_r229.fieldsActivate), dropButton_r229.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](dropButton_r229.Title);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_div_1_Template, 2, 0, "div", 0)(2, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_div_2_Template, 3, 5, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r229 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", dropButton_r229.Type == "divider" && dropButton_r229.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !dropButton_r229.Type && dropButton_r229.Show !== false);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 86)(1, "div", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_ng_container_2_Template, 3, 2, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_div_4_Template, 3, 2, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r87.ArrayList);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r87.DropdownActions);
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_ng_container_3_td_1_div_12_div_1_Template, 5, 2, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r99.buscarValor(dato_r70, col_r87.Key));
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 91);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("href", ctx_r100.buscarValor(dato_r70, col_r87.LinkNav), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r100.buscarValor(dato_r70, col_r87.Key));
  }
}
const _c5 = a0 => [a0];
const _c6 = () => ({});
function Table2Component_ng_template_6_ng_container_3_td_1_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, col_r87.LinkNav + (col_r87.LinkNavId ? ctx_r101.buscarValor(dato_r70, col_r87.LinkNavId) : "")))("queryParams", col_r87.QueryParams ? ctx_r101.buscarParametros(dato_r70, col_r87.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](8, _c6));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r101.buscarValor(dato_r70, col_r87.Key));
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_15_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, col_r87.LinkNav + (col_r87.LinkNavId ? ctx_r102.buscarValor(dato_r70, col_r87.LinkNavId) : "")))("queryParams", col_r87.QueryParams ? ctx_r102.buscarParametros(dato_r70, col_r87.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](8, _c6));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r102.eval(col_r87.Data.Template, col_r87.Data.ArrayKeys, dato_r70), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    let tmp_0_0;
    let tmp_1_0;
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"]((tmp_0_0 = ctx_r103.getDiccionario(col_r87.Diccionario, ctx_r103.buscarValor(dato_r70, col_r87.Key))) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r103.getDiccionario(col_r87.Diccionario, ctx_r103.buscarValor(dato_r70, col_r87.Key))) == null ? null : tmp_1_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", (tmp_2_0 = ctx_r103.getDiccionario(col_r87.Diccionario, ctx_r103.buscarValor(dato_r70, col_r87.Key))) == null ? null : tmp_2_0.Nombre, " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_17_Template(rf, ctx) {
  if (rf & 1) {
    const _r253 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 50)(1, "button", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_ng_container_3_td_1_div_17_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r253);
      const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const ctx_r251 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r251.openModal(dato_r70, col_r87.Template, col_r87.Nombre));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_18_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r105.findBy(col_r87.Key, col_r87.KeyArray, col_r87.KeyValue, dato_r70), " ");
  }
}
function Table2Component_ng_template_6_ng_container_3_td_1_div_19_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r87.Style ? col_r87.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r87.Class ? col_r87.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r87.CondFunction(dato_r70, ctx_r106.buscarValor), " ");
  }
}
const _c7 = a0 => ({
  "background-color": a0
});
function Table2Component_ng_template_6_ng_container_3_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td", 68)(1, "strong", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_3_Template, 3, 1, "ng-container", 0)(4, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_4_Template, 3, 1, "ng-container", 0)(5, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_5_Template, 3, 1, "ng-container", 0)(6, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_6_Template, 3, 1, "ng-container", 0)(7, Table2Component_ng_template_6_ng_container_3_td_1_ng_container_7_Template, 3, 1, "ng-container", 0)(8, Table2Component_ng_template_6_ng_container_3_td_1_div_8_Template, 2, 4, "div", 70)(9, Table2Component_ng_template_6_ng_container_3_td_1_div_9_Template, 2, 4, "div", 70)(10, Table2Component_ng_template_6_ng_container_3_td_1_div_10_Template, 3, 7, "div", 70)(11, Table2Component_ng_template_6_ng_container_3_td_1_div_11_Template, 2, 1, "div", 0)(12, Table2Component_ng_template_6_ng_container_3_td_1_div_12_Template, 2, 1, "div", 0)(13, Table2Component_ng_template_6_ng_container_3_td_1_div_13_Template, 3, 5, "div", 70)(14, Table2Component_ng_template_6_ng_container_3_td_1_div_14_Template, 3, 9, "div", 70)(15, Table2Component_ng_template_6_ng_container_3_td_1_div_15_Template, 3, 9, "div", 70)(16, Table2Component_ng_template_6_ng_container_3_td_1_div_16_Template, 3, 4, "div", 0)(17, Table2Component_ng_template_6_ng_container_3_td_1_div_17_Template, 3, 0, "div", 46)(18, Table2Component_ng_template_6_ng_container_3_td_1_div_18_Template, 2, 2, "div", 71)(19, Table2Component_ng_template_6_ng_container_3_td_1_div_19_Template, 2, 4, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r259 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    const colIndex_r88 = ctx_r259.index;
    const col_r87 = ctx_r259.$implicit;
    const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", colIndex_r88 == 0 && ctx_r89.blockedCol ? "frozen" : "")("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](20, _c7, col_r87.ColorBg ? col_r87.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](col_r87.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r87.Type);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "time");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "checkbox");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "template");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "formula");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "list");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "listDropdowns");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "url");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "link");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "link-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "dictionary");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "modal");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "search");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r87.Type == "condition");
  }
}
function Table2Component_ng_template_6_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, Table2Component_ng_template_6_ng_container_3_td_1_Template, 20, 22, "td", 67);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r87 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r87.Disabled);
  }
}
function Table2Component_ng_template_6_td_4_ng_container_2_li_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r269 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li")(1, "button", 100);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_ng_container_2_li_1_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r269);
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
      const ctx_r267 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r267.onRowEditInit(dato_r70));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 101);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_6_td_4_ng_container_2_li_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r272 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li")(1, "button", 102);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_ng_container_2_li_2_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r272);
      const ctx_r271 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      const dato_r70 = ctx_r271.$implicit;
      const i_r73 = ctx_r271.rowIndex;
      const ctx_r270 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r270.onRowEditSave(dato_r70, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 103);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "button", 104);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_ng_container_2_li_2_Template_button_click_3_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r272);
      const ctx_r274 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      const dato_r70 = ctx_r274.$implicit;
      const i_r73 = ctx_r274.rowIndex;
      const ctx_r273 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r273.onRowEditCancel(dato_r70, i_r73));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](4, "i", 105);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_6_td_4_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, Table2Component_ng_template_6_td_4_ng_container_2_li_1_Template, 3, 0, "li", 0)(2, Table2Component_ng_template_6_td_4_ng_container_2_li_2_Template, 5, 0, "li", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const editing_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).editing;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !editing_r72);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", editing_r72);
  }
}
function Table2Component_ng_template_6_td_4_li_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r278 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 106)(1, "a", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_li_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r278);
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r276 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r276.emitirAccion("view", dato_r70));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_6_td_4_li_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r281 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 109)(1, "a", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_li_4_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r281);
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r279 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r279.emitirAccion("edit", dato_r70));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_6_td_4_li_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r284 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 112)(1, "a", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_li_5_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r284);
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r282 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r282.emitirAccion("delete", dato_r70));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_6_td_4_li_6_div_5_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_6_td_4_li_6_div_5_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r291 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "a", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_6_td_4_li_6_div_5_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r291);
      const dropButton_r286 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
      const ctx_r289 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r289.emitirAccion(dropButton_r286.Accion, dato_r70));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r286 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const dato_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const ctx_r288 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !dropButton_r286.disabled ? dropButton_r286.activate ? dropButton_r286.activate(ctx_r288.buscarValoresAcciones(dato_r70, dropButton_r286.fieldsActivate), dropButton_r286.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", dropButton_r286.Title, " ");
  }
}
function Table2Component_ng_template_6_td_4_li_6_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_td_4_li_6_div_5_div_1_Template, 2, 0, "div", 0)(2, Table2Component_ng_template_6_td_4_li_6_div_5_div_2_Template, 3, 2, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r286 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", dropButton_r286.Type == "divider" && dropButton_r286.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !dropButton_r286.Type && dropButton_r286.Show !== false);
  }
}
const _c8 = (a0, a1) => ({
  "btn-soft-dark": a0,
  "btn-soft-light btn-dark-hover": a1
});
function Table2Component_ng_template_6_td_4_li_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li")(1, "div", 115)(2, "button", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "i", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_6_td_4_li_6_div_5_Template, 3, 2, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r264 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](2, _c8, !ctx_r264.darkMode, ctx_r264.darkMode));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r264.dropdownButtons);
  }
}
function Table2Component_ng_template_6_td_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td", 95)(1, "ul", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_6_td_4_ng_container_2_Template, 3, 2, "ng-container", 0)(3, Table2Component_ng_template_6_td_4_li_3_Template, 3, 0, "li", 97)(4, Table2Component_ng_template_6_td_4_li_4_Template, 3, 0, "li", 98)(5, Table2Component_ng_template_6_td_4_li_5_Template, 3, 0, "li", 99)(6, Table2Component_ng_template_6_td_4_li_6_Template, 6, 5, "li", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const i_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().rowIndex;
    const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", ctx_r77.blockedCol ? "frozen-end" : "")("tourAnchor", i_r73 == 0 ? ctx_r77.anchorActions : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r77.rowsEdit);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r77.view);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r77.edit);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r77.delete);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r77.dropdownButtons && ctx_r77.dropdownButtons.length > 0);
  }
}
function Table2Component_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr", 61);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_6_td_1_Template, 2, 1, "td", 0)(2, Table2Component_ng_template_6_td_2_Template, 2, 1, "td", 46)(3, Table2Component_ng_template_6_ng_container_3_Template, 2, 1, "ng-container", 48)(4, Table2Component_ng_template_6_td_4_Template, 7, 7, "td", 62);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dato_r70 = ctx.$implicit;
    const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pEditableRow", dato_r70)("ngClass", ctx_r4.claseRow ? ctx_r4.claseRowFunc(dato_r70) : "")("pSelectableRow", dato_r70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r4.expandRows);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r4.selectRows);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r4.columns);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r4.acciones || ctx_r4.rowsEdit);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_th_1_a_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r308 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_5_th_1_a_1_Template_a_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r308);
      const ctx_r307 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r307.allCollapse(2));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 53);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "th", 125);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_5_th_1_a_1_Template, 2, 0, "a", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r303 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r303.someExpanded(2));
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_ng_container_2_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "p-sortIcon", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r309 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("field", col_r309.Key);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r309.Nombre, " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_ng_container_2_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r309 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r309.Nombre, " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "th", 126);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_ng_template_5_ng_container_2_div_2_Template, 3, 2, "div", 0)(3, Table2Component_ng_template_7_tr_0_ng_template_5_ng_container_2_div_3_Template, 2, 1, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r309 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pSortableColumn", col_r309.Key)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](4, _c2, col_r309.WCol ? col_r309.WCol : "20%", col_r309.ColorBg ? col_r309.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r309.Order);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r309.Order);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_th_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "th");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_5_th_1_Template, 2, 1, "th", 124)(2, Table2Component_ng_template_7_tr_0_ng_template_5_ng_container_2_Template, 4, 7, "ng-container", 48)(3, Table2Component_ng_template_7_tr_0_ng_template_5_th_3_Template, 1, 0, "th", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r300 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r300.expandColumns.SecondKey);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r300.expandColumns.FirstExpand);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r300.expandColumns.AccionesFirstKey);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_1_button_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "button", 64);
  }
  if (rf & 2) {
    const ctx_r321 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    const datoFirstLevel_r314 = ctx_r321.$implicit;
    const expandedComp_r315 = ctx_r321.expanded;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pRowToggler", datoFirstLevel_r314)("icon", expandedComp_r315 ? "pi pi-chevron-down" : "pi pi-chevron-right");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_td_1_button_1_Template, 1, 2, "button", 63);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r317 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r317.expandColumns.SecondKey && ctx_r317.buscarValor(datoFirstLevel_r314, ctx_r317.expandColumns.SecondKey).length > 0);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r325 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r325.buscarValor(datoFirstLevel_r314, col_r323.Key), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r326 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r326.formatearTiempos(ctx_r326.buscarValor(datoFirstLevel_r314, col_r323.Key)), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r327 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r323.Pipe ? ctx_r327.pipeTransform(ctx_r327.buscarValor(datoFirstLevel_r314, col_r323.Key), col_r323.Pipe) : ctx_r327.buscarValor(datoFirstLevel_r314, col_r323.Key), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r328 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r328.eval(col_r323.Data.Template, col_r323.Data.ArrayKeys, datoFirstLevel_r314), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r329 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r329.evalFormula(col_r323.Data.Formula, col_r323.Data.ArrayKeys, datoFirstLevel_r314), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "span", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r330 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](5, _c3, col_r323.ColorKey ? ctx_r330.buscarValor(datoFirstLevel_r314, col_r323.ColorKey) : col_r323.Color));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r330.buscarValor(datoFirstLevel_r314, col_r323.Key));
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "div", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r331 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r323.Pipe ? ctx_r331.pipeTransform(ctx_r331.buscarValor(datoFirstLevel_r314, col_r323.Key), col_r323.Pipe) : ctx_r331.buscarValor(datoFirstLevel_r314, col_r323.Key), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "h5")(2, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r358 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r362 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    const elem_r355 = ctx_r362.$implicit;
    const i_r356 = ctx_r362.index;
    const ctx_r359 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r358.Style ? value_r358.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r358.Class ? value_r358.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](value_r358.Key ? ctx_r359.buscarValor(elem_r355, value_r358.Key) : i_r356 + 1);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r358 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r358.Tooltip)("ngClass", value_r358.Icon);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_div_2_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r358 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r355 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r360 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r358.Style ? value_r358.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r358.Class ? value_r358.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r360.buscarValor(elem_r355, value_r358.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r358.KeyIcon && value_r358.Icon && ctx_r360.buscarValor(elem_r355, value_r358.KeyIcon) == value_r358.ShowIcon);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_div_1_Template, 4, 4, "div", 70)(2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_div_2_Template, 3, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r358 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r358.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !value_r358.Type);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_ng_container_1_Template, 3, 2, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r323.ArrayList);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_div_1_Template, 2, 4, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r332 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r332.buscarValor(datoFirstLevel_r314, col_r323.Key));
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "h5")(2, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r374 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r371 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const i_r316 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).rowIndex;
    const ctx_r375 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r374.Style ? value_r374.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r374.Class ? value_r374.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](value_r374.Key ? ctx_r375.buscarValor(elem_r371, value_r374.Key) : i_r316 + 1);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r374 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r374.Tooltip)("ngClass", value_r374.Icon);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_div_2_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r374 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r371 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r376 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r374.Style ? value_r374.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r374.Class ? value_r374.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r376.buscarValor(elem_r371, value_r374.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r374.KeyIcon && value_r374.Icon && ctx_r376.buscarValor(elem_r371, value_r374.KeyIcon) == value_r374.ShowIcon);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_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, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_div_1_Template, 4, 4, "div", 70)(2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_div_2_Template, 3, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r374 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r374.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !value_r374.Type);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r389 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "a", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r389);
      const dropButton_r384 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const elem_r371 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const dato_r296 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](6).$implicit;
      const ctx_r387 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r387.emitirAccion(dropButton_r384.Accion, dropButton_r384.Lista ? null : dato_r296, dropButton_r384.Todo || dropButton_r384.Lista ? elem_r371 : null));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r384 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r371 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const ctx_r386 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !dropButton_r384.disabled ? dropButton_r384.activate ? dropButton_r384.activate(ctx_r386.buscarValoresDrop(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](2, _c4, datoFirstLevel_r314, elem_r371), dropButton_r384.fieldsActivate), dropButton_r384.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](dropButton_r384.Title);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_div_1_Template, 2, 0, "div", 0)(2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_div_2_Template, 3, 5, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r384 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", dropButton_r384.Type == "divider" && dropButton_r384.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !dropButton_r384.Type && dropButton_r384.Show !== false);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 86)(1, "div", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_ng_container_2_Template, 3, 2, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_div_4_Template, 3, 2, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r323.ArrayList);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r323.DropdownActions);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_div_1_Template, 5, 2, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r333 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r333.buscarValor(datoFirstLevel_r314, col_r323.Key));
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r334 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, col_r323.LinkNav + (col_r323.LinkNavId ? ctx_r334.buscarValor(datoFirstLevel_r314, col_r323.LinkNavId) : "")))("queryParams", col_r323.QueryParams ? ctx_r334.buscarParametros(datoFirstLevel_r314, col_r323.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](8, _c6));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r334.buscarValor(datoFirstLevel_r314, col_r323.Key));
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r335 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, col_r323.LinkNav + (col_r323.LinkNavId ? ctx_r335.buscarValor(datoFirstLevel_r314, col_r323.LinkNavId) : "")))("queryParams", col_r323.QueryParams ? ctx_r335.buscarParametros(datoFirstLevel_r314, col_r323.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](8, _c6));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r335.eval(col_r323.Data.Template, col_r323.Data.ArrayKeys, datoFirstLevel_r314), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r336 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    let tmp_0_0;
    let tmp_1_0;
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"]((tmp_0_0 = ctx_r336.getDiccionario(col_r323.Diccionario, ctx_r336.buscarValor(datoFirstLevel_r314, col_r323.Key))) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r336.getDiccionario(col_r323.Diccionario, ctx_r336.buscarValor(datoFirstLevel_r314, col_r323.Key))) == null ? null : tmp_1_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", (tmp_2_0 = ctx_r336.getDiccionario(col_r323.Diccionario, ctx_r336.buscarValor(datoFirstLevel_r314, col_r323.Key))) == null ? null : tmp_2_0.Nombre, " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r406 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 50)(1, "button", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_15_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r406);
      const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const ctx_r404 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r404.openModal(datoFirstLevel_r314, col_r323.Template, col_r323.Nombre));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r338 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r338.findBy(col_r323.Key, col_r323.KeyArray, col_r323.KeyValue, datoFirstLevel_r314), " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r339 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r323.Style ? col_r323.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r323.Class ? col_r323.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx_r339.buscarValor(datoFirstLevel_r314, col_r323.Key) != col_r323.FalseValue ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td", 128)(1, "strong", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_3_Template, 2, 4, "div", 70)(4, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_4_Template, 2, 4, "div", 70)(5, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_5_Template, 2, 4, "div", 70)(6, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_6_Template, 2, 4, "div", 70)(7, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_7_Template, 2, 4, "div", 70)(8, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_8_Template, 3, 7, "div", 70)(9, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_9_Template, 3, 4, "div", 70)(10, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_10_Template, 2, 1, "div", 0)(11, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_11_Template, 2, 1, "div", 0)(12, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_12_Template, 3, 9, "div", 70)(13, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_13_Template, 3, 9, "div", 70)(14, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_14_Template, 3, 4, "div", 0)(15, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_15_Template, 3, 0, "div", 46)(16, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_16_Template, 2, 2, "div", 71)(17, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_div_17_Template, 2, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](17, _c7, col_r323.ColorBg ? col_r323.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](col_r323.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r323.Type);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "time");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "template");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "formula");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "list");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "listDropdowns");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "link");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "link-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "dictionary");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "modal");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "search");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r323.Type == "checkbox");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_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, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_td_1_Template, 18, 19, "td", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r323 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r323.Disabled);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r419 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 106)(1, "a", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r419);
      const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r417 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r417.emitirAccion("viewFirstLevel", datoFirstLevel_r314));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r422 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 109)(1, "a", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r422);
      const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r420 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r420.emitirAccion("editFirstLevel", datoFirstLevel_r314));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r425 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 112)(1, "a", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_4_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r425);
      const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r423 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r423.emitirAccion("deleteFirstLevel", datoFirstLevel_r314));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r432 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "a", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r432);
      const dropButton_r427 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
      const ctx_r430 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r430.emitirAccion(dropButton_r427.Accion, datoFirstLevel_r314));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r427 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const datoFirstLevel_r314 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const ctx_r429 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !dropButton_r427.disabled ? dropButton_r427.activate ? dropButton_r427.activate(ctx_r429.buscarValoresAcciones(datoFirstLevel_r314, dropButton_r427.fieldsActivate), dropButton_r427.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", dropButton_r427.Title, " ");
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_div_1_Template, 2, 0, "div", 0)(2, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_div_2_Template, 3, 2, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r427 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", dropButton_r427.Type == "divider" && dropButton_r427.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !dropButton_r427.Type && dropButton_r427.Show !== false);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li")(1, "div", 115)(2, "button", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "i", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_div_5_Template, 3, 2, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r416 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](2, _c8, !ctx_r416.darkMode, ctx_r416.darkMode));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r416.expandColumns.DropdownButtonsFirstKey);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_td_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td")(1, "ul", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_2_Template, 3, 0, "li", 97)(3, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_3_Template, 3, 0, "li", 98)(4, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_4_Template, 3, 0, "li", 99)(5, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_li_5_Template, 6, 5, "li", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r319 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r319.expandColumns.FirstKeyView);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r319.expandColumns.FirstKeyEdit);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r319.expandColumns.FirstKeyDelete);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r319.expandColumns.DropdownButtonsFirstKey && ctx_r319.expandColumns.DropdownButtonsFirstKey.length > 0);
  }
}
function Table2Component_ng_template_7_tr_0_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_ng_template_6_td_1_Template, 2, 1, "td", 0)(2, Table2Component_ng_template_7_tr_0_ng_template_6_ng_container_2_Template, 2, 1, "ng-container", 48)(3, Table2Component_ng_template_7_tr_0_ng_template_6_td_3_Template, 6, 4, "td", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r301 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r301.expandColumns.SecondKey);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r301.expandColumns.FirstExpand);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r301.expandColumns.AccionesFirstKey);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_th_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "p-sortIcon", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r443 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("field", col_r443.Key);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r443.Nombre, " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_th_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r443 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r443.Nombre, " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "th", 133);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_th_1_div_1_Template, 3, 2, "div", 0)(2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_th_1_div_2_Template, 2, 1, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r443 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pSortableColumn", col_r443.Key)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](4, _c2, col_r443.WCol ? col_r443.WCol : "20%", col_r443.ColorBg ? col_r443.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r443.Order);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r443.Order);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_th_1_Template, 3, 7, "th", 132);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r443 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r443.Disabled);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "th");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_ng_container_0_Template, 2, 1, "ng-container", 48)(1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_th_1_Template, 1, 0, "th", 0);
  }
  if (rf & 2) {
    const ctx_r439 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r439.expandColumns.SecondExpand);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r439.expandColumns.AccionesSecondKey);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r455 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r455.buscarValor(datoSecondLevel_r450, col_r453.Key), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r456 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r456.formatearTiempos(ctx_r456.buscarValor(datoSecondLevel_r450, col_r453.Key)), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r457 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r453.Pipe ? ctx_r457.pipeTransform(ctx_r457.buscarValor(datoSecondLevel_r450, col_r453.Key), col_r453.Pipe) : ctx_r457.buscarValor(datoSecondLevel_r450, col_r453.Key), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r458 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r458.eval(col_r453.Data.Template, col_r453.Data.ArrayKeys, datoSecondLevel_r450), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r459 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r459.evalFormula(col_r453.Data.Formula, col_r453.Data.ArrayKeys, datoSecondLevel_r450), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "span", 80);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r460 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](5, _c3, col_r453.ColorKey ? ctx_r460.buscarValor(datoSecondLevel_r450, col_r453.ColorKey) : col_r453.Color));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r460.buscarValor(datoSecondLevel_r450, col_r453.Key));
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "div", 77);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r461 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", col_r453.Pipe ? ctx_r461.pipeTransform(ctx_r461.buscarValor(datoSecondLevel_r450, col_r453.Key), col_r453.Pipe) : ctx_r461.buscarValor(datoSecondLevel_r450, col_r453.Key), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "h5")(2, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r488 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r492 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    const elem_r485 = ctx_r492.$implicit;
    const i_r486 = ctx_r492.index;
    const ctx_r489 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r488.Style ? value_r488.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r488.Class ? value_r488.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](value_r488.Key ? ctx_r489.buscarValor(elem_r485, value_r488.Key) : i_r486 + 1);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r488 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r488.Tooltip)("ngClass", value_r488.Icon);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_div_2_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r488 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r485 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r490 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r488.Style ? value_r488.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r488.Class ? value_r488.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r490.buscarValor(elem_r485, value_r488.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r488.KeyIcon && value_r488.Icon && ctx_r490.buscarValor(elem_r485, value_r488.KeyIcon) == value_r488.ShowIcon);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_div_1_Template, 4, 4, "div", 70)(2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_div_2_Template, 3, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r488 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r488.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !value_r488.Type);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_ng_container_1_Template, 3, 2, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r453.ArrayList);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_div_1_Template, 2, 4, "div", 81);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r462 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r462.buscarValor(datoSecondLevel_r450, col_r453.Key));
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "h5")(2, "span", 82);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r504 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r505 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r504.Style ? value_r504.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r504.Class ? value_r504.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](value_r504.Key ? ctx_r505.buscarValor(elem_r501, value_r504.Key) : ctx_r505.i + 1);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "i", 84);
  }
  if (rf & 2) {
    const value_r504 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("pTooltip", value_r504.Tooltip)("ngClass", value_r504.Icon);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_div_2_i_2_Template, 1, 2, "i", 83);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r504 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r506 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](value_r504.Style ? value_r504.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", value_r504.Class ? value_r504.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r506.buscarValor(elem_r501, value_r504.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r504.KeyIcon && value_r504.Icon && ctx_r506.buscarValor(elem_r501, value_r504.KeyIcon) == value_r504.ShowIcon);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_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, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_div_1_Template, 4, 4, "div", 70)(2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_div_2_Template, 3, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r504 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", value_r504.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !value_r504.Type);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r518 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "a", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r518);
      const dropButton_r513 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const elem_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const dato_r296 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](8).$implicit;
      const ctx_r516 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r516.emitirAccion(dropButton_r513.Accion, dropButton_r513.Lista ? null : dato_r296, dropButton_r513.Todo || dropButton_r513.Lista ? elem_r501 : null));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r513 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const elem_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4).$implicit;
    const ctx_r515 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !dropButton_r513.disabled ? dropButton_r513.activate ? dropButton_r513.activate(ctx_r515.buscarValoresDrop(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](2, _c4, datoSecondLevel_r450, elem_r501), dropButton_r513.fieldsActivate), dropButton_r513.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](dropButton_r513.Title);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_div_1_Template, 2, 0, "div", 0)(2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_div_2_Template, 3, 5, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r513 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", dropButton_r513.Type == "divider" && dropButton_r513.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !dropButton_r513.Type && dropButton_r513.Show !== false);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 86)(1, "div", 87);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_ng_container_2_Template, 3, 2, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](3, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_div_4_Template, 3, 2, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r453.ArrayList);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", col_r453.DropdownActions);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_div_1_Template, 5, 2, "div", 85);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r463 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r463.buscarValor(datoSecondLevel_r450, col_r453.Key));
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_12_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r464 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, col_r453.LinkNav + (col_r453.LinkNavId ? ctx_r464.buscarValor(datoSecondLevel_r450, col_r453.LinkNavId) : "")))("queryParams", col_r453.QueryParams ? ctx_r464.buscarParametros(datoSecondLevel_r450, col_r453.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](8, _c6));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](ctx_r464.buscarValor(datoSecondLevel_r450, col_r453.Key));
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22)(1, "a", 92);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r465 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](6, _c5, col_r453.LinkNav + (col_r453.LinkNavId ? ctx_r465.buscarValor(datoSecondLevel_r450, col_r453.LinkNavId) : "")))("queryParams", col_r453.QueryParams ? ctx_r465.buscarParametros(datoSecondLevel_r450, col_r453.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](8, _c6));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r465.eval(col_r453.Data.Template, col_r453.Data.ArrayKeys, datoSecondLevel_r450), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "span", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r466 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    let tmp_0_0;
    let tmp_1_0;
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"]((tmp_0_0 = ctx_r466.getDiccionario(col_r453.Diccionario, ctx_r466.buscarValor(datoSecondLevel_r450, col_r453.Key))) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r466.getDiccionario(col_r453.Diccionario, ctx_r466.buscarValor(datoSecondLevel_r450, col_r453.Key))) == null ? null : tmp_1_0.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", (tmp_2_0 = ctx_r466.getDiccionario(col_r453.Diccionario, ctx_r466.buscarValor(datoSecondLevel_r450, col_r453.Key))) == null ? null : tmp_2_0.Nombre, " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r535 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 50)(1, "button", 93);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_15_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r535);
      const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const ctx_r533 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r533.openModal(datoSecondLevel_r450, col_r453.Template, col_r453.Nombre));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 94);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_16_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r468 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", ctx_r468.findBy(col_r453.Key, col_r453.KeyArray, col_r453.KeyValue, datoSecondLevel_r450), " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_17_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r469 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵstyleMap"](col_r453.Style ? col_r453.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", col_r453.Class ? col_r453.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵclassMap"](ctx_r469.buscarValor(datoSecondLevel_r450, col_r453.Key) != col_r453.FalseValue ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td", 128)(1, "strong", 69);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_3_Template, 2, 4, "div", 70)(4, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_4_Template, 2, 4, "div", 70)(5, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_5_Template, 2, 4, "div", 70)(6, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_6_Template, 2, 4, "div", 70)(7, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_7_Template, 2, 4, "div", 70)(8, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_8_Template, 3, 7, "div", 70)(9, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_9_Template, 3, 4, "div", 70)(10, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_10_Template, 2, 1, "div", 0)(11, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_11_Template, 2, 1, "div", 0)(12, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_12_Template, 3, 9, "div", 70)(13, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_13_Template, 3, 9, "div", 70)(14, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_14_Template, 3, 4, "div", 0)(15, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_15_Template, 3, 0, "div", 46)(16, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_16_Template, 2, 2, "div", 71)(17, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_div_17_Template, 2, 5, "div", 70);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r453 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](17, _c7, col_r453.ColorBg ? col_r453.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](col_r453.Nombre);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r453.Type);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "time");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "template");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "formula");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "list");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "listDropdowns");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "link");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "link-template");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "dictionary");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "modal");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "search");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", col_r453.Type == "checkbox");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_td_1_Template, 18, 19, "td", 127);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r453 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !col_r453.Disabled);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r548 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 106)(1, "a", 107);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r548);
      const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r546 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r546.emitirAccion("viewFirstLevel", datoSecondLevel_r450));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 108);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r551 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 109)(1, "a", 110);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r551);
      const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r549 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r549.emitirAccion("editFirstLevel", datoSecondLevel_r450));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 111);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r554 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li", 112)(1, "a", 113);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_4_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r554);
      const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).$implicit;
      const ctx_r552 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r552.emitirAccion("deleteFirstLevel", datoSecondLevel_r450));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 114);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "div", 89);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r561 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "a", 90);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r561);
      const dropButton_r556 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
      const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
      const ctx_r559 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r559.emitirAccion(dropButton_r556.Accion, datoSecondLevel_r450));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r556 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const datoSecondLevel_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
    const ctx_r558 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", !dropButton_r556.disabled ? dropButton_r556.activate ? dropButton_r556.activate(ctx_r558.buscarValoresAcciones(datoSecondLevel_r450, dropButton_r556.fieldsActivate), dropButton_r556.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", dropButton_r556.Title, " ");
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_div_1_Template, 2, 0, "div", 0)(2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_div_2_Template, 3, 2, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r556 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", dropButton_r556.Type == "divider" && dropButton_r556.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !dropButton_r556.Type && dropButton_r556.Show !== false);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "li")(1, "div", 115)(2, "button", 116);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "i", 117);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "div", 88);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_div_5_Template, 3, 2, "div", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r545 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction2"](2, _c8, !ctx_r545.darkMode, ctx_r545.darkMode));
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r545.expandColumns.DropdownButtonsSecondKey);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "td")(1, "ul", 96);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_2_Template, 3, 0, "li", 97)(3, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_3_Template, 3, 0, "li", 98)(4, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_4_Template, 3, 0, "li", 99)(5, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_li_5_Template, 6, 5, "li", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r452 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r452.expandColumns.SecondKeyView);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r452.expandColumns.SecondKeyEdit);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r452.expandColumns.SecondKeyDelete);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r452.expandColumns.DropdownButtonsSecondKey && ctx_r452.expandColumns.DropdownButtonsSecondKey.length > 0);
  }
}
function Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_ng_container_1_Template, 2, 1, "ng-container", 48)(2, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_td_2_Template, 6, 4, "td", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const ctx_r440 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r440.expandColumns.SecondExpand);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r440.expandColumns.AccionesSecondKey);
  }
}
const _c9 = () => ({
  width: "100%"
});
function Table2Component_ng_template_7_tr_0_7_ng_template_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r566 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr", 119)(1, "td", 129)(2, "div", 121)(3, "p-table", 130, 131);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("sortFunction", function Table2Component_ng_template_7_tr_0_7_ng_template_0_Template_p_table_sortFunction_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r566);
      const ctx_r565 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r565.ordenar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_5_Template, 2, 2, "ng-template", 5)(6, Table2Component_ng_template_7_tr_0_7_ng_template_0_ng_template_6_Template, 3, 2, "ng-template", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const datoFirstLevel_r437 = ctx.$implicit;
    const ctx_r436 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r436.buscarValor(datoFirstLevel_r437, ctx_r436.expandColumns.SecondKey))("responsive", true)("breakpoint", "767px")("resizableColumns", true)("rowHover", true)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](11, _c9))("styleClass", ctx_r436.styleTableClass)("scrollable", true)("totalRecords", ctx_r436.expandColumns.SecondKey.length)("customSort", true)("globalFilterFields", ctx_r436.expandColumns.SecondSearchFields);
  }
}
function Table2Component_ng_template_7_tr_0_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_7_tr_0_7_ng_template_0_Template, 7, 12, "ng-template", 7);
  }
}
function Table2Component_ng_template_7_tr_0_Template(rf, ctx) {
  if (rf & 1) {
    const _r568 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr", 119)(1, "td", 120)(2, "div", 121)(3, "p-table", 122, 123);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("sortFunction", function Table2Component_ng_template_7_tr_0_Template_p_table_sortFunction_3_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r568);
      const ctx_r567 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r567.ordenar($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_7_tr_0_ng_template_5_Template, 4, 3, "ng-template", 5)(6, Table2Component_ng_template_7_tr_0_ng_template_6_Template, 4, 3, "ng-template", 6)(7, Table2Component_ng_template_7_tr_0_7_Template, 1, 0, null, 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
  }
  if (rf & 2) {
    const dato_r296 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
    const ctx_r298 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r298.buscarValor(dato_r296, ctx_r298.expandColumns.FirstKey))("responsive", true)("breakpoint", "767px")("resizableColumns", true)("rowHover", true)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](13, _c9))("styleClass", ctx_r298.styleTableClass)("scrollable", true)("totalRecords", ctx_r298.expandColumns.FirstKey.length)("customSort", true)("expandedRowKeys", ctx_r298.expandedRowsComp)("globalFilterFields", ctx_r298.searchFields);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r298.expandRows && ctx_r298.expandColumns && ctx_r298.expandColumns.SecondKey);
  }
}
function Table2Component_ng_template_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_ng_template_7_tr_0_Template, 8, 14, "tr", 118);
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r5.expandRows);
  }
}
function Table2Component_ng_template_8_Template(rf, ctx) {}
function Table2Component_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 134)(1, "div", 135);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " No hay datos para mostrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div")(1, "div", 136)(2, "span", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](4, "lowercase");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate2"]("Cantidad de ", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](4, 2, ctx_r8.title), ": ", ctx_r8.totalItems, "");
  }
}
function Table2Component_ng_template_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 137)(1, "p", 138);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "Ocultar/Mostrar columnas");
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
}
function Table2Component_ng_template_14_ng_template_1_Template(rf, ctx) {}
function Table2Component_ng_template_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 139);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, Table2Component_ng_template_14_ng_template_1_Template, 0, 0, "ng-template", 140);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngTemplateOutlet", _r12);
  }
}
function Table2Component_ng_template_15_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    const _r575 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "app-checkbox", 145);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitAction", function Table2Component_ng_template_15_ng_container_5_Template_app_checkbox_emitAction_1_listener() {
      const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r575);
      const i_r573 = restoredCtx.index;
      const ctx_r574 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r574.setDisabled(i_r573));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const config_r572 = ctx.$implicit;
    const i_r573 = ctx.index;
    const ctx_r571 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("title", config_r572.Nombre)("value", ctx_r571.getDisabled(i_r573));
  }
}
function Table2Component_ng_template_15_Template(rf, ctx) {
  if (rf & 1) {
    const _r577 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 141)(1, "div")(2, "button", 142);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function Table2Component_ng_template_15_Template_button_click_2_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r577);
      const ctx_r576 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r576.resetConfig());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](3, "i", 143);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "app-checkbox", 144);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("emitAction", function Table2Component_ng_template_15_Template_app_checkbox_emitAction_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r577);
      const ctx_r578 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r578.setSelectTodos());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, Table2Component_ng_template_15_ng_container_5_Template, 2, 2, "ng-container", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("formGroup", ctx_r11.configForm);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", ctx_r11.getSelectTodos());
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx_r11.columns);
  }
}
/**
 * SP SINWEB-257 COMPONENTE DE TABLA GENERICA
 */
class Table2Component {
  constructor(modalService, fb, sf) {
    this.modalService = modalService;
    this.fb = fb;
    this.sf = sf;
    /**
     * Variable que indica el titulo de la tabla
     */
    this.title = 'TABLA';
    /**
     * Variable con objeto de los datos de la tabla
     */
    this.datos = [];
    /**
     * Variable con objeto de las columnas de la tabla
     */
    this.columns = [];
    /**
     * Variable que indica si hay accion ver
     */
    this.view = false;
    /**
     * Variable que indica si hay accion editar
     */
    this.edit = false;
    /**
     * Variable que indica si hay accion eliminar
     */
    this.delete = false;
    /**
     * Variable con objeto de acciones del dropdownButtons
     */
    this.dropdownButtons = [];
    /**
     * Variable que indica la clase de la fila
     */
    this.claseRow = false;
    /**
     * Variable que indica la clase de la fila
     */
    this.claseRowField = '';
    /**
     * Variable que indica si se muestra las acciones
     */
    this.acciones = false;
    /**
     * Variable que indica si se muestra la paginacion
     */
    this.pagination = true;
    /**
     * Variable que indica si se muestra el total de items
     */
    this.totalItemShow = true;
    /**
     * Variable que indica el estilo de la tabla
     */
    this.styleTableClass = 'p-datatable-gridlines';
    /**
     * Variable que indica la posicion de la paginacion
     */
    this.paginatorPosition = 'bottom';
    /**
     * Variable que indica si la tabla se maneja por api de forma externa
     */
    this.apiTable = false;
    /**
     * Variable que indica si la tabla esta cargando
     */
    this.isLoading = false;
    /**
     * Campos de busqueda para el filtro interno por front
     */
    this.searchFields = [];
    /**
     * Mensaje de busqueda para el filtro interno por front
     */
    this.searchMessage = 'Buscar por cualquier campo';
    /**
     * Variable logica que indica si la tabla tiene rows espandibles
     */
    this.expandRows = false;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.INIT_SENTIDO;
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.PAGE_OPTIONS;
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_1__.CANT_SEARCH;
    this.page = 1;
    this.totalItems = 0;
    /**
     * Variable que indica si la tabla tiene seleccion de registros
     */
    this.selectRows = false;
    /**
     * SP SINWEB-460 variable que oculta el boton seleccionar todos
     */
    this.selectAllFunc = true;
    this.typeSelection = 'multiple';
    /**
     * Variable para almacenar los registros de la tabla seleccionados
     */
    this.selectedRows = [];
    /**
     * Variable booleana que indica si la tabla tiene columnas configurables
     */
    this.configColumns = false;
    /**
     * String que hace referencia a la variable de cookies donde se guardara el estado de la configuracion de la tabla
     */
    this.stateConfig = 'config';
    this.header = true;
    /**
     * SP SINWEB-308 input para indicar que las rows de la tabla son editables
     */
    this.rowsEdit = false;
    this.verSeleccionados = false;
    this.scrollable = false;
    /**
     * OUTPUTS DE LA TABLA
     */
    /**
     * Evento disparado cuando la tabla se maneja por api , se dispara cuando paginamos,ordenamos,select de reg por pagina
     */
    this.lazyLoad = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    /**
     * Evento disparado cuando cambiamos de pagina por front , y emite el valor de la pagina hacia afuera
     */
    this.changePage = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    /**
     * Evento disparado cuando cambiamos de orden por front , y emite el valor de la orden hacia afuera
     */
    this.orderPage = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    /**
     * Evento disparado cuando cambiamos de sentido por front , y emite el valor del sentido hacia afuera
     */
    this.cantSearch = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    /**
     * Evento disparado cuando realizamos una accion , y emite el valor de la accion hacia afuera
     */
    this.emitAction = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    /**
     * Evento disparado cuando seleccionamos un registro o varios , y emite el valor de la accion hacia afuera
     */
    this.selectRowsAction = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    /**
     * Evento que emite el registro de la tabla editado y su indice {row,index}
     */
    this.rowEdited = new _angular_core__WEBPACK_IMPORTED_MODULE_9__.EventEmitter();
    this.clonedRow = {};
    /**
     * SP SINWEB-242 variables para crear un objeto de ordenes (select) , para manejar el orden en responsive
     */
    this.ordenes = [];
    this.orderSelected = {};
    this.config = false;
    /**
     * SP SINWEB-198 variables para el manejo de expandir y contraer filas
     */
    this.expandedRows = {};
    this.expandedRowsComp = {};
    this.blockedCol = true;
  }
  ngOnChanges(changes) {}
  ngOnInit() {
    /**
     * SP SIBWEB-298 carga las cookies de la configuracion
     * */
    if (this.configColumns) {
      this.cargarCookies();
    }
    this.size = window.innerWidth;
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_10__.registerLocaleData)(_angular_common_locales_es_AR__WEBPACK_IMPORTED_MODULE_11__["default"]);
    /**
     * SP SINWEB-242 arma el objeto de ordenes para responsive
     */
    this.armarOrdenes();
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_4__.THEME_DARK;
  }
  /**
   * SP SINWEB-298 carga las cookies de la configuracion
   */
  cargarCookies() {
    this.configForm = this.fb.group({
      config: this.fb.array(new Array(this.columns.length).fill(false)),
      todos: [false]
    });
    this.sf.states = this.state;
    //config
    this.sf.getState(this.sf.states[this.stateConfig]).split(',').forEach((element, index) => {
      this.configForm.get('config').at(index).setValue(element == 'true');
      this.columns[index].Disabled = element == 'true' ? false : true;
    });
  }
  /**
   * SP SINWEB-257 metodo para emitir una accion
   * @param accion
   * @param registro
   * @param elemento
   */
  emitirAccion(accion, registro, elemento) {
    let aux = {
      accion: accion
    };
    if (registro) {
      Object.assign(aux, {
        registro: registro
      });
    }
    if (elemento) {
      Object.assign(aux, {
        elemento: elemento
      });
    }
    this.emitAction.emit(aux);
  }
  /**
   * SP SINWEB-257 Metodo que busca un valor en el objeto pasado , en un camino especificado pro parametro. Es usado para obtener todos los valores del json para la tabla
   * @param objeto
   * @param camino
   * @returns
   */
  buscarValor(objeto, camino) {
    // MC SINWEB-457 Se agrega comprobacion de camino vacío como en la tabla anterior
    if (camino == '') {
      return objeto;
    }
    return lodash__WEBPACK_IMPORTED_MODULE_3__.get(objeto, camino, '');
  }
  /**
   * SP SINWEB-257 Funcion que dado un objeto de tiempo, retorna un string con el tiempo representado
   * @param tiempos
   * @returns
   */
  formatearTiempos(tiempos) {
    if (tiempos) {
      return tiempos.Dias + ' dias ' + tiempos.Horas + 'h:' + tiempos.Minutos + 'm:' + tiempos.Segundos + 's';
    } else {
      return '';
    }
  }
  /**
   * SP SINWEB-257 metodo que toma la plantilla pasada por el jsonHeader de la tabla (formula) ,
   * el array de keys tambien pasado en le header(dataFormula), y la row donde busca los datos usando los keys, y retorna el conjunto de todos los datos usando la plantilla
   * @param formula
   * @param dataFormula
   * @param item
   * @returns
   */
  eval(formula, dataFormula, item) {
    const keys = Object.keys(dataFormula);
    const values = keys.map(key => {
      return this.buscarValor(item, dataFormula[key]);
    });
    //SP control si todos los valores encontrados son null no es necesario armar la formula
    if (values.every(value => value === null)) {
      return '';
    }
    let newData = {};
    keys.forEach((key, index) => {
      Object.assign(newData, {
        [key]: values[index]
      });
    });
    let replacedFormula = this.replaceMultiple(formula, newData);
    return replacedFormula;
  }
  /**
   * SP SINWEB-257 nuevo metodo para evuar una formula y reemplazarla
   * @param formula
   * @param dataFormula
   * @param item
   * @returns
   */
  evalFormula(formula, dataFormula, item) {
    return new Function('return ' + this.eval(formula, dataFormula, item) + ' ;')();
  }
  /**
   * SP SINWEB-257 metodo usado por eval para hacer el reemplazo de valores
   * @param text
   * @param valuesDict
   * @returns
   */
  replaceMultiple(text, valuesDict) {
    const valuesList = Object.keys(valuesDict).sort((a, b) => b.length - a.length);
    let result = text;
    for (const value of valuesList) {
      const replacement = valuesDict[value] || valuesDict[value] == '0' ? valuesDict[value] : '';
      result = result.replace(new RegExp(value, 'g'), replacement);
    }
    return result;
  }
  /**
   * SP SINWEB-257 este metodo es usado para reemplazar el objecto de parametro pasado por la cabecera en base con sus respectivos valores
   * @param dato
   * @param params
   * @returns
   */
  buscarParametros(dato, params) {
    let resultado = {};
    for (const param in params) {
      Object.assign(resultado, {
        [param]: this.buscarValor(dato, params[param])
      });
    }
    return resultado;
  }
  /**
   * SP SINWEB-257 metodo que busca cada valor con el campo pasoado por arrayValores , en objeto correspondiente a su posicion pasado por arrayDatos
   * @param arrayValores
   * @param arrayDatos
   * @returns
   */
  buscarValores(arrayValores, arrayDatos) {
    let resultado = [];
    arrayValores.forEach((valor, index) => resultado.push(this.buscarValor(arrayDatos[index], valor)));
    return resultado;
  }
  /**
   * SP SINWEB-257 obtiene el valor de un objeto que representa un diccionario
   * @param diccionario
   * @param valor
   * @returns
   */
  getDiccionario(diccionario, valor) {
    let elementoEncontrado = diccionario.find(elemDicc => elemDicc.Id == valor);
    return elementoEncontrado;
  }
  /**
   * SP SINWEB-257 metodo usado para encontrar un valor usando los datos por parametro
   * @param key
   * @param keyArray
   * @param keyValue
   * @param valor
   * @returns
   */
  findBy(key, keyArray, keyValue, valor) {
    let res = valor[keyArray].find(elem => {
      return this.buscarValor(elem, key) == keyValue;
    });
    if (!res) {
      return '';
    } else {
      return res.Valor;
    }
  }
  /**
   * SP SINWEB-257 metodo que abre el modal con la data enviada pro parametro
   * @param datos
   * @param plantilla
   * @param title
   */
  openModal(datos, plantilla, title) {
    const modalRef = this.modalService.open(_table_modal_info_modal_info_component__WEBPACK_IMPORTED_MODULE_0__.ModalInfoComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.datos = datos;
    modalRef.componentInstance.plantilla = plantilla;
    modalRef.componentInstance.title = title;
    modalRef.result.then(exito => {});
  }
  /**
   * SP SINWEB-257 metodo que busca un valores de la acciones
   * @param datos
   * @param valores
   * @returns
   */
  buscarValoresAcciones(datos, valores) {
    let resultado = [];
    valores.forEach(valor => resultado.push(this.buscarValor(datos, valor)));
    return resultado;
  }
  /**
   * SP SINWEB-257 metodo para buscar valores de las acciones en el dropdown de acciones
   * @param datos
   * @param valores
   * @returns
   */
  buscarValoresDrop(datos, valores) {
    let resultadoJson = [];
    let resultadoElem = [];
    valores[0]?.forEach(valor => resultadoJson.push(this.buscarValor(datos[0], valor)));
    valores[1]?.forEach(valor => resultadoElem.push(this.buscarValor(datos[1], valor)));
    return [resultadoJson, resultadoElem];
  }
  /**
   * SP SINWEB-198 metodo para mostrar y ocultar un registro de un nivel de la tabla
   * @param idButton
   * @param idTable
   */
  collapse(idButton, idTable) {
    if (document.getElementById(idTable).classList.contains('collapse')) {
      document.getElementById(idTable).classList.remove('collapse');
      document.getElementById(idTable).classList.add('collapsed');
      document.getElementById(idButton).classList.remove('bx-plus-circle');
      document.getElementById(idButton).classList.add('bx-minus-circle');
    } else {
      document.getElementById(idTable).classList.remove('collapsed');
      document.getElementById(idTable).classList.add('collapse');
      document.getElementById(idButton).classList.remove('bx-minus-circle');
      document.getElementById(idButton).classList.add('bx-plus-circle');
    }
  }
  /**
   * SP SINWEB-198 metodo que colapsa todos los registros de un nivel de la tabla
   * @param idButton
   * @param idTable
   */
  collapseAll(idButton, idTable) {
    let cant = document.querySelectorAll(`[id^=${idTable}]`).length;
    for (let i = 0; i < cant; i++) {
      this.collapse(idButton + i, idTable + i);
    }
  }
  /**
   * SP SINWEB-198 metodo para controlar si un registro de un nivel esta abierto
   * @param idTable
   * @returns
   */
  levelOpen(idTable) {
    let result = true;
    document.querySelectorAll(`[id^=${idTable}]`).forEach(elem => {
      result = result && elem.classList.contains('collapsed');
    });
    return result;
  }
  /**
   * SP SINWEB-257 metodo usado para aplicar una pipe pasada por la columna a un dato de la tabla
   * @param value
   * @param pipe
   * @returns
   */
  pipeTransform(value, pipe) {
    let pipeRes = pipe.substring(0, pipe.indexOf(':')) == 'date' ? (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.separarPipeFecha)(pipe) : (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.separarPipe)(pipe);
    switch (pipeRes[0]) {
      case 'number':
        if (pipeRes.length == 1) {
          return new _angular_common__WEBPACK_IMPORTED_MODULE_10__.DecimalPipe('es-AR').transform(value);
        } else {
          if (pipeRes.length == 2) {
            return new _angular_common__WEBPACK_IMPORTED_MODULE_10__.DecimalPipe('es-AR').transform(value, pipeRes[1]);
          } else {
            return new _angular_common__WEBPACK_IMPORTED_MODULE_10__.DecimalPipe(pipeRes[2]).transform(value, pipeRes[1]);
          }
        }
        break;
      case 'percent':
        if (value == 0) {
          return pipeRes.length == 1 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.PercentPipe('es-AR').transform(value) : pipeRes.length == 2 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.PercentPipe('es-AR').transform(value, pipeRes[1]) : new _angular_common__WEBPACK_IMPORTED_MODULE_10__.PercentPipe(pipeRes[2]).transform(value, pipeRes[1]);
        } else {
          return pipeRes.length == 1 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.PercentPipe('es-AR').transform(value / 100) : pipeRes.length == 2 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.PercentPipe('es-AR').transform(value / 100, pipeRes[1]) : new _angular_common__WEBPACK_IMPORTED_MODULE_10__.PercentPipe(pipeRes[2]).transform(value / 100, pipeRes[1]);
        }
        break;
      case 'date':
        let valueT = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFechaToPipe)(value);
        return pipeRes.length == 1 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.DatePipe('es-AR').transform(valueT) : pipeRes.length == 2 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.DatePipe('es-AR').transform(valueT, pipeRes[1]) : new _angular_common__WEBPACK_IMPORTED_MODULE_10__.DatePipe(pipeRes[2]).transform(valueT, pipeRes[1]);
        break;
      case 'currency':
        return pipeRes.length == 1 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.CurrencyPipe('es-AR').transform(value) : pipeRes.length == 2 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.CurrencyPipe('es-AR').transform(value, pipeRes[1]) : pipeRes.length == 3 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.CurrencyPipe('es-AR').transform(value, pipeRes[1], pipeRes[2]) : pipeRes.length == 4 ? new _angular_common__WEBPACK_IMPORTED_MODULE_10__.CurrencyPipe('es-AR').transform(value, pipeRes[1], pipeRes[2], pipeRes[3]) : new _angular_common__WEBPACK_IMPORTED_MODULE_10__.CurrencyPipe(pipeRes[4]).transform(value, pipeRes[1], pipeRes[2], pipeRes[3]);
        break;
      default:
        return value;
    }
  }
  //SP SINWEB-241 metodos GENERALES de la tabla INICIO
  /**
   * SP SINWEB-241 METODO que emite cambio de pagina cuando la tabla esta en modo front (normal) , emite siempre , pero por fuera deberia solo actualizar variavles de page y cant de rows , nunca buscar
   * @param $event
   */
  pageChange($event) {
    this.changePage.emit({
      page: $event.first / $event.rows + 1,
      cant: $event.rows
    });
  }
  /**
   * SP SINWEB-241 METODO que que ordena cuando la tabla esta en modo front (normal)
   * @param $event
   */
  setOrder($event) {
    (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.ordenar)($event);
    this.orderPage.emit({
      order: $event.field,
      sentido: $event.order == 1 ? 'Asc' : 'Desc'
    });
  }
  setOrderFront(data, orderSelected) {
    (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.ordenar)({
      data: data,
      field: orderSelected.field,
      order: orderSelected.sentido == 'Asc' ? 1 : -1
    });
    this.orderPage.emit({
      order: orderSelected.field,
      sentido: orderSelected.sentido
    });
    //EMITIR
  }
  setOrderLazy(event) {
    this.lazyLoad.emit({
      page: this.page,
      cant: this.cant_search,
      order: event.order,
      sentido: event.sentido
    });
  }
  /**
   * SP SINWEB-241 METODO que emite cambio cuando la tabla esta en modo back (lazy)
   * @param $event
   */
  setLazyLoad($event) {
    if (this.cant_search != $event.rows) {
      this.lazyLoad.emit({
        page: 1,
        cant: $event.rows,
        order: $event.sortField,
        sentido: $event.sortOrder == 1 ? 'Asc' : 'Desc'
      });
    } else {
      if (this.page != $event.first / $event.rows + 1 || this.order != $event.sortField || this.sentido != ($event.sortOrder == 1 ? 'Asc' : 'Desc')) {
        this.lazyLoad.emit({
          page: $event.first / $event.rows + 1,
          cant: $event.rows,
          order: $event.sortField,
          sentido: $event.sortOrder == 1 ? 'Asc' : 'Desc'
        });
      }
    }
  }
  /**
   * SP SINWEB-241 metodo para calcular el valor del sentido
   * @param sentido
   * @returns
   */
  getSentido(sentido) {
    return sentido == 'Asc' ? 1 : -1;
  }
  //SP SINWEB-241 metodos GENERALES de la tabla FIN
  /**
   * SP SINWEB-242 METODO para armar los ordenes en responsive usando datos de columns
   */
  armarOrdenes() {
    this.columns.forEach(col => {
      if (col.Order) {
        this.ordenes.push({
          label: col.Nombre,
          field: col.Type == 'template' ? Object.values(col.Data.ArrayKeys)[0] : col.Key,
          order: col.Order,
          sentido: 'Asc'
        });
        this.ordenes.push({
          label: col.Nombre,
          field: col.Type == 'template' ? Object.values(col.Data.ArrayKeys)[0] : col.Key,
          order: col.Order,
          sentido: 'Desc'
        });
      }
    });
    //setea el order por defecto
    this.orderSelected = this.ordenes.find(elem => !this.apiTable ? elem.field == this.order && elem.sentido == this.sentido : elem.order == this.order && elem.sentido == this.sentido);
  }
  /**
   * SP SINWEB-297 metodo que controla si un registro esta seleccionado o no
   * @param id
   * @returns
   */
  buscarSeleccionado(id) {
    return this.selectedRows.find(dato => dato.Id == id) ? 'S' : 'N';
  }
  /**
   * SP SINWEB-297 metodo para marcar o desmarcar un registro
   * @param event
   * @param registro
   */
  selectRegistro(event, registro) {
    if (event.checked == 'S') {
      if (!this.selectedRows.includes(reg => reg.Id == registro.Id)) {
        this.typeSelection == 'multiple' ? this.selectedRows.push(registro) : this.selectedRows = [registro];
      }
    } else {
      this.selectedRows = this.selectedRows.filter(reg => reg.Id != registro.Id);
    }
    this.selectRowsAction.emit({
      rows: this.selectedRows,
      selectPage: false,
      selectTodos: false,
      apiTable: this.apiTable
    });
  }
  /**
   * SP SINWEB-297 Metodo que agrega todos los datos de la pagina a los seleccionados o los quita
   * @param agregar booleano para agregar o quitar
   */
  pushRegistroPage(agregar) {
    (this.apiTable ? this.datos : this.datos.slice((this.page - 1) * this.cant_search, (this.page - 1) * this.cant_search + this.cant_search)).forEach(dato => {
      const pos = this.selectedRows.findIndex(elemento => elemento.Id == dato.Id);
      if (agregar) {
        if (pos == -1) {
          this.selectedRows.push(dato);
        }
      } else {
        if (pos != -1) {
          this.selectedRows.splice(pos, 1);
        }
      }
    });
    this.selectRowsAction.emit({
      rows: this.selectedRows,
      selectPage: true,
      selectTodos: false,
      apiTable: this.apiTable
    });
  }
  /**
   * SP SINWEB-297 Metodo que agrega todos los datos existentes a los seleccionados
   */
  pushTodos() {
    if (!this.apiTable) {
      this.selectedRows = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.copiarObjeto)(this.datos);
      this.selectRowsAction.emit({
        rows: this.selectedRows,
        selectPage: false,
        selectTodos: true,
        apiTable: false
      });
    } else {
      this.selectRowsAction.emit({
        rows: null,
        selectPage: false,
        selectTodos: true,
        apiTable: true
      });
    }
  }
  /**
   * SP SINWEB-297 Metodo que limpia todos los seleccionados
   */
  removeTodos() {
    this.selectedRows = [];
    this.selectRowsAction.emit({
      rows: [],
      selectPage: false,
      selectTodos: false,
      apiTable: this.apiTable
    });
  }
  /**
   * SP SINWEB-297 Metodo para controlar si todos los elementos de la pagina estan seleccionados
   * @returns {boolean}
   */
  isPageSelect() {
    let filterDatos = this.validateCheckFunc ? this.datos.filter(dato => this.validateCheckFunc(dato)) : this.datos;
    return (this.apiTable ? filterDatos : filterDatos.slice((this.page - 1) * this.cant_search, (this.page - 1) * this.cant_search + this.cant_search)).every(reg => this.selectedRows.find(regSel => regSel.Id == reg.Id) != undefined);
  }
  anyCanPageSelected() {
    let filterDatos = this.validateCheckFunc ? this.datos.filter(dato => this.validateCheckFunc(dato)) : this.datos;
    return filterDatos.length == 0;
  }
  /**
   * SP SINWEB-299 metodo para limpiar filtrado de la tabla pro front
   * @param table
   * @param text
   */
  clear(table, text) {
    table.clear();
    this.filterInput.nativeElement.value = '';
  }
  /**
   * SP SINWEB-298 metodo para obtener el valor de todos del form config
   * @returns
   */
  getSelectTodos() {
    return this.configForm.controls.todos.value;
  }
  /**
   * SP SINWEB-298 metodo para cambiar el valor de todos del form config
   */
  setSelectTodos() {
    this.configForm.controls.todos.setValue(!this.getSelectTodos());
    this.configForm.get('config').controls.forEach((control, pos) => {
      control.setValue(this.getSelectTodos());
      this.columns[pos].Disabled = this.getDisabled(pos) == true ? false : true;
    });
    this.sf.changeState(this.sf.states[this.stateConfig], this.configForm.get('config').value.join(','));
  }
  /**
   * SP SINWEB-298 Metodo para mostrar u ocultar columnas
   * @param pos
   */
  setDisabled(pos) {
    this.configForm.get('config').at(pos).setValue(!this.getDisabled(pos));
    this.columns[pos].Disabled = this.getDisabled(pos) == true ? false : true;
    this.sf.changeState(this.sf.states[this.stateConfig], this.configForm.get('config').value.join(','));
    this.configForm.controls.todos.setValue(false);
  }
  /**
   * SP SINWEB-298 metodo para obtener el valor de disabled
   * @param pos
   * @returns
   */
  getDisabled(pos) {
    return this.configForm.get('config').at(pos).value;
  }
  /**
   * SP SINWEB-298 metodo para resetear la configuracion de columnas , guiado por el file de cookies
   */
  resetConfig() {
    this.sf.changeState(this.sf.states[this.stateConfig], this.sf.states[this.stateConfig].default);
    this.cargarCookies();
  }
  /** */
  someExpanded(level) {
    if (level == 1) {
      return Object.keys(this.expandedRows).length > 0;
    } else {
      return Object.keys(this.expandedRowsComp).length > 0;
    }
  }
  /**
   * SP SINWEB-198 metodo para colapsar un nivel
   * @param level
   */
  allCollapse(level) {
    if (level == 1) {
      this.expandedRows = {};
      this.expandedRowsComp = {};
    } else {
      this.expandedRowsComp = {};
    }
  }
  /**
   * SP SINWEB-198 metodo para ordenar por front
   * @param event
   */
  ordenar(event) {
    (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.ordenar)(event);
  }
  camino(key) {
    return this.parsePath(key).join('.');
  }
  parsePath(path) {
    const parts = path.split('.');
    const result = parts.reduce((acc, part) => {
      if (/\[([^\]]+)\]/.test(part)) {
        const index = part.match(/\[([^\]]+)\]/)[1];
        acc.push(index);
      } else {
        acc.push(part);
      }
      return acc;
    }, []);
    return result;
  }
  isEditRow(colKey) {
    return this.rowsFields.find(field => field == colKey) != undefined;
  }
  onRowEditInit(row) {
    this.clonedRow[row.Id] = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.copiarObjeto)(row);
  }
  onRowEditSave(row, index) {
    lodash__WEBPACK_IMPORTED_MODULE_3__.unset(this.clonedRow, row.Id);
    this.rowEdited.emit({
      row: row,
      index: index
    });
  }
  onRowEditCancel(row, index) {
    this.datos[index] = (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.copiarObjeto)(lodash__WEBPACK_IMPORTED_MODULE_3__.get(this.clonedRow, row.Id));
    lodash__WEBPACK_IMPORTED_MODULE_3__.unset(this.clonedRow, row.Id);
  }
  setValor($event, key, index) {
    lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key, $event.target.value);
  }
  setValorTime($event, key, index) {
    if ($event.Dias != undefined && $event.Dias != '') {
      lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key + '.Dias', $event.Dias);
    }
    if ($event.Horas != undefined && $event.Horas != '') {
      lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key + '.Horas', $event.Horas);
    }
    if ($event.Minutos != undefined && $event.Minutos != '') {
      lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key + '.Minutos', $event.Minutos);
    }
    if ($event.Segundos != undefined && $event.Segundos != '') {
      lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key + '.Segundos', $event.Segundos);
    }
  }
  setValorCheckbox($event, key, index) {
    lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key, $event.checked);
  }
  setValorDate($event, key, index) {
    lodash__WEBPACK_IMPORTED_MODULE_3__.set(this.datos[index], key, (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFecha)($event.target.value));
  }
  formatFechaComp(fecha) {
    return (0,src_app_core_utils_metodos_metodos__WEBPACK_IMPORTED_MODULE_2__.formatFechaComp)(fecha);
  }
  selectColFrozen(index) {
    this.blockedCol = !this.blockedCol;
  }
  visualizarSeleccionados() {
    const modalRef = this.modalService.open(_data_list_data_list_component__WEBPACK_IMPORTED_MODULE_5__.DataListComponent, {
      size: 'lg',
      backdropClass: 'back-z-index-last',
      windowClass: 'modal-z-index-last',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.data = this.selectedRows;
    modalRef.componentInstance.columns = this.columns;
    modalRef.componentInstance.title = 'Registros seleccionados';
  }
  static #_ = this.ɵfac = function Table2Component_Factory(t) {
    return new (t || Table2Component)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_6__.StatefulService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
    type: Table2Component,
    selectors: [["app-table2"]],
    viewQuery: function Table2Component_Query(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c0, 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵviewQuery"](_c1, 5);
      }
      if (rf & 2) {
        let _t;
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.table = _t.first);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵloadQuery"]()) && (ctx.filterInput = _t.first);
      }
    },
    inputs: {
      title: "title",
      datos: "datos",
      columns: "columns",
      view: "view",
      edit: "edit",
      delete: "delete",
      dropdownButtons: "dropdownButtons",
      claseRow: "claseRow",
      claseRowField: "claseRowField",
      claseRowFunc: "claseRowFunc",
      acciones: "acciones",
      pagination: "pagination",
      totalItemShow: "totalItemShow",
      styleTableClass: "styleTableClass",
      paginatorPosition: "paginatorPosition",
      apiTable: "apiTable",
      isLoading: "isLoading",
      searchFields: "searchFields",
      searchMessage: "searchMessage",
      validateCheckFunc: "validateCheckFunc",
      anchorActions: "anchorActions",
      anchorRegistros: "anchorRegistros",
      anchorPaginacion: "anchorPaginacion",
      anchorSelect: "anchorSelect",
      anchorConfig: "anchorConfig",
      expandRows: "expandRows",
      expandColumns: "expandColumns",
      order: "order",
      sentido: "sentido",
      pageOptions: "pageOptions",
      cant_search: "cant_search",
      page: "page",
      totalItems: "totalItems",
      selectRows: "selectRows",
      selectAllFunc: "selectAllFunc",
      typeSelection: "typeSelection",
      selectedRows: "selectedRows",
      configColumns: "configColumns",
      state: "state",
      stateConfig: "stateConfig",
      header: "header",
      rowsEdit: "rowsEdit",
      rowsFields: "rowsFields",
      selection: "selection",
      verSeleccionados: "verSeleccionados",
      scrollable: "scrollable"
    },
    outputs: {
      lazyLoad: "lazyLoad",
      changePage: "changePage",
      orderPage: "orderPage",
      cantSearch: "cantSearch",
      emitAction: "emitAction",
      selectRowsAction: "selectRowsAction",
      rowEdited: "rowEdited"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵNgOnChangesFeature"]],
    decls: 17,
    vars: 31,
    consts: [[4, "ngIf"], [1, "h-100"], ["dataKey", "Id", "selectionMode", "single", "columnResizeMode", "expand", "responsiveLayout", "stack", 3, "lazy", "loading", "value", "showCurrentPageReport", "currentPageReportTemplate", "rowsPerPageOptions", "rows", "totalRecords", "paginator", "first", "paginatorPosition", "sortField", "sortOrder", "customSort", "selection", "expandedRowKeys", "tableStyle", "styleClass", "globalFilterFields", "rowHover", "responsive", "resizableColumns", "breakpoint", "scrollable", "scrollHeight", "editMode", "selectionChange", "onPage", "sortFunction", "onLazyLoad"], ["dt1", ""], ["pTemplate", "caption", "ngIf", "header"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "rowexpansion"], ["pTemplate", "footer"], ["data-cy", "tabla-vacia", "class", "row justify-content-center mx-1", 4, "ngIf"], ["position", "right", "appendTo", "body", 3, "visible", "visibleChange"], ["pTemplate", "content"], ["CONFIG", ""], [1, "col-auto", "me-md-auto", "pb-1", "text-end"], [1, "text-muted"], [1, "d-flex", "flex-md-row", "flex-column", "justify-content-center", "justify-content-md-between", "align-items-center", "gap-2"], [1, "d-flex", "flex-column", "flex-md-row", "justify-content-center", "text-center", "text-md-end", "gap-2"], [1, "text-muted", "text-end", "font-size-13"], ["class", "d-block d-md-none", 4, "ngIf"], ["class", "input-group py-2", 4, "ngIf"], ["class", "btn btn-light font-size-16", "pTooltip", "Configurar columnas del listado", "tooltipPosition", "top", 3, "click", 4, "ngIf"], ["pTooltip", "Fijar columna principal del listado", "tooltipPosition", "top", 1, "btn", "btn-info", "font-size-16", 3, "click"], [3, "ngClass"], ["class", "btn btn-info font-size-16", "pTooltip", "Ver seleccionados", "tooltipPosition", "top", 3, "disabled"], ["class", "btn btn-success font-size-16", "pTooltip", "Seleccionar registros de la p\u00E1gina", "tooltipPosition", "top", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-warning font-size-16", "pTooltip", "Quitar registros de la p\u00E1gina", "tooltipPosition", "top", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-primary font-size-16", "pTooltip", "Seleccionar todos los registros", "tooltipPosition", "top", 3, "disabled", "click", 4, "ngIf"], ["pTooltip", "Quitar todos los registros seleccionados", "tooltipPosition", "top", 1, "btn", "btn-danger", "font-size-16", 3, "disabled", "click"], [1, "mdi", "mdi-playlist-remove"], ["pTooltip", "Seleccionar registros de la p\u00E1gina", "tooltipPosition", "top", 1, "btn", "btn-success", "font-size-16", 3, "disabled", "click"], [1, "mdi", "mdi-check-box-outline"], ["pTooltip", "Quitar registros de la p\u00E1gina", "tooltipPosition", "top", 1, "btn", "btn-warning", "font-size-16", 3, "disabled", "click"], [1, "mdi", "mdi-close-box-outline"], ["pTooltip", "Seleccionar todos los registros", "tooltipPosition", "top", 1, "btn", "btn-primary", "font-size-16", 3, "disabled", "click"], ["pTooltip", "Configurar columnas del listado", "tooltipPosition", "top", 1, "btn", "btn-light", "font-size-16", 3, "click"], [3, "tourAnchor", "ngClass"], ["pTooltip", "Ver seleccionados", "tooltipPosition", "top", 1, "btn", "btn-info", "font-size-16", 3, "disabled", "click"], [1, "mdi", "mdi-eye", "mdi-18px", "align-middle"], [1, "d-block", "d-md-none"], ["placeholder", "Seleccionar", 3, "options", "ngModel", "ngModelChange", "onChange"], ["pTemplate", "selectedItem"], ["pTemplate", "item"], [1, "input-group", "py-2"], ["pInputText", "", "type", "text", 1, "form-control", 3, "placeholder", "input"], ["filterInput", ""], ["pButton", "", "label", "Borrar", "icon", "pi pi-filter-slash", 1, "btn", "btn-outline-primary", 3, "click"], ["class", "text-center", 4, "ngIf"], ["pResizableColumn", "", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "min-width: 72px", 3, "ngClass", 4, "ngIf"], [1, "text-center"], ["style", "cursor: pointer; font-size: 19px; color: teal", 3, "click", 4, "ngIf"], [2, "cursor", "pointer", "font-size", "19px", "color", "teal", 3, "click"], ["aria-hidden", "true", 1, "far", "fa-minus-square"], ["pResizableColumn", ""], ["pResizableColumn", "", "scope", "col", 3, "ngClass", "pSortableColumn", "ngStyle"], ["pResizableColumn", "", "scope", "col", 3, "ngClass", "pSortableColumn", "ngStyle", 4, "ngIf"], [3, "field"], ["pResizableColumn", "", "scope", "col", 3, "ngClass", "ngStyle", 4, "ngIf"], ["pResizableColumn", "", "scope", "col", 3, "ngClass", "ngStyle"], [2, "min-width", "72px", 3, "ngClass"], [3, "pEditableRow", "ngClass", "pSelectableRow"], ["style", "min-width: 72px", 3, "ngClass", "tourAnchor", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-text p-button-rounded p-button-plain", 3, "pRowToggler", "icon", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-text", "p-button-rounded", "p-button-plain", 3, "pRowToggler", "icon"], ["inputId", "binary", "trueValue", "S", "falseValue", "N", 3, "ngModel", "binary", "onChange", 4, "ngIf"], ["inputId", "binary", "trueValue", "S", "falseValue", "N", 3, "ngModel", "binary", "onChange"], [3, "ngClass", "ngStyle", 4, "ngIf"], [3, "ngClass", "ngStyle"], [1, "p-column-title"], [3, "style", "ngClass", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], ["pTemplate", "input"], ["pTemplate", "output"], ["pInputText", "", "type", "text", 1, "form-control", 3, "ngModel", "mask", "change"], [3, "vertical", "dias", "horas", "minutos", "segundos", "inputChange"], ["pInputDate", "", "type", "date", 1, "form-control", "form-control-date", 3, "ngModel", "change"], [1, "text-right"], [3, "pTooltip", "class"], [3, "pTooltip"], [1, "badge", "font-size-14", 3, "ngStyle"], [3, "style", "ngClass", 4, "ngFor", "ngForOf"], [1, "badge", "rounded-pill", "bg-dark"], ["tooltipPosition", "top", 3, "pTooltip", "ngClass", 4, "ngIf"], ["tooltipPosition", "top", 3, "pTooltip", "ngClass"], ["ngbDropdown", "", "container", "body", 4, "ngFor", "ngForOf"], ["ngbDropdown", "", "container", "body"], ["ngbDropdownToggle", "", 1, "text-muted", "text-truncate", "dropdown-toggle", "mb-2", "pulse", "color-hover", "d-flex", "gap-2", 2, "cursor", "pointer"], ["ngbDropdownMenu", "", 1, "dropdown-menu"], [1, "dropdown-divider"], [2, "cursor", "pointer", 3, "ngClass", "click"], ["target", "_blank", "rel", "noopener noreferrer", 3, "href"], [3, "routerLink", "queryParams"], [1, "btn", "btn-rounded", "btn-primary", 3, "click"], [1, "bx", "bx-cog", "label-icon", "font-size-20"], [2, "min-width", "72px", 3, "ngClass", "tourAnchor"], [1, "list-unstyled", "hstack", "gap-1", "mb-0", "justify-content-center"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Ver detalles", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Editar", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Eliminar", 4, "ngIf"], ["pButton", "", "pRipple", "", "type", "button", "pInitEditableRow", "", 1, "btn", "btn-sm", "btn-soft-primary", 3, "click"], [1, "mdi", "mdi-playlist-edit", "mdi-18px"], ["pButton", "", "pRipple", "", "type", "button", "pSaveEditableRow", "", 1, "btn", "btn-sm", "btn-soft-success", "mr-2", 3, "click"], [1, "mdi", "mdi-check-outline", "mdi-18px"], ["pButton", "", "pRipple", "", "type", "button", "pCancelEditableRow", "", 1, "btn", "btn-sm", "btn-soft-danger", 3, "click"], [1, "mdi", "mdi-close-outline", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Ver detalles"], [1, "btn", "btn-sm", "btn-soft-success", 3, "click"], [1, "mdi", "mdi-eye", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Editar"], [1, "btn", "btn-sm", "btn-soft-info", 3, "click"], [1, "mdi", "mdi-pencil-outline", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Eliminar"], ["data-bs-toggle", "modal", 1, "btn", "btn-sm", "btn-soft-danger", 3, "click"], [1, "mdi", "mdi-delete-outline", "mdi-18px"], ["ngbDropdown", "", "container", "body", 1, "btn-group"], ["type", "button", "ngbDropdownToggle", "", 1, "btn", "dropdown-toggle", 3, "ngClass"], [1, "mdi", "mdi-dots-vertical"], ["class", "bg-info bg-soft", 4, "ngIf"], [1, "bg-info", "bg-soft"], ["colspan", "12"], [1, "p-p-3"], ["dataKey", "Id", "pRowTogglerDisabled", "", "columnResizeMode", "expand", "responsiveLayout", "stack", "scrollHeight", "300px", "scrollWidth", "flex", 3, "value", "responsive", "breakpoint", "resizableColumns", "rowHover", "tableStyle", "styleClass", "scrollable", "totalRecords", "customSort", "expandedRowKeys", "globalFilterFields", "sortFunction"], ["dt2", ""], ["class", "text-center", "style", "width: 3rem", 4, "ngIf"], [1, "text-center", 2, "width", "3rem"], ["pResizableColumn", "", "scope", "col", 3, "pSortableColumn", "ngStyle"], [3, "ngStyle", 4, "ngIf"], [3, "ngStyle"], ["colspan", "15"], ["dataKey", "Id", "frozenWidth", "300px", "pRowTogglerDisabled", "", "columnResizeMode", "expand", "responsiveLayout", "stack", "scrollHeight", "300px", 3, "value", "responsive", "breakpoint", "resizableColumns", "rowHover", "tableStyle", "styleClass", "scrollable", "totalRecords", "customSort", "globalFilterFields", "sortFunction"], ["dt3", ""], ["class", "p-3", "pResizableColumn", "", "scope", "col", 3, "pSortableColumn", "ngStyle", 4, "ngIf"], ["pResizableColumn", "", "scope", "col", 1, "p-3", 3, "pSortableColumn", "ngStyle"], ["data-cy", "tabla-vacia", 1, "row", "justify-content-center", "mx-1"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"], [1, "col-auto", "me-md-auto", "text-end"], [1, "d-flex", "align-items-center", "gap-1"], [1, "fw-bold", "mb-0"], [1, "m-2"], [3, "ngTemplateOutlet"], [3, "formGroup"], ["pTooltip", "Reestabler configuraci\u00F3n", "tooltipPosition", "bottom", 1, "btn", "btn-outline-danger", "float-end", 3, "click"], [1, "mdi", "mdi-refresh", "mdi-18px"], ["title", "Selecci\u00F3nar todo", "colorChecked", "success", "colorUncheked", "primary", 3, "value", "emitAction"], ["colorChecked", "success", "colorUncheked", "primary", 3, "title", "value", "emitAction"]],
    template: function Table2Component_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, Table2Component_div_0_Template, 5, 4, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "div", 1)(2, "p-table", 2, 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("selectionChange", function Table2Component_Template_p_table_selectionChange_2_listener($event) {
          return ctx.selection = $event;
        })("onPage", function Table2Component_Template_p_table_onPage_2_listener($event) {
          return ctx.pageChange($event);
        })("sortFunction", function Table2Component_Template_p_table_sortFunction_2_listener($event) {
          return ctx.setOrder($event);
        })("onLazyLoad", function Table2Component_Template_p_table_onLazyLoad_2_listener($event) {
          return ctx.setLazyLoad($event);
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, Table2Component_ng_template_4_Template, 7, 7, "ng-template", 4)(5, Table2Component_ng_template_5_Template, 5, 4, "ng-template", 5)(6, Table2Component_ng_template_6_Template, 5, 7, "ng-template", 6)(7, Table2Component_ng_template_7_Template, 1, 1, "ng-template", 7)(8, Table2Component_ng_template_8_Template, 0, 0, "ng-template", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](9, Table2Component_div_9_Template, 3, 0, "div", 9)(10, Table2Component_div_10_Template, 5, 4, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "p-sidebar", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("visibleChange", function Table2Component_Template_p_sidebar_visibleChange_12_listener($event) {
          return ctx.config = $event;
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](13, Table2Component_ng_template_13_Template, 3, 0, "ng-template", 5)(14, Table2Component_ng_template_14_Template, 2, 1, "ng-template", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](15, Table2Component_ng_template_15_Template, 6, 3, "ng-template", null, 12, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.pagination && ctx.totalItemShow);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpropertyInterpolate1"]("currentPageReportTemplate", "P\u00E1gina {currentPage} con {rows} de {totalRecords} ", ctx.selectRows ? "(" + ctx.selectedRows.length + " Seleccionados)" : "", "");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("lazy", ctx.apiTable)("loading", ctx.isLoading)("value", ctx.datos)("showCurrentPageReport", true)("rowsPerPageOptions", ctx.pageOptions)("rows", ctx.cant_search)("totalRecords", ctx.totalItems)("paginator", true)("first", (ctx.page - 1) * ctx.cant_search)("paginatorPosition", ctx.paginatorPosition)("sortField", ctx.order)("sortOrder", ctx.getSentido(ctx.sentido))("customSort", true)("selection", ctx.selection)("expandedRowKeys", ctx.expandedRows)("tableStyle", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](30, _c9))("styleClass", ctx.styleTableClass)("globalFilterFields", ctx.searchFields)("rowHover", true)("responsive", true)("resizableColumns", true)("breakpoint", "767px")("scrollable", ctx.scrollable)("scrollHeight", ctx.scrollable ? "flex" : null)("editMode", ctx.rowsEdit ? "row" : "cell");
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", (ctx.totalItems == 0 || ctx.datos.length == 0) && !ctx.isLoading);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.pagination && ctx.totalItemShow);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("visible", ctx.config);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_14__.PrimeTemplate, primeng_button__WEBPACK_IMPORTED_MODULE_15__.ButtonDirective, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgTemplateOutlet, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgStyle, primeng_checkbox__WEBPACK_IMPORTED_MODULE_16__.Checkbox, _angular_router__WEBPACK_IMPORTED_MODULE_17__.RouterLink, primeng_tooltip__WEBPACK_IMPORTED_MODULE_18__.Tooltip, primeng_dropdown__WEBPACK_IMPORTED_MODULE_19__.Dropdown, _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__.NgModel, _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, ngx_mask__WEBPACK_IMPORTED_MODULE_20__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_13__.FormGroupDirective, primeng_sidebar__WEBPACK_IMPORTED_MODULE_21__.Sidebar, primeng_table__WEBPACK_IMPORTED_MODULE_22__.Table, primeng_table__WEBPACK_IMPORTED_MODULE_22__.SortableColumn, primeng_table__WEBPACK_IMPORTED_MODULE_22__.SelectableRow, primeng_table__WEBPACK_IMPORTED_MODULE_22__.RowToggler, primeng_table__WEBPACK_IMPORTED_MODULE_22__.ResizableColumn, primeng_table__WEBPACK_IMPORTED_MODULE_22__.CellEditor, primeng_table__WEBPACK_IMPORTED_MODULE_22__.SortIcon, primeng_table__WEBPACK_IMPORTED_MODULE_22__.EditableRow, primeng_table__WEBPACK_IMPORTED_MODULE_22__.InitEditableRow, primeng_table__WEBPACK_IMPORTED_MODULE_22__.SaveEditableRow, primeng_table__WEBPACK_IMPORTED_MODULE_22__.CancelEditableRow, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_23__.TourAnchorNgBootstrapDirective, _checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__.CheckboxComponent, _times_form_times_form_component__WEBPACK_IMPORTED_MODULE_8__.TimesFormComponent, _angular_common__WEBPACK_IMPORTED_MODULE_10__.LowerCasePipe],
    styles: [".p-paginator {\n  justify-content: end;\n}\n@media (max-width: 991px) {\n    .p-paginator {\n    justify-content: center;\n    margin-bottom: 40px;\n  }\n}\n\n  .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n  justify-self: flex-end;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n  border-radius: initial !important;\n  background-color: initial !important;\n  height: 37px;\n  min-width: 35px;\n  margin: 0;\n  padding: 0;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page,   .p-paginator .p-paginator-first,  .p-paginator .p-paginator-prev,   .p-paginator .p-paginator-next,  .p-paginator .p-paginator-last,  .p-paginator .p-dropdown {\n    font-size: 11.375px;\n    height: 29px;\n    min-width: 21px;\n  }\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:active,   .p-paginator .p-paginator-first.p-link:hover:active,  .p-paginator .p-paginator-prev.p-link:hover:active,   .p-paginator .p-paginator-next.p-link:hover:active,  .p-paginator .p-paginator-last.p-link:hover:active,  .p-paginator .p-dropdown.p-link:hover:active {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-link:hover:not(:active),   .p-paginator .p-paginator-first.p-link:hover:not(:active),  .p-paginator .p-paginator-prev.p-link:hover:not(:active),   .p-paginator .p-paginator-next.p-link:hover:not(:active),  .p-paginator .p-paginator-last.p-link:hover:not(:active),  .p-paginator .p-dropdown.p-link:hover:not(:active) {\n  border: 1px solid rgba(73, 80, 87, 0.25) !important;\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .p-link:focus,   .p-paginator .p-paginator-first .p-link:focus,  .p-paginator .p-paginator-prev .p-link:focus,   .p-paginator .p-paginator-next .p-link:focus,  .p-paginator .p-paginator-last .p-link:focus,  .p-paginator .p-dropdown .p-link:focus {\n  outline: 0 none;\n  outline-offset: 0;\n  \n\n}\n  .p-paginator .p-paginator-pages .p-paginator-page.p-highlight,   .p-paginator .p-paginator-first.p-highlight,  .p-paginator .p-paginator-prev.p-highlight,   .p-paginator .p-paginator-next.p-highlight,  .p-paginator .p-paginator-last.p-highlight,  .p-paginator .p-dropdown.p-highlight {\n  background-color: #0070af !important;\n  color: #fff;\n  border: 1px solid rgba(73, 80, 87, 0.25);\n}\n  .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n    .p-paginator .p-paginator-pages .p-paginator-page .pi,   .p-paginator .p-paginator-first .pi,  .p-paginator .p-paginator-prev .pi,   .p-paginator .p-paginator-next .pi,  .p-paginator .p-paginator-last .pi,  .p-paginator .p-dropdown .pi {\n    font-size: 11.375px;\n  }\n}\n\n .p-paginator .p-dropdown .p-dropdown-label {\n  padding: 8px;\n  align-self: center;\n  font-size: 13px;\n}\n@media (max-width: 576px) {\n   .p-paginator .p-dropdown .p-dropdown-label {\n    padding: 6px;\n    font-size: 11.375px;\n  }\n}\n\n  .p-datatable .p-paginator-bottom {\n  border: none;\n}\n\n  .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n  justify-content: end;\n}\n@media (max-width: 576px) {\n    .p-datatable.p-datatable-gridlines .p-paginator-bottom {\n    margin-top: 30px;\n    justify-content: center;\n  }\n}\n\n  .p-dropdown-items-wrapper .p-dropdown-items {\n  padding: 0.5rem;\n}\n\n .p-paginator .p-paginator-current {\n  position: absolute;\n  left: 0;\n  font-size: 13px;\n}\n@media (max-width: 991px) {\n   .p-paginator .p-paginator-current {\n    left: 50%;\n    top: 100%;\n    bottom: 4%;\n    text-align: center;\n    transform: translateX(-50%);\n  }\n}\n\n@media (max-width: 767px) {\n    .p-datatable-table > .p-datatable-tbody > tr > td {\n    flex-wrap: wrap;\n    text-wrap: wrap;\n  }\n}\n\n  .p-datatable-table > .p-datatable-tbody > tr {\n  overflow-x: scroll;\n}\n\n.btn-dark-hover[_ngcontent-%COMP%]:hover, .btn-dark-hover[_ngcontent-%COMP%]:focus, .btn-dark-hover[_ngcontent-%COMP%]:active {\n  color: #74788d;\n}\n\n  body[data-bs-theme=dark] .frozen {\n  position: sticky;\n  left: 0;\n  z-index: 2;\n  background-color: rgb(37, 48, 66);\n  box-shadow: inset 2px 0px 20px 0px rgb(46, 60, 80);\n}\n  body[data-bs-theme=dark] .frozen-end {\n  position: sticky;\n  right: 0;\n  z-index: 2;\n  background-color: rgb(37, 48, 66);\n  box-shadow: inset 2px 0px 20px 0px rgb(46, 60, 80);\n}\n\n  body[data-bs-theme=light] .frozen {\n  position: sticky;\n  left: 0;\n  z-index: 2;\n  background-color: rgb(255, 255, 255);\n  box-shadow: inset 2px 0px 20px 0px #e5e5e5;\n}\n  body[data-bs-theme=light] .frozen-end {\n  position: sticky;\n  right: 0;\n  z-index: 2;\n  background-color: rgb(255, 255, 255);\n  box-shadow: inset 2px 0px 20px 0px #e5e5e5;\n}\n\nng-deep.p-datatable[_ngcontent-%COMP%]   .p-datatable-tbody[_ngcontent-%COMP%]    > th[_ngcontent-%COMP%]   .p-element[_ngcontent-%COMP%]   .p-selectable-row[_ngcontent-%COMP%]   .p-highlight[_ngcontent-%COMP%]    > td[_ngcontent-%COMP%]   .frozen[_ngcontent-%COMP%] {\n  background-color: #1a7bfa !important;\n}\n\ntd[_ngcontent-%COMP%] {\n  text-wrap: wrap;\n}"]
  });
}

/***/ }),

/***/ 1625:
/*!********************************************************************!*\
  !*** ./src/app/shared/ui/table/modal-info/modal-info.component.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   ModalInfoComponent: () => (/* binding */ ModalInfoComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);



function ModalInfoComponent_div_5_div_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11)(1, "label", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const item_r4 = ctx.$implicit;
    const p_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r3.buscarValor(item_r4, p_r1.Key));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r3.buscarValor(item_r4, p_r1.Value));
  }
}
function ModalInfoComponent_div_5_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ModalInfoComponent_div_5_div_1_div_1_Template, 4, 2, "div", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const p_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
    const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.buscarValor(ctx_r2.datos, p_r1.KeyObject));
  }
}
function ModalInfoComponent_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ModalInfoComponent_div_5_div_1_Template, 2, 1, "div", 8);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const p_r1 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", p_r1.Array);
  }
}
class ModalInfoComponent {
  constructor(modal) {
    this.modal = modal;
  }
  ngOnInit() {
    console.log(this.datos);
  }
  //SP Metodo que busca un valor en el objeto pasado , en un camino especificado pro parametro. Es usado para obtener todos los valores del json para la tablaW
  buscarValor(objeto, camino) {
    if (camino == '') {
      return objeto;
    }
    const partesCamino = camino.split('.');
    let valor = objeto;
    for (let i = 0; i < partesCamino.length; i++) {
      if (valor) {
        const parteActual = partesCamino[i];
        if (parteActual.includes('[') && parteActual.includes(']')) {
          // Si la parte actual incluye corchetes, se trata de un acceso a un array
          const nombrePropiedad = parteActual.substring(0, parteActual.indexOf('['));
          const indice = parseInt(parteActual.substring(parteActual.indexOf('[') + 1, parteActual.indexOf(']')));
          valor = valor[nombrePropiedad][indice];
        } else {
          // Si la parte actual no incluye corchetes, se trata de un acceso a una propiedad de objeto
          valor = valor[partesCamino[i]];
        }
      } else {
        return '';
      }
    }
    return valor;
  }
  //SP SINWEB-63 Funcion que dado un objeto de tiempo, retorna un string con el tiempo representado */
  formatearTiempos(tiempos) {
    if (tiempos) {
      return tiempos.Dias + ' dias ' + tiempos.Horas + 'h:' + tiempos.Minutos + 'm:' + tiempos.Segundos + 's';
    } else {
      return '';
    }
  }
  //SP SINWEB-63 metodo que toma la plantilla pasada por el jsonHeader de la tabla (formula) ,
  //el array de keys tambien pasado en le header(dataFormula), y la row donde busca los datos usando los keys, y retorna el conjunto de todos los datos usando la plantilla
  eval(formula, dataFormula, item) {
    const keys = Object.keys(dataFormula);
    const values = keys.map(key => {
      return this.buscarValor(item, dataFormula[key]);
    });
    let newData = {};
    keys.forEach((key, index) => {
      Object.assign(newData, {
        [key]: values[index]
      });
    });
    let replacedFormula = this.replaceMultiple(formula, newData);
    return replacedFormula;
  }
  //SP SINWEB-63 metodo usado por eval para hacer el reemplazo de valores
  replaceMultiple(text, valuesDict) {
    const valuesList = Object.keys(valuesDict).sort((a, b) => b.length - a.length);
    let result = text;
    for (const value of valuesList) {
      const replacement = valuesDict[value] || valuesDict[value] == '0' ? valuesDict[value] : '';
      result = result.replace(new RegExp(value, 'g'), replacement);
    }
    return result;
  }
  //SP SINWEB-63 este metodo es usado para reemplazar el objecto de parametro pasado por la cabecera en base con sus respectivos valores
  buscarParametros(dato, params) {
    let resultado = {};
    for (const param in params) {
      Object.assign(resultado, {
        [param]: this.buscarValor(dato, params[param])
      });
    }
    return resultado;
  }
  //SP SINWEB-63 metodo que busca cada valor con el campo pasoado por arrayValores , en objeto correspondiente a su posicion pasado por arrayDatos
  buscarValores(arrayValores, arrayDatos) {
    let resultado = [];
    arrayValores.forEach((valor, index) => resultado.push(this.buscarValor(arrayDatos[index], valor)));
    return resultado;
  }
  getDiccionario(diccionario, valor) {
    let elementoEncontrado = diccionario.find(elemDicc => elemDicc.Id == valor);
    return elementoEncontrado;
  }
  static #_ = this.ɵfac = function ModalInfoComponent_Factory(t) {
    return new (t || ModalInfoComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__.NgbActiveModal));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: ModalInfoComponent,
    selectors: [["app-modal-info"]],
    inputs: {
      datos: "datos",
      plantilla: "plantilla",
      title: "title"
    },
    decls: 9,
    vars: 2,
    consts: [[1, "modal-content"], [1, "modal-header"], [1, "modal-title", "h4"], [1, "card-body"], ["class", "m-3", 4, "ngFor", "ngForOf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-light", "btn-elevate", "mr-2", 3, "click"], [1, "m-3"], ["class", "row", 4, "ngIf"], [1, "row"], ["class", "col-md-5", 4, "ngFor", "ngForOf"], [1, "col-md-5"], [1, "form-label"], ["type", "text", "disabled", "", 1, "form-control", "form-control-solid", 3, "value"]],
    template: function ModalInfoComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ModalInfoComponent_div_5_Template, 2, 1, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5)(7, "button", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ModalInfoComponent_Template_button_click_7_listener() {
          return ctx.modal.dismiss();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Aceptar ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.title, " ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.plantilla);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf]
  });
}

/***/ }),

/***/ 99585:
/*!****************************************************!*\
  !*** ./src/app/shared/ui/table/table.component.ts ***!
  \****************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TableComponent: () => (/* binding */ TableComponent)
/* 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 _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_common_locales_es__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common/locales/es */ 46828);
/* harmony import */ var _modal_info_modal_info_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modal-info/modal-info.component */ 1625);
/* harmony import */ var src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/layouts/layouts.model */ 45660);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/services/stateful.service */ 689);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../order-column/order-column.component */ 69246);
/* harmony import */ var _pagination_pagination_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../pagination/pagination.component */ 74813);
//SP SINWEB-49 Componente de tabla al cual se le pasa
/*
  columns: corresponde a un json que indicara la cabecera de la tabla
  title: titulo de la tabla
  view,edit,delete valores booleanos que indican si los botones editar , ver y eliminar esta activados
  order: orden actual de la tabla
  sentido : sentido actual de la tabla
  datos : objeto de datos a mostrar
  pageOptions: arreglo de cantidades de paginas seleccionables
  cant_search: cantidad seleccionada actual
  page: numero de pagina actual
  totalItems: cantidad de elementos
  claseRow: indica que se le dara una clase a las row
  claseRowField : indica donde buscaremos el parametro que se le pasara al arrow function
  claseRowFunc: arrow func usada para darle la clase a la row
  acciones : indica si se ve la columna de acciones , por defecto true

  metodos output:

  changePage : evento emitido al cambiar de pagina
  orderPage : evento emitido al cambiar de orden
  cantSearch : evento emitido al cambiar cantidad de elementos pro pagina
  emitAction : evento emitido al clickear un boton de accion (edit, delete, view)
*/


// MC SINWEB-96 Importaciones necesarias para formatear números en español














function TableComponent_div_0_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "div", 8)(2, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "lowercase");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"]("Cantidad de ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 2, ctx_r0.title), ": ", ctx_r0.totalItems, "");
  }
}
function TableComponent_ng_container_5_th_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "app-order-column", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("onOrder", function TableComponent_ng_container_5_th_1_div_1_Template_app_order_column_onOrder_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r13);
      const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("name", col_r7.Nombre)("orderId", col_r7.Order)("active", ctx_r10.order == col_r7.Order)("sentido", ctx_r10.sentido);
  }
}
function TableComponent_ng_container_5_th_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", col_r7.Nombre, " ");
  }
}
const _c0 = (a0, a1) => ({
  width: a0,
  "background-color": a1
});
function TableComponent_ng_container_5_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "th", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_ng_container_5_th_1_div_1_Template, 2, 4, "div", 0)(2, TableComponent_ng_container_5_th_1_div_2_Template, 2, 1, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](3, _c0, col_r7.WCol ? col_r7.WCol : "20%", col_r7.ColorBg ? col_r7.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r7.Order);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !col_r7.Order);
  }
}
function TableComponent_ng_container_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_ng_container_5_th_1_Template, 3, 6, "th", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r7 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !col_r7.Disabled);
  }
}
function TableComponent_th_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "th");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r24.buscarValor(dato_r17, col_r21.Key), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r25.formatearTiempos(ctx_r25.buscarValor(dato_r17, col_r21.Key)), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r26.eval(col_r21.Data.Plantilla, col_r21.Data.ArrayKeys, dato_r17), " ");
  }
}
const _c1 = a0 => ({
  background: a0
});
function TableComponent_tr_8_ng_container_1_td_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "span", 19);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](2, _c1, col_r21.ColorKey ? ctx_r27.buscarValor(dato_r17, col_r21.ColorKey) : col_r21.Color));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx_r27.buscarValor(dato_r17, col_r21.Key));
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "div", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](3, "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", col_r21.Pipe ? _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind3"](3, 1, ctx_r28.buscarValor(dato_r17, col_r21.Key), col_r21.Pipe, "es") : ctx_r28.buscarValor(dato_r17, col_r21.Key), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_div_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "h5")(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const elem_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx_r52.buscarValor(elem_r49, value_r51.Key));
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_div_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const elem_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r53.buscarValor(elem_r49, value_r51.Key), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_div_1_div_1_Template, 4, 1, "div", 0)(2, TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_div_1_div_2_Template, 2, 1, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r51 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", value_r51.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", value_r51.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !value_r51.Type);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 22);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_div_1_Template, 3, 3, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", col_r21.ArrayList);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_6_div_1_Template, 2, 1, "div", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r29.buscarValor(dato_r17, col_r21.Key));
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_2_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "h5")(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const elem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx_r66.buscarValor(elem_r62, value_r65.Key));
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_2_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 31);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const elem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r67.buscarValor(elem_r62, value_r65.Key), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_2_div_1_Template, 4, 1, "div", 0)(2, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_2_div_2_Template, 2, 1, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r65 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", value_r65.Class);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", value_r65.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !value_r65.Type);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
const _c2 = (a0, a1) => [a0, a1];
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r77 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r77);
      const dropButton_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
      const elem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
      const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](4).$implicit;
      const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r75.emitirAccion(dropButton_r72.Accion, dropButton_r72.Lista ? null : dato_r17, dropButton_r72.Todo || dropButton_r72.Lista ? elem_r62 : null));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const elem_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](4).$implicit;
    const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", !dropButton_r72.disabled ? dropButton_r72.activate ? dropButton_r72.activate(ctx_r74.buscarValoresDrop(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](2, _c2, dato_r17, elem_r62), dropButton_r72.fieldsActivate), dropButton_r72.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](dropButton_r72.Title);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_div_1_Template, 2, 0, "div", 0)(2, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_div_2_Template, 3, 5, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r72 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", dropButton_r72.Type == "divider" && dropButton_r72.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !dropButton_r72.Type && dropButton_r72.Show !== false);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 27)(1, "div", 28);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](2, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_2_Template, 3, 3, "div", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_div_4_Template, 3, 2, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", col_r21.ArrayList);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", col_r21.DropdownActions);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_7_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_7_div_1_Template, 5, 2, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r30.buscarValor(dato_r17, col_r21.Key));
  }
}
const _c3 = a0 => [a0];
const _c4 = () => ({});
function TableComponent_tr_8_ng_container_1_td_1_div_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](3, _c3, col_r21.LinkNav + (col_r21.LinkNavId ? ctx_r31.buscarValor(dato_r17, col_r21.LinkNavId) : "")))("queryParams", col_r21.QueryParams ? ctx_r31.buscarParametros(dato_r17, col_r21.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction0"](5, _c4));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](ctx_r31.buscarValor(dato_r17, col_r21.Key));
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "a", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](3, _c3, col_r21.LinkNav + (col_r21.LinkNavId ? ctx_r32.buscarValor(dato_r17, col_r21.LinkNavId) : "")))("queryParams", col_r21.QueryParams ? ctx_r32.buscarParametros(dato_r17, col_r21.QueryParams) : _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction0"](5, _c4));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r32.eval(col_r21.Data.Plantilla, col_r21.Data.ArrayKeys, dato_r17), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "span", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    let tmp_0_0;
    let tmp_1_0;
    let tmp_2_0;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵstyleMap"]((tmp_0_0 = ctx_r33.getDiccionario(col_r21.Diccionario, ctx_r33.buscarValor(dato_r17, col_r21.Key))) == null ? null : tmp_0_0.Style);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", (tmp_1_0 = ctx_r33.getDiccionario(col_r21.Diccionario, ctx_r33.buscarValor(dato_r17, col_r21.Key))) == null ? null : tmp_1_0.Clase);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", (tmp_2_0 = ctx_r33.getDiccionario(col_r21.Diccionario, ctx_r33.buscarValor(dato_r17, col_r21.Key))) == null ? null : tmp_2_0.Nombre, " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24)(1, "h5")(2, "span", 25);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const value_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    const elem_r93 = ctx_r100.$implicit;
    const i_r94 = ctx_r100.index;
    const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵstyleMap"](value_r96.Style ? value_r96.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", value_r96.Class ? value_r96.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](value_r96.Key ? ctx_r97.buscarValor(elem_r93, value_r96.Key) : i_r94 + 1);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_div_2_i_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "i", 38);
  }
  if (rf & 2) {
    const value_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("pTooltip", value_r96.Tooltip)("ngClass", value_r96.Icon);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](2, TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_div_2_i_2_Template, 1, 2, "i", 37);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const value_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const elem_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](5);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵstyleMap"](value_r96.Style ? value_r96.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", value_r96.Class ? value_r96.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r98.buscarValor(elem_r93, value_r96.Key), " ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", value_r96.KeyIcon && value_r96.Icon && ctx_r98.buscarValor(elem_r93, value_r96.KeyIcon) == value_r96.ShowIcon);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_div_1_Template, 4, 4, "div", 36)(2, TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_div_2_Template, 3, 5, "div", 36);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const value_r96 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", value_r96.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !value_r96.Type);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_ng_container_1_Template, 3, 2, "ng-container", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵstyleMap"](col_r21.Style ? col_r21.Style : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", col_r21.Class ? col_r21.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", col_r21.ArrayList);
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_11_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_11_div_1_Template, 2, 4, "div", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r34.buscarValor(dato_r17, col_r21.Key));
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_12_Template(rf, ctx) {
  if (rf & 1) {
    const _r110 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 39)(1, "button", 40);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TableComponent_tr_8_ng_container_1_td_1_div_12_Template_button_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r110);
      const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
      const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r108.openModal(dato_r17, col_r21.Plantilla, col_r21.Nombre));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 41);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_13_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", col_r21.Class ? col_r21.Class : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", ctx_r36.findBy(col_r21.Key, col_r21.KeyArray, col_r21.KeyValue, dato_r17), " ");
  }
}
function TableComponent_tr_8_ng_container_1_td_1_div_14_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "span");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵclassMap"](ctx_r37.buscarValor(dato_r17, col_r21.Key) != col_r21.FalseValue ? "mdi mdi-check-circle-outline text-success font-size-24" : "mdi mdi-close-circle-outline text-danger font-size-24");
  }
}
const _c5 = a0 => ({
  "background-color": a0
});
function TableComponent_tr_8_ng_container_1_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "td", 16);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_div_1_Template, 2, 1, "div", 0)(2, TableComponent_tr_8_ng_container_1_td_1_div_2_Template, 2, 1, "div", 0)(3, TableComponent_tr_8_ng_container_1_td_1_div_3_Template, 2, 1, "div", 0)(4, TableComponent_tr_8_ng_container_1_td_1_div_4_Template, 3, 4, "div", 0)(5, TableComponent_tr_8_ng_container_1_td_1_div_5_Template, 4, 5, "div", 0)(6, TableComponent_tr_8_ng_container_1_td_1_div_6_Template, 2, 1, "div", 0)(7, TableComponent_tr_8_ng_container_1_td_1_div_7_Template, 2, 1, "div", 0)(8, TableComponent_tr_8_ng_container_1_td_1_div_8_Template, 3, 6, "div", 0)(9, TableComponent_tr_8_ng_container_1_td_1_div_9_Template, 3, 6, "div", 0)(10, TableComponent_tr_8_ng_container_1_td_1_div_10_Template, 3, 4, "div", 0)(11, TableComponent_tr_8_ng_container_1_td_1_div_11_Template, 2, 1, "div", 0)(12, TableComponent_tr_8_ng_container_1_td_1_div_12_Template, 3, 0, "div", 17)(13, TableComponent_tr_8_ng_container_1_td_1_div_13_Template, 2, 2, "div", 18)(14, TableComponent_tr_8_ng_container_1_td_1_div_14_Template, 2, 2, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](15, _c5, col_r21.ColorBg ? col_r21.ColorBg : ""));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !col_r21.Type);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "date");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "combinado");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "badge");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "number");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "list");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "listDropdowns");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "link");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "link-combinado");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "diccionario");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "list2");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "modal");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "busqueda");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", col_r21.Type == "check");
  }
}
function TableComponent_tr_8_ng_container_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_td_1_Template, 15, 17, "td", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r21 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !col_r21.Disabled);
  }
}
function TableComponent_tr_8_td_2_li_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r123 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li", 47)(1, "a", 48);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TableComponent_tr_8_td_2_li_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r123);
      const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r121.emitirAccion("view", dato_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 49);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TableComponent_tr_8_td_2_li_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r126 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li", 50)(1, "a", 51);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TableComponent_tr_8_td_2_li_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r126);
      const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r124.emitirAccion("edit", dato_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 52);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TableComponent_tr_8_td_2_li_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r129 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li", 53)(1, "a", 54);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TableComponent_tr_8_td_2_li_4_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r129);
      const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
      const ctx_r127 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r127.emitirAccion("delete", dato_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 55);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TableComponent_tr_8_td_2_li_5_div_6_div_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "div", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
}
function TableComponent_tr_8_td_2_li_5_div_6_div_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r136 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function TableComponent_tr_8_td_2_li_5_div_6_div_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r136);
      const dropButton_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
      const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
      const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r134.emitirAccion(dropButton_r131.Accion, dato_r17));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const dropButton_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
    const dato_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
    const ctx_r133 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", !dropButton_r131.disabled ? dropButton_r131.activate ? dropButton_r131.activate(ctx_r133.buscarValoresAcciones(dato_r17, dropButton_r131.fieldsActivate), dropButton_r131.Accion) : "dropdown-item" : "dropdown-item disabled");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", dropButton_r131.Title, " ");
  }
}
function TableComponent_tr_8_td_2_li_5_div_6_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_td_2_li_5_div_6_div_1_Template, 2, 0, "div", 0)(2, TableComponent_tr_8_td_2_li_5_div_6_div_2_Template, 3, 2, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dropButton_r131 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", dropButton_r131.Type == "divider" && dropButton_r131.Show !== false);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !dropButton_r131.Type && dropButton_r131.Show !== false);
  }
}
const _c6 = (a0, a1) => ({
  "btn-soft-dark": a0,
  "btn-soft-light btn-dark-hover": a1
});
function TableComponent_tr_8_td_2_li_5_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li")(1, "div", 56)(2, "button", 57);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3, " Acciones ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "i", 58);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "div", 29);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](6, TableComponent_tr_8_td_2_li_5_div_6_Template, 3, 2, "div", 3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](2, _c6, !ctx_r120.darkMode, ctx_r120.darkMode));
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r120.dropdownButtons);
  }
}
function TableComponent_tr_8_td_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "td", 42)(1, "ul", 43);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](2, TableComponent_tr_8_td_2_li_2_Template, 3, 0, "li", 44)(3, TableComponent_tr_8_td_2_li_3_Template, 3, 0, "li", 45)(4, TableComponent_tr_8_td_2_li_4_Template, 3, 0, "li", 46)(5, TableComponent_tr_8_td_2_li_5_Template, 7, 5, "li", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const i_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().index;
    const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("tourAnchor", i_r18 == 0 ? ctx_r20.anchorActions : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.view);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.edit);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.delete);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r20.dropdownButtons && ctx_r20.dropdownButtons.length > 0);
  }
}
function TableComponent_tr_8_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr", 13);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, TableComponent_tr_8_ng_container_1_Template, 2, 1, "ng-container", 3)(2, TableComponent_tr_8_td_2_Template, 6, 5, "td", 14);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const dato_r17 = ctx.$implicit;
    const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", ctx_r3.claseRow ? ctx_r3.claseRowFunc(ctx_r3.buscarValor(dato_r17, ctx_r3.claseRowField), ctx_r3.context) : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r3.columns);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r3.acciones);
  }
}
function TableComponent_div_9_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 59)(1, "div", 60);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " No hay datos para mostrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
  }
}
function TableComponent_div_10_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "div", 61)(2, "span", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "lowercase");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate2"]("Cantidad de ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 2, ctx_r5.title), ": ", ctx_r5.totalItems, "");
  }
}
function TableComponent_div_11_Template(rf, ctx) {
  if (rf & 1) {
    const _r142 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 62)(1, "div", 63)(2, "app-page-info", 64);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("valueSelect", function TableComponent_div_11_Template_app_page_info_valueSelect_2_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r142);
      const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r141.setPage($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "div", 65)(4, "div", 66)(5, "div", 67)(6, "app-pagination", 68);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("pageChanges", function TableComponent_div_11_Template_app_pagination_pageChanges_6_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r142);
      const ctx_r143 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r143.pageChange($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()();
  }
  if (rf & 2) {
    const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("tourAnchor", ctx_r6.pagination ? ctx_r6.anchorRegistros : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("page", ctx_r6.page)("totalItems", ctx_r6.totalItems)("items", ctx_r6.pageOptions)("valueSelected", ctx_r6.cant_search);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("tourAnchor", ctx_r6.pagination ? ctx_r6.anchorPaginacion : "");
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("currentPage", ctx_r6.page)("limit", ctx_r6.cant_search)("total", ctx_r6.totalItems);
  }
}
class TableComponent {
  constructor(modalService, sf) {
    this.modalService = modalService;
    this.sf = sf;
    this.title = 'TABLA';
    this.columns = [];
    this.view = false;
    this.edit = false;
    this.delete = false;
    this.dropdownButtons = [];
    this.claseRow = false;
    this.claseRowField = '';
    this.acciones = true;
    this.pagination = true;
    this.mostrarCantidadTabla = true;
    this.anchorActions = 'actions.anchor.id';
    this.order = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_ORDER;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.datos = [];
    this.pageOptions = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.PAGE_OPTIONS;
    this.cant_search = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.CANT_SEARCH;
    this.page = 1;
    this.totalItems = 0;
    this.changePage = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.orderPage = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.cantSearch = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.emitAction = new _angular_core__WEBPACK_IMPORTED_MODULE_7__.EventEmitter();
    this.blockedCol = true;
  }
  ngOnInit() {
    this.size = window.innerWidth;
    (0,_angular_common__WEBPACK_IMPORTED_MODULE_8__.registerLocaleData)(_angular_common_locales_es__WEBPACK_IMPORTED_MODULE_9__["default"]); // MC SINWEB-96
    this.darkMode = document.querySelector('html').getAttribute('data-bs-theme') === src_app_layouts_layouts_model__WEBPACK_IMPORTED_MODULE_2__.THEME_DARK;
  }
  pageChange(event) {
    this.changePage.emit(event);
  }
  setPage(event) {
    this.cantSearch.emit(event);
  }
  setOrder(event) {
    this.orderPage.emit(event);
  }
  emitirAccion(accion, registro, elemento) {
    let aux = {
      accion: accion
    };
    if (registro) {
      Object.assign(aux, {
        registro: registro
      });
    }
    if (elemento) {
      Object.assign(aux, {
        elemento: elemento
      });
    }
    this.emitAction.emit(aux);
  }
  //SP Metodo que busca un valor en el objeto pasado , en un camino especificado pro parametro. Es usado para obtener todos los valores del json para la tablaW
  buscarValor(objeto, camino) {
    if (camino == '') {
      return objeto;
    }
    const partesCamino = camino.split('.');
    let valor = objeto;
    for (let i = 0; i < partesCamino.length; i++) {
      if (valor) {
        const parteActual = partesCamino[i];
        if (parteActual.includes('[') && parteActual.includes(']')) {
          // Si la parte actual incluye corchetes, se trata de un acceso a un array
          const nombrePropiedad = parteActual.substring(0, parteActual.indexOf('['));
          const indice = parseInt(parteActual.substring(parteActual.indexOf('[') + 1, parteActual.indexOf(']')));
          valor = valor[nombrePropiedad][indice];
        } else {
          // Si la parte actual no incluye corchetes, se trata de un acceso a una propiedad de objeto
          valor = valor[partesCamino[i]];
        }
      } else {
        return '';
      }
    }
    return valor;
  }
  //SP SINWEB-63 Funcion que dado un objeto de tiempo, retorna un string con el tiempo representado */
  formatearTiempos(tiempos) {
    if (tiempos) {
      return tiempos.Dias + ' dias ' + tiempos.Horas + 'h:' + tiempos.Minutos + 'm:' + tiempos.Segundos + 's';
    } else {
      return '';
    }
  }
  //SP SINWEB-63 metodo que toma la plantilla pasada por el jsonHeader de la tabla (formula) ,
  //el array de keys tambien pasado en le header(dataFormula), y la row donde busca los datos usando los keys, y retorna el conjunto de todos los datos usando la plantilla
  eval(formula, dataFormula, item) {
    const keys = Object.keys(dataFormula);
    const values = keys.map(key => {
      return this.buscarValor(item, dataFormula[key]);
    });
    //SP control si todos los valores encontrados son null no es necesario armar la formula
    if (values.every(value => value === null)) {
      return '';
    }
    let newData = {};
    keys.forEach((key, index) => {
      Object.assign(newData, {
        [key]: values[index]
      });
    });
    let replacedFormula = this.replaceMultiple(formula, newData);
    return replacedFormula;
  }
  //SP SINWEB-63 metodo usado por eval para hacer el reemplazo de valores
  replaceMultiple(text, valuesDict) {
    const valuesList = Object.keys(valuesDict).sort((a, b) => b.length - a.length);
    let result = text;
    for (const value of valuesList) {
      const replacement = valuesDict[value] || valuesDict[value] == '0' ? valuesDict[value] : '';
      result = result.replace(new RegExp(value, 'g'), replacement);
    }
    return result;
  }
  //SP SINWEB-63 este metodo es usado para reemplazar el objecto de parametro pasado por la cabecera en base con sus respectivos valores
  buscarParametros(dato, params) {
    let resultado = {};
    for (const param in params) {
      Object.assign(resultado, {
        [param]: this.buscarValor(dato, params[param])
      });
    }
    return resultado;
  }
  //SP SINWEB-63 metodo que busca cada valor con el campo pasoado por arrayValores , en objeto correspondiente a su posicion pasado por arrayDatos
  buscarValores(arrayValores, arrayDatos) {
    let resultado = [];
    arrayValores.forEach((valor, index) => resultado.push(this.buscarValor(arrayDatos[index], valor)));
    return resultado;
  }
  getDiccionario(diccionario, valor) {
    let elementoEncontrado = diccionario.find(elemDicc => elemDicc.Id == valor);
    return elementoEncontrado;
  }
  /**
   * SP SINWEB-183 metodo usado para encontrar un valor usando los datos por parametro
   * @param key
   * @param keyArray
   * @param keyValue
   * @param valor
   * @returns
   */
  findBy(key, keyArray, keyValue, valor) {
    let res = valor[keyArray].find(elem => {
      return this.buscarValor(elem, key) == keyValue;
    });
    if (!res) {
      return '';
    } else {
      return res.Valor;
    }
  }
  /**
   * SP SINWEB-183 metodo que abre el modal con la data enviada pro parametro
   * @param datos
   * @param plantilla
   * @param title
   */
  openModal(datos, plantilla, title) {
    const modalRef = this.modalService.open(_modal_info_modal_info_component__WEBPACK_IMPORTED_MODULE_1__.ModalInfoComponent, {
      size: 'xl',
      backdropClass: 'back-z-index',
      windowClass: 'modal-z-index',
      backdrop: 'static',
      keyboard: false,
      scrollable: true
    });
    modalRef.componentInstance.datos = datos;
    modalRef.componentInstance.plantilla = plantilla;
    modalRef.componentInstance.title = title;
    modalRef.result.then(exito => {});
  }
  buscarValoresAcciones(datos, valores) {
    let resultado = [];
    valores.forEach(valor => resultado.push(this.buscarValor(datos, valor)));
    return resultado;
  }
  buscarValoresDrop(datos, valores) {
    let resultadoJson = [];
    let resultadoElem = [];
    valores[0]?.forEach(valor => resultadoJson.push(this.buscarValor(datos[0], valor)));
    valores[1]?.forEach(valor => resultadoElem.push(this.buscarValor(datos[1], valor)));
    return [resultadoJson, resultadoElem];
  }
  collapse(idButton, idTable) {
    if (document.getElementById(idTable).classList.contains('collapse')) {
      document.getElementById(idTable).classList.remove('collapse');
      document.getElementById(idTable).classList.add('collapsed');
      document.getElementById(idButton).classList.remove('bx-plus-circle');
      document.getElementById(idButton).classList.add('bx-minus-circle');
    } else {
      document.getElementById(idTable).classList.remove('collapsed');
      document.getElementById(idTable).classList.add('collapse');
      document.getElementById(idButton).classList.remove('bx-minus-circle');
      document.getElementById(idButton).classList.add('bx-plus-circle');
    }
  }
  collapseAll(idButton, idTable) {
    let cant = document.querySelectorAll(`[id^=${idTable}]`).length;
    for (let i = 0; i < cant; i++) {
      this.collapse(idButton + i, idTable + i);
    }
  }
  levelOpen(idTable) {
    let result = true;
    document.querySelectorAll(`[id^=${idTable}]`).forEach(elem => {
      console.log(elem.classList.contains('collapsed'));
      result = result && elem.classList.contains('collapsed');
    });
    return result;
  }
  selectColFrozen(index) {
    this.blockedCol = !this.blockedCol;
  }
  static #_ = this.ɵfac = function TableComponent_Factory(t) {
    return new (t || TableComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbModal), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_core_services_stateful_service__WEBPACK_IMPORTED_MODULE_3__.StatefulService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
    type: TableComponent,
    selectors: [["app-table"]],
    inputs: {
      title: "title",
      columns: "columns",
      view: "view",
      edit: "edit",
      delete: "delete",
      dropdownButtons: "dropdownButtons",
      claseRow: "claseRow",
      claseRowField: "claseRowField",
      claseRowFunc: "claseRowFunc",
      acciones: "acciones",
      pagination: "pagination",
      mostrarCantidadTabla: "mostrarCantidadTabla",
      anchorActions: "anchorActions",
      anchorRegistros: "anchorRegistros",
      anchorPaginacion: "anchorPaginacion",
      order: "order",
      sentido: "sentido",
      datos: "datos",
      pageOptions: "pageOptions",
      cant_search: "cant_search",
      page: "page",
      totalItems: "totalItems",
      context: "context"
    },
    outputs: {
      changePage: "changePage",
      orderPage: "orderPage",
      cantSearch: "cantSearch",
      emitAction: "emitAction"
    },
    decls: 12,
    vars: 7,
    consts: [[4, "ngIf"], [1, "table-responsive"], [1, "table", "table-bordered", "border-dark", "border-opacity-25", "align-middle", "nowrap", "table-hover"], [4, "ngFor", "ngForOf"], ["data-cy", "tabla-datos"], ["class", "animate__animated animate__fadeIn", 3, "ngClass", 4, "ngFor", "ngForOf"], ["data-cy", "tabla-vacia", "class", "row justify-content-center mx-1", 4, "ngIf"], ["class", "row justify-content-center justify-content-md-between align-items-center", 4, "ngIf"], [1, "col-auto", "me-md-auto", "pb-1", "text-end"], [1, "text-muted"], ["scope", "col", 3, "ngStyle", 4, "ngIf"], ["scope", "col", 3, "ngStyle"], [3, "name", "orderId", "active", "sentido", "onOrder"], [1, "animate__animated", "animate__fadeIn", 3, "ngClass"], [3, "tourAnchor", 4, "ngIf"], [3, "ngStyle", 4, "ngIf"], [3, "ngStyle"], ["class", "text-center", 4, "ngIf"], [3, "ngClass", 4, "ngIf"], [1, "badge", "font-size-14", 3, "ngStyle"], [1, "text-right"], ["class", "d-flex gap-2", 4, "ngFor", "ngForOf"], [1, "d-flex", "gap-2"], [3, "ngClass", 4, "ngFor", "ngForOf"], [3, "ngClass"], [1, "badge", "rounded-pill", "bg-dark"], ["ngbDropdown", "", "container", "body", 4, "ngFor", "ngForOf"], ["ngbDropdown", "", "container", "body"], ["ngbDropdownToggle", "", 1, "text-muted", "text-truncate", "dropdown-toggle", "mb-2", "pulse", "color-hover", "d-flex", "gap-2", 2, "cursor", "pointer"], ["ngbDropdownMenu", "", 1, "dropdown-menu"], ["class", "text-wrap", 4, "ngIf"], [1, "text-wrap"], [1, "dropdown-divider"], [2, "cursor", "pointer", 3, "ngClass", "click"], [3, "routerLink", "queryParams"], [3, "style", "ngClass", 4, "ngFor", "ngForOf"], [3, "style", "ngClass", 4, "ngIf"], ["tooltipPosition", "top", 3, "pTooltip", "ngClass", 4, "ngIf"], ["tooltipPosition", "top", 3, "pTooltip", "ngClass"], [1, "text-center"], [1, "btn", "btn-rounded", "btn-primary", 3, "click"], [1, "bx", "bx-cog", "label-icon", "font-size-20"], [3, "tourAnchor"], [1, "list-unstyled", "hstack", "gap-1", "mb-0", "justify-content-center"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Ver detalles", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Editar", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Eliminar", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Ver detalles"], [1, "btn", "btn-sm", "btn-soft-success", 3, "click"], [1, "mdi", "mdi-eye", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Editar"], [1, "btn", "btn-sm", "btn-soft-info", 3, "click"], [1, "mdi", "mdi-pencil-outline", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Eliminar"], ["data-bs-toggle", "modal", 1, "btn", "btn-sm", "btn-soft-danger", 3, "click"], [1, "mdi", "mdi-delete-outline", "mdi-18px"], ["ngbDropdown", "", "container", "body", 1, "btn-group"], ["type", "button", "ngbDropdownToggle", "", 1, "btn", "dropdown-toggle", 3, "ngClass"], [1, "mdi", "mdi-chevron-down"], ["data-cy", "tabla-vacia", 1, "row", "justify-content-center", "mx-1"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"], [1, "col-auto", "me-md-auto", "text-end"], [1, "row", "justify-content-center", "justify-content-md-between", "align-items-center"], [1, "col-auto", "me-md-auto", 3, "tourAnchor"], [3, "page", "totalItems", "items", "valueSelected", "valueSelect"], [1, "col-auto", 3, "tourAnchor"], [1, "d-inline-block", "ms-auto", "mb-0"], [1, "p-2"], [3, "currentPage", "limit", "total", "pageChanges"]],
    template: function TableComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, TableComponent_div_0_Template, 5, 4, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "div", 1)(2, "table", 2)(3, "thead")(4, "tr");
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, TableComponent_ng_container_5_Template, 2, 1, "ng-container", 3)(6, TableComponent_th_6_Template, 1, 0, "th", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "tbody", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](8, TableComponent_tr_8_Template, 3, 3, "tr", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](9, TableComponent_div_9_Template, 3, 0, "div", 6)(10, TableComponent_div_10_Template, 5, 4, "div", 0)(11, TableComponent_div_11_Template, 7, 9, "div", 7);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.pagination && ctx.mostrarCantidadTabla);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx.columns);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.acciones);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx.datos);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.totalItems == 0 || ctx.datos.length == 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx.pagination && ctx.mostrarCantidadTabla);
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx.pagination);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgStyle, _angular_router__WEBPACK_IMPORTED_MODULE_11__.RouterLink, primeng_tooltip__WEBPACK_IMPORTED_MODULE_12__.Tooltip, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbDropdown, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbDropdownToggle, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__.NgbDropdownMenu, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__.TourAnchorNgBootstrapDirective, _pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_4__.PageInfoComponent, _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_5__.OrderColumnComponent, _pagination_pagination_component__WEBPACK_IMPORTED_MODULE_6__.PaginationComponent, _angular_common__WEBPACK_IMPORTED_MODULE_8__.LowerCasePipe, _angular_common__WEBPACK_IMPORTED_MODULE_8__.DecimalPipe],
    styles: ["@media (min-with: 576px) {\n  th[_ngcontent-%COMP%] {\n    width: var(--col-width);\n  }\n}\n\n.color-hover[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%] {\n  background: #0070af !important;\n}\n\n.table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:last-child {\n  z-index: 1;\n}\n\n.table[_ngcontent-%COMP%] {\n  overflow-x: auto;\n}\n\n.pointer[_ngcontent-%COMP%] {\n  cursor: pointer;\n}"]
  });
}

/***/ }),

/***/ 61928:
/*!**************************************************************!*\
  !*** ./src/app/shared/ui/times-form/times-form.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TimesFormComponent: () => (/* binding */ TimesFormComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 65879);
/* 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_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 56223);
/* 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 ngx_mask__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-mask */ 43735);








class TimesFormComponent {
  constructor(fb, vh) {
    this.fb = fb;
    this.vh = vh;
    this.title = '';
    this.dias = 0;
    this.horas = 0;
    this.minutos = 0;
    this.segundos = 0;
    this.timesValues = [];
    this.colorCard = '';
    this.disabled = false;
    this.vertical = false;
    //@Input() disabledSeg: boolean = false;
    this.inputChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
  }
  ngOnInit() {
    this.formData = this.fb.group({
      Dias: [{
        value: this.dias,
        disabled: this.disabled
      }],
      Horas: [{
        value: this.horas,
        disabled: this.disabled
      }],
      Minutos: [{
        value: this.minutos,
        disabled: this.disabled
      }],
      Segundos: [{
        value: this.segundos,
        disabled: this.disabled
      }]
    });
    // if (!this.disabledSeg){
    //   this.formData.addControl('Segundos', this.fb.control({value:this.segundos,disabled:this.disabled}));
    // }
    this.obs = this.formData.valueChanges.subscribe(data => {
      this.inputChange.emit(data);
    });
    this.vh.inicializar();
    this.vh.formGroup = this.formData;
  }
  isControlInvalid(controlName) {
    const controlValue = this.formData.controls[controlName].value;
    let retorno = controlValue == undefined || controlValue < 0 || controlValue === '' || controlName == 'Dias' && controlValue > 365 || controlName == 'Horas' && controlValue > 23 || controlName == 'Minutos' && controlValue > 59 || controlName == 'Segundos' && controlValue > 59;
    // || (!this.disabledSeg ? (controlName == "Segundos" && controlValue > 59) : false));
    return retorno;
  }
  ngOnDestroy() {
    this.obs.unsubscribe();
  }
  static #_ = this.ɵfac = function TimesFormComponent_Factory(t) {
    return new (t || TimesFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
    type: TimesFormComponent,
    selectors: [["app-times-form"]],
    inputs: {
      title: "title",
      dias: "dias",
      horas: "horas",
      minutos: "minutos",
      segundos: "segundos",
      timesValues: "timesValues",
      colorCard: "colorCard",
      disabled: "disabled",
      vertical: "vertical"
    },
    outputs: {
      inputChange: "inputChange"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([src_app_core_services_viewHelper_service__WEBPACK_IMPORTED_MODULE_0__.ViewHelperService])],
    decls: 26,
    vars: 15,
    consts: [[1, "row", "px-3", "pt-2"], [1, "fw-bold"], [1, "row"], [1, "col-12"], [1, "card", "m-1", "shadow"], [1, "card", "blog-stats-wid", "m-0", "p-0"], [1, "card-body", "p-2"], [3, "formGroup", "ngClass"], [1, "d-flex-column", "align-items-center", "gap-1"], [1, "fw-lighter", "m-0"], ["type", "text", "formControlName", "Dias", "mask", "999", "tooltipPosition", "top", 1, "form-control", 3, "pTooltip"], ["type", "text", "formControlName", "Horas", "mask", "99", "tooltipPosition", "top", 1, "form-control", 3, "pTooltip"], [1, "fw-lighterd-flex-column", "align-items-center", "gap-1"], [1, "m-0"], ["type", "text", "formControlName", "Minutos", "mask", "99", "tooltipPosition", "top", 1, "form-control", 3, "pTooltip"], [1, "fw-lighter", "d-flex-column", "align-items-center", "gap-1"], ["type", "text", "formControlName", "Segundos", "mask", "99", "tooltipPosition", "top", 1, "form-control", 3, "pTooltip"]],
    template: function TimesFormComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div")(1, "div", 0)(2, "h6", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2)(5, "div", 3)(6, "div", 4)(7, "div", 5)(8, "div", 6)(9, "form", 7)(10, "div", 8)(11, "p", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "D\u00EDas");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "input", 10);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 8)(15, "p", 9);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Horas");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 11);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 12)(19, "p", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Min");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "input", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 15)(23, "p", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "Seg");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "input", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.title);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.formData)("ngClass", !ctx.vertical ? "d-flex flex-row gap-2" : "d-flex flex-column gap-2");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("is-invalid", ctx.isControlInvalid("Dias"));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", ctx.isControlInvalid("Dias") ? "Debe tener un valor y ser menor o igual a 365" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("is-invalid", ctx.isControlInvalid("Horas"));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", ctx.isControlInvalid("Horas") ? "Debe tener un valor y ser menor 24" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("is-invalid", ctx.isControlInvalid("Minutos"));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", ctx.isControlInvalid("Minutos") ? "Debe tener un valor y ser menor 60" : "");
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("is-invalid", ctx.isControlInvalid("Segundos"));
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("pTooltip", ctx.isControlInvalid("Segundos") ? "Debe tener un valor y ser menor 60" : "");
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, primeng_tooltip__WEBPACK_IMPORTED_MODULE_4__.Tooltip, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NgControlStatusGroup, ngx_mask__WEBPACK_IMPORTED_MODULE_5__.NgxMaskDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormGroupDirective, _angular_forms__WEBPACK_IMPORTED_MODULE_2__.FormControlName],
    styles: ["input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button {\n  cursor: pointer;\n}"]
  });
}

/***/ }),

/***/ 41334:
/*!**************************************************************!*\
  !*** ./src/app/shared/ui/tree-table/tree-table.component.ts ***!
  \**************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TreeTableComponent: () => (/* binding */ TreeTableComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __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 primeng_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeng/api */ 85219);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var primeng_treetable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primeng/treetable */ 63514);
/* harmony import */ var _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../order-column/order-column.component */ 69246);







function TreeTableComponent_ng_template_1_th_1_div_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "app-order-column", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("onOrder", function TreeTableComponent_ng_template_1_th_1_div_1_Template_app_order_column_onOrder_1_listener($event) {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r10);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r9.setOrder($event));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const col_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("name", col_r6.Nombre)("orderId", col_r6.Order)("active", ctx_r7.order == col_r6.Order)("sentido", ctx_r7.sentido);
  }
}
function TreeTableComponent_ng_template_1_th_1_div_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", col_r6.Nombre, " ");
  }
}
function TreeTableComponent_ng_template_1_th_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "th", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, TreeTableComponent_ng_template_1_th_1_div_1_Template, 2, 4, "div", 5)(2, TreeTableComponent_ng_template_1_th_1_div_2_Template, 2, 1, "div", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r6 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", col_r6.Order);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !col_r6.Order);
  }
}
function TreeTableComponent_ng_template_1_th_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "th");
  }
}
function TreeTableComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, TreeTableComponent_ng_template_1_th_1_Template, 3, 2, "th", 4)(2, TreeTableComponent_ng_template_1_th_2_Template, 1, 0, "th", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const columns_r3 = ctx.$implicit;
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", columns_r3);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.acciones);
  }
}
function TreeTableComponent_ng_template_2_td_1_p_treeTableToggler_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "p-treeTableToggler", 10);
  }
  if (rf & 2) {
    const rowNode_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("rowNode", rowNode_r13);
  }
}
function TreeTableComponent_ng_template_2_td_1_ng_container_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 11);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
  }
  if (rf & 2) {
    const col_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    const rowData_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().rowData;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", col_r18.Control(rowData_r14[col_r18.Key]) ? col_r18.IconTrue : col_r18.IconFalse);
  }
}
function TreeTableComponent_ng_template_2_td_1_ng_container_3_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 col_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
    const rowData_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().rowData;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", rowData_r14[col_r18.Key], " ");
  }
}
function TreeTableComponent_ng_template_2_td_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, TreeTableComponent_ng_template_2_td_1_p_treeTableToggler_1_Template, 1, 1, "p-treeTableToggler", 9)(2, TreeTableComponent_ng_template_2_td_1_ng_container_2_Template, 2, 1, "ng-container", 5)(3, TreeTableComponent_ng_template_2_td_1_ng_container_3_Template, 2, 1, "ng-container", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const col_r18 = ctx.$implicit;
    const i_r19 = ctx.index;
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", i_r19 === 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", col_r18.Type == "conditionIcon");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !col_r18.Type);
  }
}
function TreeTableComponent_ng_template_2_td_2_li_2_Template(rf, ctx) {
  if (rf & 1) {
    const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 16)(1, "a", 17);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function TreeTableComponent_ng_template_2_td_2_li_2_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r33);
      const rowData_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).rowData;
      const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r31.emitirAccion("view", rowData_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 18);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function TreeTableComponent_ng_template_2_td_2_li_3_Template(rf, ctx) {
  if (rf & 1) {
    const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 19)(1, "a", 20);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function TreeTableComponent_ng_template_2_td_2_li_3_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r36);
      const rowData_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).rowData;
      const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r34.emitirAccion("edit", rowData_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 21);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function TreeTableComponent_ng_template_2_td_2_li_4_Template(rf, ctx) {
  if (rf & 1) {
    const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li", 22)(1, "a", 23);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function TreeTableComponent_ng_template_2_td_2_li_4_Template_a_click_1_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r39);
      const rowData_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).rowData;
      const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r37.emitirAccion("delete", rowData_r14));
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 24);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
function TreeTableComponent_ng_template_2_td_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td")(1, "ul", 12);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, TreeTableComponent_ng_template_2_td_2_li_2_Template, 3, 0, "li", 13)(3, TreeTableComponent_ng_template_2_td_2_li_3_Template, 3, 0, "li", 14)(4, TreeTableComponent_ng_template_2_td_2_li_4_Template, 3, 0, "li", 15);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const rowData_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().rowData;
    const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.view && (ctx_r17.viewCond ? ctx_r17.viewCond(rowData_r14) : true));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.edit && (ctx_r17.editCond ? ctx_r17.editCond(rowData_r14) : true));
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.delete && (ctx_r17.deleteCond ? ctx_r17.editCond(rowData_r14) : true));
  }
}
function TreeTableComponent_ng_template_2_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, TreeTableComponent_ng_template_2_td_1_Template, 4, 3, "td", 8)(2, TreeTableComponent_ng_template_2_td_2_Template, 5, 3, "td", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
  }
  if (rf & 2) {
    const columns_r15 = ctx.columns;
    const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", columns_r15);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r1.acciones);
  }
}
function TreeTableComponent_div_3_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 25)(1, "div", 26);
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " No hay datos para mostrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
  }
}
class TreeTableComponent {
  constructor() {
    this.datos = [];
    this.columns = [];
    //acciones
    this.acciones = false;
    this.dropDownActions = [];
    this.view = false;
    this.edit = false;
    this.delete = false;
    //opciones para manejo de tabla;
    this.lazy = false;
    this.page = 1;
    this.sentido = src_app_core_utils_constantes_constantes__WEBPACK_IMPORTED_MODULE_0__.INIT_SENTIDO;
    this.cantPage = 10;
    this.totalItems = 0;
    this.pagination = true;
    this.loading = false;
    this.order = -1;
    this.emitAction = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.orderPage = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.changePage = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
    this.cantSearch = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
  }
  ngOnInit() {}
  emitirAccion(accion, registro) {
    this.emitAction.emit({
      accion: accion,
      registro: registro
    });
  }
  setOrder(event) {
    this.orderPage.emit(event);
  }
  static #_ = this.ɵfac = function TreeTableComponent_Factory(t) {
    return new (t || TreeTableComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
    type: TreeTableComponent,
    selectors: [["app-tree-table"]],
    inputs: {
      datos: "datos",
      columns: "columns",
      acciones: "acciones",
      dropDownActions: "dropDownActions",
      view: "view",
      edit: "edit",
      delete: "delete",
      viewCond: "viewCond",
      editCond: "editCond",
      deleteCond: "deleteCond",
      lazy: "lazy",
      page: "page",
      sentido: "sentido",
      cantPage: "cantPage",
      totalItems: "totalItems",
      pagination: "pagination",
      loading: "loading",
      order: "order"
    },
    outputs: {
      emitAction: "emitAction",
      orderPage: "orderPage",
      changePage: "changePage",
      cantSearch: "cantSearch"
    },
    decls: 4,
    vars: 7,
    consts: [[3, "value", "columns", "paginator", "rows", "resizableColumns"], ["pTemplate", "header"], ["pTemplate", "body"], ["class", "row justify-content-center mx-1 mt-2", 4, "ngIf"], ["ttResizableColumn", "", 4, "ngFor", "ngForOf"], [4, "ngIf"], ["ttResizableColumn", ""], [3, "name", "orderId", "active", "sentido", "onOrder"], [4, "ngFor", "ngForOf"], [3, "rowNode", 4, "ngIf"], [3, "rowNode"], [3, "ngClass"], [1, "list-unstyled", "hstack", "gap-1", "mb-0", "justify-content-center"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Ver detalles", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Editar", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Eliminar", 4, "ngIf"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Ver detalles"], [1, "btn", "btn-sm", "btn-soft-success", 3, "click"], [1, "mdi", "mdi-eye", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Editar"], [1, "btn", "btn-sm", "btn-soft-info", 3, "click"], [1, "mdi", "mdi-pencil-outline", "mdi-18px"], ["data-bs-toggle", "tooltip", "data-bs-placement", "top", "title", "Eliminar"], ["data-bs-toggle", "modal", 1, "btn", "btn-sm", "btn-soft-danger", 3, "click"], [1, "mdi", "mdi-delete-outline", "mdi-18px"], [1, "row", "justify-content-center", "mx-1", "mt-2"], ["role", "alert", 1, "col-12", "alert", "alert-info", "py-3", "text-center"]],
    template: function TreeTableComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p-treeTable", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, TreeTableComponent_ng_template_1_Template, 3, 2, "ng-template", 1)(2, TreeTableComponent_ng_template_2_Template, 3, 2, "ng-template", 2);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, TreeTableComponent_div_3_Template, 3, 0, "div", 3);
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx.datos)("columns", ctx.columns)("paginator", true)("rows", 10)("resizableColumns", true)("paginator", ctx.pagination);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.totalItems == 0 || ctx.datos.length == 0);
      }
    },
    dependencies: [primeng_api__WEBPACK_IMPORTED_MODULE_3__.PrimeTemplate, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, primeng_treetable__WEBPACK_IMPORTED_MODULE_5__.TreeTable, primeng_treetable__WEBPACK_IMPORTED_MODULE_5__.TreeTableToggler, primeng_treetable__WEBPACK_IMPORTED_MODULE_5__.TTResizableColumn, _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_1__.OrderColumnComponent]
  });
}

/***/ }),

/***/ 52540:
/*!****************************************!*\
  !*** ./src/app/shared/ui/ui.module.ts ***!
  \****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   UIModule: () => (/* binding */ UIModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _pagetitle_pagetitle_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pagetitle/pagetitle.component */ 52260);
/* harmony import */ var _loader_loader_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loader/loader.component */ 28336);
/* harmony import */ var _select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./select-loading/select-loading.component */ 24718);
/* harmony import */ var _pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pageInfo/pageInfo.component */ 88722);
/* harmony import */ var _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./order-column/order-column.component */ 69246);
/* harmony import */ var _table_table_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./table/table.component */ 99585);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! @angular/router */ 75187);
/* harmony import */ var _log_log_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./log/log.component */ 44192);
/* harmony import */ var primeng_tooltip__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! primeng/tooltip */ 33259);
/* harmony import */ var _checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./checkbox/checkbox.component */ 79468);
/* harmony import */ var _times_form_times_form_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./times-form/times-form.component */ 61928);
/* harmony import */ var ng_apexcharts__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ng-apexcharts */ 86903);
/* harmony import */ var primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! primeng/sidebar */ 99246);
/* harmony import */ var _input_number_input_number_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./input-number/input-number.component */ 62271);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _pagination_pagination_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pagination/pagination.component */ 74813);
/* harmony import */ var primeng_paginator__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! primeng/paginator */ 42947);
/* harmony import */ var _table_modal_info_modal_info_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./table/modal-info/modal-info.component */ 1625);
/* harmony import */ var _select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./select-multiple/select-multiple.component */ 54245);
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! @ng-select/ng-select */ 54807);
/* harmony import */ var _tree_table_tree_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./tree-table/tree-table.component */ 41334);
/* harmony import */ var primeng_treetable__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! primeng/treetable */ 63514);
/* harmony import */ var ngx_mask__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ngx-mask */ 43735);
/* harmony import */ var _table2_table2_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./table2/table2.component */ 63033);
/* harmony import */ var primeng_table__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! primeng/table */ 94267);
/* harmony import */ var primeng_dropdown__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! primeng/dropdown */ 53965);
/* harmony import */ var primeng_checkbox__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! primeng/checkbox */ 38057);
/* harmony import */ var primeng_button__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! primeng/button */ 40707);
/* harmony import */ var _seleccionar_seleccionar_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./seleccionar/seleccionar.component */ 79355);
/* harmony import */ var _cron_generator_cron_generator_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./cron-generator/cron-generator.component */ 30965);
/* harmony import */ var _sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @sbzen/ng-cron */ 13479);
/* harmony import */ var _cron_generator_cron_generator_advanced_cron_generator_advanced_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./cron-generator/cron-generator-advanced/cron-generator-advanced.component */ 80493);
/* harmony import */ var _data_list_data_list_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./data-list/data-list.component */ 29706);
/* harmony import */ var primeng_accordion__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! primeng/accordion */ 65389);
/* harmony import */ var _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @ckeditor/ckeditor5-angular */ 86168);
/* harmony import */ var ng2_dragula__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ng2-dragula */ 43256);
/* harmony import */ var ngx_dropzone_wrapper__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ngx-dropzone-wrapper */ 55223);
/* harmony import */ var primeng_contextmenu__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! primeng/contextmenu */ 48493);
/* harmony import */ var primeng_timeline__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! primeng/timeline */ 8720);
/* harmony import */ var primeng_tree__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! primeng/tree */ 3745);
/* harmony import */ var primeng_treeselect__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! primeng/treeselect */ 36081);
/* harmony import */ var simplebar_angular__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! simplebar-angular */ 63744);
/* harmony import */ var src_app_core_core_module__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! src/app/core/core.module */ 48081);
/* harmony import */ var _widget_widget_module__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../widget/widget.module */ 67040);
/* harmony import */ var _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @angular/cdk/stepper */ 71657);
/* harmony import */ var primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! primeng/inputnumber */ 75167);
/* harmony import */ var angular_ng_stepper__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! angular-ng-stepper */ 21379);
/* harmony import */ var primeng_picklist__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! primeng/picklist */ 28052);
/* harmony import */ var primeng_scroller__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! primeng/scroller */ 26489);
/* harmony import */ var primeng_listbox__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! primeng/listbox */ 79540);
/* harmony import */ var _ngx_translate_core__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! @ngx-translate/core */ 89515);
/* harmony import */ var primeng_inputswitch__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! primeng/inputswitch */ 45609);
/* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ng2-charts */ 49538);
/* harmony import */ var _katoid_angular_grid_layout__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! @katoid/angular-grid-layout */ 21885);
/* harmony import */ var primeng_selectbutton__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! primeng/selectbutton */ 16128);
/* harmony import */ var primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! primeng/inputtextarea */ 96218);
/* harmony import */ var primeng_image__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! primeng/image */ 25274);
/* harmony import */ var ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ngx-bootstrap/carousel */ 87509);
/* harmony import */ var primeng_carousel__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! primeng/carousel */ 43658);
/* harmony import */ var _periodicidad_periodicidad_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./periodicidad/periodicidad.component */ 40381);
/* harmony import */ var primeng_radiobutton__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! primeng/radiobutton */ 21865);
/* harmony import */ var primeng_fieldset__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! primeng/fieldset */ 47791);
/* harmony import */ var primeng_dialog__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! primeng/dialog */ 93530);
/* harmony import */ var primeng_calendar__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! primeng/calendar */ 78743);
/* harmony import */ var primeng_inputmask__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! primeng/inputmask */ 59663);
/* harmony import */ var _input_periodo_input_periodo_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./input-periodo/input-periodo.component */ 77947);
/* harmony import */ var primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! primeng/overlaypanel */ 88454);
/* harmony import */ var primeng_inputgroup__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! primeng/inputgroup */ 55897);
/* harmony import */ var primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! primeng/inputgroupaddon */ 41757);
/* harmony import */ var _input_time_input_time_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./input-time/input-time.component */ 71902);
/* harmony import */ var _input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./input-date-time/input-date-time.component */ 75871);
/* harmony import */ var primeng_panel__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! primeng/panel */ 51230);
/* harmony import */ var primeng_orderlist__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! primeng/orderlist */ 41825);
/* harmony import */ var primeng_divider__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! primeng/divider */ 75359);
/* harmony import */ var _hotkeys_info_hotkeys_info_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./hotkeys-info/hotkeys-info.component */ 2429);
/* harmony import */ var primeng_splitter__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! primeng/splitter */ 55043);
/* harmony import */ var primeng_skeleton__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! primeng/skeleton */ 14227);
/* harmony import */ var ngx_lightbox__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ngx-lightbox */ 74862);
/* harmony import */ var _code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./code-scanner/code-scanner.component */ 536);
/* harmony import */ var _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! @zxing/ngx-scanner */ 59481);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/core */ 65879);






















































































class UIModule {
  static #_ = this.ɵfac = function UIModule_Factory(t) {
    return new (t || UIModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_28__["ɵɵdefineNgModule"]({
    type: UIModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_28__["ɵɵdefineInjector"]({
    providers: [(0,ngx_mask__WEBPACK_IMPORTED_MODULE_29__.provideNgxMask)()],
    imports: [primeng_accordion__WEBPACK_IMPORTED_MODULE_30__.AccordionModule, _sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_31__.Bs5UnixCronModule, primeng_button__WEBPACK_IMPORTED_MODULE_32__.ButtonModule, primeng_calendar__WEBPACK_IMPORTED_MODULE_33__.CalendarModule, ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_34__.CarouselModule.forRoot(), primeng_carousel__WEBPACK_IMPORTED_MODULE_35__.CarouselModule, _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_36__.CdkStepperModule, _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_37__.CKEditorModule, primeng_checkbox__WEBPACK_IMPORTED_MODULE_38__.CheckboxModule, _angular_common__WEBPACK_IMPORTED_MODULE_39__.CommonModule, primeng_contextmenu__WEBPACK_IMPORTED_MODULE_40__.ContextMenuModule, src_app_core_core_module__WEBPACK_IMPORTED_MODULE_19__.CoreModule, primeng_dialog__WEBPACK_IMPORTED_MODULE_41__.DialogModule, primeng_divider__WEBPACK_IMPORTED_MODULE_42__.DividerModule, ng2_dragula__WEBPACK_IMPORTED_MODULE_43__.DragulaModule.forRoot(), ngx_dropzone_wrapper__WEBPACK_IMPORTED_MODULE_44__.DropzoneModule, primeng_dropdown__WEBPACK_IMPORTED_MODULE_45__.DropdownModule, primeng_fieldset__WEBPACK_IMPORTED_MODULE_46__.FieldsetModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormsModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_49__.InputSwitchModule, primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_50__.InputTextareaModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_image__WEBPACK_IMPORTED_MODULE_51__.ImageModule, _katoid_angular_grid_layout__WEBPACK_IMPORTED_MODULE_52__.KtdGridModule, primeng_listbox__WEBPACK_IMPORTED_MODULE_53__.ListboxModule, ngx_lightbox__WEBPACK_IMPORTED_MODULE_26__.LightboxModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAlertModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCarouselModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCollapseModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDatepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModalModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTimepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTooltipModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_55__.NgApexchartsModule, ng2_charts__WEBPACK_IMPORTED_MODULE_56__.NgChartsModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_57__.NgSelectModule, angular_ng_stepper__WEBPACK_IMPORTED_MODULE_58__.NgStepperModule, primeng_orderlist__WEBPACK_IMPORTED_MODULE_59__.OrderListModule, primeng_paginator__WEBPACK_IMPORTED_MODULE_60__.PaginatorModule, primeng_panel__WEBPACK_IMPORTED_MODULE_61__.PanelModule, primeng_picklist__WEBPACK_IMPORTED_MODULE_62__.PickListModule, primeng_radiobutton__WEBPACK_IMPORTED_MODULE_63__.RadioButtonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.ReactiveFormsModule, _angular_router__WEBPACK_IMPORTED_MODULE_64__.RouterModule, primeng_scroller__WEBPACK_IMPORTED_MODULE_65__.ScrollerModule, primeng_selectbutton__WEBPACK_IMPORTED_MODULE_66__.SelectButtonModule, primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__.SidebarModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_68__.SimplebarAngularModule, primeng_splitter__WEBPACK_IMPORTED_MODULE_69__.SplitterModule, primeng_table__WEBPACK_IMPORTED_MODULE_70__.TableModule, primeng_timeline__WEBPACK_IMPORTED_MODULE_71__.TimelineModule, primeng_tooltip__WEBPACK_IMPORTED_MODULE_72__.TooltipModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__.TourNgBootstrapModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_74__.TranslateModule, primeng_tree__WEBPACK_IMPORTED_MODULE_75__.TreeModule, primeng_treeselect__WEBPACK_IMPORTED_MODULE_76__.TreeSelectModule, primeng_treetable__WEBPACK_IMPORTED_MODULE_77__.TreeTableModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_20__.WidgetModule, primeng_inputmask__WEBPACK_IMPORTED_MODULE_78__.InputMaskModule, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_79__.OverlayPanelModule, primeng_inputgroup__WEBPACK_IMPORTED_MODULE_80__.InputGroupModule, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_81__.InputGroupAddonModule, primeng_skeleton__WEBPACK_IMPORTED_MODULE_82__.SkeletonModule, _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_83__.ZXingScannerModule,
    //MODULOS
    primeng_accordion__WEBPACK_IMPORTED_MODULE_30__.AccordionModule, _sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_31__.Bs5UnixCronModule, primeng_button__WEBPACK_IMPORTED_MODULE_32__.ButtonModule, primeng_calendar__WEBPACK_IMPORTED_MODULE_33__.CalendarModule, ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_34__.CarouselModule, primeng_carousel__WEBPACK_IMPORTED_MODULE_35__.CarouselModule, _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_36__.CdkStepperModule, _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_37__.CKEditorModule, primeng_checkbox__WEBPACK_IMPORTED_MODULE_38__.CheckboxModule, _angular_common__WEBPACK_IMPORTED_MODULE_39__.CommonModule, primeng_contextmenu__WEBPACK_IMPORTED_MODULE_40__.ContextMenuModule, src_app_core_core_module__WEBPACK_IMPORTED_MODULE_19__.CoreModule, primeng_dialog__WEBPACK_IMPORTED_MODULE_41__.DialogModule, primeng_divider__WEBPACK_IMPORTED_MODULE_42__.DividerModule, ng2_dragula__WEBPACK_IMPORTED_MODULE_43__.DragulaModule, ngx_dropzone_wrapper__WEBPACK_IMPORTED_MODULE_44__.DropzoneModule, primeng_dropdown__WEBPACK_IMPORTED_MODULE_45__.DropdownModule, primeng_fieldset__WEBPACK_IMPORTED_MODULE_46__.FieldsetModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormsModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_49__.InputSwitchModule, primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_50__.InputTextareaModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_image__WEBPACK_IMPORTED_MODULE_51__.ImageModule, _katoid_angular_grid_layout__WEBPACK_IMPORTED_MODULE_52__.KtdGridModule, primeng_listbox__WEBPACK_IMPORTED_MODULE_53__.ListboxModule, ngx_lightbox__WEBPACK_IMPORTED_MODULE_26__.LightboxModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAlertModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCarouselModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCollapseModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDatepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModalModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTimepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTooltipModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_55__.NgApexchartsModule, ng2_charts__WEBPACK_IMPORTED_MODULE_56__.NgChartsModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_57__.NgSelectModule, angular_ng_stepper__WEBPACK_IMPORTED_MODULE_58__.NgStepperModule, primeng_paginator__WEBPACK_IMPORTED_MODULE_60__.PaginatorModule, primeng_panel__WEBPACK_IMPORTED_MODULE_61__.PanelModule, primeng_picklist__WEBPACK_IMPORTED_MODULE_62__.PickListModule, primeng_orderlist__WEBPACK_IMPORTED_MODULE_59__.OrderListModule, primeng_radiobutton__WEBPACK_IMPORTED_MODULE_63__.RadioButtonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.ReactiveFormsModule, _angular_router__WEBPACK_IMPORTED_MODULE_64__.RouterModule, primeng_scroller__WEBPACK_IMPORTED_MODULE_65__.ScrollerModule, primeng_selectbutton__WEBPACK_IMPORTED_MODULE_66__.SelectButtonModule, primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__.SidebarModule, primeng_splitter__WEBPACK_IMPORTED_MODULE_69__.SplitterModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_68__.SimplebarAngularModule, primeng_table__WEBPACK_IMPORTED_MODULE_70__.TableModule, primeng_timeline__WEBPACK_IMPORTED_MODULE_71__.TimelineModule, primeng_tooltip__WEBPACK_IMPORTED_MODULE_72__.TooltipModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__.TourNgBootstrapModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_74__.TranslateModule, primeng_tree__WEBPACK_IMPORTED_MODULE_75__.TreeModule, primeng_treeselect__WEBPACK_IMPORTED_MODULE_76__.TreeSelectModule, primeng_treetable__WEBPACK_IMPORTED_MODULE_77__.TreeTableModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_20__.WidgetModule, primeng_inputmask__WEBPACK_IMPORTED_MODULE_78__.InputMaskModule, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_79__.OverlayPanelModule, primeng_skeleton__WEBPACK_IMPORTED_MODULE_82__.SkeletonModule, _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_83__.ZXingScannerModule, primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__.SidebarModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__.TourNgBootstrapModule]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_28__["ɵɵsetNgModuleScope"](UIModule, {
    declarations: [_pagetitle_pagetitle_component__WEBPACK_IMPORTED_MODULE_0__.PagetitleComponent, _loader_loader_component__WEBPACK_IMPORTED_MODULE_1__.LoaderComponent, _select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_2__.SelectLoadingComponent, _pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_3__.PageInfoComponent, _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_4__.OrderColumnComponent, _table_table_component__WEBPACK_IMPORTED_MODULE_5__.TableComponent, _log_log_component__WEBPACK_IMPORTED_MODULE_6__.LogComponent, _checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__.CheckboxComponent, _times_form_times_form_component__WEBPACK_IMPORTED_MODULE_8__.TimesFormComponent, _input_number_input_number_component__WEBPACK_IMPORTED_MODULE_9__.InputNumberComponent, _pagination_pagination_component__WEBPACK_IMPORTED_MODULE_10__.PaginationComponent, _table_modal_info_modal_info_component__WEBPACK_IMPORTED_MODULE_11__.ModalInfoComponent, _select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_12__.SelectMultipleComponent, _tree_table_tree_table_component__WEBPACK_IMPORTED_MODULE_13__.TreeTableComponent, _table2_table2_component__WEBPACK_IMPORTED_MODULE_14__.Table2Component, _seleccionar_seleccionar_component__WEBPACK_IMPORTED_MODULE_15__.SeleccionarComponent, _cron_generator_cron_generator_component__WEBPACK_IMPORTED_MODULE_16__.CronGeneratorComponent, _cron_generator_cron_generator_advanced_cron_generator_advanced_component__WEBPACK_IMPORTED_MODULE_17__.CronGeneratorAdvancedComponent, _data_list_data_list_component__WEBPACK_IMPORTED_MODULE_18__.DataListComponent, _periodicidad_periodicidad_component__WEBPACK_IMPORTED_MODULE_21__.PeriodicidadComponent, _input_periodo_input_periodo_component__WEBPACK_IMPORTED_MODULE_22__.InputPeriodoComponent, _input_time_input_time_component__WEBPACK_IMPORTED_MODULE_23__.InputTimeComponent, _input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_24__.InputDateTimeComponent, _hotkeys_info_hotkeys_info_component__WEBPACK_IMPORTED_MODULE_25__.HotkeysInfoComponent, _code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_27__.CodeScannerComponent],
    imports: [primeng_accordion__WEBPACK_IMPORTED_MODULE_30__.AccordionModule, _sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_31__.Bs5UnixCronModule, primeng_button__WEBPACK_IMPORTED_MODULE_32__.ButtonModule, primeng_calendar__WEBPACK_IMPORTED_MODULE_33__.CalendarModule, ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_34__.CarouselModule, primeng_carousel__WEBPACK_IMPORTED_MODULE_35__.CarouselModule, _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_36__.CdkStepperModule, _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_37__.CKEditorModule, primeng_checkbox__WEBPACK_IMPORTED_MODULE_38__.CheckboxModule, _angular_common__WEBPACK_IMPORTED_MODULE_39__.CommonModule, primeng_contextmenu__WEBPACK_IMPORTED_MODULE_40__.ContextMenuModule, src_app_core_core_module__WEBPACK_IMPORTED_MODULE_19__.CoreModule, primeng_dialog__WEBPACK_IMPORTED_MODULE_41__.DialogModule, primeng_divider__WEBPACK_IMPORTED_MODULE_42__.DividerModule, ng2_dragula__WEBPACK_IMPORTED_MODULE_43__.DragulaModule, ngx_dropzone_wrapper__WEBPACK_IMPORTED_MODULE_44__.DropzoneModule, primeng_dropdown__WEBPACK_IMPORTED_MODULE_45__.DropdownModule, primeng_fieldset__WEBPACK_IMPORTED_MODULE_46__.FieldsetModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormsModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_49__.InputSwitchModule, primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_50__.InputTextareaModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_image__WEBPACK_IMPORTED_MODULE_51__.ImageModule, _katoid_angular_grid_layout__WEBPACK_IMPORTED_MODULE_52__.KtdGridModule, primeng_listbox__WEBPACK_IMPORTED_MODULE_53__.ListboxModule, ngx_lightbox__WEBPACK_IMPORTED_MODULE_26__.LightboxModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAlertModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCarouselModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCollapseModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDatepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModalModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTimepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTooltipModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_55__.NgApexchartsModule, ng2_charts__WEBPACK_IMPORTED_MODULE_56__.NgChartsModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_57__.NgSelectModule, angular_ng_stepper__WEBPACK_IMPORTED_MODULE_58__.NgStepperModule, ngx_mask__WEBPACK_IMPORTED_MODULE_29__.NgxMaskDirective, ngx_mask__WEBPACK_IMPORTED_MODULE_29__.NgxMaskPipe, primeng_orderlist__WEBPACK_IMPORTED_MODULE_59__.OrderListModule, primeng_paginator__WEBPACK_IMPORTED_MODULE_60__.PaginatorModule, primeng_panel__WEBPACK_IMPORTED_MODULE_61__.PanelModule, primeng_picklist__WEBPACK_IMPORTED_MODULE_62__.PickListModule, primeng_radiobutton__WEBPACK_IMPORTED_MODULE_63__.RadioButtonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.ReactiveFormsModule, _angular_router__WEBPACK_IMPORTED_MODULE_64__.RouterModule, primeng_scroller__WEBPACK_IMPORTED_MODULE_65__.ScrollerModule, primeng_selectbutton__WEBPACK_IMPORTED_MODULE_66__.SelectButtonModule, primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__.SidebarModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_68__.SimplebarAngularModule, primeng_splitter__WEBPACK_IMPORTED_MODULE_69__.SplitterModule, primeng_table__WEBPACK_IMPORTED_MODULE_70__.TableModule, primeng_timeline__WEBPACK_IMPORTED_MODULE_71__.TimelineModule, primeng_tooltip__WEBPACK_IMPORTED_MODULE_72__.TooltipModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__.TourNgBootstrapModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_74__.TranslateModule, primeng_tree__WEBPACK_IMPORTED_MODULE_75__.TreeModule, primeng_treeselect__WEBPACK_IMPORTED_MODULE_76__.TreeSelectModule, primeng_treetable__WEBPACK_IMPORTED_MODULE_77__.TreeTableModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_20__.WidgetModule, primeng_inputmask__WEBPACK_IMPORTED_MODULE_78__.InputMaskModule, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_79__.OverlayPanelModule, primeng_inputgroup__WEBPACK_IMPORTED_MODULE_80__.InputGroupModule, primeng_inputgroupaddon__WEBPACK_IMPORTED_MODULE_81__.InputGroupAddonModule, primeng_skeleton__WEBPACK_IMPORTED_MODULE_82__.SkeletonModule, _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_83__.ZXingScannerModule],
    exports: [
    //MODULOS
    primeng_accordion__WEBPACK_IMPORTED_MODULE_30__.AccordionModule, _sbzen_ng_cron__WEBPACK_IMPORTED_MODULE_31__.Bs5UnixCronModule, primeng_button__WEBPACK_IMPORTED_MODULE_32__.ButtonModule, primeng_calendar__WEBPACK_IMPORTED_MODULE_33__.CalendarModule, ngx_bootstrap_carousel__WEBPACK_IMPORTED_MODULE_34__.CarouselModule, primeng_carousel__WEBPACK_IMPORTED_MODULE_35__.CarouselModule, _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_36__.CdkStepperModule, _ckeditor_ckeditor5_angular__WEBPACK_IMPORTED_MODULE_37__.CKEditorModule, primeng_checkbox__WEBPACK_IMPORTED_MODULE_38__.CheckboxModule, _angular_common__WEBPACK_IMPORTED_MODULE_39__.CommonModule, primeng_contextmenu__WEBPACK_IMPORTED_MODULE_40__.ContextMenuModule, src_app_core_core_module__WEBPACK_IMPORTED_MODULE_19__.CoreModule, primeng_dialog__WEBPACK_IMPORTED_MODULE_41__.DialogModule, primeng_divider__WEBPACK_IMPORTED_MODULE_42__.DividerModule, ng2_dragula__WEBPACK_IMPORTED_MODULE_43__.DragulaModule, ngx_dropzone_wrapper__WEBPACK_IMPORTED_MODULE_44__.DropzoneModule, primeng_dropdown__WEBPACK_IMPORTED_MODULE_45__.DropdownModule, primeng_fieldset__WEBPACK_IMPORTED_MODULE_46__.FieldsetModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.FormsModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_inputswitch__WEBPACK_IMPORTED_MODULE_49__.InputSwitchModule, primeng_inputtextarea__WEBPACK_IMPORTED_MODULE_50__.InputTextareaModule, primeng_inputnumber__WEBPACK_IMPORTED_MODULE_48__.InputNumberModule, primeng_image__WEBPACK_IMPORTED_MODULE_51__.ImageModule, _katoid_angular_grid_layout__WEBPACK_IMPORTED_MODULE_52__.KtdGridModule, primeng_listbox__WEBPACK_IMPORTED_MODULE_53__.ListboxModule, ngx_lightbox__WEBPACK_IMPORTED_MODULE_26__.LightboxModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAccordionModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbAlertModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCarouselModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbCollapseModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDatepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbDropdownModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModalModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbNavModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbPaginationModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbProgressbarModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTimepickerModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_54__.NgbTooltipModule, ng_apexcharts__WEBPACK_IMPORTED_MODULE_55__.NgApexchartsModule, ng2_charts__WEBPACK_IMPORTED_MODULE_56__.NgChartsModule, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_57__.NgSelectModule, angular_ng_stepper__WEBPACK_IMPORTED_MODULE_58__.NgStepperModule, ngx_mask__WEBPACK_IMPORTED_MODULE_29__.NgxMaskDirective, ngx_mask__WEBPACK_IMPORTED_MODULE_29__.NgxMaskPipe, primeng_paginator__WEBPACK_IMPORTED_MODULE_60__.PaginatorModule, primeng_panel__WEBPACK_IMPORTED_MODULE_61__.PanelModule, primeng_picklist__WEBPACK_IMPORTED_MODULE_62__.PickListModule, primeng_orderlist__WEBPACK_IMPORTED_MODULE_59__.OrderListModule, primeng_radiobutton__WEBPACK_IMPORTED_MODULE_63__.RadioButtonModule, _angular_forms__WEBPACK_IMPORTED_MODULE_47__.ReactiveFormsModule, _angular_router__WEBPACK_IMPORTED_MODULE_64__.RouterModule, primeng_scroller__WEBPACK_IMPORTED_MODULE_65__.ScrollerModule, primeng_selectbutton__WEBPACK_IMPORTED_MODULE_66__.SelectButtonModule, primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__.SidebarModule, primeng_splitter__WEBPACK_IMPORTED_MODULE_69__.SplitterModule, simplebar_angular__WEBPACK_IMPORTED_MODULE_68__.SimplebarAngularModule, primeng_table__WEBPACK_IMPORTED_MODULE_70__.TableModule, primeng_timeline__WEBPACK_IMPORTED_MODULE_71__.TimelineModule, primeng_tooltip__WEBPACK_IMPORTED_MODULE_72__.TooltipModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__.TourNgBootstrapModule, _ngx_translate_core__WEBPACK_IMPORTED_MODULE_74__.TranslateModule, primeng_tree__WEBPACK_IMPORTED_MODULE_75__.TreeModule, primeng_treeselect__WEBPACK_IMPORTED_MODULE_76__.TreeSelectModule, primeng_treetable__WEBPACK_IMPORTED_MODULE_77__.TreeTableModule, _widget_widget_module__WEBPACK_IMPORTED_MODULE_20__.WidgetModule, primeng_inputmask__WEBPACK_IMPORTED_MODULE_78__.InputMaskModule, primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_79__.OverlayPanelModule, primeng_skeleton__WEBPACK_IMPORTED_MODULE_82__.SkeletonModule, _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_83__.ZXingScannerModule,
    //COMPONENTES
    _checkbox_checkbox_component__WEBPACK_IMPORTED_MODULE_7__.CheckboxComponent, _cron_generator_cron_generator_component__WEBPACK_IMPORTED_MODULE_16__.CronGeneratorComponent, _code_scanner_code_scanner_component__WEBPACK_IMPORTED_MODULE_27__.CodeScannerComponent, _data_list_data_list_component__WEBPACK_IMPORTED_MODULE_18__.DataListComponent, _hotkeys_info_hotkeys_info_component__WEBPACK_IMPORTED_MODULE_25__.HotkeysInfoComponent, _input_number_input_number_component__WEBPACK_IMPORTED_MODULE_9__.InputNumberComponent, _loader_loader_component__WEBPACK_IMPORTED_MODULE_1__.LoaderComponent, _log_log_component__WEBPACK_IMPORTED_MODULE_6__.LogComponent, _order_column_order_column_component__WEBPACK_IMPORTED_MODULE_4__.OrderColumnComponent, _pageInfo_pageInfo_component__WEBPACK_IMPORTED_MODULE_3__.PageInfoComponent, _pagetitle_pagetitle_component__WEBPACK_IMPORTED_MODULE_0__.PagetitleComponent, _pagination_pagination_component__WEBPACK_IMPORTED_MODULE_10__.PaginationComponent, _select_loading_select_loading_component__WEBPACK_IMPORTED_MODULE_2__.SelectLoadingComponent, _select_multiple_select_multiple_component__WEBPACK_IMPORTED_MODULE_12__.SelectMultipleComponent, _seleccionar_seleccionar_component__WEBPACK_IMPORTED_MODULE_15__.SeleccionarComponent, primeng_sidebar__WEBPACK_IMPORTED_MODULE_67__.SidebarModule, _table2_table2_component__WEBPACK_IMPORTED_MODULE_14__.Table2Component, _table_table_component__WEBPACK_IMPORTED_MODULE_5__.TableComponent, _times_form_times_form_component__WEBPACK_IMPORTED_MODULE_8__.TimesFormComponent, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_73__.TourNgBootstrapModule, _tree_table_tree_table_component__WEBPACK_IMPORTED_MODULE_13__.TreeTableComponent, _input_periodo_input_periodo_component__WEBPACK_IMPORTED_MODULE_22__.InputPeriodoComponent, _input_time_input_time_component__WEBPACK_IMPORTED_MODULE_23__.InputTimeComponent, _input_date_time_input_date_time_component__WEBPACK_IMPORTED_MODULE_24__.InputDateTimeComponent]
  });
})();

/***/ }),

/***/ 44348:
/*!**********************************************************************!*\
  !*** ./src/app/shared/widget/cookies-card/cookies-card.component.ts ***!
  \**********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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

class CookiesCardComponent {
  constructor() {}
  ngOnInit() {}
  static #_ = this.ɵfac = function CookiesCardComponent_Factory(t) {
    return new (t || CookiesCardComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: CookiesCardComponent,
    selectors: [["app-cookies-card"]],
    decls: 2,
    vars: 0,
    template: function CookiesCardComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "cookies-card works!");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
    }
  });
}

/***/ }),

/***/ 73051:
/*!******************************************************!*\
  !*** ./src/app/shared/widget/stat/stat.component.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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



class StatComponent {
  constructor() {
    this.controlInvalid = false;
    this.disabled = false;
    this.valueSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
    this.valor = 0;
  }
  ngOnInit() {
    this.valor = this.valueSelected;
  }
  ngOnChanges(changes) {
    if (changes.valueSelected) {
      this.valor = changes.valueSelected.currentValue;
    }
  }
  changeValue() {
    this.valueSelected = this.valor;
    this.valueSelect.emit(this.valueSelected);
  }
  static #_ = this.ɵfac = function StatComponent_Factory(t) {
    return new (t || StatComponent)();
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: StatComponent,
    selectors: [["app-stat"]],
    inputs: {
      title: "title",
      icon: "icon",
      valueSelected: "valueSelected",
      controlInvalid: "controlInvalid",
      disabled: "disabled"
    },
    outputs: {
      valueSelect: "valueSelect"
    },
    features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]],
    decls: 12,
    vars: 8,
    consts: [[1, "card", "mini-stats-wid", "my-2"], [1, "card-body"], [1, "d-flex"], [1, "flex-grow-1"], [1, "text-muted", "fw-medium", "mb-2"], ["type", "number", "min", "0", "numberOnly", "", "maxDigits", "100", "maxValue", "10000000", 1, "form-control", 2, "max-width", "90%", 3, "disabled", "ngModel", "ngModelChange", "keyup", "change"], [1, "flex-shrink-0", "align-self-center"], [1, "mini-stat-icon", "avatar-sm", "rounded-circle", "bg-primary"], [1, "avatar-title"]],
    template: function StatComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "p", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h4")(7, "input", 5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function StatComponent_Template_input_ngModelChange_7_listener($event) {
          return ctx.valor = $event;
        })("keyup", function StatComponent_Template_input_keyup_7_listener() {
          return ctx.changeValue();
        })("change", function StatComponent_Template_input_change_7_listener() {
          return ctx.changeValue();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6)(9, "div", 7)(10, "span", 8);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "i");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.title);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("is-invalid", ctx.controlInvalid);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disabled)("ngModel", ctx.valor);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("bx ", ctx.icon, " font-size-24");
      }
    },
    dependencies: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_1__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_1__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_1__.MinValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_1__.NgModel]
  });
}

/***/ }),

/***/ 1456:
/*!******************************************************************!*\
  !*** ./src/app/shared/widget/tap-to-top/tap-to-top.component.ts ***!
  \******************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

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


const _c0 = a0 => ({
  display: a0
});
class TapToTopComponent {
  constructor(viewScroller) {
    this.viewScroller = viewScroller;
    this.show = false;
  }
  ngOnInit() {}
  // @HostListener Decorator
  onWindowScroll() {
    let number = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
    if (number > 600) {
      this.show = true;
    } else {
      this.show = false;
    }
  }
  tapToTop() {
    this.viewScroller.scrollToPosition([0, 0]);
  }
  static #_ = this.ɵfac = function TapToTopComponent_Factory(t) {
    return new (t || TapToTopComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.ViewportScroller));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: TapToTopComponent,
    selectors: [["app-tap-to-top"]],
    hostBindings: function TapToTopComponent_HostBindings(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("scroll", function TapToTopComponent_scroll_HostBindingHandler() {
          return ctx.onWindowScroll();
        }, false, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresolveWindow"]);
      }
    },
    decls: 2,
    vars: 3,
    consts: [[1, "tap-top", 3, "ngStyle", "click"], [1, "bx", "bx-chevrons-up", "font-size-24"]],
    template: function TapToTopComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TapToTopComponent_Template_div_click_0_listener() {
          return ctx.tapToTop();
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "i", 1);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](1, _c0, ctx.show ? "block" : "none"));
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgStyle],
    styles: [".tap-top[_ngcontent-%COMP%] {\n  text-align: center;\n  cursor: pointer;\n  display: none;\n  width: 40px;\n  height: 40px;\n  border-radius: 100%;\n  position: fixed;\n  bottom: 30px;\n  right: 30px;\n  z-index: 5;\n  color: #fff;\n  background: #0070af;\n  border: none;\n  padding: 7px;\n  box-shadow: 0 0 10px var(--theme-deafult);\n  opacity: 0.5;\n  transition: all 0.3s ease;\n}\n.tap-top[_ngcontent-%COMP%]:hover {\n  transition: all 0.3s ease;\n  opacity: 1;\n}\n.tap-top[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%] {\n  width: 20px;\n}"]
  });
}

/***/ }),

/***/ 63481:
/*!******************************************************!*\
  !*** ./src/app/shared/widget/tour/tour.component.ts ***!
  \******************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TourComponent: () => (/* binding */ TourComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);



function TourComponent_ng_template_1_Conditional_1_Template(rf, ctx) {
  if (rf & 1) {
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8)(1, "h5");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
  }
  if (rf & 2) {
    const step_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().step;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](step_r1 == null ? null : step_r1.title);
  }
}
function TourComponent_ng_template_1_button_6_Template(rf, ctx) {
  if (rf & 1) {
    const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TourComponent_ng_template_1_button_6_Template_button_click_0_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6);
      const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r5.tourService.next());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "i", 10);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  }
}
function TourComponent_ng_template_1_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TourComponent_ng_template_1_Conditional_1_Template, 3, 1, "div", 1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "p", 2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3)(4, "button", 4);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TourComponent_ng_template_1_Template_button_click_4_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8);
      const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r7.tourService.prev());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i", 5);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, TourComponent_ng_template_1_button_6_Template, 2, 0, "button", 6);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TourComponent_ng_template_1_Template_button_click_7_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8);
      const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r9.tourService.end());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Cerrar ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const step_r1 = ctx.step;
    const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("width", step_r1.stepDimensions == null ? null : step_r1.stepDimensions.width)("min-width", step_r1.stepDimensions == null ? null : step_r1.stepDimensions.minWidth)("max-width", step_r1.stepDimensions == null ? null : step_r1.stepDimensions.maxWidth);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵconditional"](1, !(step_r1 == null ? null : step_r1.useLegacyTitle) && (step_r1 == null ? null : step_r1.title) ? 1 : -1);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", step_r1 == null ? null : step_r1.content, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r0.tourService.hasPrev(step_r1));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.tourService.hasNext(step_r1) && !step_r1.nextOnAnchorClick);
  }
}
class TourComponent {
  constructor(tourService) {
    this.tourService = tourService;
  }
  ngOnInit() {}
  static #_ = this.ɵfac = function TourComponent_Factory(t) {
    return new (t || TourComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__.TourService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: TourComponent,
    selectors: [["app-tour"]],
    decls: 2,
    vars: 0,
    consts: [[1, "main-container", "p-3"], ["class", "title-container"], [1, "card-text", "text-muted", "p-2", 3, "innerHTML"], [1, "d-flex", "gap-2"], [1, "btn", "btn-sm", "btn-primary", 3, "disabled", "click"], [1, "bx", "bx-chevron-left", "font-size-20"], ["class", "btn btn-sm btn-primary", 3, "click", 4, "ngIf"], [1, "btn", "btn-sm", "btn-danger", "ms-auto", 3, "click"], [1, "title-container"], [1, "btn", "btn-sm", "btn-primary", 3, "click"], [1, "bx", "bx-chevron-right", "font-size-20"]],
    template: function TourComponent_Template(rf, ctx) {
      if (rf & 1) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tour-step-template");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TourComponent_ng_template_1_Template, 9, 10, "ng-template");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__.TourStepTemplateComponent],
    styles: ["@charset \"UTF-8\";\n.centered-tour-element[_ngcontent-%COMP%] {\n  position: fixed;\n  left: 50%;\n  top: 50%;\n  \n\n  \n\n  transform: translate(-125px, -100px);\n}\n\n  .ngx-ui-tour_backdrop {\n  z-index: 1069 !important;\n}"]
  });
}

/***/ }),

/***/ 41341:
/*!********************************************************************!*\
  !*** ./src/app/shared/widget/transaction/transaction.component.ts ***!
  \********************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TransactionComponent: () => (/* binding */ TransactionComponent)
/* harmony export */ });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var ngx_bootstrap_modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-bootstrap/modal */ 73157);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 96814);



const _c0 = (a0, a1) => ({
  "badge-soft-danger": a0,
  "badge-soft-warning": a1
});
function TransactionComponent_For_24_Template(rf, ctx) {
  if (rf & 1) {
    const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr")(1, "td")(2, "div", 30);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 31)(4, "label", 32);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td")(6, "a", 33);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td")(15, "span", 34);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "td");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "i");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td")(21, "button", 35);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TransactionComponent_For_24_Template_button_click_21_listener() {
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8);
      _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
      const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](26);
      return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](_r1.show());
    });
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, " View Details ");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
  }
  if (rf & 2) {
    const data_r2 = ctx.$implicit;
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "transactionCheck", data_r2.index, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("for", "transactionCheck", data_r2.index, "");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.id);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.name);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.date);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.total);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](12, _c0, data_r2.status === "Chargeback", data_r2.status === "Refund"));
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r2.status);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("fab ", data_r2.payment[0], " me-1");
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"]();
    _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", data_r2.payment[1], " ");
  }
}
class TransactionComponent {
  constructor(modalService) {
    this.modalService = modalService;
  }
  ngOnInit() {}
  /**
   * Open modal
   * @param content modal content
   */
  openModal(content) {
    this.modalRef = this.modalService.show(content);
  }
  static #_ = this.ɵfac = function TransactionComponent_Factory(t) {
    return new (t || TransactionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_bootstrap_modal__WEBPACK_IMPORTED_MODULE_1__.BsModalService));
  };
  static #_2 = this.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
    type: TransactionComponent,
    selectors: [["app-transaction"]],
    inputs: {
      transactions: "transactions"
    },
    decls: 98,
    vars: 0,
    consts: [[1, "table-responsive", "mb-0"], [1, "table", "table-centered", "table-nowrap"], [1, "table-light"], [2, "width", "20px"], [1, "form-check", "font-size-16", "align-middle"], ["type", "checkbox", "id", "transactionCheck01", 1, "form-check-input"], ["for", "transactionCheck01", 1, "form-check-label"], [1, "align-middle"], ["bsModal", "", "tabindex", "-1", 1, "modal", "fade"], ["content", "bs-modal"], [1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-header"], [1, "modal-title", "mt-0"], ["type", "button", "aria-hidden", "true", 1, "btn-close", 3, "click"], [1, "modal-body"], [1, "mb-2"], [1, "text-primary"], [1, "mb-4"], [1, "table-responsive"], ["scope", "col"], ["scope", "row"], ["src", "assets/images/product/img-7.png", "alt", "", 1, "avatar-sm"], [1, "text-truncate", "font-size-14"], [1, "text-muted", "mb-0"], ["src", "assets/images/product/img-4.png", "alt", "", 1, "avatar-sm"], ["colspan", "2"], [1, "m-0"], [1, "modal-footer"], [1, "btn", "btn-secondary", 3, "click"], [1, "form-check", "font-size-16"], ["type", "checkbox", 1, "form-check-input", 3, "id"], [1, "form-check-label", 3, "for"], ["href", "javascript: void(0);", 1, "text-body", "fw-bold"], [1, "badge", "badge-pill", "badge-soft-success", "font-size-11", 3, "ngClass"], ["type", "button", 1, "btn", "btn-primary", "btn-sm", "btn-rounded", 3, "click"]],
    template: function TransactionComponent_Template(rf, ctx) {
      if (rf & 1) {
        const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "table", 1)(2, "thead", 2)(3, "tr")(4, "th", 3)(5, "div", 4);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 5)(7, "label", 6);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Order ID");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Billing Name");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Date");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Total");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Payment Status");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Payment Method");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "th", 7);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "View Details");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "tbody");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterCreate"](23, TransactionComponent_For_24_Template, 23, 15, "tr", null, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeaterTrackByIndex"]);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 8, 9)(27, "div", 10)(28, "div", 11)(29, "div", 12)(30, "h5", 13);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Order Details");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "button", 14);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TransactionComponent_Template_button_click_32_listener() {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9);
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](26);
          return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](_r1 == null ? null : _r1.hide());
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 15)(34, "p", 16);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " Product id: ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "span", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "#SK2540");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "p", 18);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " Billing Name: ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "span", 17);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Neal Matthews");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 19)(43, "table", 1)(44, "thead")(45, "tr")(46, "th", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Product");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "th", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Product Name");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "th", 20);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Price");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "tbody")(53, "tr")(54, "th", 21)(55, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "img", 22);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "td")(58, "div")(59, "h5", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, " Wireless Headphone (Black) ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "p", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62, "$ 225 x 1");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](64, "$ 255");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "tr")(66, "th", 21)(67, "div");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](68, "img", 25);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "td")(70, "div")(71, "h5", 23);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, " Phone patterned cases ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "p", 24);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, "$ 145 x 1");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](76, "$ 145");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "tr")(78, "td", 26)(79, "h6", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, "Sub Total:");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82, "$ 400");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "tr")(84, "td", 26)(85, "h6", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "Shipping:");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](88, "Free");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "tr")(90, "td", 26)(91, "h6", 27);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](92, "Total:");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "td");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](94, "$ 400");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "div", 28)(96, "button", 29);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TransactionComponent_Template_button_click_96_listener() {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9);
          const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](26);
          return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](_r1.hide());
        });
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, " Close ");
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()()()()();
      }
      if (rf & 2) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](23);
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrepeater"](ctx.transactions);
      }
    },
    dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, ngx_bootstrap_modal__WEBPACK_IMPORTED_MODULE_1__.ModalDirective]
  });
}

/***/ }),

/***/ 67040:
/*!************************************************!*\
  !*** ./src/app/shared/widget/widget.module.ts ***!
  \************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   WidgetModule: () => (/* binding */ WidgetModule)
/* harmony export */ });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 96814);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 56223);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ 85406);
/* harmony import */ var _stat_stat_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stat/stat.component */ 73051);
/* harmony import */ var _transaction_transaction_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./transaction/transaction.component */ 41341);
/* harmony import */ var _tap_to_top_tap_to_top_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tap-to-top/tap-to-top.component */ 1456);
/* harmony import */ var _tour_tour_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tour/tour.component */ 63481);
/* harmony import */ var ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-ui-tour-ng-bootstrap */ 58469);
/* harmony import */ var _cookies_card_cookies_card_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cookies-card/cookies-card.component */ 44348);
/* harmony import */ var ngx_bootstrap_modal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-bootstrap/modal */ 73157);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 65879);












class WidgetModule {
  static #_ = this.ɵfac = function WidgetModule_Factory(t) {
    return new (t || WidgetModule)();
  };
  static #_2 = this.ɵmod = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({
    type: WidgetModule
  });
  static #_3 = this.ɵinj = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbModalModule, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormsModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.TourNgBootstrapModule, ngx_bootstrap_modal__WEBPACK_IMPORTED_MODULE_10__.ModalModule.forRoot()]
  });
}
(function () {
  (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](WidgetModule, {
    declarations: [_stat_stat_component__WEBPACK_IMPORTED_MODULE_0__.StatComponent, _transaction_transaction_component__WEBPACK_IMPORTED_MODULE_1__.TransactionComponent, _tap_to_top_tap_to_top_component__WEBPACK_IMPORTED_MODULE_2__.TapToTopComponent, _tour_tour_component__WEBPACK_IMPORTED_MODULE_3__.TourComponent, _cookies_card_cookies_card_component__WEBPACK_IMPORTED_MODULE_4__.CookiesCardComponent],
    imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__.NgbModalModule, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.FormsModule, ngx_ui_tour_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__.TourNgBootstrapModule, ngx_bootstrap_modal__WEBPACK_IMPORTED_MODULE_10__.ModalModule],
    exports: [_stat_stat_component__WEBPACK_IMPORTED_MODULE_0__.StatComponent, _transaction_transaction_component__WEBPACK_IMPORTED_MODULE_1__.TransactionComponent, _tap_to_top_tap_to_top_component__WEBPACK_IMPORTED_MODULE_2__.TapToTopComponent, _tour_tour_component__WEBPACK_IMPORTED_MODULE_3__.TourComponent]
  });
})();

/***/ }),

/***/ 20553:
/*!*****************************************!*\
  !*** ./src/environments/environment.ts ***!
  \*****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   environment: () => (/* binding */ environment)
/* harmony export */ });
const environment = {
  production: true,
  defaultauth: 'API',
  version: '6.0.16',
  InformationalVersion: 'Beta',
  ablyApiKey: 'TJFdLg.pIuLyw:dCJ51J55dM-wtF6eHppVTrSVUy0BoGBX2UVkPld7MtY',
  externalApiKey: 'sinergialwebkeys'
};

/***/ }),

/***/ 14913:
/*!*********************!*\
  !*** ./src/main.ts ***!
  \*********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ 6593);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 65879);
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app/app.module */ 78629);
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./environments/environment */ 20553);
/// <reference types="@angular/localize" />




if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.production) {
  (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.enableProdMode)();
}
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__.platformBrowser().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_0__.AppModule).catch(err => console.error(err));

/***/ }),

/***/ 42480:
/*!************************!*\
  !*** crypto (ignored) ***!
  \************************/
/***/ (() => {

/* (ignored) */

/***/ })

},
/******/ __webpack_require__ => { // webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
/******/ __webpack_require__.O(0, ["vendor"], () => (__webpack_exec__(62125), __webpack_exec__(14913)));
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ }
]);